EntityAccess
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
Getter
Gets the ID of the entity.
Return Type:
int
id() as int
Gets the ID of the entity.
Returns: The ID of the entity.
Return Type:
int
Getter
Checks if the entity is always ticking.
Return Type:
bool
isAlwaysTicking() as bool
Checks if the entity is always ticking.
Returns: true if the entity is always ticking.
Return Type:
bool
setRemoved(var1 as RemovalReason)
Removes this entity with the given removal reason.
Parameters:
Getter
Checks if the entity should be saved.
Return Type:
bool
shouldBeSaved() as bool
Checks if the entity should be saved.
Returns: true if the entity should be saved.
Return Type:
bool
Getter
Gets the UUID of the entity.
Return Type:
UUID
uuid() as UUID
Gets the UUID of the entity.
Returns: The UUID of the entity.
Return Type:
UUID