EntityAccess
Link to entityaccess
Importare la Classe
Link to importare-la-classe
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.entity.EntityAccess;
Metodi
Link to metodi
Name: blockPosition
Return Type: BlockPos
ZenScript Copy// EntityAccess.blockPosition() as BlockPos
myEntityAccess.blockPosition();
Name: getBoundingBox
Return Type: AABB
ZenScript Copy// EntityAccess.getBoundingBox() as AABB
myEntityAccess.getBoundingBox();
Name: getId
Return Type: int
ZenScript Copy// EntityAccess.getId() as int
myEntityAccess.getId();
Name: getUUID
Return Type: invalid
ZenScript Copy// EntityAccess.getUUID() as invalid
myEntityAccess.getUUID();
Name: isAlwaysTicking
Return Type: boolean
ZenScript Copy// EntityAccess.isAlwaysTicking() as boolean
myEntityAccess.isAlwaysTicking();
Name: setRemoved
ZenScript CopyEntityAccess.setRemoved(var1 as RemovalReason)
Parametro | Tipo |
---|---|
Parametro var1 | Tipo RemovalReason |
Name: shouldBeSaved
Return Type: boolean
ZenScript Copy// EntityAccess.shouldBeSaved() as boolean
myEntityAccess.shouldBeSaved();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome blockPosiion | Tipo BlockPos | Ha Getter sì | Ha Setter no |
Nome boundingBox | Tipo AABB | Ha Getter sì | Ha Setter no |
Nome id | Tipo int | Ha Getter sì | Ha Setter no |
Nome isAlwaysTicking | Tipo boolean | Ha Getter sì | Ha Setter no |
Nome shouldBeSaved | Tipo boolean | Ha Getter sì | Ha Setter no |
Nome uuid | Tipo invalid | Ha Getter sì | Ha Setter no |