Class ExpandEntity

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

@ZenRegister public class ExpandEntity extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    addTag(net.minecraft.world.entity.Entity internal, String tagName)
    Adds a tag to the entity, returning false if the entity has over 1024
    static net.minecraft.core.BlockPos
    blockPosition(net.minecraft.world.entity.Entity internal)
    Gets the position of the entity.
    static boolean
    canBeCollidedWith(net.minecraft.world.entity.Entity internal)
    Checks if the entity can be collided with.
    static boolean
    canCollideWith(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other)
    Checks if the entity can collide with the given entity.
    static boolean
    canFreeze(net.minecraft.world.entity.Entity internal)
    Checks if the entity can freeze.
    static void
    clearFire(net.minecraft.world.entity.Entity internal)
    Clears the fire of the entity.
    static boolean
    closerThan(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other, double distance)
    Checks if the entity is closer than the given distance to another entity.
    static boolean
    dampensVibrations(net.minecraft.world.entity.Entity internal)
    Checks if the entity dampens vibrations, such as ItemEntitys who's item is in the dampens_vibrations item tag.
    static void
    discard(net.minecraft.world.entity.Entity internal)
    Discards the entity.
    static boolean
    dismountsUnderwater(net.minecraft.world.entity.Entity internal)
    Checks if the entity dismounts underwater.
    static float
    distanceTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Gets the distance to the given entity.
    static double
    distanceToSqr(net.minecraft.world.entity.Entity internal, double x, double y, double z)
    Gets the squared distance to the given position.
    static double
    distanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Gets the squared distance to the given entity.
    static double
    distanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec)
    Gets the squared distance to the given vector.
    static void
    ejectPassengers(net.minecraft.world.entity.Entity internal)
    Ejects the passengers of the entity.
    static boolean
    fireImmune(net.minecraft.world.entity.Entity internal)
    Checks if the entity is fire immune.
    static int
    getAirSupply(net.minecraft.world.entity.Entity internal)
    Gets the current air supply of the entity.
    static float
    getBbHeight(net.minecraft.world.entity.Entity internal)
    Gets the height of the bounding box of the entity.
    static float
    getBbWidth(net.minecraft.world.entity.Entity internal)
    Gets the width of the bounding box of the entity.
    static int
    getBlockX(net.minecraft.world.entity.Entity internal)
    Gets the x coordinate of the entity.
    static int
    getBlockY(net.minecraft.world.entity.Entity internal)
    Gets the y coordinate of the entity.
    static int
    getBlockZ(net.minecraft.world.entity.Entity internal)
    Gets the z coordinate of the entity.
    static net.minecraft.world.phys.AABB
    getBoundingBoxForCulling(net.minecraft.world.entity.Entity internal)
    Gets the bounding box for culling of the entity.
    static net.minecraft.world.level.Level
    getCommandSenderWorld(net.minecraft.world.entity.Entity internal)
    Gets the Level used when sending commands as this entity.
    static net.minecraft.world.entity.Entity
    getControllingPassenger(net.minecraft.world.entity.Entity internal)
    Gets the controlling passenger of the entity.
    static MapData
    getCustomData(net.minecraft.world.entity.Entity internal)
    Gets the custom NBT data for this Entity.
    static net.minecraft.network.chat.Component
    getCustomName(net.minecraft.world.entity.Entity internal)
    Gets the custom name of the entity.
    static MapData
    getData(net.minecraft.world.entity.Entity internal)
    Gets the NBT data of this Entity.
    static net.minecraft.world.phys.Vec3
    getDeltaMovement(net.minecraft.world.entity.Entity internal)
    Gets the delta movement of the entity.
    static int
    getDimensionChangingDelay(net.minecraft.world.entity.Entity internal)
    Gets the dimension changing delay of the entity.
    static net.minecraft.core.Direction
    getDirection(net.minecraft.world.entity.Entity internal)
    Gets the direction of the entity.
    static net.minecraft.network.chat.Component
    getDisplayName(net.minecraft.world.entity.Entity internal)
    Gets the display name of the entity.
    static float
    getEyeHeight(net.minecraft.world.entity.Entity internal)
    Gets the eye height of the entity.
    static net.minecraft.world.phys.Vec3
    getEyePosition(net.minecraft.world.entity.Entity internal)
    Gets the eye position of the entity.
    static net.minecraft.world.phys.Vec3
    getEyePosition(net.minecraft.world.entity.Entity internal, float partialTicks)
    Gets the eye position of the entity.
    static double
    getEyeY(net.minecraft.world.entity.Entity internal)
    Gets the y coordinate of the entity's eyes.
    static net.minecraft.world.entity.Entity
    getFirstPassenger(net.minecraft.world.entity.Entity internal)
    Gets the first passenger of the entity.
    static double
    getFluidJumpThreshold(net.minecraft.world.entity.Entity internal)
    Gets the fluid jump threshold of the entity.
    static net.minecraft.world.phys.Vec3
    getForward(net.minecraft.world.entity.Entity internal)
    Gets the forward vector of the entity.
    static net.minecraft.world.level.block.state.BlockState
    getInBlockState(net.minecraft.world.entity.Entity internal)
    Gets the BlockState that this entity is currently inside.
    static net.minecraft.world.level.Level
    getLevel(net.minecraft.world.entity.Entity internal)
    Gets the Level of the entity.
    static net.minecraft.world.phys.Vec3
    getLookAngle(net.minecraft.world.entity.Entity internal)
    Gets the look angle of the entity.
    static int
    getMaxAirSupply(net.minecraft.world.entity.Entity internal)
    Gets the maximum air supply of the entity.
    static int
    getMaxFallDistance(net.minecraft.world.entity.Entity internal)
    Gets the maximum fall distance of the entity.
    static net.minecraft.core.Direction
    getMotionDirection(net.minecraft.world.entity.Entity internal)
    Gets the motion direction of the entity.
    static net.minecraft.network.chat.Component
    getName(net.minecraft.world.entity.Entity internal)
    Gets the name of the entity.
    static net.minecraft.core.BlockPos
    getOnPos(net.minecraft.world.entity.Entity internal)
    Gets the position of the entity on the ground.
    static List<net.minecraft.world.entity.Entity>
    getPassengers(net.minecraft.world.entity.Entity internal)
    Gets the passengers of the entity.
    static float
    getPercentFrozen(net.minecraft.world.entity.Entity internal)
    Gets the percent the entity is frozen.
    static net.minecraft.world.level.material.PushReaction
    getPistonPushReaction(net.minecraft.world.entity.Entity internal)
    Gets the piston push reaction of the entity.
    static net.minecraft.world.phys.Vec3
    getPosition(net.minecraft.world.entity.Entity internal, float partialTicks)
    Gets the position of the entity.
    static net.minecraft.resources.ResourceLocation
    getRegistryName(net.minecraft.world.entity.Entity internal)
    Gets the registry name of the entity.
    static int
    getRemainingFireTicks(net.minecraft.world.entity.Entity internal)
    Gets the remaining fire ticks of the entity.
    static net.minecraft.world.entity.Entity
    getRootVehicle(net.minecraft.world.entity.Entity internal)
    Gets the root vehicle of the entity.
    static net.minecraft.sounds.SoundSource
    getSoundSource(net.minecraft.world.entity.Entity internal)
    Gets the SoundSource of the entity.
    static String
    getStringUUID(net.minecraft.world.entity.Entity internal)
    Gets the UUID of the entity as a string.
    static Set<String>
    getTags(net.minecraft.world.entity.Entity internal)
    Gets the tags of the entity.
    static int
    getTeamColor(net.minecraft.world.entity.Entity internal)
    Gets the team color of the entity.
    static int
    getTicksFrozen(net.minecraft.world.entity.Entity internal)
    Gets the number of ticks the entity has been frozen.
    static int
    getTicksRequiredToFreeze(net.minecraft.world.entity.Entity internal)
    Gets the number of ticks required to freeze the entity.
    static net.minecraft.world.entity.EntityType<net.minecraft.world.entity.Entity>
    getType(net.minecraft.world.entity.Entity internal)
    Gets the EntityType of the entity.
    static net.minecraft.world.phys.Vec3
    getUpVector(net.minecraft.world.entity.Entity internal, float partialTicks)
    Gets the up vector of the entity.
    static net.minecraft.world.entity.Entity
    getVehicle(net.minecraft.world.entity.Entity internal)
    Gets the vehicle of the entity.
    static net.minecraft.world.phys.Vec3
    getViewVector(net.minecraft.world.entity.Entity internal, float partialTicks)
    Gets the view vector of the entity.
    static double
    getX(net.minecraft.world.entity.Entity internal)
    Gets the x coordinate of the entity.
    static double
    getX(net.minecraft.world.entity.Entity internal, double scale)
    Gets the x coordinate of the entity with the given scale.
    static double
    getY(net.minecraft.world.entity.Entity internal)
    Gets the y coordinate of the entity.
    static double
    getY(net.minecraft.world.entity.Entity internal, double scale)
    Gets the y coordinate of the entity with the given scale.
    static double
    getZ(net.minecraft.world.entity.Entity internal)
    Gets the z coordinate of the entity.
    static double
    getZ(net.minecraft.world.entity.Entity internal, double scale)
    Gets the z coordinate of the entity with the given scale.
    static boolean
    hasCustomName(net.minecraft.world.entity.Entity internal)
    Checks if the entity has a custom name.
    static boolean
    hasExactlyOnePlayerPassenger(net.minecraft.world.entity.Entity internal)
    Checks if the entity has exactly one player passenger.
    static boolean
    hasGlowingTag(net.minecraft.world.entity.Entity internal)
    Checks if the entity is currently glowing.
    static boolean
    hasIndirectPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Checks if the entity has an indirect passenger.
    static boolean
    hasPassenger(net.minecraft.world.entity.Entity internal, Predicate<net.minecraft.world.entity.Entity> predicate)
    Checks if the entity has a passenger that matches the given predicate.
    static boolean
    hasPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Checks if the entity has a passenger.
    static boolean
    hurt(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source, float amount)
    Hurts the entity with the given DamageSource and amount.
    static boolean
    isAlive(net.minecraft.world.entity.Entity internal)
    Checks if the entity is alive.
    static boolean
    isAttackable(net.minecraft.world.entity.Entity internal)
    Checks if the entity is attackable.
    static boolean
    isColliding(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    Checks if this entity is colliding with the given BlockState at the given BlockPos.
    static boolean
    isCrouching(net.minecraft.world.entity.Entity internal)
    Checks if the entity is crouching.
    static boolean
    isCurrentlyGlowing(net.minecraft.world.entity.Entity internal)
    Checks if the entity is currently glowing.
    static boolean
    isCustomNameVisible(net.minecraft.world.entity.Entity internal)
    Checks if the custom name of the entity is visible.
    static boolean
    isDescending(net.minecraft.world.entity.Entity internal)
    Checks if the entity is descending.
    static boolean
    isDiscrete(net.minecraft.world.entity.Entity internal)
    Checks if the entity is being discrete.
    static boolean
    isFree(net.minecraft.world.entity.Entity internal, double x, double y, double z)
    Checks if the offset position from the entity's current position has a collision with a block or a liquid.
    static boolean
    isFullyFrozen(net.minecraft.world.entity.Entity internal)
    Checks if the entity is fully frozen.
    static boolean
    isInLava(net.minecraft.world.entity.Entity internal)
    Checks if the entity is in lava.
    static boolean
    isInvisible(net.minecraft.world.entity.Entity internal)
    Checks if the entity is invisible.
    static boolean
    isInvisibleTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.player.Player player)
    Checks if the entity is invisible to the given Player.
    static boolean
    isInvulnerable(net.minecraft.world.entity.Entity internal)
    Checks if the entity is invulnerable.
    static boolean
    isInvulnerableTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source)
    Checks if the entity is invulnerable to the given DamageSource.
    static boolean
    isInWall(net.minecraft.world.entity.Entity internal)
    Checks if the entity is in a wall.
    static boolean
    isInWater(net.minecraft.world.entity.Entity internal)
    Checks if the entity is in water.
    static boolean
    isInWaterOrBubble(net.minecraft.world.entity.Entity internal)
    Checks if the entity is in water or a bubble column.
    static boolean
    isInWaterOrRain(net.minecraft.world.entity.Entity internal)
    Checks if the entity is in water or rain.
    static boolean
    isInWaterRainOrBubble(net.minecraft.world.entity.Entity internal)
    Checks if the entity is in water or rain or a bubble column.
    static boolean
    isNoGravity(net.minecraft.world.entity.Entity internal)
    Checks if the entity has no gravity.
    static boolean
    isOnFire(net.minecraft.world.entity.Entity internal)
    Checks if the entity is on fire.
    static boolean
    isOnPortalCooldown(net.minecraft.world.entity.Entity internal)
    Checks if the entity is on portal cooldown.
    static boolean
    isPassenger(net.minecraft.world.entity.Entity internal)
    Checks if the entity is a passenger.
    static boolean
    isPassengerOfSameVehicle(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Checks if the entity is a passenger of the same vehicle.
    static boolean
    isPickable(net.minecraft.world.entity.Entity internal)
    Checks if the entity is pickable.
    static boolean
    isPushable(net.minecraft.world.entity.Entity internal)
    Checks if the entity is pushable.
    static boolean
    isPushedByFluid(net.minecraft.world.entity.Entity internal)
    Checks if the entity is pushed by fluid.
    static boolean
    isRemoved(net.minecraft.world.entity.Entity internal)
    Checks if the entity has been removed.
    static boolean
    isShiftKeyDown(net.minecraft.world.entity.Entity internal)
    Checks if the shift key is down.
    static boolean
    isSilent(net.minecraft.world.entity.Entity internal)
    Checks if the entity is silent, meaning it won't play any sounds.
    static boolean
    isSpectator(net.minecraft.world.entity.Entity internal)
    Checks if the entity is a spectator.
    static boolean
    isSprinting(net.minecraft.world.entity.Entity internal)
    Checks if the entity is sprinting.
    static boolean
    isSteppingCarefully(net.minecraft.world.entity.Entity internal)
    Checks if the entity is stepping carefully.
    static boolean
    isSuppressingBounce(net.minecraft.world.entity.Entity internal)
    Checks if the entity is suppressing bounce.
    static boolean
    isSwimming(net.minecraft.world.entity.Entity internal)
    Checks if the entity is swimming.
    static boolean
    isUnderWater(net.minecraft.world.entity.Entity internal)
    Checks if the entity is underwater.
    static boolean
    isVehicle(net.minecraft.world.entity.Entity internal)
    Checks if the entity is a vehicle.
    static boolean
    isVisuallyCrawling(net.minecraft.world.entity.Entity internal)
    Checks if the entity is visually crawling.
    static boolean
    isVisuallySwimming(net.minecraft.world.entity.Entity internal)
    Checks if the entity is visually swimming.
    static void
    kill(net.minecraft.world.entity.Entity internal)
    Kills the entity.
    static void
    lavaHurt(net.minecraft.world.entity.Entity internal)
    Causes the entity to take damage from lava.
    static void
    moveRelative(net.minecraft.world.entity.Entity internal, float amount, net.minecraft.world.phys.Vec3 relative)
    Moves the entity relative to its current position.
    static void
    moveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z)
    Moves the entity to the given position.
    static void
    moveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z, float yaw, float pitch)
    Moves the entity to the given position.
    static void
    moveTo(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, float yaw, float pitch)
    Moves the entity to the given position.
    static void
    moveTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec)
    Moves the entity to the given position.
    static boolean
    onGround(net.minecraft.world.entity.Entity internal)
    Checks if the entity is on the ground.
    static void
    playSound(net.minecraft.world.entity.Entity internal, net.minecraft.sounds.SoundEvent sound, float volume, float pitch)
    Plays a sound at the entity's location.
    static net.minecraft.world.phys.Vec3
    position(net.minecraft.world.entity.Entity internal)
    Gets the position of the entity.
    static void
    positionRider(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Positions the rider of the entity.
    static boolean
    removeTag(net.minecraft.world.entity.Entity internal, String tagName)
    Removes a tag from the entity.
    static void
    removeVehicle(net.minecraft.world.entity.Entity internal)
    Removes the vehicle of the entity.
    static void
    setAirSupply(net.minecraft.world.entity.Entity internal, int air)
    Sets the air supply of the entity.
    static void
    setCustomName(net.minecraft.world.entity.Entity internal, net.minecraft.network.chat.Component name)
    Sets the custom name of the entity.
    static void
    setCustomNameVisible(net.minecraft.world.entity.Entity internal, boolean visible)
    Sets the custom name visible state of the entity.
    static void
    setDeltaMovement(net.minecraft.world.entity.Entity internal, double xDelta, double yDelta, double zDelta)
    Sets the delta movement of the entity.
    static void
    setDeltaMovement(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 deltaMovement)
    Sets the delta movement of the entity.
    static void
    setGlowingTag(net.minecraft.world.entity.Entity internal, boolean glowing)
    Makes the entity glow.
    static void
    setInvisible(net.minecraft.world.entity.Entity internal, boolean invisible)
    Sets the invisible state of the entity.
    static void
    setInvulnerable(net.minecraft.world.entity.Entity internal, boolean invulnerable)
    Sets the invulnerable state of the entity.
    static void
    setIsInPowderSnow(net.minecraft.world.entity.Entity internal, boolean inPowderSnow)
    Sets whether the entity is in powder snow.
    static void
    setNoGravity(net.minecraft.world.entity.Entity internal, boolean noGravity)
    Sets if the entity has no gravity.
    static void
    setOldPosAndRot(net.minecraft.world.entity.Entity internal)
    Sets the old position and rotation of the entity.
    static void
    setOnGround(net.minecraft.world.entity.Entity internal, boolean onGround)
    Sets if the entity is on the ground.
    static void
    setPortalCooldown(net.minecraft.world.entity.Entity internal)
    Sets the portal cooldown of the entity.
    static void
    setPos(net.minecraft.world.entity.Entity internal, double x, double y, double z)
    Sets the position of the entity.
    static void
    setPos(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 position)
    Sets the position of the entity.
    static void
    setPosRaw(net.minecraft.world.entity.Entity internal, double x, double y, double z)
    Sets the position of the entity to the given coordinates.
    static void
    setRemainingFireTicks(net.minecraft.world.entity.Entity internal, int ticks)
    Sets the remaining fire ticks of the entity.
    static void
    setShiftKeyDown(net.minecraft.world.entity.Entity internal, boolean keyDown)
    Sets the shift key down state of the entity.
    static void
    setSilent(net.minecraft.world.entity.Entity internal, boolean silent)
    Sets if the entity is silent.
    static void
    setSprinting(net.minecraft.world.entity.Entity internal, boolean sprinting)
    Sets the sprinting state of the entity.
    static void
    setSwimming(net.minecraft.world.entity.Entity internal, boolean swimming)
    Sets the swimming state of the entity.
    static void
    setTicksFrozen(net.minecraft.world.entity.Entity internal, int ticks)
    Sets the number of ticks the entity has been frozen.
    static boolean
    shouldShowName(net.minecraft.world.entity.Entity internal)
    Checks if the entity should show its name.
    static boolean
    showVehicleHealth(net.minecraft.world.entity.Entity internal)
    Checks if the entity should show vehicle health.
    static boolean
    startRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
    Starts riding the given entity.
    static boolean
    startRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity, boolean force)
    Starts riding the given entity.
    static void
    stopRiding(net.minecraft.world.entity.Entity internal)
    Stops riding the entity.
    static void
    teleportTo(net.minecraft.world.entity.Entity internal, double x, double y, double z)
    Teleports the entity to the given position.
    static void
    turn(net.minecraft.world.entity.Entity internal, double yaw, double pitch)
    Turns the entity.
    static void
    unRide(net.minecraft.world.entity.Entity internal)
    Removes any passengers and stops riding the current entity.
    static void
    updateCustomData(net.minecraft.world.entity.Entity internal, MapData data)
    Updates the custom NBT data for this Entity.
    static void
    updateCustomEntityTag(net.minecraft.world.entity.Entity internal, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, MapData data)
     
    static void
    updateData(net.minecraft.world.entity.Entity internal, MapData data)
    Updates the NBT data of this Entity.

    Methods inherited from class java.lang.Object

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

    • ExpandEntity

      public ExpandEntity()
  • Method Details

    • updateCustomEntityTag

      public static void updateCustomEntityTag(net.minecraft.world.entity.Entity internal, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, MapData data)
    • isColliding

      public static boolean isColliding(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Checks if this entity is colliding with the given BlockState at the given BlockPos.
      Parameters:
      pos - The position of the block to check.
      state - The state of the block to check.
      Returns:
      true if the entity is colliding with the block.
    • getLevel

      public static net.minecraft.world.level.Level getLevel(net.minecraft.world.entity.Entity internal)
      Gets the Level of the entity.
      Returns:
      The Level of the entity.
    • getTeamColor

      public static int getTeamColor(net.minecraft.world.entity.Entity internal)
      Gets the team color of the entity.
      Returns:
      The team color of the entity.
    • isSpectator

      public static boolean isSpectator(net.minecraft.world.entity.Entity internal)
      Checks if the entity is a spectator.
      Returns:
      true if the entity is a spectator.
    • unRide

      public static void unRide(net.minecraft.world.entity.Entity internal)
      Removes any passengers and stops riding the current entity.
    • getType

      public static net.minecraft.world.entity.EntityType<net.minecraft.world.entity.Entity> getType(net.minecraft.world.entity.Entity internal)
      Gets the EntityType of the entity.
      Returns:
      The EntityType of the entity.
    • getTags

      public static Set<String> getTags(net.minecraft.world.entity.Entity internal)
      Gets the tags of the entity. These tags are arbitrary strings that can be attached to an entity. A single entity is limited to 1024.
      Returns:
      The tags of the entity.
    • addTag

      public static boolean addTag(net.minecraft.world.entity.Entity internal, String tagName)
      Adds a tag to the entity, returning false if the entity has over 1024
      Parameters:
      tagName - The name of the tag to add.
      Returns:
      true if the tag was added.
    • removeTag

      public static boolean removeTag(net.minecraft.world.entity.Entity internal, String tagName)
      Removes a tag from the entity.
      Parameters:
      tagName - The name of the tag to remove.
      Returns:
      true if the tag was removed.
    • kill

      public static void kill(net.minecraft.world.entity.Entity internal)
      Kills the entity.
    • discard

      public static void discard(net.minecraft.world.entity.Entity internal)
      Discards the entity.
    • closerThan

      public static boolean closerThan(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other, double distance)
      Checks if the entity is closer than the given distance to another entity.
      Parameters:
      other - The other entity to check the distance to.
      distance - The distance to check.
      Returns:
      true if the entity is closer than the given distance to the other entity.
    • setPos

      public static void setPos(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 position)
      Sets the position of the entity.
      Parameters:
      position - The position to set the entity to.
    • setPos

      public static void setPos(net.minecraft.world.entity.Entity internal, double x, double y, double z)
      Sets the position of the entity.
      Parameters:
      x - The x position to set the entity to.
      y - The y position to set the entity to.
      z - The z position to set the entity to.
    • turn

      public static void turn(net.minecraft.world.entity.Entity internal, double yaw, double pitch)
      Turns the entity.
      Parameters:
      yaw - The yaw to turn the entity to.
      pitch - The pitch to turn the entity to.
    • setPortalCooldown

      public static void setPortalCooldown(net.minecraft.world.entity.Entity internal)
      Sets the portal cooldown of the entity.
    • isOnPortalCooldown

      public static boolean isOnPortalCooldown(net.minecraft.world.entity.Entity internal)
      Checks if the entity is on portal cooldown.
      Returns:
      true if the entity is on portal cooldown.
    • lavaHurt

      public static void lavaHurt(net.minecraft.world.entity.Entity internal)
      Causes the entity to take damage from lava.
    • setRemainingFireTicks

      public static void setRemainingFireTicks(net.minecraft.world.entity.Entity internal, int ticks)
      Sets the remaining fire ticks of the entity.
      Parameters:
      ticks - The number of ticks to set the remaining fire ticks to.
    • getRemainingFireTicks

      public static int getRemainingFireTicks(net.minecraft.world.entity.Entity internal)
      Gets the remaining fire ticks of the entity.
      Returns:
      The remaining fire ticks of the entity.
    • clearFire

      public static void clearFire(net.minecraft.world.entity.Entity internal)
      Clears the fire of the entity.
    • isFree

      public static boolean isFree(net.minecraft.world.entity.Entity internal, double x, double y, double z)
      Checks if the offset position from the entity's current position has a collision with a block or a liquid.
      Parameters:
      x - The x position to check.
      y - The y position to check.
      z - The z position to check.
      Returns:
      true if the entity is free to move in the given position.
    • setOnGround

      public static void setOnGround(net.minecraft.world.entity.Entity internal, boolean onGround)
      Sets if the entity is on the ground.
      Parameters:
      onGround - The on ground state to set the entity to.
    • onGround

      public static boolean onGround(net.minecraft.world.entity.Entity internal)
      Checks if the entity is on the ground.
      Returns:
      true if the entity is on the ground.
    • getOnPos

      public static net.minecraft.core.BlockPos getOnPos(net.minecraft.world.entity.Entity internal)
      Gets the position of the entity on the ground.
      Returns:
      The position of the entity on the ground.
    • playSound

      public static void playSound(net.minecraft.world.entity.Entity internal, net.minecraft.sounds.SoundEvent sound, float volume, float pitch)
      Plays a sound at the entity's location.
      Parameters:
      sound - The sound to play.
      volume - The volume of the sound.
      pitch - The pitch of the sound.
    • isSilent

      public static boolean isSilent(net.minecraft.world.entity.Entity internal)
      Checks if the entity is silent, meaning it won't play any sounds.
      Returns:
      true if the entity is silent.
    • setSilent

      public static void setSilent(net.minecraft.world.entity.Entity internal, boolean silent)
      Sets if the entity is silent.
      Parameters:
      silent - The silent state to set the entity to.
    • isNoGravity

      public static boolean isNoGravity(net.minecraft.world.entity.Entity internal)
      Checks if the entity has no gravity.
      Returns:
      true if the entity has no gravity.
    • setNoGravity

      public static void setNoGravity(net.minecraft.world.entity.Entity internal, boolean noGravity)
      Sets if the entity has no gravity.
      Parameters:
      noGravity - The no gravity state to set the entity to.
    • dampensVibrations

      public static boolean dampensVibrations(net.minecraft.world.entity.Entity internal)
      Checks if the entity dampens vibrations, such as ItemEntitys who's item is in the dampens_vibrations item tag.
      Returns:
      true if the entity dampens vibrations.
    • fireImmune

      public static boolean fireImmune(net.minecraft.world.entity.Entity internal)
      Checks if the entity is fire immune.
      Returns:
      true if the entity is fire immune.
    • isInWater

      public static boolean isInWater(net.minecraft.world.entity.Entity internal)
      Checks if the entity is in water.
      Returns:
      true if the entity is in water.
    • isInWaterOrRain

      public static boolean isInWaterOrRain(net.minecraft.world.entity.Entity internal)
      Checks if the entity is in water or rain.
      Returns:
      true if the entity is in water or rain.
    • isInWaterRainOrBubble

      public static boolean isInWaterRainOrBubble(net.minecraft.world.entity.Entity internal)
      Checks if the entity is in water or rain or a bubble column.
      Returns:
      true if the entity is in water or rain or a bubble column.
    • isInWaterOrBubble

      public static boolean isInWaterOrBubble(net.minecraft.world.entity.Entity internal)
      Checks if the entity is in water or a bubble column.
      Returns:
      true if the entity is in water or a bubble column.
    • isUnderWater

      public static boolean isUnderWater(net.minecraft.world.entity.Entity internal)
      Checks if the entity is underwater.
      Returns:
      true if the entity is underwater.
    • isInLava

      public static boolean isInLava(net.minecraft.world.entity.Entity internal)
      Checks if the entity is in lava.
      Returns:
      true if the entity is in lava.
    • moveRelative

      public static void moveRelative(net.minecraft.world.entity.Entity internal, float amount, net.minecraft.world.phys.Vec3 relative)
      Moves the entity relative to its current position.
      Parameters:
      amount - The amount to move the entity by.
      relative - The relative position to move the entity by.
    • moveTo

      public static void moveTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec)
      Moves the entity to the given position.
      Parameters:
      vec - The position to move the entity to.
    • moveTo

      public static void moveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z)
      Moves the entity to the given position.
      Parameters:
      x - The x position to move the entity to.
      y - The y position to move the entity to.
      z - The z position to move the entity to.
    • moveTo

      public static void moveTo(net.minecraft.world.entity.Entity internal, net.minecraft.core.BlockPos pos, float yaw, float pitch)
      Moves the entity to the given position.
      Parameters:
      pos - The position to move the entity to.
      yaw - The yaw to move the entity to.
      pitch - The pitch to move the entity to.
    • moveTo

      public static void moveTo(net.minecraft.world.entity.Entity internal, double x, double y, double z, float yaw, float pitch)
      Moves the entity to the given position.
      Parameters:
      x - The x position to move the entity to.
      y - The y position to move the entity to.
      z - The z position to move the entity to.
      yaw - The yaw to move the entity to.
      pitch - The pitch to move the entity to.
    • setOldPosAndRot

      public static void setOldPosAndRot(net.minecraft.world.entity.Entity internal)
      Sets the old position and rotation of the entity.
    • distanceTo

      public static float distanceTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Gets the distance to the given entity.
      Parameters:
      entity - The entity to get the distance to.
      Returns:
      The distance to the given entity.
    • distanceToSqr

      public static double distanceToSqr(net.minecraft.world.entity.Entity internal, double x, double y, double z)
      Gets the squared distance to the given position.
      Parameters:
      x - The x position to get the squared distance to.
      y - The y position to get the squared distance to.
      z - The z position to get the squared distance to.
      Returns:
      The squared distance to the given position.
    • distanceToSqr

      public static double distanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Gets the squared distance to the given entity.
      Parameters:
      entity - The entity to get the squared distance to.
      Returns:
      The squared distance to the given entity.
    • distanceToSqr

      public static double distanceToSqr(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 vec)
      Gets the squared distance to the given vector.
      Parameters:
      vec - The vector to get the squared distance to.
      Returns:
      The squared distance to the given vector.
    • hurt

      public static boolean hurt(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source, float amount)
      Hurts the entity with the given DamageSource and amount.
      Parameters:
      source - The DamageSource to hurt the entity with.
      amount - The amount of damage to deal.
      Returns:
      true if the entity was hurt.
    • getViewVector

      public static net.minecraft.world.phys.Vec3 getViewVector(net.minecraft.world.entity.Entity internal, float partialTicks)
      Gets the view vector of the entity.
      Parameters:
      partialTicks - The partial ticks to get the view vector for.
      Returns:
      The view vector of the entity.
    • getUpVector

      public static net.minecraft.world.phys.Vec3 getUpVector(net.minecraft.world.entity.Entity internal, float partialTicks)
      Gets the up vector of the entity.
      Parameters:
      partialTicks - The partial ticks to get the up vector for.
      Returns:
      The up vector of the entity.
    • getEyePosition

      public static net.minecraft.world.phys.Vec3 getEyePosition(net.minecraft.world.entity.Entity internal)
      Gets the eye position of the entity.
      Returns:
      The eye position of the entity.
    • getEyePosition

      public static net.minecraft.world.phys.Vec3 getEyePosition(net.minecraft.world.entity.Entity internal, float partialTicks)
      Gets the eye position of the entity.
      Parameters:
      partialTicks - The partial ticks to get the eye position for.
      Returns:
      The eye position of the entity.
    • getPosition

      public static net.minecraft.world.phys.Vec3 getPosition(net.minecraft.world.entity.Entity internal, float partialTicks)
      Gets the position of the entity.
      Parameters:
      partialTicks - The partial ticks to get the position for.
      Returns:
      The position of the entity.
    • isPickable

      public static boolean isPickable(net.minecraft.world.entity.Entity internal)
      Checks if the entity is pickable.
      Returns:
      true if the entity is pickable.
    • isPushable

      public static boolean isPushable(net.minecraft.world.entity.Entity internal)
      Checks if the entity is pushable.
      Returns:
      true if the entity is pushable.
    • isAlive

      public static boolean isAlive(net.minecraft.world.entity.Entity internal)
      Checks if the entity is alive.
      Returns:
      true if the entity is alive.
    • isInWall

      public static boolean isInWall(net.minecraft.world.entity.Entity internal)
      Checks if the entity is in a wall.
      Returns:
      true if the entity is in a wall.
    • canCollideWith

      public static boolean canCollideWith(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity other)
      Checks if the entity can collide with the given entity.
      Parameters:
      other - The entity to check if the entity can collide with.
      Returns:
      true if the entity can collide with the given entity.
    • canBeCollidedWith

      public static boolean canBeCollidedWith(net.minecraft.world.entity.Entity internal)
      Checks if the entity can be collided with.
      Returns:
      true if the entity can be collided with.
    • positionRider

      public static void positionRider(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Positions the rider of the entity.
      Parameters:
      entity - The entity to position the rider of.
    • startRiding

      public static boolean startRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Starts riding the given entity.
      Parameters:
      entity - The entity to start riding.
      Returns:
      true if the entity started riding.
    • showVehicleHealth

      public static boolean showVehicleHealth(net.minecraft.world.entity.Entity internal)
      Checks if the entity should show vehicle health.
      Returns:
      true if the entity should show vehicle health.
    • startRiding

      public static boolean startRiding(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity, boolean force)
      Starts riding the given entity.
      Parameters:
      entity - The entity to start riding.
      force - true if the entity should be forced to start riding.
      Returns:
      true if the entity started riding.
    • ejectPassengers

      public static void ejectPassengers(net.minecraft.world.entity.Entity internal)
      Ejects the passengers of the entity.
    • removeVehicle

      public static void removeVehicle(net.minecraft.world.entity.Entity internal)
      Removes the vehicle of the entity.
    • stopRiding

      public static void stopRiding(net.minecraft.world.entity.Entity internal)
      Stops riding the entity.
    • getLookAngle

      public static net.minecraft.world.phys.Vec3 getLookAngle(net.minecraft.world.entity.Entity internal)
      Gets the look angle of the entity.
      Returns:
      The look angle of the entity.
    • getForward

      public static net.minecraft.world.phys.Vec3 getForward(net.minecraft.world.entity.Entity internal)
      Gets the forward vector of the entity.
      Returns:
      The forward vector of the entity.
    • getDimensionChangingDelay

      public static int getDimensionChangingDelay(net.minecraft.world.entity.Entity internal)
      Gets the dimension changing delay of the entity.
      Returns:
      The dimension changing delay of the entity.
    • isOnFire

      public static boolean isOnFire(net.minecraft.world.entity.Entity internal)
      Checks if the entity is on fire.
      Returns:
      true if the entity is on fire.
    • isPassenger

      public static boolean isPassenger(net.minecraft.world.entity.Entity internal)
      Checks if the entity is a passenger.
      Returns:
      true if the entity is a passenger.
    • isVehicle

      public static boolean isVehicle(net.minecraft.world.entity.Entity internal)
      Checks if the entity is a vehicle.
      Returns:
      true if the entity is a vehicle.
    • dismountsUnderwater

      public static boolean dismountsUnderwater(net.minecraft.world.entity.Entity internal)
      Checks if the entity dismounts underwater.
      Returns:
      true if the entity dismounts underwater.
    • setShiftKeyDown

      public static void setShiftKeyDown(net.minecraft.world.entity.Entity internal, boolean keyDown)
      Sets the shift key down state of the entity.
      Parameters:
      keyDown - true if the shift key is down.
    • isShiftKeyDown

      public static boolean isShiftKeyDown(net.minecraft.world.entity.Entity internal)
      Checks if the shift key is down.
      Returns:
      true if the shift key is down.
    • isSteppingCarefully

      public static boolean isSteppingCarefully(net.minecraft.world.entity.Entity internal)
      Checks if the entity is stepping carefully.
      Returns:
      true if the entity is stepping carefully.
    • isSuppressingBounce

      public static boolean isSuppressingBounce(net.minecraft.world.entity.Entity internal)
      Checks if the entity is suppressing bounce.
      Returns:
      true if the entity is suppressing bounce.
    • isDiscrete

      public static boolean isDiscrete(net.minecraft.world.entity.Entity internal)
      Checks if the entity is being discrete.
      Returns:
      true if the entity is being discrete.
    • isDescending

      public static boolean isDescending(net.minecraft.world.entity.Entity internal)
      Checks if the entity is descending.
      Returns:
      true if the entity is descending.
    • isCrouching

      public static boolean isCrouching(net.minecraft.world.entity.Entity internal)
      Checks if the entity is crouching.
      Returns:
      true if the entity is crouching.
    • isSprinting

      public static boolean isSprinting(net.minecraft.world.entity.Entity internal)
      Checks if the entity is sprinting.
      Returns:
      true if the entity is sprinting.
    • setSprinting

      public static void setSprinting(net.minecraft.world.entity.Entity internal, boolean sprinting)
      Sets the sprinting state of the entity.
      Parameters:
      sprinting - true if the entity should be sprinting.
    • isSwimming

      public static boolean isSwimming(net.minecraft.world.entity.Entity internal)
      Checks if the entity is swimming.
      Returns:
      true if the entity is swimming.
    • isVisuallySwimming

      public static boolean isVisuallySwimming(net.minecraft.world.entity.Entity internal)
      Checks if the entity is visually swimming.
      Returns:
      true if the entity is visually swimming.
    • isVisuallyCrawling

      public static boolean isVisuallyCrawling(net.minecraft.world.entity.Entity internal)
      Checks if the entity is visually crawling.
      Returns:
      true if the entity is visually crawling.
    • setSwimming

      public static void setSwimming(net.minecraft.world.entity.Entity internal, boolean swimming)
      Sets the swimming state of the entity.
      Parameters:
      swimming - true if the entity should be swimming.
    • hasGlowingTag

      public static boolean hasGlowingTag(net.minecraft.world.entity.Entity internal)
      Checks if the entity is currently glowing.
      Returns:
      true if the entity is currently glowing.
    • setGlowingTag

      public static void setGlowingTag(net.minecraft.world.entity.Entity internal, boolean glowing)
      Makes the entity glow.
      Parameters:
      glowing - true if the entity should be glowing.
    • isCurrentlyGlowing

      public static boolean isCurrentlyGlowing(net.minecraft.world.entity.Entity internal)
      Checks if the entity is currently glowing.
      Returns:
      true if the entity is currently glowing.
    • isInvisible

      public static boolean isInvisible(net.minecraft.world.entity.Entity internal)
      Checks if the entity is invisible.
      Returns:
      true if the entity is invisible.
    • isInvisibleTo

      public static boolean isInvisibleTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.player.Player player)
      Checks if the entity is invisible to the given Player.
      Parameters:
      player - The player to check.
      Returns:
      true if the entity is invisible to the player.
    • setInvisible

      public static void setInvisible(net.minecraft.world.entity.Entity internal, boolean invisible)
      Sets the invisible state of the entity.
      Parameters:
      invisible - true if the entity should be invisible.
    • getMaxAirSupply

      public static int getMaxAirSupply(net.minecraft.world.entity.Entity internal)
      Gets the maximum air supply of the entity.
      Returns:
      The maximum air supply of the entity.
    • getAirSupply

      public static int getAirSupply(net.minecraft.world.entity.Entity internal)
      Gets the current air supply of the entity.
      Returns:
      The current air supply of the entity.
    • setAirSupply

      public static void setAirSupply(net.minecraft.world.entity.Entity internal, int air)
      Sets the air supply of the entity.
      Parameters:
      air - The new air supply of the entity.
    • getTicksFrozen

      public static int getTicksFrozen(net.minecraft.world.entity.Entity internal)
      Gets the number of ticks the entity has been frozen.
      Returns:
      The number of ticks the entity has been frozen.
    • setTicksFrozen

      public static void setTicksFrozen(net.minecraft.world.entity.Entity internal, int ticks)
      Sets the number of ticks the entity has been frozen.
      Parameters:
      ticks - The new number of ticks the entity has been frozen.
    • getPercentFrozen

      public static float getPercentFrozen(net.minecraft.world.entity.Entity internal)
      Gets the percent the entity is frozen.
      Returns:
      The percent the entity is frozen.
    • isFullyFrozen

      public static boolean isFullyFrozen(net.minecraft.world.entity.Entity internal)
      Checks if the entity is fully frozen.
      Returns:
      true if the entity is fully frozen.
    • getTicksRequiredToFreeze

      public static int getTicksRequiredToFreeze(net.minecraft.world.entity.Entity internal)
      Gets the number of ticks required to freeze the entity.
      Returns:
      The number of ticks required to freeze the entity.
    • getName

      public static net.minecraft.network.chat.Component getName(net.minecraft.world.entity.Entity internal)
      Gets the name of the entity.
      Returns:
      The name of the entity.
    • isAttackable

      public static boolean isAttackable(net.minecraft.world.entity.Entity internal)
      Checks if the entity is attackable.
      Returns:
      true if the entity is attackable.
    • isInvulnerableTo

      public static boolean isInvulnerableTo(net.minecraft.world.entity.Entity internal, net.minecraft.world.damagesource.DamageSource source)
      Checks if the entity is invulnerable to the given DamageSource.
      Parameters:
      source - The damage source to check.
      Returns:
      true if the entity is invulnerable to the damage source.
    • isInvulnerable

      public static boolean isInvulnerable(net.minecraft.world.entity.Entity internal)
      Checks if the entity is invulnerable.
      Returns:
      true if the entity is invulnerable.
    • setInvulnerable

      public static void setInvulnerable(net.minecraft.world.entity.Entity internal, boolean invulnerable)
      Sets the invulnerable state of the entity.
      Parameters:
      invulnerable - true if the entity should be invulnerable.
    • getMaxFallDistance

      public static int getMaxFallDistance(net.minecraft.world.entity.Entity internal)
      Gets the maximum fall distance of the entity.
      Returns:
      The maximum fall distance of the entity.
    • getStringUUID

      public static String getStringUUID(net.minecraft.world.entity.Entity internal)
      Gets the UUID of the entity as a string.
      Returns:
      The UUID of the entity as a string.
    • isPushedByFluid

      public static boolean isPushedByFluid(net.minecraft.world.entity.Entity internal)
      Checks if the entity is pushed by fluid.
      Returns:
      true if the entity is pushed by fluid.
    • getDisplayName

      public static net.minecraft.network.chat.Component getDisplayName(net.minecraft.world.entity.Entity internal)
      Gets the display name of the entity.
      Returns:
      The display name of the entity.
    • setCustomName

      public static void setCustomName(net.minecraft.world.entity.Entity internal, net.minecraft.network.chat.Component name)
      Sets the custom name of the entity.
      Parameters:
      name - The new custom name of the entity.
    • getCustomName

      public static net.minecraft.network.chat.Component getCustomName(net.minecraft.world.entity.Entity internal)
      Gets the custom name of the entity.
      Returns:
      The custom name of the entity.
    • hasCustomName

      public static boolean hasCustomName(net.minecraft.world.entity.Entity internal)
      Checks if the entity has a custom name.
      Returns:
      true if the entity has a custom name.
    • setCustomNameVisible

      public static void setCustomNameVisible(net.minecraft.world.entity.Entity internal, boolean visible)
      Sets the custom name visible state of the entity.
      Parameters:
      visible - true if the custom name should be visible.
    • isCustomNameVisible

      public static boolean isCustomNameVisible(net.minecraft.world.entity.Entity internal)
      Checks if the custom name of the entity is visible.
      Returns:
      true if the custom name is visible.
    • teleportTo

      public static void teleportTo(net.minecraft.world.entity.Entity internal, double x, double y, double z)
      Teleports the entity to the given position.
      Parameters:
      x - The x coordinate to teleport to.
      y - The y coordinate to teleport to.
      z - The z coordinate to teleport to.
    • shouldShowName

      public static boolean shouldShowName(net.minecraft.world.entity.Entity internal)
      Checks if the entity should show its name.
      Returns:
      true if the entity should show its name.
    • getDirection

      public static net.minecraft.core.Direction getDirection(net.minecraft.world.entity.Entity internal)
      Gets the direction of the entity.
      Returns:
      The direction of the entity.
    • getMotionDirection

      public static net.minecraft.core.Direction getMotionDirection(net.minecraft.world.entity.Entity internal)
      Gets the motion direction of the entity.
      Returns:
      The motion direction of the entity.
    • getBoundingBoxForCulling

      public static net.minecraft.world.phys.AABB getBoundingBoxForCulling(net.minecraft.world.entity.Entity internal)
      Gets the bounding box for culling of the entity.
      Returns:
      The bounding box for culling of the entity.
    • getEyeHeight

      public static float getEyeHeight(net.minecraft.world.entity.Entity internal)
      Gets the eye height of the entity.
      Returns:
      The eye height of the entity.
    • getCommandSenderWorld

      public static net.minecraft.world.level.Level getCommandSenderWorld(net.minecraft.world.entity.Entity internal)
      Gets the Level used when sending commands as this entity.
      Returns:
      The Level used when sending commands as this entity.
    • getControllingPassenger

      public static net.minecraft.world.entity.Entity getControllingPassenger(net.minecraft.world.entity.Entity internal)
      Gets the controlling passenger of the entity.
      Returns:
      The controlling passenger of the entity.
    • getPassengers

      public static List<net.minecraft.world.entity.Entity> getPassengers(net.minecraft.world.entity.Entity internal)
      Gets the passengers of the entity.
      Returns:
      The passengers of the entity.
    • getFirstPassenger

      public static net.minecraft.world.entity.Entity getFirstPassenger(net.minecraft.world.entity.Entity internal)
      Gets the first passenger of the entity.
      Returns:
      The first passenger of the entity.
    • hasPassenger

      public static boolean hasPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Checks if the entity has a passenger.
      Parameters:
      entity - The entity to check.
      Returns:
      true if the entity has the given passenger.
    • hasPassenger

      public static boolean hasPassenger(net.minecraft.world.entity.Entity internal, Predicate<net.minecraft.world.entity.Entity> predicate)
      Checks if the entity has a passenger that matches the given predicate.
      Parameters:
      predicate - The predicate to check.
      Returns:
      true if the entity has a passenger that matches the predicate.
    • hasExactlyOnePlayerPassenger

      public static boolean hasExactlyOnePlayerPassenger(net.minecraft.world.entity.Entity internal)
      Checks if the entity has exactly one player passenger.
      Returns:
      true if the entity has exactly one player passenger.
    • getRootVehicle

      public static net.minecraft.world.entity.Entity getRootVehicle(net.minecraft.world.entity.Entity internal)
      Gets the root vehicle of the entity.
      Returns:
      The root vehicle of the entity.
    • isPassengerOfSameVehicle

      public static boolean isPassengerOfSameVehicle(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Checks if the entity is a passenger of the same vehicle.
      Parameters:
      entity - The entity to check.
      Returns:
      true if the entity is a passenger of the same vehicle.
    • hasIndirectPassenger

      public static boolean hasIndirectPassenger(net.minecraft.world.entity.Entity internal, net.minecraft.world.entity.Entity entity)
      Checks if the entity has an indirect passenger.
      Parameters:
      entity - The entity to check.
      Returns:
      true if the entity has an indirect passenger.
    • getVehicle

      public static net.minecraft.world.entity.Entity getVehicle(net.minecraft.world.entity.Entity internal)
      Gets the vehicle of the entity.
      Returns:
      The vehicle of the entity.
    • getPistonPushReaction

      public static net.minecraft.world.level.material.PushReaction getPistonPushReaction(net.minecraft.world.entity.Entity internal)
      Gets the piston push reaction of the entity.
      Returns:
      The piston push reaction of the entity.
    • getSoundSource

      public static net.minecraft.sounds.SoundSource getSoundSource(net.minecraft.world.entity.Entity internal)
      Gets the SoundSource of the entity.
      Returns:
      The sound source of the entity.
    • getFluidJumpThreshold

      public static double getFluidJumpThreshold(net.minecraft.world.entity.Entity internal)
      Gets the fluid jump threshold of the entity.
      Returns:
      The fluid jump threshold of the entity.
    • getBbWidth

      public static float getBbWidth(net.minecraft.world.entity.Entity internal)
      Gets the width of the bounding box of the entity.
      Returns:
      The width of the bounding box of the entity.
    • getBbHeight

      public static float getBbHeight(net.minecraft.world.entity.Entity internal)
      Gets the height of the bounding box of the entity.
      Returns:
      The height of the bounding box of the entity.
    • position

      public static net.minecraft.world.phys.Vec3 position(net.minecraft.world.entity.Entity internal)
      Gets the position of the entity.
      Returns:
      The position of the entity.
    • blockPosition

      public static net.minecraft.core.BlockPos blockPosition(net.minecraft.world.entity.Entity internal)
      Gets the position of the entity.
      Returns:
      The block position of the entity.
    • getInBlockState

      public static net.minecraft.world.level.block.state.BlockState getInBlockState(net.minecraft.world.entity.Entity internal)
      Gets the BlockState that this entity is currently inside.
      Returns:
      The block state that this entity is currently inside
    • getBlockX

      public static int getBlockX(net.minecraft.world.entity.Entity internal)
      Gets the x coordinate of the entity.
      Returns:
      The x coordinate of the entity.
    • getX

      public static double getX(net.minecraft.world.entity.Entity internal)
      Gets the x coordinate of the entity.
      Returns:
      The x coordinate of the entity.
    • getX

      public static double getX(net.minecraft.world.entity.Entity internal, double scale)
      Gets the x coordinate of the entity with the given scale.
      Parameters:
      scale - The scale to get the x coordinate of the entity.
      Returns:
      The x coordinate of the entity.
    • getBlockY

      public static int getBlockY(net.minecraft.world.entity.Entity internal)
      Gets the y coordinate of the entity.
      Returns:
      The y coordinate of the entity.
    • getY

      public static double getY(net.minecraft.world.entity.Entity internal)
      Gets the y coordinate of the entity.
      Returns:
      The y coordinate of the entity.
    • getY

      public static double getY(net.minecraft.world.entity.Entity internal, double scale)
      Gets the y coordinate of the entity with the given scale.
      Parameters:
      scale - The scale to get the y coordinate of the entity.
      Returns:
      The y coordinate of the entity.
    • getEyeY

      public static double getEyeY(net.minecraft.world.entity.Entity internal)
      Gets the y coordinate of the entity's eyes.
      Returns:
      The y coordinate of the entity's eyes.
    • getBlockZ

      public static int getBlockZ(net.minecraft.world.entity.Entity internal)
      Gets the z coordinate of the entity.
      Returns:
      The z coordinate of the entity.
    • getZ

      public static double getZ(net.minecraft.world.entity.Entity internal)
      Gets the z coordinate of the entity.
      Returns:
      The z coordinate of the entity.
    • getZ

      public static double getZ(net.minecraft.world.entity.Entity internal, double scale)
      Gets the z coordinate of the entity with the given scale.
      Parameters:
      scale - The scale to get the z coordinate of the entity.
      Returns:
      The z coordinate of the entity.
    • setPosRaw

      public static void setPosRaw(net.minecraft.world.entity.Entity internal, double x, double y, double z)
      Sets the position of the entity to the given coordinates.
      Parameters:
      x - The x coordinate to set the position to.
      y - The y coordinate to set the position to.
      z - The z coordinate to set the position to.
    • setIsInPowderSnow

      public static void setIsInPowderSnow(net.minecraft.world.entity.Entity internal, boolean inPowderSnow)
      Sets whether the entity is in powder snow.
      Parameters:
      inPowderSnow - Whether the entity is in powder snow.
    • canFreeze

      public static boolean canFreeze(net.minecraft.world.entity.Entity internal)
      Checks if the entity can freeze.
      Returns:
      Whether the entity can freeze.
    • isRemoved

      public static boolean isRemoved(net.minecraft.world.entity.Entity internal)
      Checks if the entity has been removed.
      Returns:
      Whether the entity has been removed.
    • getData

      public static MapData getData(net.minecraft.world.entity.Entity internal)
      Gets the NBT data of this Entity.
      Returns:
      The NBT data of this Entity.
    • updateData

      public static void updateData(net.minecraft.world.entity.Entity internal, MapData data)
      Updates the NBT data of this Entity.
      Parameters:
      data - The new Data for this Entity
      DocParam:
      data {key: "value"}
    • getCustomData

      public static MapData getCustomData(net.minecraft.world.entity.Entity internal)
      Gets the custom NBT data for this Entity.
      Returns:
      The custom data for this Entity.
    • updateCustomData

      public static void updateCustomData(net.minecraft.world.entity.Entity internal, MapData data)
      Updates the custom NBT data for this Entity.
      Parameters:
      data - The custom data to store.
      DocParam:
      data {custom: "data"}
    • getDeltaMovement

      public static net.minecraft.world.phys.Vec3 getDeltaMovement(net.minecraft.world.entity.Entity internal)
      Gets the delta movement of the entity.
      Returns:
      The delta movement of the entity.
    • setDeltaMovement

      public static void setDeltaMovement(net.minecraft.world.entity.Entity internal, net.minecraft.world.phys.Vec3 deltaMovement)
      Sets the delta movement of the entity.
      Parameters:
      deltaMovement - The delta movement to set.
    • setDeltaMovement

      public static void setDeltaMovement(net.minecraft.world.entity.Entity internal, double xDelta, double yDelta, double zDelta)
      Sets the delta movement of the entity.
      Parameters:
      xDelta - The x delta movement to set.
      yDelta - The y delta movement to set.
      zDelta - The z delta movement to set.
    • getRegistryName

      public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.entity.Entity internal)
      Gets the registry name of the entity.
      Returns:
      The registry name of the entity.