Class EntityUtils

java.lang.Object
meteordevelopment.meteorclient.utils.entity.EntityUtils

public class EntityUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.BlockPos
    getCityBlock(net.minecraft.world.entity.player.Player player)
     
    static Color
    getColorFromDistance(net.minecraft.world.entity.Entity entity)
     
    static Color
    getColorFromHealth(net.minecraft.world.entity.Entity entity, Color nonLivingEntityColor)
     
    static net.minecraft.world.level.GameType
    getGameMode(net.minecraft.world.entity.player.Player player)
     
    static net.minecraft.world.entity.EntityType<?>
    getGroup(net.minecraft.world.entity.Entity entity)
     
    static String
    getName(net.minecraft.world.entity.Entity entity)
     
    static int
    getPing(net.minecraft.world.entity.player.Player player)
     
    static float
    getTotalHealth(net.minecraft.world.entity.LivingEntity target)
     
    static boolean
    intersectsWithEntity(net.minecraft.world.phys.AABB box, Predicate<net.minecraft.world.entity.Entity> predicate)
     
    static boolean
    isAboveWater(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isAttackable(net.minecraft.world.entity.EntityType<?> type)
     
    static boolean
    isInCobweb(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isInRenderDistance(double posX, double posZ)
     
    static boolean
    isInRenderDistance(net.minecraft.core.BlockPos pos)
     
    static boolean
    isInRenderDistance(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isInRenderDistance(net.minecraft.world.level.block.entity.BlockEntity entity)
     
    static boolean
    isOnAir(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isRideable(net.minecraft.world.entity.EntityType<?> type)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isAttackable

      public static boolean isAttackable(net.minecraft.world.entity.EntityType<?> type)
    • isRideable

      public static boolean isRideable(net.minecraft.world.entity.EntityType<?> type)
    • getTotalHealth

      public static float getTotalHealth(net.minecraft.world.entity.LivingEntity target)
    • getPing

      public static int getPing(net.minecraft.world.entity.player.Player player)
    • getGameMode

      public static net.minecraft.world.level.GameType getGameMode(net.minecraft.world.entity.player.Player player)
    • isAboveWater

      public static boolean isAboveWater(net.minecraft.world.entity.Entity entity)
    • isInCobweb

      public static boolean isInCobweb(net.minecraft.world.entity.Entity entity)
    • isInRenderDistance

      public static boolean isInRenderDistance(net.minecraft.world.entity.Entity entity)
    • isInRenderDistance

      public static boolean isInRenderDistance(net.minecraft.world.level.block.entity.BlockEntity entity)
    • isInRenderDistance

      public static boolean isInRenderDistance(net.minecraft.core.BlockPos pos)
    • isInRenderDistance

      public static boolean isInRenderDistance(double posX, double posZ)
    • getCityBlock

      public static net.minecraft.core.BlockPos getCityBlock(net.minecraft.world.entity.player.Player player)
    • getName

      public static String getName(net.minecraft.world.entity.Entity entity)
    • getColorFromDistance

      public static Color getColorFromDistance(net.minecraft.world.entity.Entity entity)
    • getColorFromHealth

      public static Color getColorFromHealth(net.minecraft.world.entity.Entity entity, Color nonLivingEntityColor)
    • intersectsWithEntity

      public static boolean intersectsWithEntity(net.minecraft.world.phys.AABB box, Predicate<net.minecraft.world.entity.Entity> predicate)
    • getGroup

      public static net.minecraft.world.entity.EntityType<?> getGroup(net.minecraft.world.entity.Entity entity)
    • isOnAir

      public static boolean isOnAir(net.minecraft.world.entity.Entity entity)