Constructs new Slime object from given entity unique ID. Use Actor.isValid, Actor.isMob and Mob.isSlime first, to check if entity with this ID exists and it's a Slime, or a java.lang.IllegalArgumentException will be thrown.
Constructs new Slime object from an existing Mob object. Use Mob.isSlime first, to check if your Mob is a Slime, or a java.lang.IllegalArgumentException will be thrown.
Constructs new Slime object from an existing Actor object. Use Actor.isMob and Mob.isSlime first, to check if your Actor is a Slime, or a java.lang.IllegalArgumentException will be thrown.
pointer to the native object wrapped by the following Actor object, represented by a signed 64-bit integer
whether the entity with given unique ID currently exists in the world. Use it when you construct Actor and its subclasses, otherwise you will get a java.lang.IllegalArgumentException telling you there is no entity with given id.
Generated using TypeDoc
Wrapper for the native
Slime
class extending Mob and giving access to more methods of entities of this class.You can construct new Slime from an existing Actor or Mob, or call Actor.asMob and Mob.asSlime.
First will throw java.lang.IllegalArgumentException, second will return null, if given Actor or Mob is not a Slime.
1.0