Interface EntityUtils
public interface EntityUtils
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @Nullable net.minecraft.world.level.GameTypegetGameMode(net.minecraft.world.entity.Entity entity) static floatgetHealth(net.minecraft.world.entity.Entity entity) static net.minecraft.world.phys.Vec3getLookTarget(net.minecraft.world.entity.Entity e, float delta) static floatgetMaxHealth(net.minecraft.world.entity.Entity entity) static net.minecraft.world.phys.Vec3getPosition(net.minecraft.world.entity.Entity e, PositionType type) static floatgetRelativeHealth(net.minecraft.world.entity.Entity entity) static booleanhasItem(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.item.ItemStack> ingredient) static booleanisAdventure(net.minecraft.world.entity.Entity entity) static booleanisCreative(net.minecraft.world.entity.Entity entity) static booleanisDamageable(net.minecraft.world.entity.Entity entity) static booleanisDeadOrDying(net.minecraft.world.entity.Entity entity) static booleanisSpectatorOrCreative(net.minecraft.world.entity.Entity entity) static booleanisSurvival(net.minecraft.world.entity.Entity entity) static booleanisSurvivalLike(net.minecraft.world.entity.Entity entity) static Rotationrotation(net.minecraft.world.entity.Entity e, float delta) static RotationviewRotation(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
-
viewRotation
-
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)
-