Class ExpandEntityAccess
java.lang.Object
com.blamejared.crafttweaker.natives.entity.ExpandEntityAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.BlockPosblockPosition(net.minecraft.world.level.entity.EntityAccess internal) Gets theBlockPosof the entity.static net.minecraft.world.phys.AABBgetBoundingBox(net.minecraft.world.level.entity.EntityAccess internal) Gets the bounding box of the entity.static intgetId(net.minecraft.world.level.entity.EntityAccess internal) Gets the ID of the entity.static UUIDgetUUID(net.minecraft.world.level.entity.EntityAccess internal) Gets the UUID of the entity.static booleanisAlwaysTicking(net.minecraft.world.level.entity.EntityAccess internal) Checks if the entity is always ticking.static voidsetRemoved(net.minecraft.world.level.entity.EntityAccess internal, net.minecraft.world.entity.Entity.RemovalReason var1) Removes this entity with the givenremoval reason.static booleanshouldBeSaved(net.minecraft.world.level.entity.EntityAccess internal) Checks if the entity should be saved.
-
Constructor Details
-
ExpandEntityAccess
public ExpandEntityAccess()
-
-
Method Details
-
getId
public static int getId(net.minecraft.world.level.entity.EntityAccess internal) Gets the ID of the entity.- Returns:
- The ID of the entity.
-
getUUID
Gets the UUID of the entity.- Returns:
- The UUID of the entity.
-
blockPosition
public static net.minecraft.core.BlockPos blockPosition(net.minecraft.world.level.entity.EntityAccess internal) Gets theBlockPosof the entity.- Returns:
- The
BlockPosof the entity.
-
getBoundingBox
public static net.minecraft.world.phys.AABB getBoundingBox(net.minecraft.world.level.entity.EntityAccess internal) Gets the bounding box of the entity.- Returns:
- The bounding box of the entity.
-
setRemoved
public static void setRemoved(net.minecraft.world.level.entity.EntityAccess internal, net.minecraft.world.entity.Entity.RemovalReason var1) Removes this entity with the givenremoval reason.- Parameters:
var1- The removal reason to set.
-
shouldBeSaved
public static boolean shouldBeSaved(net.minecraft.world.level.entity.EntityAccess internal) Checks if the entity should be saved.- Returns:
- true if the entity should be saved.
-
isAlwaysTicking
public static boolean isAlwaysTicking(net.minecraft.world.level.entity.EntityAccess internal) Checks if the entity is always ticking.- Returns:
- true if the entity is always ticking.
-