Class ExpandEntityAccess

java.lang.Object
com.blamejared.crafttweaker.natives.entity.ExpandEntityAccess

@ZenRegister public class ExpandEntityAccess extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.BlockPos
    blockPosition(net.minecraft.world.level.entity.EntityAccess internal)
    Gets the BlockPos of the entity.
    static net.minecraft.world.phys.AABB
    getBoundingBox(net.minecraft.world.level.entity.EntityAccess internal)
    Gets the bounding box of the entity.
    static int
    getId(net.minecraft.world.level.entity.EntityAccess internal)
    Gets the ID of the entity.
    static UUID
    getUUID(net.minecraft.world.level.entity.EntityAccess internal)
    Gets the UUID of the entity.
    static boolean
    isAlwaysTicking(net.minecraft.world.level.entity.EntityAccess internal)
    Checks if the entity is always ticking.
    static void
    setRemoved(net.minecraft.world.level.entity.EntityAccess internal, net.minecraft.world.entity.Entity.RemovalReason var1)
    Removes this entity with the given removal reason.
    static boolean
    shouldBeSaved(net.minecraft.world.level.entity.EntityAccess internal)
    Checks if the entity should be saved.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static UUID getUUID(net.minecraft.world.level.entity.EntityAccess internal)
      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 the BlockPos of the entity.
      Returns:
      The BlockPos of 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 given removal 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.