Interface EntityUtils


public interface EntityUtils
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static @Nullable net.minecraft.world.level.GameType
    getGameMode(net.minecraft.world.entity.Entity entity)
     
    static float
    getHealth(net.minecraft.world.entity.Entity entity)
     
    static net.minecraft.world.phys.Vec3
    getLookTarget(net.minecraft.world.entity.Entity e, float delta)
     
    static float
    getMaxHealth(net.minecraft.world.entity.Entity entity)
     
    static net.minecraft.world.phys.Vec3
    getPosition(net.minecraft.world.entity.Entity e, PositionType type)
     
    static float
    getRelativeHealth(net.minecraft.world.entity.Entity entity)
     
    static boolean
    hasItem(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> ingredient)
     
    static boolean
    isAdventure(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isCreative(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isDamageable(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isDeadOrDying(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isSpectatorOrCreative(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isSurvival(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isSurvivalLike(net.minecraft.world.entity.Entity entity)
     
    static Rotation
    rotation(net.minecraft.world.entity.Entity e, float delta)
     
    static Rotation
    viewRotation(net.minecraft.world.entity.Entity e, float delta)
     
  • Method Details

    • getGameMode

      @Nullable static @Nullable net.minecraft.world.level.GameType getGameMode(net.minecraft.world.entity.Entity entity)
    • isSpectatorOrCreative

      static boolean isSpectatorOrCreative(net.minecraft.world.entity.Entity entity)
    • isCreative

      static boolean isCreative(net.minecraft.world.entity.Entity entity)
    • isSurvival

      static boolean isSurvival(net.minecraft.world.entity.Entity entity)
    • isAdventure

      static boolean isAdventure(net.minecraft.world.entity.Entity entity)
    • isSurvivalLike

      static boolean isSurvivalLike(net.minecraft.world.entity.Entity entity)
    • getHealth

      static float getHealth(net.minecraft.world.entity.Entity entity)
    • getMaxHealth

      static float getMaxHealth(net.minecraft.world.entity.Entity entity)
    • getRelativeHealth

      static float getRelativeHealth(net.minecraft.world.entity.Entity entity)
    • hasItem

      static boolean hasItem(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> ingredient)
    • isDeadOrDying

      static boolean isDeadOrDying(net.minecraft.world.entity.Entity entity)
    • isDamageable

      static boolean isDamageable(net.minecraft.world.entity.Entity entity)
    • rotation

      static Rotation rotation(net.minecraft.world.entity.Entity e, float delta)
    • viewRotation

      static Rotation viewRotation(net.minecraft.world.entity.Entity e, float delta)
    • getLookTarget

      static net.minecraft.world.phys.Vec3 getLookTarget(net.minecraft.world.entity.Entity e, float delta)
    • getPosition

      static net.minecraft.world.phys.Vec3 getPosition(net.minecraft.world.entity.Entity e, PositionType type)