Constructs new Mob object from given entity unique ID. Use Actor.isValid and Actor.isMob first, to check if entity with this ID exists and it's a Mob, or a java.lang.IllegalArgumentException will be thrown.
Constructs new Mob object from an existing Actor object. Throws java.lang.IllegalArgumentException if the given Actor is not a Mob. You should better use Actor.asMob, that will return null in case your Actor is not a Mob.
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
Mob
class extending Actor and giving access to more methods of entities of this class.You can construct new Mob from an existing Actor, or call Actor.asMob.
First will throw java.lang.IllegalArgumentException, second will return null, if given Actor is not a Mob.
1.0