Title class

Inheritance

Constructors

Title(Entity entity, {required List<TextComponent> show})
To display our TextComponent, we need the /title command and the Title class wrapper.
Title.actionbar(Entity entity, {required List<TextComponent> show})
Title.clear(Entity entity)
Title.clear clears all titles again:
Title.resetTimes(Entity entity)
resets times for one selector
Title.subtitle(Entity entity, {required List<TextComponent> show})
Title.times(Entity entity, {Time fadein = const Time(20), Time display = const Time(60), Time fadeout = const Time(20)})
Title.times sets the timings

Properties

called bool
Contains the Information, if this RestAction is already called (and can't be called again)
getter/setter pairinherited
entity Entity
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show List<TextComponent>
final
times → (Time, Time, Time)?
final
writable List<Widget>?
The writable list the RestAction writes it's contents on
getter/setter pairinherited

Methods

generate(Context context) Widget
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queue([List<Widget>? writable]) → void
Execute this method to add this to the WidgetList (can use default list or as parameter given list) This method can only be executed once, if it is executed multiple times you will get an Error. You can read out if it is already executed in the boolean Called Example for a queue method:
inherited
toMap() → dynamic
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited