Particle class

The particle command spawns particles in the world to enhance certain graphics.

Inheritance

Constructors

Particle(ParticleType particle, {String? texture, Location? location, Location? delta, double speed = 0, int count = 1, bool force = false, Entity? player})
The particle command spawns particles in the world to enhance certain graphics.
Particle.block(Block block, {bool falling = false, bool marker = false, Location? location, Location? delta, double speed = 0, int count = 1, bool force = false, Entity? player})
For the Block particle(shows block break) there is a named constructor
Particle.dust(double r, double g, double b, {required double size, Location? location, Location? delta, double speed = 0, int count = 1, bool force = false, Entity? player})
Particle.item(Item item, {Location? location, Location? delta, double speed = 0, int count = 1, bool force = false, Entity? player})
For the Item particle(shows item break) there is a named constructor

Properties

called bool
Contains the Information, if this RestAction is already called (and can't be called again)
getter/setter pairinherited
count int
final
delta Location?
final
force bool
final
hashCode int
The hash code for this object.
no setterinherited
location Location?
final
particle ParticleType
final
player Entity?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
final
texture String?
final
writable List<Widget>?
The writable list the RestAction writes it's contents on
getter/setter pairinherited

Methods

copyWith({ParticleType? particle, String? texture, Location? location, Location? delta, double? speed, int? count, bool? force, Entity? player}) Particle
use copyWith to create a new instance with some values changed
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