Class Entity

java.lang.Object
net.minecraft.entity.Entity
All Implemented Interfaces:
CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
AbstractDecorationEntity, AbstractMinecartEntity, AreaEffectCloudEntity, BoatEntity, EndCrystalEntity, EnderDragonPart, EvokerFangsEntity, ExperienceOrbEntity, EyeOfEnderEntity, FallingBlockEntity, ItemEntity, LightningEntity, LivingEntity, MarkerEntity, ProjectileEntity, TntEntity

public abstract class Entity extends Object implements Nameable, EntityLike, CommandOutput
An object that exists in a world and has double-precision position. They are registered in EntityType.

Examples of entities include players, mobs, minecarts, projectiles, and dropped items.

Entity can be identified by the ID or the UUID. Entity ID is an integer used in networking, and is not saved on disk. UUID is used to identify an entity in NBT and other places where persistence is required.

Creating and spawning entities

Entities must be created first, which then can be added to a world ("spawning"). There are multiple methods of doing this, shown on the table below:
Creation & Spawning (at once)
MethodRecommended usageAdditional note
EntityType.spawn(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.entity.SpawnReason)Any entityInitializes mobs.
EntityType.spawnFromItemStack(net.minecraft.server.world.ServerWorld, net.minecraft.item.ItemStack, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.BlockPos, net.minecraft.entity.SpawnReason, boolean, boolean)Entities in items (such as buckets)Initializes mobs.
ExperienceOrbEntity.spawn(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.Vec3d, int)Experience orbs with set amountCan spawn multiple orbs.
ItemScatterer methodsItemsWill spawn with random velocity.
Creation only
MethodRecommended usageAdditional note
Subclass constructorsNon-mob entities (such as projectiles)NBT and other data must be set manually.
EntityType.create(net.minecraft.server.world.ServerWorld, net.minecraft.nbt.NbtCompound, java.util.function.Consumer<T>, net.minecraft.util.math.BlockPos, net.minecraft.entity.SpawnReason, boolean, boolean)Any entityInitializes mobs and supports custom NBT.
EntityType.getEntityFromNbt(net.minecraft.nbt.NbtCompound, net.minecraft.world.World)Entities stored in NBTCan throw exceptions.
EntityType.loadEntityFromNbt(net.minecraft.nbt.NbtCompound, net.minecraft.world.World)Entities stored in user-provided NBTIgnores exceptions.
EntityType.loadEntityWithPassengers(net.minecraft.nbt.NbtCompound, net.minecraft.world.World, java.util.function.Function<net.minecraft.entity.Entity, net.minecraft.entity.Entity>)Entities with passengers stored in user-provided NBTIgnores exceptions. Initializes rides.
EntityType.streamFromNbt(java.util.List<? extends net.minecraft.nbt.NbtElement>, net.minecraft.world.World)Entities with passengers stored in NBTIgnores exceptions.
Spawning only
MethodRecommended usageAdditional note
ServerWorldAccess.spawnEntityAndPassengers(net.minecraft.entity.Entity)Any entityDoes not check duplicate UUID.
ServerWorld.spawnNewEntityAndPassengers(net.minecraft.entity.Entity)Any entityChecks duplicate UUID.
ModifiableWorld.spawnEntity(net.minecraft.entity.Entity)Any entityDoes not spawn passengers.

Warning: When using constructors to spawn mobs instead of EntityType.create(net.minecraft.server.world.ServerWorld, net.minecraft.nbt.NbtCompound, java.util.function.Consumer<T>, net.minecraft.util.math.BlockPos, net.minecraft.entity.SpawnReason, boolean, boolean), they must be manually initialized before spawning.

Discarding

Entities can be discarded (despawned) by calling discard(). This does not drop loot. To kill entities and drop loot, call kill() or damage(net.minecraft.entity.damage.DamageSource,float) (with large enough damage amount).
Mappings:
Namespace Name
official bdr
intermediary net/minecraft/class_1297
named net/minecraft/entity/Entity
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b:Lorg/slf4j/Logger;
      intermediary field_5955 Lnet/minecraft/class_1297;field_5955:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/entity/Entity;LOGGER:Lorg/slf4j/Logger;
    • ID_KEY

      public static final String ID_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g:Ljava/lang/String;
      intermediary field_29985 Lnet/minecraft/class_1297;field_29985:Ljava/lang/String;
      named ID_KEY Lnet/minecraft/entity/Entity;ID_KEY:Ljava/lang/String;
    • PASSENGERS_KEY

      public static final String PASSENGERS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h:Ljava/lang/String;
      intermediary field_29986 Lnet/minecraft/class_1297;field_29986:Ljava/lang/String;
      named PASSENGERS_KEY Lnet/minecraft/entity/Entity;PASSENGERS_KEY:Ljava/lang/String;
    • CURRENT_ID

      private static final AtomicInteger CURRENT_ID
      A generator of unique entity network IDs. The generated ID for client entities are useless and discarded subsequently through setId(int) calls.
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_5978 Lnet/minecraft/class_1297;field_5978:Ljava/util/concurrent/atomic/AtomicInteger;
      named CURRENT_ID Lnet/minecraft/entity/Entity;CURRENT_ID:Ljava/util/concurrent/atomic/AtomicInteger;
    • EMPTY_STACK_LIST

      private static final List<ItemStack> EMPTY_STACK_LIST
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d:Ljava/util/List;
      intermediary field_6030 Lnet/minecraft/class_1297;field_6030:Ljava/util/List;
      named EMPTY_STACK_LIST Lnet/minecraft/entity/Entity;EMPTY_STACK_LIST:Ljava/util/List;
    • MAX_RIDING_COOLDOWN

      public static final int MAX_RIDING_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lbdr;i:I
      intermediary field_29987 Lnet/minecraft/class_1297;field_29987:I
      named MAX_RIDING_COOLDOWN Lnet/minecraft/entity/Entity;MAX_RIDING_COOLDOWN:I
    • DEFAULT_PORTAL_COOLDOWN

      public static final int DEFAULT_PORTAL_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j:I
      intermediary field_29988 Lnet/minecraft/class_1297;field_29988:I
      named DEFAULT_PORTAL_COOLDOWN Lnet/minecraft/entity/Entity;DEFAULT_PORTAL_COOLDOWN:I
    • MAX_SCOREBOARD_TAGS

      public static final int MAX_SCOREBOARD_TAGS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k:I
      intermediary field_29989 Lnet/minecraft/class_1297;field_29989:I
      named MAX_SCOREBOARD_TAGS Lnet/minecraft/entity/Entity;MAX_SCOREBOARD_TAGS:I
    • VELOCITY_AFFECTING_POS_Y_OFFSET

      public static final double VELOCITY_AFFECTING_POS_Y_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l:D
      intermediary field_29990 Lnet/minecraft/class_1297;field_29990:D
      named VELOCITY_AFFECTING_POS_Y_OFFSET Lnet/minecraft/entity/Entity;VELOCITY_AFFECTING_POS_Y_OFFSET:D
    • field_29991

      public static final float field_29991
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lbdr;m:F
      intermediary field_29991 Lnet/minecraft/class_1297;field_29991:F
      named field_29991 Lnet/minecraft/entity/Entity;field_29991:F
    • DEFAULT_MIN_FREEZE_DAMAGE_TICKS

      public static final int DEFAULT_MIN_FREEZE_DAMAGE_TICKS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lbdr;n:I
      intermediary field_29992 Lnet/minecraft/class_1297;field_29992:I
      named DEFAULT_MIN_FREEZE_DAMAGE_TICKS Lnet/minecraft/entity/Entity;DEFAULT_MIN_FREEZE_DAMAGE_TICKS:I
    • FREEZING_DAMAGE_INTERVAL

      public static final int FREEZING_DAMAGE_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lbdr;o:I
      intermediary field_29993 Lnet/minecraft/class_1297;field_29993:I
      named FREEZING_DAMAGE_INTERVAL Lnet/minecraft/entity/Entity;FREEZING_DAMAGE_INTERVAL:I
    • NULL_BOX

      private static final Box NULL_BOX
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e:Ldzz;
      intermediary field_6025 Lnet/minecraft/class_1297;field_6025:Lnet/minecraft/class_238;
      named NULL_BOX Lnet/minecraft/entity/Entity;NULL_BOX:Lnet/minecraft/util/math/Box;
    • SPEED_IN_WATER

      private static final double SPEED_IN_WATER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ao Lbdr;ao:D
      intermediary field_29984 Lnet/minecraft/class_1297;field_29984:D
      named SPEED_IN_WATER Lnet/minecraft/entity/Entity;SPEED_IN_WATER:D
    • SPEED_IN_LAVA_IN_NETHER

      private static final double SPEED_IN_LAVA_IN_NETHER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ap Lbdr;ap:D
      intermediary field_29982 Lnet/minecraft/class_1297;field_29982:D
      named SPEED_IN_LAVA_IN_NETHER Lnet/minecraft/entity/Entity;SPEED_IN_LAVA_IN_NETHER:D
    • SPEED_IN_LAVA

      private static final double SPEED_IN_LAVA
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aq Lbdr;aq:D
      intermediary field_29983 Lnet/minecraft/class_1297;field_29983:D
      named SPEED_IN_LAVA Lnet/minecraft/entity/Entity;SPEED_IN_LAVA:D
    • UUID_KEY

      public static final String UUID_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lbdr;p:Ljava/lang/String;
      intermediary field_29994 Lnet/minecraft/class_1297;field_29994:Ljava/lang/String;
      named UUID_KEY Lnet/minecraft/entity/Entity;UUID_KEY:Ljava/lang/String;
    • renderDistanceMultiplier

      private static double renderDistanceMultiplier
      Mappings:
      Namespace Name Mixin selector
      official ar Lbdr;ar:D
      intermediary field_5999 Lnet/minecraft/class_1297;field_5999:D
      named renderDistanceMultiplier Lnet/minecraft/entity/Entity;renderDistanceMultiplier:D
    • DEFAULT_FRICTION

      public static final float DEFAULT_FRICTION
      The factor by which an entity's speed is reduced every tick.

      For example: horizontalSpeed = velocity.horizontalSpeed() * FRICTION_RATE

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official F Lbdr;F:F
      intermediary field_29973 Lnet/minecraft/class_1297;field_29973:F
      named DEFAULT_FRICTION Lnet/minecraft/entity/Entity;DEFAULT_FRICTION:F
    • MIN_RISING_BUBBLE_COLUMN_SPEED

      public static final float MIN_RISING_BUBBLE_COLUMN_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official G Lbdr;G:F
      intermediary field_29974 Lnet/minecraft/class_1297;field_29974:F
      named MIN_RISING_BUBBLE_COLUMN_SPEED Lnet/minecraft/entity/Entity;MIN_RISING_BUBBLE_COLUMN_SPEED:F
    • FLAGS

      protected static final TrackedData<Byte> FLAGS
      Mappings:
      Namespace Name Mixin selector
      official Z Lbdr;Z:Labn;
      intermediary field_5990 Lnet/minecraft/class_1297;field_5990:Lnet/minecraft/class_2940;
      named FLAGS Lnet/minecraft/entity/Entity;FLAGS:Lnet/minecraft/entity/data/TrackedData;
    • ON_FIRE_FLAG_INDEX

      protected static final int ON_FIRE_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aa Lbdr;aa:I
      intermediary field_29979 Lnet/minecraft/class_1297;field_29979:I
      named ON_FIRE_FLAG_INDEX Lnet/minecraft/entity/Entity;ON_FIRE_FLAG_INDEX:I
    • SNEAKING_FLAG_INDEX

      private static final int SNEAKING_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aH Lbdr;aH:I
      intermediary field_29975 Lnet/minecraft/class_1297;field_29975:I
      named SNEAKING_FLAG_INDEX Lnet/minecraft/entity/Entity;SNEAKING_FLAG_INDEX:I
    • SPRINTING_FLAG_INDEX

      private static final int SPRINTING_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aI Lbdr;aI:I
      intermediary field_29976 Lnet/minecraft/class_1297;field_29976:I
      named SPRINTING_FLAG_INDEX Lnet/minecraft/entity/Entity;SPRINTING_FLAG_INDEX:I
    • SWIMMING_FLAG_INDEX

      private static final int SWIMMING_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aJ Lbdr;aJ:I
      intermediary field_29977 Lnet/minecraft/class_1297;field_29977:I
      named SWIMMING_FLAG_INDEX Lnet/minecraft/entity/Entity;SWIMMING_FLAG_INDEX:I
    • INVISIBLE_FLAG_INDEX

      private static final int INVISIBLE_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aK Lbdr;aK:I
      intermediary field_29978 Lnet/minecraft/class_1297;field_29978:I
      named INVISIBLE_FLAG_INDEX Lnet/minecraft/entity/Entity;INVISIBLE_FLAG_INDEX:I
    • GLOWING_FLAG_INDEX

      protected static final int GLOWING_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ab Lbdr;ab:I
      intermediary field_29980 Lnet/minecraft/class_1297;field_29980:I
      named GLOWING_FLAG_INDEX Lnet/minecraft/entity/Entity;GLOWING_FLAG_INDEX:I
    • FALL_FLYING_FLAG_INDEX

      protected static final int FALL_FLYING_FLAG_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ac Lbdr;ac:I
      intermediary field_29981 Lnet/minecraft/class_1297;field_29981:I
      named FALL_FLYING_FLAG_INDEX Lnet/minecraft/entity/Entity;FALL_FLYING_FLAG_INDEX:I
    • AIR

      private static final TrackedData<Integer> AIR
      Mappings:
      Namespace Name Mixin selector
      official aL Lbdr;aL:Labn;
      intermediary field_6032 Lnet/minecraft/class_1297;field_6032:Lnet/minecraft/class_2940;
      named AIR Lnet/minecraft/entity/Entity;AIR:Lnet/minecraft/entity/data/TrackedData;
    • CUSTOM_NAME

      private static final TrackedData<Optional<Text>> CUSTOM_NAME
      Mappings:
      Namespace Name Mixin selector
      official aM Lbdr;aM:Labn;
      intermediary field_6027 Lnet/minecraft/class_1297;field_6027:Lnet/minecraft/class_2940;
      named CUSTOM_NAME Lnet/minecraft/entity/Entity;CUSTOM_NAME:Lnet/minecraft/entity/data/TrackedData;
    • NAME_VISIBLE

      private static final TrackedData<Boolean> NAME_VISIBLE
      Mappings:
      Namespace Name Mixin selector
      official aN Lbdr;aN:Labn;
      intermediary field_5975 Lnet/minecraft/class_1297;field_5975:Lnet/minecraft/class_2940;
      named NAME_VISIBLE Lnet/minecraft/entity/Entity;NAME_VISIBLE:Lnet/minecraft/entity/data/TrackedData;
    • SILENT

      private static final TrackedData<Boolean> SILENT
      Mappings:
      Namespace Name Mixin selector
      official aO Lbdr;aO:Labn;
      intermediary field_5962 Lnet/minecraft/class_1297;field_5962:Lnet/minecraft/class_2940;
      named SILENT Lnet/minecraft/entity/Entity;SILENT:Lnet/minecraft/entity/data/TrackedData;
    • NO_GRAVITY

      private static final TrackedData<Boolean> NO_GRAVITY
      Mappings:
      Namespace Name Mixin selector
      official aP Lbdr;aP:Labn;
      intermediary field_5995 Lnet/minecraft/class_1297;field_5995:Lnet/minecraft/class_2940;
      named NO_GRAVITY Lnet/minecraft/entity/Entity;NO_GRAVITY:Lnet/minecraft/entity/data/TrackedData;
    • POSE

      protected static final TrackedData<EntityPose> POSE
      Mappings:
      Namespace Name Mixin selector
      official ad Lbdr;ad:Labn;
      intermediary field_18064 Lnet/minecraft/class_1297;field_18064:Lnet/minecraft/class_2940;
      named POSE Lnet/minecraft/entity/Entity;POSE:Lnet/minecraft/entity/data/TrackedData;
    • FROZEN_TICKS

      private static final TrackedData<Integer> FROZEN_TICKS
      Mappings:
      Namespace Name Mixin selector
      official aQ Lbdr;aQ:Labn;
      intermediary field_27858 Lnet/minecraft/class_1297;field_27858:Lnet/minecraft/class_2940;
      named FROZEN_TICKS Lnet/minecraft/entity/Entity;FROZEN_TICKS:Lnet/minecraft/entity/data/TrackedData;
    • type

      private final EntityType<?> type
      Mappings:
      Namespace Name Mixin selector
      official as Lbdr;as:Lbdv;
      intermediary field_5961 Lnet/minecraft/class_1297;field_5961:Lnet/minecraft/class_1299;
      named type Lnet/minecraft/entity/Entity;type:Lnet/minecraft/entity/EntityType;
    • id

      private int id
      The entity's network ID, used as a reference for synchronization over network. This is not persistent across save and loads; use uuid to identify an entity in those cases.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official at Lbdr;at:I
      intermediary field_5986 Lnet/minecraft/class_1297;field_5986:I
      named id Lnet/minecraft/entity/Entity;id:I
    • intersectionChecked

      public boolean intersectionChecked
      Whether the entity should be included in intersection checks.

      An intersection check is used to prevent block placement or mob spawning within the bounding box.

      Implementation Note:
      Intersection is always checked for BoatEntity, AbstractMinecartEntity, TntEntity, EndCrystalEntity, FallingBlockEntity, and LivingEntity. Intersection with ArmorStandEntity is checked if it is not a marker.
      Mappings:
      Namespace Name Mixin selector
      official q Lbdr;q:Z
      intermediary field_23807 Lnet/minecraft/class_1297;field_23807:Z
      named intersectionChecked Lnet/minecraft/entity/Entity;intersectionChecked:Z
    • passengerList

      private ImmutableList<Entity> passengerList
      Mappings:
      Namespace Name Mixin selector
      official au Lbdr;au:Lcom/google/common/collect/ImmutableList;
      intermediary field_5979 Lnet/minecraft/class_1297;field_5979:Lcom/google/common/collect/ImmutableList;
      named passengerList Lnet/minecraft/entity/Entity;passengerList:Lcom/google/common/collect/ImmutableList;
    • ridingCooldown

      protected int ridingCooldown
      Mappings:
      Namespace Name Mixin selector
      official r Lbdr;r:I
      intermediary field_5951 Lnet/minecraft/class_1297;field_5951:I
      named ridingCooldown Lnet/minecraft/entity/Entity;ridingCooldown:I
    • vehicle

      @Nullable private @Nullable Entity vehicle
      Mappings:
      Namespace Name Mixin selector
      official av Lbdr;av:Lbdr;
      intermediary field_6034 Lnet/minecraft/class_1297;field_6034:Lnet/minecraft/class_1297;
      named vehicle Lnet/minecraft/entity/Entity;vehicle:Lnet/minecraft/entity/Entity;
    • world

      public World world
      Mappings:
      Namespace Name Mixin selector
      official s Lbdr;s:Lcjw;
      intermediary field_6002 Lnet/minecraft/class_1297;field_6002:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/entity/Entity;world:Lnet/minecraft/world/World;
    • prevX

      public double prevX
      Mappings:
      Namespace Name Mixin selector
      official t Lbdr;t:D
      intermediary field_6014 Lnet/minecraft/class_1297;field_6014:D
      named prevX Lnet/minecraft/entity/Entity;prevX:D
    • prevY

      public double prevY
      Mappings:
      Namespace Name Mixin selector
      official u Lbdr;u:D
      intermediary field_6036 Lnet/minecraft/class_1297;field_6036:D
      named prevY Lnet/minecraft/entity/Entity;prevY:D
    • prevZ

      public double prevZ
      Mappings:
      Namespace Name Mixin selector
      official v Lbdr;v:D
      intermediary field_5969 Lnet/minecraft/class_1297;field_5969:D
      named prevZ Lnet/minecraft/entity/Entity;prevZ:D
    • pos

      private Vec3d pos
      Mappings:
      Namespace Name Mixin selector
      official aw Lbdr;aw:Leae;
      intermediary field_22467 Lnet/minecraft/class_1297;field_22467:Lnet/minecraft/class_243;
      named pos Lnet/minecraft/entity/Entity;pos:Lnet/minecraft/util/math/Vec3d;
    • blockPos

      private BlockPos blockPos
      Mappings:
      Namespace Name Mixin selector
      official ax Lbdr;ax:Lgp;
      intermediary field_22468 Lnet/minecraft/class_1297;field_22468:Lnet/minecraft/class_2338;
      named blockPos Lnet/minecraft/entity/Entity;blockPos:Lnet/minecraft/util/math/BlockPos;
    • chunkPos

      private ChunkPos chunkPos
      Mappings:
      Namespace Name Mixin selector
      official ay Lbdr;ay:Lcjd;
      intermediary field_35101 Lnet/minecraft/class_1297;field_35101:Lnet/minecraft/class_1923;
      named chunkPos Lnet/minecraft/entity/Entity;chunkPos:Lnet/minecraft/util/math/ChunkPos;
    • velocity

      private Vec3d velocity
      Mappings:
      Namespace Name Mixin selector
      official az Lbdr;az:Leae;
      intermediary field_18276 Lnet/minecraft/class_1297;field_18276:Lnet/minecraft/class_243;
      named velocity Lnet/minecraft/entity/Entity;velocity:Lnet/minecraft/util/math/Vec3d;
    • yaw

      private float yaw
      Mappings:
      Namespace Name Mixin selector
      official aA Lbdr;aA:F
      intermediary field_6031 Lnet/minecraft/class_1297;field_6031:F
      named yaw Lnet/minecraft/entity/Entity;yaw:F
    • pitch

      private float pitch
      Mappings:
      Namespace Name Mixin selector
      official aB Lbdr;aB:F
      intermediary field_5965 Lnet/minecraft/class_1297;field_5965:F
      named pitch Lnet/minecraft/entity/Entity;pitch:F
    • prevYaw

      public float prevYaw
      Mappings:
      Namespace Name Mixin selector
      official w Lbdr;w:F
      intermediary field_5982 Lnet/minecraft/class_1297;field_5982:F
      named prevYaw Lnet/minecraft/entity/Entity;prevYaw:F
    • prevPitch

      public float prevPitch
      Mappings:
      Namespace Name Mixin selector
      official x Lbdr;x:F
      intermediary field_6004 Lnet/minecraft/class_1297;field_6004:F
      named prevPitch Lnet/minecraft/entity/Entity;prevPitch:F
    • boundingBox

      private Box boundingBox
      Mappings:
      Namespace Name Mixin selector
      official aC Lbdr;aC:Ldzz;
      intermediary field_6005 Lnet/minecraft/class_1297;field_6005:Lnet/minecraft/class_238;
      named boundingBox Lnet/minecraft/entity/Entity;boundingBox:Lnet/minecraft/util/math/Box;
    • onGround

      protected boolean onGround
      Mappings:
      Namespace Name Mixin selector
      official y Lbdr;y:Z
      intermediary field_5952 Lnet/minecraft/class_1297;field_5952:Z
      named onGround Lnet/minecraft/entity/Entity;onGround:Z
    • horizontalCollision

      public boolean horizontalCollision
      Mappings:
      Namespace Name Mixin selector
      official z Lbdr;z:Z
      intermediary field_5976 Lnet/minecraft/class_1297;field_5976:Z
      named horizontalCollision Lnet/minecraft/entity/Entity;horizontalCollision:Z
    • verticalCollision

      public boolean verticalCollision
      Mappings:
      Namespace Name Mixin selector
      official A Lbdr;A:Z
      intermediary field_5992 Lnet/minecraft/class_1297;field_5992:Z
      named verticalCollision Lnet/minecraft/entity/Entity;verticalCollision:Z
    • field_36331

      public boolean field_36331
      Mappings:
      Namespace Name Mixin selector
      official B Lbdr;B:Z
      intermediary field_36331 Lnet/minecraft/class_1297;field_36331:Z
      named field_36331 Lnet/minecraft/entity/Entity;field_36331:Z
    • collidedSoftly

      public boolean collidedSoftly
      Mappings:
      Namespace Name Mixin selector
      official C Lbdr;C:Z
      intermediary field_34927 Lnet/minecraft/class_1297;field_34927:Z
      named collidedSoftly Lnet/minecraft/entity/Entity;collidedSoftly:Z
    • velocityModified

      public boolean velocityModified
      Mappings:
      Namespace Name Mixin selector
      official D Lbdr;D:Z
      intermediary field_6037 Lnet/minecraft/class_1297;field_6037:Z
      named velocityModified Lnet/minecraft/entity/Entity;velocityModified:Z
    • movementMultiplier

      protected Vec3d movementMultiplier
      Mappings:
      Namespace Name Mixin selector
      official E Lbdr;E:Leae;
      intermediary field_17046 Lnet/minecraft/class_1297;field_17046:Lnet/minecraft/class_243;
      named movementMultiplier Lnet/minecraft/entity/Entity;movementMultiplier:Lnet/minecraft/util/math/Vec3d;
    • removalReason

      @Nullable private @Nullable Entity.RemovalReason removalReason
      Mappings:
      Namespace Name Mixin selector
      official aD Lbdr;aD:Lbdr$c;
      intermediary field_26995 Lnet/minecraft/class_1297;field_26995:Lnet/minecraft/class_1297$class_5529;
      named removalReason Lnet/minecraft/entity/Entity;removalReason:Lnet/minecraft/entity/Entity$RemovalReason;
    • prevHorizontalSpeed

      public float prevHorizontalSpeed
      Mappings:
      Namespace Name Mixin selector
      official H Lbdr;H:F
      intermediary field_6039 Lnet/minecraft/class_1297;field_6039:F
      named prevHorizontalSpeed Lnet/minecraft/entity/Entity;prevHorizontalSpeed:F
    • horizontalSpeed

      public float horizontalSpeed
      Mappings:
      Namespace Name Mixin selector
      official I Lbdr;I:F
      intermediary field_5973 Lnet/minecraft/class_1297;field_5973:F
      named horizontalSpeed Lnet/minecraft/entity/Entity;horizontalSpeed:F
    • distanceTraveled

      public float distanceTraveled
      Mappings:
      Namespace Name Mixin selector
      official J Lbdr;J:F
      intermediary field_5994 Lnet/minecraft/class_1297;field_5994:F
      named distanceTraveled Lnet/minecraft/entity/Entity;distanceTraveled:F
    • speed

      public float speed
      Mappings:
      Namespace Name Mixin selector
      official K Lbdr;K:F
      intermediary field_28627 Lnet/minecraft/class_1297;field_28627:F
      named speed Lnet/minecraft/entity/Entity;speed:F
    • fallDistance

      public float fallDistance
      Mappings:
      Namespace Name Mixin selector
      official L Lbdr;L:F
      intermediary field_6017 Lnet/minecraft/class_1297;field_6017:F
      named fallDistance Lnet/minecraft/entity/Entity;fallDistance:F
    • nextStepSoundDistance

      private float nextStepSoundDistance
      Mappings:
      Namespace Name Mixin selector
      official aE Lbdr;aE:F
      intermediary field_6003 Lnet/minecraft/class_1297;field_6003:F
      named nextStepSoundDistance Lnet/minecraft/entity/Entity;nextStepSoundDistance:F
    • lastRenderX

      public double lastRenderX
      Mappings:
      Namespace Name Mixin selector
      official M Lbdr;M:D
      intermediary field_6038 Lnet/minecraft/class_1297;field_6038:D
      named lastRenderX Lnet/minecraft/entity/Entity;lastRenderX:D
    • lastRenderY

      public double lastRenderY
      Mappings:
      Namespace Name Mixin selector
      official N Lbdr;N:D
      intermediary field_5971 Lnet/minecraft/class_1297;field_5971:D
      named lastRenderY Lnet/minecraft/entity/Entity;lastRenderY:D
    • lastRenderZ

      public double lastRenderZ
      Mappings:
      Namespace Name Mixin selector
      official O Lbdr;O:D
      intermediary field_5989 Lnet/minecraft/class_1297;field_5989:D
      named lastRenderZ Lnet/minecraft/entity/Entity;lastRenderZ:D
    • stepHeight

      public float stepHeight
      Mappings:
      Namespace Name Mixin selector
      official P Lbdr;P:F
      intermediary field_6013 Lnet/minecraft/class_1297;field_6013:F
      named stepHeight Lnet/minecraft/entity/Entity;stepHeight:F
    • noClip

      public boolean noClip
      Mappings:
      Namespace Name Mixin selector
      official Q Lbdr;Q:Z
      intermediary field_5960 Lnet/minecraft/class_1297;field_5960:Z
      named noClip Lnet/minecraft/entity/Entity;noClip:Z
    • random

      protected final Random random
      Mappings:
      Namespace Name Mixin selector
      official R Lbdr;R:Laoh;
      intermediary field_5974 Lnet/minecraft/class_1297;field_5974:Lnet/minecraft/class_5819;
      named random Lnet/minecraft/entity/Entity;random:Lnet/minecraft/util/math/random/Random;
    • age

      public int age
      Mappings:
      Namespace Name Mixin selector
      official S Lbdr;S:I
      intermediary field_6012 Lnet/minecraft/class_1297;field_6012:I
      named age Lnet/minecraft/entity/Entity;age:I
    • fireTicks

      private int fireTicks
      Mappings:
      Namespace Name Mixin selector
      official aF Lbdr;aF:I
      intermediary field_5956 Lnet/minecraft/class_1297;field_5956:I
      named fireTicks Lnet/minecraft/entity/Entity;fireTicks:I
    • touchingWater

      protected boolean touchingWater
      Mappings:
      Namespace Name Mixin selector
      official T Lbdr;T:Z
      intermediary field_5957 Lnet/minecraft/class_1297;field_5957:Z
      named touchingWater Lnet/minecraft/entity/Entity;touchingWater:Z
    • fluidHeight

      protected Object2DoubleMap<TagKey<Fluid>> fluidHeight
      Mappings:
      Namespace Name Mixin selector
      official U Lbdr;U:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
      intermediary field_5964 Lnet/minecraft/class_1297;field_5964:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
      named fluidHeight Lnet/minecraft/entity/Entity;fluidHeight:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
    • submergedInWater

      protected boolean submergedInWater
      Mappings:
      Namespace Name Mixin selector
      official V Lbdr;V:Z
      intermediary field_6000 Lnet/minecraft/class_1297;field_6000:Z
      named submergedInWater Lnet/minecraft/entity/Entity;submergedInWater:Z
    • submergedFluidTag

      private final Set<TagKey<Fluid>> submergedFluidTag
      Mappings:
      Namespace Name Mixin selector
      official aG Lbdr;aG:Ljava/util/Set;
      intermediary field_25599 Lnet/minecraft/class_1297;field_25599:Ljava/util/Set;
      named submergedFluidTag Lnet/minecraft/entity/Entity;submergedFluidTag:Ljava/util/Set;
    • timeUntilRegen

      public int timeUntilRegen
      Mappings:
      Namespace Name Mixin selector
      official W Lbdr;W:I
      intermediary field_6008 Lnet/minecraft/class_1297;field_6008:I
      named timeUntilRegen Lnet/minecraft/entity/Entity;timeUntilRegen:I
    • firstUpdate

      protected boolean firstUpdate
      Mappings:
      Namespace Name Mixin selector
      official X Lbdr;X:Z
      intermediary field_5953 Lnet/minecraft/class_1297;field_5953:Z
      named firstUpdate Lnet/minecraft/entity/Entity;firstUpdate:Z
    • dataTracker

      protected final DataTracker dataTracker
      Mappings:
      Namespace Name Mixin selector
      official Y Lbdr;Y:Labq;
      intermediary field_6011 Lnet/minecraft/class_1297;field_6011:Lnet/minecraft/class_2945;
      named dataTracker Lnet/minecraft/entity/Entity;dataTracker:Lnet/minecraft/entity/data/DataTracker;
    • changeListener

      private EntityChangeListener changeListener
      Mappings:
      Namespace Name Mixin selector
      official aR Lbdr;aR:Ldck;
      intermediary field_26996 Lnet/minecraft/class_1297;field_26996:Lnet/minecraft/class_5569;
      named changeListener Lnet/minecraft/entity/Entity;changeListener:Lnet/minecraft/world/entity/EntityChangeListener;
    • trackedPosition

      private final TrackedPosition trackedPosition
      Mappings:
      Namespace Name Mixin selector
      official aS Lbdr;aS:Laao;
      intermediary field_38931 Lnet/minecraft/class_1297;field_38931:Lnet/minecraft/class_7422;
      named trackedPosition Lnet/minecraft/entity/Entity;trackedPosition:Lnet/minecraft/entity/TrackedPosition;
    • ignoreCameraFrustum

      public boolean ignoreCameraFrustum
      Mappings:
      Namespace Name Mixin selector
      official ae Lbdr;ae:Z
      intermediary field_5985 Lnet/minecraft/class_1297;field_5985:Z
      named ignoreCameraFrustum Lnet/minecraft/entity/Entity;ignoreCameraFrustum:Z
    • velocityDirty

      public boolean velocityDirty
      Mappings:
      Namespace Name Mixin selector
      official af Lbdr;af:Z
      intermediary field_6007 Lnet/minecraft/class_1297;field_6007:Z
      named velocityDirty Lnet/minecraft/entity/Entity;velocityDirty:Z
    • portalCooldown

      private int portalCooldown
      Mappings:
      Namespace Name Mixin selector
      official aT Lbdr;aT:I
      intermediary field_6018 Lnet/minecraft/class_1297;field_6018:I
      named portalCooldown Lnet/minecraft/entity/Entity;portalCooldown:I
    • inNetherPortal

      protected boolean inNetherPortal
      Mappings:
      Namespace Name Mixin selector
      official ag Lbdr;ag:Z
      intermediary field_5963 Lnet/minecraft/class_1297;field_5963:Z
      named inNetherPortal Lnet/minecraft/entity/Entity;inNetherPortal:Z
    • netherPortalTime

      protected int netherPortalTime
      Mappings:
      Namespace Name Mixin selector
      official ah Lbdr;ah:I
      intermediary field_5972 Lnet/minecraft/class_1297;field_5972:I
      named netherPortalTime Lnet/minecraft/entity/Entity;netherPortalTime:I
    • lastNetherPortalPosition

      protected BlockPos lastNetherPortalPosition
      Mappings:
      Namespace Name Mixin selector
      official ai Lbdr;ai:Lgp;
      intermediary field_5991 Lnet/minecraft/class_1297;field_5991:Lnet/minecraft/class_2338;
      named lastNetherPortalPosition Lnet/minecraft/entity/Entity;lastNetherPortalPosition:Lnet/minecraft/util/math/BlockPos;
    • invulnerable

      private boolean invulnerable
      Mappings:
      Namespace Name Mixin selector
      official aU Lbdr;aU:Z
      intermediary field_6009 Lnet/minecraft/class_1297;field_6009:Z
      named invulnerable Lnet/minecraft/entity/Entity;invulnerable:Z
    • uuid

      protected UUID uuid
      Mappings:
      Namespace Name Mixin selector
      official aj Lbdr;aj:Ljava/util/UUID;
      intermediary field_6021 Lnet/minecraft/class_1297;field_6021:Ljava/util/UUID;
      named uuid Lnet/minecraft/entity/Entity;uuid:Ljava/util/UUID;
    • uuidString

      protected String uuidString
      Mappings:
      Namespace Name Mixin selector
      official ak Lbdr;ak:Ljava/lang/String;
      intermediary field_5981 Lnet/minecraft/class_1297;field_5981:Ljava/lang/String;
      named uuidString Lnet/minecraft/entity/Entity;uuidString:Ljava/lang/String;
    • glowing

      private boolean glowing
      Mappings:
      Namespace Name Mixin selector
      official aV Lbdr;aV:Z
      intermediary field_5958 Lnet/minecraft/class_1297;field_5958:Z
      named glowing Lnet/minecraft/entity/Entity;glowing:Z
    • scoreboardTags

      private final Set<String> scoreboardTags
      Mappings:
      Namespace Name Mixin selector
      official aW Lbdr;aW:Ljava/util/Set;
      intermediary field_6029 Lnet/minecraft/class_1297;field_6029:Ljava/util/Set;
      named scoreboardTags Lnet/minecraft/entity/Entity;scoreboardTags:Ljava/util/Set;
    • pistonMovementDelta

      private final double[] pistonMovementDelta
      Mappings:
      Namespace Name Mixin selector
      official aX Lbdr;aX:[D
      intermediary field_5993 Lnet/minecraft/class_1297;field_5993:[D
      named pistonMovementDelta Lnet/minecraft/entity/Entity;pistonMovementDelta:[D
    • pistonMovementTick

      private long pistonMovementTick
      Mappings:
      Namespace Name Mixin selector
      official aY Lbdr;aY:J
      intermediary field_5996 Lnet/minecraft/class_1297;field_5996:J
      named pistonMovementTick Lnet/minecraft/entity/Entity;pistonMovementTick:J
    • dimensions

      private EntityDimensions dimensions
      Mappings:
      Namespace Name Mixin selector
      official aZ Lbdr;aZ:Lbds;
      intermediary field_18065 Lnet/minecraft/class_1297;field_18065:Lnet/minecraft/class_4048;
      named dimensions Lnet/minecraft/entity/Entity;dimensions:Lnet/minecraft/entity/EntityDimensions;
    • standingEyeHeight

      private float standingEyeHeight
      Mappings:
      Namespace Name Mixin selector
      official ba Lbdr;ba:F
      intermediary field_18066 Lnet/minecraft/class_1297;field_18066:F
      named standingEyeHeight Lnet/minecraft/entity/Entity;standingEyeHeight:F
    • inPowderSnow

      public boolean inPowderSnow
      Mappings:
      Namespace Name Mixin selector
      official al Lbdr;al:Z
      intermediary field_27857 Lnet/minecraft/class_1297;field_27857:Z
      named inPowderSnow Lnet/minecraft/entity/Entity;inPowderSnow:Z
    • wasInPowderSnow

      public boolean wasInPowderSnow
      Mappings:
      Namespace Name Mixin selector
      official am Lbdr;am:Z
      intermediary field_28628 Lnet/minecraft/class_1297;field_28628:Z
      named wasInPowderSnow Lnet/minecraft/entity/Entity;wasInPowderSnow:Z
    • wasOnFire

      public boolean wasOnFire
      Mappings:
      Namespace Name Mixin selector
      official an Lbdr;an:Z
      intermediary field_28629 Lnet/minecraft/class_1297;field_28629:Z
      named wasOnFire Lnet/minecraft/entity/Entity;wasOnFire:Z
    • lastChimeIntensity

      private float lastChimeIntensity
      Mappings:
      Namespace Name Mixin selector
      official bb Lbdr;bb:F
      intermediary field_26997 Lnet/minecraft/class_1297;field_26997:F
      named lastChimeIntensity Lnet/minecraft/entity/Entity;lastChimeIntensity:F
    • lastChimeAge

      private int lastChimeAge
      Mappings:
      Namespace Name Mixin selector
      official bc Lbdr;bc:I
      intermediary field_26994 Lnet/minecraft/class_1297;field_26994:I
      named lastChimeAge Lnet/minecraft/entity/Entity;lastChimeAge:I
    • hasVisualFire

      private boolean hasVisualFire
      Mappings:
      Namespace Name Mixin selector
      official bd Lbdr;bd:Z
      intermediary field_33758 Lnet/minecraft/class_1297;field_33758:Z
      named hasVisualFire Lnet/minecraft/entity/Entity;hasVisualFire:Z
    • blockStateAtPos

      @Nullable private @Nullable BlockState blockStateAtPos
      Mappings:
      Namespace Name Mixin selector
      official be Lbdr;be:Lcyt;
      intermediary field_35588 Lnet/minecraft/class_1297;field_35588:Lnet/minecraft/class_2680;
      named blockStateAtPos Lnet/minecraft/entity/Entity;blockStateAtPos:Lnet/minecraft/block/BlockState;
  • Constructor Details

    • Entity

      public Entity(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdr;<init>(Lbdv;Lcjw;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • collidesWithStateAtPos

      public boolean collidesWithStateAtPos(BlockPos pos, BlockState state)
      Returns whether the entity collides with the block state at pos.
      Returns:
      whether the entity collides with the block state at pos
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lgp;Lcyt;)Z
      intermediary method_30632 Lnet/minecraft/class_1297;method_30632(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named collidesWithStateAtPos Lnet/minecraft/entity/Entity;collidesWithStateAtPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getTeamColorValue

      public int getTeamColorValue()
      Returns the team color value, or 0xFFFFFF if the entity is not in a team or the color is not set.
      Returns:
      the team color value, or 0xFFFFFF if the entity is not in a team or the color is not set
      Mappings:
      Namespace Name Mixin selector
      official ad Lbdr;ad()I
      intermediary method_22861 Lnet/minecraft/class_1297;method_22861()I
      named getTeamColorValue Lnet/minecraft/entity/Entity;getTeamColorValue()I
    • isSpectator

      public boolean isSpectator()
      Returns whether the entity is a spectator.

      This returns false unless the entity is a player in spectator game mode.

      Returns:
      whether the entity is a spectator
      Mappings:
      Namespace Name Mixin selector
      official B_ Lbdr;B_()Z
      intermediary method_7325 Lnet/minecraft/class_1297;method_7325()Z
      named isSpectator Lnet/minecraft/entity/Entity;isSpectator()Z
    • detach

      public final void detach()
      Removes all the passengers and removes this entity from any vehicles it is riding.
      Mappings:
      Namespace Name Mixin selector
      official ae Lbdr;ae()V
      intermediary method_18375 Lnet/minecraft/class_1297;method_18375()V
      named detach Lnet/minecraft/entity/Entity;detach()V
    • updateTrackedPosition

      public void updateTrackedPosition(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(DDD)V
      intermediary method_43391 Lnet/minecraft/class_1297;method_43391(DDD)V
      named updateTrackedPosition Lnet/minecraft/entity/Entity;updateTrackedPosition(DDD)V
    • getTrackedPosition

      public TrackedPosition getTrackedPosition()
      Mappings:
      Namespace Name Mixin selector
      official af Lbdr;af()Laao;
      intermediary method_43389 Lnet/minecraft/class_1297;method_43389()Lnet/minecraft/class_7422;
      named getTrackedPosition Lnet/minecraft/entity/Entity;getTrackedPosition()Lnet/minecraft/entity/TrackedPosition;
    • getType

      public EntityType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official ag Lbdr;ag()Lbdv;
      intermediary method_5864 Lnet/minecraft/class_1297;method_5864()Lnet/minecraft/class_1299;
      named getType Lnet/minecraft/entity/Entity;getType()Lnet/minecraft/entity/EntityType;
    • getId

      public int getId()
      Returns the network ID of this entity.

      Compared to the UUID, the integer network ID is significantly smaller and more suitable for network transportation. However, it is not persistent across game runs. For persistent purposes such as commands or game data, use the UUID.

      Specified by:
      getId in interface EntityLike
      Returns:
      the network ID of this entity
      Mappings:
      Namespace Name Mixin selector
      official ah Ldcj;ah()I
      intermediary method_5628 Lnet/minecraft/class_5568;method_5628()I
      named getId Lnet/minecraft/world/entity/EntityLike;getId()I
    • setId

      public void setId(int id)
      Sets the network ID of this entity.
      See Also:
      API Note:
      This is used by client-side networking logic to set up the network ID of entities from the server. This shouldn't be used by server-side logic as the network ID is already properly initialized on entity object construction.
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(I)V
      intermediary method_5838 Lnet/minecraft/class_1297;method_5838(I)V
      named setId Lnet/minecraft/entity/Entity;setId(I)V
    • getScoreboardTags

      public Set<String> getScoreboardTags()
      Returns all scoreboard tags the entity belongs to.

      Scoreboard tags are set using the /tag command, and is different from entity type tags defined in data packs.

      Returns:
      all scoreboard tags the entity belongs to
      Mappings:
      Namespace Name Mixin selector
      official ai Lbdr;ai()Ljava/util/Set;
      intermediary method_5752 Lnet/minecraft/class_1297;method_5752()Ljava/util/Set;
      named getScoreboardTags Lnet/minecraft/entity/Entity;getScoreboardTags()Ljava/util/Set;
    • addScoreboardTag

      public boolean addScoreboardTag(String tag)
      Adds a scoreboard tag to this entity. An entity can have up to 1024 scoreboard tags.

      Scoreboard tags are set using the /tag command, and is different from entity type tags defined in data packs.

      Returns:
      whether the scoreboard tag was successfully added
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Ljava/lang/String;)Z
      intermediary method_5780 Lnet/minecraft/class_1297;method_5780(Ljava/lang/String;)Z
      named addScoreboardTag Lnet/minecraft/entity/Entity;addScoreboardTag(Ljava/lang/String;)Z
    • removeScoreboardTag

      public boolean removeScoreboardTag(String tag)
      Removes a scoreboard tag from this entity.

      Scoreboard tags are set using the /tag command, and is different from entity type tags defined in data packs.

      Returns:
      whether the scoreboard tag was successfully removed
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Ljava/lang/String;)Z
      intermediary method_5738 Lnet/minecraft/class_1297;method_5738(Ljava/lang/String;)Z
      named removeScoreboardTag Lnet/minecraft/entity/Entity;removeScoreboardTag(Ljava/lang/String;)Z
    • kill

      public void kill()
      Kills the entity.

      This drops loot when applicable, and emits the GameEvent.ENTITY_DIE game event.

      Mappings:
      Namespace Name Mixin selector
      official aj Lbdr;aj()V
      intermediary method_5768 Lnet/minecraft/class_1297;method_5768()V
      named kill Lnet/minecraft/entity/Entity;kill()V
    • discard

      public final void discard()
      Discards the entity. This is also referred to as "despawning".

      This does not cause the entity to drop loot.

      Mappings:
      Namespace Name Mixin selector
      official ak Lbdr;ak()V
      intermediary method_31472 Lnet/minecraft/class_1297;method_31472()V
      named discard Lnet/minecraft/entity/Entity;discard()V
    • initDataTracker

      protected abstract void initDataTracker()
      Initializes data tracker.
      API Note:
      Subclasses should override this and call DataTracker.startTracking(net.minecraft.entity.data.TrackedData<T>, T) for any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbdr;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • getDataTracker

      public DataTracker getDataTracker()
      Mappings:
      Namespace Name Mixin selector
      official al Lbdr;al()Labq;
      intermediary method_5841 Lnet/minecraft/class_1297;method_5841()Lnet/minecraft/class_2945;
      named getDataTracker Lnet/minecraft/entity/Entity;getDataTracker()Lnet/minecraft/entity/data/DataTracker;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbdr;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1297;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/entity/Entity;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • remove

      public void remove(Entity.RemovalReason reason)
      Removes the entity.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr$c;)V
      intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
      named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
    • onRemoved

      public void onRemoved()
      Called on the client side when the entity is removed.
      API Note:
      To handle entity removal server-side, override remove(net.minecraft.entity.Entity.RemovalReason) and add custom logic there.
      Mappings:
      Namespace Name Mixin selector
      official am Lbdr;am()V
      intermediary method_36209 Lnet/minecraft/class_1297;method_36209()V
      named onRemoved Lnet/minecraft/entity/Entity;onRemoved()V
    • setPose

      public void setPose(EntityPose pose)
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lbes;)V
      intermediary method_18380 Lnet/minecraft/class_1297;method_18380(Lnet/minecraft/class_4050;)V
      named setPose Lnet/minecraft/entity/Entity;setPose(Lnet/minecraft/entity/EntityPose;)V
    • getPose

      public EntityPose getPose()
      Mappings:
      Namespace Name Mixin selector
      official an Lbdr;an()Lbes;
      intermediary method_18376 Lnet/minecraft/class_1297;method_18376()Lnet/minecraft/class_4050;
      named getPose Lnet/minecraft/entity/Entity;getPose()Lnet/minecraft/entity/EntityPose;
    • isInPose

      public boolean isInPose(EntityPose pose)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Lbes;)Z
      intermediary method_41328 Lnet/minecraft/class_1297;method_41328(Lnet/minecraft/class_4050;)Z
      named isInPose Lnet/minecraft/entity/Entity;isInPose(Lnet/minecraft/entity/EntityPose;)Z
    • isInRange

      public boolean isInRange(Entity entity, double radius)
      Returns whether the distance between this entity and entity is below radius.
      Returns:
      whether the distance between this entity and entity is below radius
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr;D)Z
      intermediary method_24516 Lnet/minecraft/class_1297;method_24516(Lnet/minecraft/class_1297;D)Z
      named isInRange Lnet/minecraft/entity/Entity;isInRange(Lnet/minecraft/entity/Entity;D)Z
    • isInRange

      public boolean isInRange(Entity entity, double horizontalRadius, double verticalRadius)
      Returns whether both the horizontal and vertical distances between this entity and entity are below the passed values.
      Returns:
      whether both the horizontal and vertical distances between this entity and entity are below the passed values
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr;DD)Z
      intermediary method_43259 Lnet/minecraft/class_1297;method_43259(Lnet/minecraft/class_1297;DD)Z
      named isInRange Lnet/minecraft/entity/Entity;isInRange(Lnet/minecraft/entity/Entity;DD)Z
    • setRotation

      protected void setRotation(float yaw, float pitch)
      Sets the entity's yaw and pitch.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(FF)V
      intermediary method_5710 Lnet/minecraft/class_1297;method_5710(FF)V
      named setRotation Lnet/minecraft/entity/Entity;setRotation(FF)V
    • setPosition

      public final void setPosition(Vec3d pos)
      Sets the position and refreshes the bounding box.

      This should be called after creating an instance of non-living entities. For living entities, refreshPositionAndAngles(net.minecraft.util.math.BlockPos, float, float) should be used instead.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbdr;a_(Leae;)V
      intermediary method_33574 Lnet/minecraft/class_1297;method_33574(Lnet/minecraft/class_243;)V
      named setPosition Lnet/minecraft/entity/Entity;setPosition(Lnet/minecraft/util/math/Vec3d;)V
    • setPosition

      public void setPosition(double x, double y, double z)
      Sets the position and refreshes the bounding box.

      This should be called after creating an instance of non-living entities. For living entities, refreshPositionAndAngles(net.minecraft.util.math.BlockPos, float, float) should be used instead.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(DDD)V
      intermediary method_5814 Lnet/minecraft/class_1297;method_5814(DDD)V
      named setPosition Lnet/minecraft/entity/Entity;setPosition(DDD)V
    • calculateBoundingBox

      protected Box calculateBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official ao Lbdr;ao()Ldzz;
      intermediary method_33332 Lnet/minecraft/class_1297;method_33332()Lnet/minecraft/class_238;
      named calculateBoundingBox Lnet/minecraft/entity/Entity;calculateBoundingBox()Lnet/minecraft/util/math/Box;
    • refreshPosition

      protected void refreshPosition()
      Mappings:
      Namespace Name Mixin selector
      official ap Lbdr;ap()V
      intermediary method_23311 Lnet/minecraft/class_1297;method_23311()V
      named refreshPosition Lnet/minecraft/entity/Entity;refreshPosition()V
    • changeLookDirection

      public void changeLookDirection(double cursorDeltaX, double cursorDeltaY)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DD)V
      intermediary method_5872 Lnet/minecraft/class_1297;method_5872(DD)V
      named changeLookDirection Lnet/minecraft/entity/Entity;changeLookDirection(DD)V
    • tick

      public void tick()
      Ticks this entity.
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to baseTick().
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • baseTick

      public void baseTick()
      Mappings:
      Namespace Name Mixin selector
      official aq Lbdr;aq()V
      intermediary method_5670 Lnet/minecraft/class_1297;method_5670()V
      named baseTick Lnet/minecraft/entity/Entity;baseTick()V
    • setOnFire

      public void setOnFire(boolean onFire)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbdr;a_(Z)V
      intermediary method_33572 Lnet/minecraft/class_1297;method_33572(Z)V
      named setOnFire Lnet/minecraft/entity/Entity;setOnFire(Z)V
    • attemptTickInVoid

      public void attemptTickInVoid()
      Calls tickInVoid() when the entity is 64 blocks below the world's minimum Y position.
      Mappings:
      Namespace Name Mixin selector
      official ar Lbdr;ar()V
      intermediary method_31473 Lnet/minecraft/class_1297;method_31473()V
      named attemptTickInVoid Lnet/minecraft/entity/Entity;attemptTickInVoid()V
    • resetPortalCooldown

      public void resetPortalCooldown()
      Resets the entity's portal cooldown to the default.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official as Lbdr;as()V
      intermediary method_30229 Lnet/minecraft/class_1297;method_30229()V
      named resetPortalCooldown Lnet/minecraft/entity/Entity;resetPortalCooldown()V
    • hasPortalCooldown

      public boolean hasPortalCooldown()
      Returns whether the entity's portal cooldown is in effect.
      Returns:
      whether the entity's portal cooldown is in effect
      Mappings:
      Namespace Name Mixin selector
      official at Lbdr;at()Z
      intermediary method_30230 Lnet/minecraft/class_1297;method_30230()Z
      named hasPortalCooldown Lnet/minecraft/entity/Entity;hasPortalCooldown()Z
    • tickPortalCooldown

      protected void tickPortalCooldown()
      Mappings:
      Namespace Name Mixin selector
      official I Lbdr;I()V
      intermediary method_5760 Lnet/minecraft/class_1297;method_5760()V
      named tickPortalCooldown Lnet/minecraft/entity/Entity;tickPortalCooldown()V
    • getMaxNetherPortalTime

      public int getMaxNetherPortalTime()
      Returns how long entities can be inside the nether portal without teleporting, in ticks.
      Returns:
      how long entities can be inside the nether portal without teleporting, in ticks
      Mappings:
      Namespace Name Mixin selector
      official au Lbdr;au()I
      intermediary method_5741 Lnet/minecraft/class_1297;method_5741()I
      named getMaxNetherPortalTime Lnet/minecraft/entity/Entity;getMaxNetherPortalTime()I
    • setOnFireFromLava

      public void setOnFireFromLava()
      Sets the entity on fire from lava, applies lava damage, and plays the burning sound.
      Implementation Note:
      Fire from lava lasts 15 seconds by default.
      Mappings:
      Namespace Name Mixin selector
      official av Lbdr;av()V
      intermediary method_5730 Lnet/minecraft/class_1297;method_5730()V
      named setOnFireFromLava Lnet/minecraft/entity/Entity;setOnFireFromLava()V
    • setOnFireFor

      public void setOnFireFor(int seconds)
      Sets the entity on fire for seconds seconds.
      See Also:
      Implementation Note:
      The actual duration can be reduced using the fire protection enchantment.
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(I)V
      intermediary method_5639 Lnet/minecraft/class_1297;method_5639(I)V
      named setOnFireFor Lnet/minecraft/entity/Entity;setOnFireFor(I)V
    • setFireTicks

      public void setFireTicks(int fireTicks)
      Sets the entity on fire for ticks ticks.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(I)V
      intermediary method_20803 Lnet/minecraft/class_1297;method_20803(I)V
      named setFireTicks Lnet/minecraft/entity/Entity;setFireTicks(I)V
    • getFireTicks

      public int getFireTicks()
      Mappings:
      Namespace Name Mixin selector
      official aw Lbdr;aw()I
      intermediary method_20802 Lnet/minecraft/class_1297;method_20802()I
      named getFireTicks Lnet/minecraft/entity/Entity;getFireTicks()I
    • extinguish

      public void extinguish()
      Extinguishes this entity.
      API Note:
      This is used by water, LeveledCauldronBlock, and splash water bottles in vanilla.
      Mappings:
      Namespace Name Mixin selector
      official ax Lbdr;ax()V
      intermediary method_5646 Lnet/minecraft/class_1297;method_5646()V
      named extinguish Lnet/minecraft/entity/Entity;extinguish()V
    • tickInVoid

      protected void tickInVoid()
      Called when the entity is 64 blocks below the world's minimum Y position.

      Living entities use this to deal out of world damage.

      Mappings:
      Namespace Name Mixin selector
      official ay Lbdr;ay()V
      intermediary method_5825 Lnet/minecraft/class_1297;method_5825()V
      named tickInVoid Lnet/minecraft/entity/Entity;tickInVoid()V
    • doesNotCollide

      public boolean doesNotCollide(double offsetX, double offsetY, double offsetZ)
      Returns whether the bounding box with the given offsets do not collide with blocks or fluids.
      Returns:
      whether the bounding box with the given offsets do not collide with blocks or fluids
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(DDD)Z
      intermediary method_5654 Lnet/minecraft/class_1297;method_5654(DDD)Z
      named doesNotCollide Lnet/minecraft/entity/Entity;doesNotCollide(DDD)Z
    • doesNotCollide

      private boolean doesNotCollide(Box box)
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Ldzz;)Z
      intermediary method_5629 Lnet/minecraft/class_1297;method_5629(Lnet/minecraft/class_238;)Z
      named doesNotCollide Lnet/minecraft/entity/Entity;doesNotCollide(Lnet/minecraft/util/math/Box;)Z
    • setOnGround

      public void setOnGround(boolean onGround)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Z)V
      intermediary method_24830 Lnet/minecraft/class_1297;method_24830(Z)V
      named setOnGround Lnet/minecraft/entity/Entity;setOnGround(Z)V
    • isOnGround

      public boolean isOnGround()
      Returns whether the entity is on the ground.
      Returns:
      whether the entity is on the ground
      Mappings:
      Namespace Name Mixin selector
      official az Lbdr;az()Z
      intermediary method_24828 Lnet/minecraft/class_1297;method_24828()Z
      named isOnGround Lnet/minecraft/entity/Entity;isOnGround()Z
    • move

      public void move(MovementType movementType, Vec3d movement)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbem;Leae;)V
      intermediary method_5784 Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
      named move Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
    • hasCollidedSoftly

      protected boolean hasCollidedSoftly(Vec3d adjustedMovement)
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Leae;)Z
      intermediary method_39759 Lnet/minecraft/class_1297;method_39759(Lnet/minecraft/class_243;)Z
      named hasCollidedSoftly Lnet/minecraft/entity/Entity;hasCollidedSoftly(Lnet/minecraft/util/math/Vec3d;)Z
    • tryCheckBlockCollision

      protected void tryCheckBlockCollision()
      Mappings:
      Namespace Name Mixin selector
      official aA Lbdr;aA()V
      intermediary method_36974 Lnet/minecraft/class_1297;method_36974()V
      named tryCheckBlockCollision Lnet/minecraft/entity/Entity;tryCheckBlockCollision()V
    • playExtinguishSound

      protected void playExtinguishSound()
      Mappings:
      Namespace Name Mixin selector
      official aB Lbdr;aB()V
      intermediary method_36975 Lnet/minecraft/class_1297;method_36975()V
      named playExtinguishSound Lnet/minecraft/entity/Entity;playExtinguishSound()V
    • extinguishWithSound

      public void extinguishWithSound()
      Mappings:
      Namespace Name Mixin selector
      official aC Lbdr;aC()V
      intermediary method_46395 Lnet/minecraft/class_1297;method_46395()V
      named extinguishWithSound Lnet/minecraft/entity/Entity;extinguishWithSound()V
    • addAirTravelEffects

      protected void addAirTravelEffects()
      Adds the effects of this entity when it travels in air, usually to the world the entity is in.

      This is only called when the entity has any move effect, from move(MovementType, Vec3d)

      Mappings:
      Namespace Name Mixin selector
      official aD Lbdr;aD()V
      intermediary method_33573 Lnet/minecraft/class_1297;method_33573()V
      named addAirTravelEffects Lnet/minecraft/entity/Entity;addAirTravelEffects()V
    • getLandingPos

      @Deprecated public BlockPos getLandingPos()
      Deprecated.
      Returns the landing position.
      Returns:
      the landing position
      See Also:
      Implementation Note:
      Landing position is the entity's position, with 0.2 subtracted from the Y coordinate. This means that, for example, if a player is on a carpet on a soul soil, the soul soil's position would be returned.
      Mappings:
      Namespace Name Mixin selector
      official aE Lbdr;aE()Lgp;
      intermediary method_43260 Lnet/minecraft/class_1297;method_43260()Lnet/minecraft/class_2338;
      named getLandingPos Lnet/minecraft/entity/Entity;getLandingPos()Lnet/minecraft/util/math/BlockPos;
    • getSteppingPos

      public BlockPos getSteppingPos()
      Returns the stepping position.
      Returns:
      the stepping position
      See Also:
      Implementation Note:
      Stepping position is the entity's position, with 1e-05 subtracted from the Y coordinate. This means that, for example, if a player is on a carpet on a soul soil, the carpet's position would be returned.
      Mappings:
      Namespace Name Mixin selector
      official aF Lbdr;aF()Lgp;
      intermediary method_23312 Lnet/minecraft/class_1297;method_23312()Lnet/minecraft/class_2338;
      named getSteppingPos Lnet/minecraft/entity/Entity;getSteppingPos()Lnet/minecraft/util/math/BlockPos;
    • getPosWithYOffset

      private BlockPos getPosWithYOffset(float offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(F)Lgp;
      intermediary method_43258 Lnet/minecraft/class_1297;method_43258(F)Lnet/minecraft/class_2338;
      named getPosWithYOffset Lnet/minecraft/entity/Entity;getPosWithYOffset(F)Lnet/minecraft/util/math/BlockPos;
    • getJumpVelocityMultiplier

      protected float getJumpVelocityMultiplier()
      Mappings:
      Namespace Name Mixin selector
      official aG Lbdr;aG()F
      intermediary method_23313 Lnet/minecraft/class_1297;method_23313()F
      named getJumpVelocityMultiplier Lnet/minecraft/entity/Entity;getJumpVelocityMultiplier()F
    • getVelocityMultiplier

      protected float getVelocityMultiplier()
      Mappings:
      Namespace Name Mixin selector
      official aH Lbdr;aH()F
      intermediary method_23326 Lnet/minecraft/class_1297;method_23326()F
      named getVelocityMultiplier Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
    • getVelocityAffectingPos

      protected BlockPos getVelocityAffectingPos()
      Mappings:
      Namespace Name Mixin selector
      official aI Lbdr;aI()Lgp;
      intermediary method_23314 Lnet/minecraft/class_1297;method_23314()Lnet/minecraft/class_2338;
      named getVelocityAffectingPos Lnet/minecraft/entity/Entity;getVelocityAffectingPos()Lnet/minecraft/util/math/BlockPos;
    • adjustMovementForSneaking

      protected Vec3d adjustMovementForSneaking(Vec3d movement, MovementType type)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Leae;Lbem;)Leae;
      intermediary method_18796 Lnet/minecraft/class_1297;method_18796(Lnet/minecraft/class_243;Lnet/minecraft/class_1313;)Lnet/minecraft/class_243;
      named adjustMovementForSneaking Lnet/minecraft/entity/Entity;adjustMovementForSneaking(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/MovementType;)Lnet/minecraft/util/math/Vec3d;
    • adjustMovementForPiston

      protected Vec3d adjustMovementForPiston(Vec3d movement)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Leae;)Leae;
      intermediary method_18794 Lnet/minecraft/class_1297;method_18794(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      named adjustMovementForPiston Lnet/minecraft/entity/Entity;adjustMovementForPiston(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • calculatePistonMovementFactor

      private double calculatePistonMovementFactor(Direction.Axis axis, double offsetFactor)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lgv$a;D)D
      intermediary method_18797 Lnet/minecraft/class_1297;method_18797(Lnet/minecraft/class_2350$class_2351;D)D
      named calculatePistonMovementFactor Lnet/minecraft/entity/Entity;calculatePistonMovementFactor(Lnet/minecraft/util/math/Direction$Axis;D)D
    • adjustMovementForCollisions

      private Vec3d adjustMovementForCollisions(Vec3d movement)
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h(Leae;)Leae;
      intermediary method_17835 Lnet/minecraft/class_1297;method_17835(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      named adjustMovementForCollisions Lnet/minecraft/entity/Entity;adjustMovementForCollisions(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • adjustMovementForCollisions

      public static Vec3d adjustMovementForCollisions(@Nullable @Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr;Leae;Ldzz;Lcjw;Ljava/util/List;)Leae;
      intermediary method_20736 Lnet/minecraft/class_1297;method_20736(Lnet/minecraft/class_1297;Lnet/minecraft/class_243;Lnet/minecraft/class_238;Lnet/minecraft/class_1937;Ljava/util/List;)Lnet/minecraft/class_243;
      named adjustMovementForCollisions Lnet/minecraft/entity/Entity;adjustMovementForCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Lnet/minecraft/world/World;Ljava/util/List;)Lnet/minecraft/util/math/Vec3d;
    • adjustMovementForCollisions

      private static Vec3d adjustMovementForCollisions(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Leae;Ldzz;Ljava/util/List;)Leae;
      intermediary method_20737 Lnet/minecraft/class_1297;method_20737(Lnet/minecraft/class_243;Lnet/minecraft/class_238;Ljava/util/List;)Lnet/minecraft/class_243;
      named adjustMovementForCollisions Lnet/minecraft/entity/Entity;adjustMovementForCollisions(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Ljava/util/List;)Lnet/minecraft/util/math/Vec3d;
    • calculateNextStepSoundDistance

      protected float calculateNextStepSoundDistance()
      Mappings:
      Namespace Name Mixin selector
      official aJ Lbdr;aJ()F
      intermediary method_5867 Lnet/minecraft/class_1297;method_5867()F
      named calculateNextStepSoundDistance Lnet/minecraft/entity/Entity;calculateNextStepSoundDistance()F
    • getSwimSound

      protected SoundEvent getSwimSound()
      Mappings:
      Namespace Name Mixin selector
      official aK Lbdr;aK()Laln;
      intermediary method_5737 Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;
      named getSwimSound Lnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;
    • getSplashSound

      protected SoundEvent getSplashSound()
      Mappings:
      Namespace Name Mixin selector
      official aL Lbdr;aL()Laln;
      intermediary method_5625 Lnet/minecraft/class_1297;method_5625()Lnet/minecraft/class_3414;
      named getSplashSound Lnet/minecraft/entity/Entity;getSplashSound()Lnet/minecraft/sound/SoundEvent;
    • getHighSpeedSplashSound

      protected SoundEvent getHighSpeedSplashSound()
      Mappings:
      Namespace Name Mixin selector
      official aM Lbdr;aM()Laln;
      intermediary method_5672 Lnet/minecraft/class_1297;method_5672()Lnet/minecraft/class_3414;
      named getHighSpeedSplashSound Lnet/minecraft/entity/Entity;getHighSpeedSplashSound()Lnet/minecraft/sound/SoundEvent;
    • checkBlockCollision

      protected void checkBlockCollision()
      Mappings:
      Namespace Name Mixin selector
      official aN Lbdr;aN()V
      intermediary method_5852 Lnet/minecraft/class_1297;method_5852()V
      named checkBlockCollision Lnet/minecraft/entity/Entity;checkBlockCollision()V
    • onBlockCollision

      protected void onBlockCollision(BlockState state)
      Called when this entity's collision box intersects state.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcyt;)V
      intermediary method_5622 Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)V
      named onBlockCollision Lnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)V
    • emitGameEvent

      public void emitGameEvent(GameEvent event, @Nullable @Nullable Entity entity)
      Emits a game event originating from another entity at this entity's position.

      A common example is a game event called in interact(net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand), where the player interacting with the entity is the emitter of the event.

      Parameters:
      entity - the entity that emitted the game event, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lddc;Lbdr;)V
      intermediary method_32875 Lnet/minecraft/class_1297;method_32875(Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)V
      named emitGameEvent Lnet/minecraft/entity/Entity;emitGameEvent(Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)V
    • emitGameEvent

      public void emitGameEvent(GameEvent event)
      Emits a game event originating from this entity at this entity's position.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lddc;)V
      intermediary method_32876 Lnet/minecraft/class_1297;method_32876(Lnet/minecraft/class_5712;)V
      named emitGameEvent Lnet/minecraft/entity/Entity;emitGameEvent(Lnet/minecraft/world/event/GameEvent;)V
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lgp;Lcyt;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • playAmethystChimeSound

      private void playAmethystChimeSound(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lcyt;)V
      intermediary method_37215 Lnet/minecraft/class_1297;method_37215(Lnet/minecraft/class_2680;)V
      named playAmethystChimeSound Lnet/minecraft/entity/Entity;playAmethystChimeSound(Lnet/minecraft/block/BlockState;)V
    • playSwimSound

      protected void playSwimSound(float volume)
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(F)V
      intermediary method_5734 Lnet/minecraft/class_1297;method_5734(F)V
      named playSwimSound Lnet/minecraft/entity/Entity;playSwimSound(F)V
    • addFlapEffects

      protected void addFlapEffects()
      Adds the effects of this entity flapping, usually to the world the entity is in.

      The actual flapping logic should be done in tick() instead.

      This is only called when the entity is flapping wings and the entity has any move effect, from addAirTravelEffects().

      Mappings:
      Namespace Name Mixin selector
      official aO Lbdr;aO()V
      intermediary method_5801 Lnet/minecraft/class_1297;method_5801()V
      named addFlapEffects Lnet/minecraft/entity/Entity;addFlapEffects()V
    • isFlappingWings

      protected boolean isFlappingWings()
      Returns whether the entity is flapping their wings.

      Entities flapping their wings will call addFlapEffects() inside addAirTravelEffects().

      Returns:
      whether the entity is flapping their wings
      Mappings:
      Namespace Name Mixin selector
      official aP Lbdr;aP()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      named isFlappingWings Lnet/minecraft/entity/Entity;isFlappingWings()Z
    • playSound

      public void playSound(SoundEvent sound, float volume, float pitch)
      Plays sound at this entity's position with the entity's sound category if the entity is not silent.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Laln;FF)V
      intermediary method_5783 Lnet/minecraft/class_1297;method_5783(Lnet/minecraft/class_3414;FF)V
      named playSound Lnet/minecraft/entity/Entity;playSound(Lnet/minecraft/sound/SoundEvent;FF)V
    • playSoundIfNotSilent

      public void playSoundIfNotSilent(SoundEvent event)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Laln;)V
      intermediary method_43077 Lnet/minecraft/class_1297;method_43077(Lnet/minecraft/class_3414;)V
      named playSoundIfNotSilent Lnet/minecraft/entity/Entity;playSoundIfNotSilent(Lnet/minecraft/sound/SoundEvent;)V
    • isSilent

      public boolean isSilent()
      Returns whether the entity is silent.

      Silent entities should not make sounds. playSound(net.minecraft.sound.SoundEvent, float, float) checks this method by default, but if a sound is played manually, this has to be checked too.

      This is saved under the Silent NBT key.

      Returns:
      whether the entity is silent
      Mappings:
      Namespace Name Mixin selector
      official aQ Lbdr;aQ()Z
      intermediary method_5701 Lnet/minecraft/class_1297;method_5701()Z
      named isSilent Lnet/minecraft/entity/Entity;isSilent()Z
    • setSilent

      public void setSilent(boolean silent)
      Sets whether the entity is silent.

      This is saved under the Silent NBT key.

      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(Z)V
      intermediary method_5803 Lnet/minecraft/class_1297;method_5803(Z)V
      named setSilent Lnet/minecraft/entity/Entity;setSilent(Z)V
    • hasNoGravity

      public boolean hasNoGravity()
      Returns whether the entity has no gravity.

      Entities using FlightMoveControl has no gravity. This is saved under the NoGravity NBT key.

      Returns:
      whether the entity has no gravity
      Mappings:
      Namespace Name Mixin selector
      official aR Lbdr;aR()Z
      intermediary method_5740 Lnet/minecraft/class_1297;method_5740()Z
      named hasNoGravity Lnet/minecraft/entity/Entity;hasNoGravity()Z
    • setNoGravity

      public void setNoGravity(boolean noGravity)
      Sets whether the entity has no gravity.

      Entities using FlightMoveControl has no gravity. This is saved under the NoGravity NBT key.

      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(Z)V
      intermediary method_5875 Lnet/minecraft/class_1297;method_5875(Z)V
      named setNoGravity Lnet/minecraft/entity/Entity;setNoGravity(Z)V
    • getMoveEffect

      protected Entity.MoveEffect getMoveEffect()
      Returns the possible effect(s) of an entity moving.
      Implementation Note:
      If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
      Mappings:
      Namespace Name Mixin selector
      official aS Lbdr;aS()Lbdr$b;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
    • occludeVibrationSignals

      public boolean occludeVibrationSignals()
      Returns whether the entity should not emit vibrations.

      By default, wool or carpet item entities, and WardenEntity do not emit vibrations.

      Returns:
      whether the entity should not emit vibrations
      Mappings:
      Namespace Name Mixin selector
      official aT Lbdr;aT()Z
      intermediary method_33189 Lnet/minecraft/class_1297;method_33189()Z
      named occludeVibrationSignals Lnet/minecraft/entity/Entity;occludeVibrationSignals()Z
    • fall

      protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition)
      Called when the entity falls. Flying mobs should override this to do nothing.
      Implementation Note:
      If on ground, this calls Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, float), which can add or reduce fall damage, emits GameEvent.HIT_GROUND, then calls onLanding(). Otherwise, if heightDifference is negative, it subtracts that value from fallDistance.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DZLcyt;Lgp;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
    • isFireImmune

      public boolean isFireImmune()
      Returns whether the entity is immune to fire damage.
      Returns:
      whether the entity is immune to fire damage
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aU Lbdr;aU()Z
      intermediary method_5753 Lnet/minecraft/class_1297;method_5753()Z
      named isFireImmune Lnet/minecraft/entity/Entity;isFireImmune()Z
    • handleFallDamage

      public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource)
      Called when an entity falls.

      Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like TntMinecartEntity.

      Returns:
      whether to play the sound when falling on honey block; false for all entities except horses and llamas
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(FFLbcz;)Z
      intermediary method_5747 Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
      named handleFallDamage Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
    • isTouchingWater

      public boolean isTouchingWater()
      Returns whether this entity's hitbox is touching water fluid.
      Mappings:
      Namespace Name Mixin selector
      official aV Lbdr;aV()Z
      intermediary method_5799 Lnet/minecraft/class_1297;method_5799()Z
      named isTouchingWater Lnet/minecraft/entity/Entity;isTouchingWater()Z
    • isBeingRainedOn

      private boolean isBeingRainedOn()
      Returns whether it is raining at the entity's position.
      Returns:
      whether it is raining at the entity's position
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j()Z
      intermediary method_5778 Lnet/minecraft/class_1297;method_5778()Z
      named isBeingRainedOn Lnet/minecraft/entity/Entity;isBeingRainedOn()Z
    • isInsideBubbleColumn

      private boolean isInsideBubbleColumn()
      Returns whether the block at the entity's position is a bubble column.
      Returns:
      whether the block at the entity's position is a bubble column
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k()Z
      intermediary method_5798 Lnet/minecraft/class_1297;method_5798()Z
      named isInsideBubbleColumn Lnet/minecraft/entity/Entity;isInsideBubbleColumn()Z
    • isTouchingWaterOrRain

      public boolean isTouchingWaterOrRain()
      Returns whether this entity is touching water or is being rained on (but does not check for a bubble column).
      Returns:
      whether this entity is touching water or is being rained on (but does not check for a bubble column)
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aW Lbdr;aW()Z
      intermediary method_5721 Lnet/minecraft/class_1297;method_5721()Z
      named isTouchingWaterOrRain Lnet/minecraft/entity/Entity;isTouchingWaterOrRain()Z
    • isWet

      public boolean isWet()
      Returns whether this entity is touching water, or is being rained on, or is inside a bubble column.
      Returns:
      whether this entity is touching water, or is being rained on, or is inside a bubble column
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aX Lbdr;aX()Z
      intermediary method_5637 Lnet/minecraft/class_1297;method_5637()Z
      named isWet Lnet/minecraft/entity/Entity;isWet()Z
    • isInsideWaterOrBubbleColumn

      public boolean isInsideWaterOrBubbleColumn()
      Returns whether this entity is touching water or a bubble column.
      Returns:
      whether this entity is touching water or a bubble column
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aY Lbdr;aY()Z
      intermediary method_5816 Lnet/minecraft/class_1297;method_5816()Z
      named isInsideWaterOrBubbleColumn Lnet/minecraft/entity/Entity;isInsideWaterOrBubbleColumn()Z
    • isSubmergedInWater

      public boolean isSubmergedInWater()
      Returns whether this entity's hitbox is fully submerged in water.
      Returns:
      whether this entity's hitbox is fully submerged in water
      Mappings:
      Namespace Name Mixin selector
      official aZ Lbdr;aZ()Z
      intermediary method_5869 Lnet/minecraft/class_1297;method_5869()Z
      named isSubmergedInWater Lnet/minecraft/entity/Entity;isSubmergedInWater()Z
    • updateSwimming

      public void updateSwimming()
      Mappings:
      Namespace Name Mixin selector
      official ba Lbdr;ba()V
      intermediary method_5790 Lnet/minecraft/class_1297;method_5790()V
      named updateSwimming Lnet/minecraft/entity/Entity;updateSwimming()V
    • updateWaterState

      protected boolean updateWaterState()
      Mappings:
      Namespace Name Mixin selector
      official bb Lbdr;bb()Z
      intermediary method_5876 Lnet/minecraft/class_1297;method_5876()Z
      named updateWaterState Lnet/minecraft/entity/Entity;updateWaterState()Z
    • checkWaterState

      void checkWaterState()
      Mappings:
      Namespace Name Mixin selector
      official bc Lbdr;bc()V
      intermediary method_5713 Lnet/minecraft/class_1297;method_5713()V
      named checkWaterState Lnet/minecraft/entity/Entity;checkWaterState()V
    • updateSubmergedInWaterState

      private void updateSubmergedInWaterState()
      Mappings:
      Namespace Name Mixin selector
      official m Lbdr;m()V
      intermediary method_5630 Lnet/minecraft/class_1297;method_5630()V
      named updateSubmergedInWaterState Lnet/minecraft/entity/Entity;updateSubmergedInWaterState()V
    • onSwimmingStart

      protected void onSwimmingStart()
      Mappings:
      Namespace Name Mixin selector
      official bd Lbdr;bd()V
      intermediary method_5746 Lnet/minecraft/class_1297;method_5746()V
      named onSwimmingStart Lnet/minecraft/entity/Entity;onSwimmingStart()V
    • getLandingBlockState

      @Deprecated protected BlockState getLandingBlockState()
      Deprecated.
      Returns the block state at the landing position.
      Returns:
      the block state at the landing position
      See Also:
      Implementation Note:
      Landing position is the entity's position, with 0.2 subtracted from the Y coordinate. This means that, for example, if a player is on a carpet on a soul soil, the soul soil's position would be returned.
      Mappings:
      Namespace Name Mixin selector
      official be Lbdr;be()Lcyt;
      intermediary method_43261 Lnet/minecraft/class_1297;method_43261()Lnet/minecraft/class_2680;
      named getLandingBlockState Lnet/minecraft/entity/Entity;getLandingBlockState()Lnet/minecraft/block/BlockState;
    • getSteppingBlockState

      public BlockState getSteppingBlockState()
      Returns the block state at the stepping position.
      Returns:
      the block state at the stepping position
      See Also:
      Implementation Note:
      Stepping position is the entity's position, with 1e-05 subtracted from the Y coordinate. This means that, for example, if a player is on a carpet on a soul soil, the carpet's position would be returned.
      Mappings:
      Namespace Name Mixin selector
      official bf Lbdr;bf()Lcyt;
      intermediary method_25936 Lnet/minecraft/class_1297;method_25936()Lnet/minecraft/class_2680;
      named getSteppingBlockState Lnet/minecraft/entity/Entity;getSteppingBlockState()Lnet/minecraft/block/BlockState;
    • shouldSpawnSprintingParticles

      public boolean shouldSpawnSprintingParticles()
      Mappings:
      Namespace Name Mixin selector
      official bg Lbdr;bg()Z
      intermediary method_27298 Lnet/minecraft/class_1297;method_27298()Z
      named shouldSpawnSprintingParticles Lnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Z
    • spawnSprintingParticles

      protected void spawnSprintingParticles()
      Mappings:
      Namespace Name Mixin selector
      official bh Lbdr;bh()V
      intermediary method_5839 Lnet/minecraft/class_1297;method_5839()V
      named spawnSprintingParticles Lnet/minecraft/entity/Entity;spawnSprintingParticles()V
    • isSubmergedIn

      public boolean isSubmergedIn(TagKey<Fluid> fluidTag)
      Returns whether the entity is submerged in a fluid in fluidTag.
      Returns:
      whether the entity is submerged in a fluid in fluidTag
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lamr;)Z
      intermediary method_5777 Lnet/minecraft/class_1297;method_5777(Lnet/minecraft/class_6862;)Z
      named isSubmergedIn Lnet/minecraft/entity/Entity;isSubmergedIn(Lnet/minecraft/registry/tag/TagKey;)Z
    • isInLava

      public boolean isInLava()
      Returns whether the entity is in lava.
      Returns:
      whether the entity is in lava
      Mappings:
      Namespace Name Mixin selector
      official bi Lbdr;bi()Z
      intermediary method_5771 Lnet/minecraft/class_1297;method_5771()Z
      named isInLava Lnet/minecraft/entity/Entity;isInLava()Z
    • updateVelocity

      public void updateVelocity(float speed, Vec3d movementInput)
      Updates the entity's velocity to add a vector in the direction of the entity's yaw whose absolute value is movementInput normalized and multiplied by speed.

      This is usually called inside overridden LivingEntity.travel(net.minecraft.util.math.Vec3d) if the entity is touching water; see FishEntity for an example.

      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(FLeae;)V
      intermediary method_5724 Lnet/minecraft/class_1297;method_5724(FLnet/minecraft/class_243;)V
      named updateVelocity Lnet/minecraft/entity/Entity;updateVelocity(FLnet/minecraft/util/math/Vec3d;)V
    • movementInputToVelocity

      private static Vec3d movementInputToVelocity(Vec3d movementInput, float speed, float yaw)
      Returns a vector with the horizontal direction being yaw degrees and the absolute value being movementInput normalized and multiplied by speed.
      Returns:
      a vector with the horizontal direction being yaw degrees and the absolute value being movementInput normalized and multiplied by speed
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Leae;FF)Leae;
      intermediary method_18795 Lnet/minecraft/class_1297;method_18795(Lnet/minecraft/class_243;FF)Lnet/minecraft/class_243;
      named movementInputToVelocity Lnet/minecraft/entity/Entity;movementInputToVelocity(Lnet/minecraft/util/math/Vec3d;FF)Lnet/minecraft/util/math/Vec3d;
    • getBrightnessAtEyes

      @Deprecated public float getBrightnessAtEyes()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official bj Lbdr;bj()F
      intermediary method_5718 Lnet/minecraft/class_1297;method_5718()F
      named getBrightnessAtEyes Lnet/minecraft/entity/Entity;getBrightnessAtEyes()F
    • updatePositionAndAngles

      public void updatePositionAndAngles(double x, double y, double z, float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DDDFF)V
      intermediary method_5641 Lnet/minecraft/class_1297;method_5641(DDDFF)V
      named updatePositionAndAngles Lnet/minecraft/entity/Entity;updatePositionAndAngles(DDDFF)V
    • updatePosition

      public void updatePosition(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h(DDD)V
      intermediary method_30634 Lnet/minecraft/class_1297;method_30634(DDD)V
      named updatePosition Lnet/minecraft/entity/Entity;updatePosition(DDD)V
    • refreshPositionAfterTeleport

      public void refreshPositionAfterTeleport(Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(Leae;)V
      intermediary method_29495 Lnet/minecraft/class_1297;method_29495(Lnet/minecraft/class_243;)V
      named refreshPositionAfterTeleport Lnet/minecraft/entity/Entity;refreshPositionAfterTeleport(Lnet/minecraft/util/math/Vec3d;)V
    • refreshPositionAfterTeleport

      public void refreshPositionAfterTeleport(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(DDD)V
      intermediary method_24203 Lnet/minecraft/class_1297;method_24203(DDD)V
      named refreshPositionAfterTeleport Lnet/minecraft/entity/Entity;refreshPositionAfterTeleport(DDD)V
    • refreshPositionAndAngles

      public void refreshPositionAndAngles(BlockPos pos, float yaw, float pitch)
      Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.

      This should be used over other methods for setting positions of mobs.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lgp;FF)V
      intermediary method_5725 Lnet/minecraft/class_1297;method_5725(Lnet/minecraft/class_2338;FF)V
      named refreshPositionAndAngles Lnet/minecraft/entity/Entity;refreshPositionAndAngles(Lnet/minecraft/util/math/BlockPos;FF)V
    • refreshPositionAndAngles

      public void refreshPositionAndAngles(double x, double y, double z, float yaw, float pitch)
      Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.

      This should be used over other methods for setting positions of mobs.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(DDDFF)V
      intermediary method_5808 Lnet/minecraft/class_1297;method_5808(DDDFF)V
      named refreshPositionAndAngles Lnet/minecraft/entity/Entity;refreshPositionAndAngles(DDDFF)V
    • resetPosition

      public final void resetPosition()
      Mappings:
      Namespace Name Mixin selector
      official bk Lbdr;bk()V
      intermediary method_22862 Lnet/minecraft/class_1297;method_22862()V
      named resetPosition Lnet/minecraft/entity/Entity;resetPosition()V
    • distanceTo

      public float distanceTo(Entity entity)
      Returns the distance between this entity and entity.
      Returns:
      the distance between this entity and entity
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(Lbdr;)F
      intermediary method_5739 Lnet/minecraft/class_1297;method_5739(Lnet/minecraft/class_1297;)F
      named distanceTo Lnet/minecraft/entity/Entity;distanceTo(Lnet/minecraft/entity/Entity;)F
    • squaredDistanceTo

      public double squaredDistanceTo(double x, double y, double z)
      Returns the squared distance between this entity and the given position.
      Returns:
      the squared distance between this entity and the given position
      Mappings:
      Namespace Name Mixin selector
      official i Lbdr;i(DDD)D
      intermediary method_5649 Lnet/minecraft/class_1297;method_5649(DDD)D
      named squaredDistanceTo Lnet/minecraft/entity/Entity;squaredDistanceTo(DDD)D
    • squaredDistanceTo

      public double squaredDistanceTo(Entity entity)
      Returns the squared distance between this entity and entity.
      Returns:
      the squared distance between this entity and entity
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(Lbdr;)D
      intermediary method_5858 Lnet/minecraft/class_1297;method_5858(Lnet/minecraft/class_1297;)D
      named squaredDistanceTo Lnet/minecraft/entity/Entity;squaredDistanceTo(Lnet/minecraft/entity/Entity;)D
    • squaredDistanceTo

      public double squaredDistanceTo(Vec3d vector)
      Returns the squared distance between this entity and the given position.
      Returns:
      the squared distance between this entity and the given position
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(Leae;)D
      intermediary method_5707 Lnet/minecraft/class_1297;method_5707(Lnet/minecraft/class_243;)D
      named squaredDistanceTo Lnet/minecraft/entity/Entity;squaredDistanceTo(Lnet/minecraft/util/math/Vec3d;)D
    • onPlayerCollision

      public void onPlayerCollision(PlayerEntity player)
      Called when a player collides with the entity. Does nothing by default.

      This should be overridden if the collision logic is specific to players, such as picking up item entities, experience orbs, or arrows.

      Mappings:
      Namespace Name Mixin selector
      official c_ Lbdr;c_(Lbwp;)V
      intermediary method_5694 Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)V
      named onPlayerCollision Lnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)V
    • pushAwayFrom

      public void pushAwayFrom(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(Lbdr;)V
      intermediary method_5697 Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
      named pushAwayFrom Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
    • addVelocity

      public void addVelocity(double deltaX, double deltaY, double deltaZ)
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j(DDD)V
      intermediary method_5762 Lnet/minecraft/class_1297;method_5762(DDD)V
      named addVelocity Lnet/minecraft/entity/Entity;addVelocity(DDD)V
    • scheduleVelocityUpdate

      protected void scheduleVelocityUpdate()
      Mappings:
      Namespace Name Mixin selector
      official bl Lbdr;bl()V
      intermediary method_5785 Lnet/minecraft/class_1297;method_5785()V
      named scheduleVelocityUpdate Lnet/minecraft/entity/Entity;scheduleVelocityUpdate()V
    • damage

      public boolean damage(DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of isInvulnerableTo(net.minecraft.entity.damage.DamageSource) and return early.

      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbcz;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • getRotationVec

      public final Vec3d getRotationVec(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(F)Leae;
      intermediary method_5828 Lnet/minecraft/class_1297;method_5828(F)Lnet/minecraft/class_243;
      named getRotationVec Lnet/minecraft/entity/Entity;getRotationVec(F)Lnet/minecraft/util/math/Vec3d;
    • getPitch

      public float getPitch(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(F)F
      intermediary method_5695 Lnet/minecraft/class_1297;method_5695(F)F
      named getPitch Lnet/minecraft/entity/Entity;getPitch(F)F
    • getYaw

      public float getYaw(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(F)F
      intermediary method_5705 Lnet/minecraft/class_1297;method_5705(F)F
      named getYaw Lnet/minecraft/entity/Entity;getYaw(F)F
    • getRotationVector

      protected final Vec3d getRotationVector(float pitch, float yaw)
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(FF)Leae;
      intermediary method_5631 Lnet/minecraft/class_1297;method_5631(FF)Lnet/minecraft/class_243;
      named getRotationVector Lnet/minecraft/entity/Entity;getRotationVector(FF)Lnet/minecraft/util/math/Vec3d;
    • getOppositeRotationVector

      public final Vec3d getOppositeRotationVector(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h(F)Leae;
      intermediary method_18864 Lnet/minecraft/class_1297;method_18864(F)Lnet/minecraft/class_243;
      named getOppositeRotationVector Lnet/minecraft/entity/Entity;getOppositeRotationVector(F)Lnet/minecraft/util/math/Vec3d;
    • getOppositeRotationVector

      protected final Vec3d getOppositeRotationVector(float pitch, float yaw)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(FF)Leae;
      intermediary method_18863 Lnet/minecraft/class_1297;method_18863(FF)Lnet/minecraft/class_243;
      named getOppositeRotationVector Lnet/minecraft/entity/Entity;getOppositeRotationVector(FF)Lnet/minecraft/util/math/Vec3d;
    • getEyePos

      public final Vec3d getEyePos()
      Returns the position of the eye.
      Returns:
      the position of the eye
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bm Lbdr;bm()Leae;
      intermediary method_33571 Lnet/minecraft/class_1297;method_33571()Lnet/minecraft/class_243;
      named getEyePos Lnet/minecraft/entity/Entity;getEyePos()Lnet/minecraft/util/math/Vec3d;
    • getCameraPosVec

      public final Vec3d getCameraPosVec(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official i Lbdr;i(F)Leae;
      intermediary method_5836 Lnet/minecraft/class_1297;method_5836(F)Lnet/minecraft/class_243;
      named getCameraPosVec Lnet/minecraft/entity/Entity;getCameraPosVec(F)Lnet/minecraft/util/math/Vec3d;
    • getClientCameraPosVec

      public Vec3d getClientCameraPosVec(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j(F)Leae;
      intermediary method_31166 Lnet/minecraft/class_1297;method_31166(F)Lnet/minecraft/class_243;
      named getClientCameraPosVec Lnet/minecraft/entity/Entity;getClientCameraPosVec(F)Lnet/minecraft/util/math/Vec3d;
    • getLerpedPos

      public final Vec3d getLerpedPos(float delta)
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k(F)Leae;
      intermediary method_30950 Lnet/minecraft/class_1297;method_30950(F)Lnet/minecraft/class_243;
      named getLerpedPos Lnet/minecraft/entity/Entity;getLerpedPos(F)Lnet/minecraft/util/math/Vec3d;
    • raycast

      public HitResult raycast(double maxDistance, float tickDelta, boolean includeFluids)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DFZ)Leac;
      intermediary method_5745 Lnet/minecraft/class_1297;method_5745(DFZ)Lnet/minecraft/class_239;
      named raycast Lnet/minecraft/entity/Entity;raycast(DFZ)Lnet/minecraft/util/hit/HitResult;
    • canHit

      public boolean canHit()
      Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.
      Returns:
      whether the entity can be hit with a projectile or be targeted by the player crosshair
      Mappings:
      Namespace Name Mixin selector
      official bn Lbdr;bn()Z
      intermediary method_5863 Lnet/minecraft/class_1297;method_5863()Z
      named canHit Lnet/minecraft/entity/Entity;canHit()Z
    • isPushable

      public boolean isPushable()
      Returns whether the entity can be pushed by other entities.
      Returns:
      whether the entity can be pushed by other entities
      Mappings:
      Namespace Name Mixin selector
      official bo Lbdr;bo()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
    • updateKilledAdvancementCriterion

      public void updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr;ILbcz;)V
      intermediary method_5716 Lnet/minecraft/class_1297;method_5716(Lnet/minecraft/class_1297;ILnet/minecraft/class_1282;)V
      named updateKilledAdvancementCriterion Lnet/minecraft/entity/Entity;updateKilledAdvancementCriterion(Lnet/minecraft/entity/Entity;ILnet/minecraft/entity/damage/DamageSource;)V
    • shouldRender

      public boolean shouldRender(double cameraX, double cameraY, double cameraZ)
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k(DDD)Z
      intermediary method_5727 Lnet/minecraft/class_1297;method_5727(DDD)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(DDD)Z
    • shouldRender

      public boolean shouldRender(double distance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
    • saveSelfNbt

      public boolean saveSelfNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(Lqp;)Z
      intermediary method_5786 Lnet/minecraft/class_1297;method_5786(Lnet/minecraft/class_2487;)Z
      named saveSelfNbt Lnet/minecraft/entity/Entity;saveSelfNbt(Lnet/minecraft/nbt/NbtCompound;)Z
    • saveNbt

      public boolean saveNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(Lqp;)Z
      intermediary method_5662 Lnet/minecraft/class_1297;method_5662(Lnet/minecraft/class_2487;)Z
      named saveNbt Lnet/minecraft/entity/Entity;saveNbt(Lnet/minecraft/nbt/NbtCompound;)Z
    • writeNbt

      public NbtCompound writeNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(Lqp;)Lqp;
      intermediary method_5647 Lnet/minecraft/class_1297;method_5647(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named writeNbt Lnet/minecraft/entity/Entity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • readNbt

      public void readNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(Lqp;)V
      intermediary method_5651 Lnet/minecraft/class_1297;method_5651(Lnet/minecraft/class_2487;)V
      named readNbt Lnet/minecraft/entity/Entity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • shouldSetPositionOnLoad

      protected boolean shouldSetPositionOnLoad()
      Mappings:
      Namespace Name Mixin selector
      official bp Lbdr;bp()Z
      intermediary method_5638 Lnet/minecraft/class_1297;method_5638()Z
      named shouldSetPositionOnLoad Lnet/minecraft/entity/Entity;shouldSetPositionOnLoad()Z
    • getSavedEntityId

      @Nullable protected final @Nullable String getSavedEntityId()
      Mappings:
      Namespace Name Mixin selector
      official bq Lbdr;bq()Ljava/lang/String;
      intermediary method_5653 Lnet/minecraft/class_1297;method_5653()Ljava/lang/String;
      named getSavedEntityId Lnet/minecraft/entity/Entity;getSavedEntityId()Ljava/lang/String;
    • readCustomDataFromNbt

      protected abstract void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lqp;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      protected abstract void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lqp;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • toNbtList

      protected NbtList toNbtList(double[] values)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a([D)Lqv;
      intermediary method_5846 Lnet/minecraft/class_1297;method_5846([D)Lnet/minecraft/class_2499;
      named toNbtList Lnet/minecraft/entity/Entity;toNbtList([D)Lnet/minecraft/nbt/NbtList;
    • toNbtList

      protected NbtList toNbtList(float[] values)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a([F)Lqv;
      intermediary method_5726 Lnet/minecraft/class_1297;method_5726([F)Lnet/minecraft/class_2499;
      named toNbtList Lnet/minecraft/entity/Entity;toNbtList([F)Lnet/minecraft/nbt/NbtList;
    • dropItem

      Drops one item at the entity's position.
      Returns:
      the spawned item entity, or null if called on the client
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcjv;)Lbti;
      intermediary method_5706 Lnet/minecraft/class_1297;method_5706(Lnet/minecraft/class_1935;)Lnet/minecraft/class_1542;
      named dropItem Lnet/minecraft/entity/Entity;dropItem(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/entity/ItemEntity;
    • dropItem

      @Nullable public @Nullable ItemEntity dropItem(ItemConvertible item, int yOffset)
      Drops one item at the entity's position with the given Y offset.
      Returns:
      the spawned item entity, or null if called on the client
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcjv;I)Lbti;
      intermediary method_5870 Lnet/minecraft/class_1297;method_5870(Lnet/minecraft/class_1935;I)Lnet/minecraft/class_1542;
      named dropItem Lnet/minecraft/entity/Entity;dropItem(Lnet/minecraft/item/ItemConvertible;I)Lnet/minecraft/entity/ItemEntity;
    • dropStack

      @Nullable public @Nullable ItemEntity dropStack(ItemStack stack)
      Drops stack at the entity's position.
      Returns:
      the spawned item entity, or null if the stack is empty or if called on the client
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lcdt;)Lbti;
      intermediary method_5775 Lnet/minecraft/class_1297;method_5775(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1542;
      named dropStack Lnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/ItemEntity;
    • dropStack

      @Nullable public @Nullable ItemEntity dropStack(ItemStack stack, float yOffset)
      Drops stack at the entity's position with the given Y offset.
      Returns:
      the spawned item entity, or null if the stack is empty or if called on the client
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcdt;F)Lbti;
      intermediary method_5699 Lnet/minecraft/class_1297;method_5699(Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1542;
      named dropStack Lnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/ItemEntity;
    • isAlive

      public boolean isAlive()
      Returns whether the entity is alive.

      For non-LivingEntity, this is the same as negating isRemoved(). LivingEntity checks the entity's health in addition to the removal.

      Returns:
      whether the entity is alive
      Mappings:
      Namespace Name Mixin selector
      official br Lbdr;br()Z
      intermediary method_5805 Lnet/minecraft/class_1297;method_5805()Z
      named isAlive Lnet/minecraft/entity/Entity;isAlive()Z
    • isInsideWall

      public boolean isInsideWall()
      Returns whether the entity is in a wall and should suffocate.

      This returns false if noClip is true; otherwise, this returns true if the eye position is occupied by a block that can suffocate.

      Returns:
      whether the entity is in a wall and should suffocate
      Mappings:
      Namespace Name Mixin selector
      official bs Lbdr;bs()Z
      intermediary method_5757 Lnet/minecraft/class_1297;method_5757()Z
      named isInsideWall Lnet/minecraft/entity/Entity;isInsideWall()Z
    • interact

      public ActionResult interact(PlayerEntity player, Hand hand)
      Called when a player interacts with this entity.
      Parameters:
      player - the player
      hand - the hand the player used to interact with this entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbwp;Lbcl;)Lbcm;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • collidesWith

      public boolean collidesWith(Entity other)
      Returns whether this entity cannot occupy the same space with other.

      This returns false if other is connected through vehicles.

      Returns:
      whether this entity cannot occupy the same space with other
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h(Lbdr;)Z
      intermediary method_30949 Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
      named collidesWith Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
    • isCollidable

      public boolean isCollidable()
      Returns whether other entities cannot occupy the same space with this entity.

      If true, other entities can stand on this entity without falling. BoatEntity and ShulkerEntity has this behavior.

      Returns:
      whether other entities cannot occupy the same space with this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bt Lbdr;bt()Z
      intermediary method_30948 Lnet/minecraft/class_1297;method_30948()Z
      named isCollidable Lnet/minecraft/entity/Entity;isCollidable()Z
    • tickRiding

      public void tickRiding()
      Mappings:
      Namespace Name Mixin selector
      official bu Lbdr;bu()V
      intermediary method_5842 Lnet/minecraft/class_1297;method_5842()V
      named tickRiding Lnet/minecraft/entity/Entity;tickRiding()V
    • updatePassengerPosition

      public void updatePassengerPosition(Entity passenger)
      Mappings:
      Namespace Name Mixin selector
      official i Lbdr;i(Lbdr;)V
      intermediary method_5865 Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;)V
      named updatePassengerPosition Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;)V
    • updatePassengerPosition

      private void updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr;Lbdr$a;)V
      intermediary method_24201 Lnet/minecraft/class_1297;method_24201(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
      named updatePassengerPosition Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
    • onPassengerLookAround

      public void onPassengerLookAround(Entity passenger)
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j(Lbdr;)V
      intermediary method_5644 Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)V
      named onPassengerLookAround Lnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)V
    • getHeightOffset

      public double getHeightOffset()
      Mappings:
      Namespace Name Mixin selector
      official bv Lbdr;bv()D
      intermediary method_5678 Lnet/minecraft/class_1297;method_5678()D
      named getHeightOffset Lnet/minecraft/entity/Entity;getHeightOffset()D
    • getMountedHeightOffset

      public double getMountedHeightOffset()
      Mappings:
      Namespace Name Mixin selector
      official bw Lbdr;bw()D
      intermediary method_5621 Lnet/minecraft/class_1297;method_5621()D
      named getMountedHeightOffset Lnet/minecraft/entity/Entity;getMountedHeightOffset()D
    • startRiding

      public boolean startRiding(Entity entity)
      Starts riding entity.

      For example, player.startRiding(horse) causes the player to ride a horse; the opposite, horse.startRiding(player), will cause the horse to ride a player.

      This fails when this entity is already riding the entity (or vice versa), or when this entity does not allow riding other entities (or vice versa). If this entity is already riding another entity, it will stop riding that entity first.

      Returns:
      whether this entity successfully started riding
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k(Lbdr;)Z
      intermediary method_5804 Lnet/minecraft/class_1297;method_5804(Lnet/minecraft/class_1297;)Z
      named startRiding Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;)Z
    • isLiving

      public boolean isLiving()
      Mappings:
      Namespace Name Mixin selector
      official bx Lbdr;bx()Z
      intermediary method_5709 Lnet/minecraft/class_1297;method_5709()Z
      named isLiving Lnet/minecraft/entity/Entity;isLiving()Z
    • startRiding

      public boolean startRiding(Entity entity, boolean force)
      Starts riding entity.

      For example, player.startRiding(horse) causes the player to ride a horse; the opposite, horse.startRiding(player), will cause the horse to ride a player.

      This fails when this entity is already riding the entity (or vice versa), or when this entity does not allow riding other entities (or vice versa) unless force is true. If this entity is already riding another entity, it will stop riding that entity first.

      Parameters:
      force - whether to bypass the entity's rideability check
      Returns:
      whether this entity successfully started riding
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdr;Z)Z
      intermediary method_5873 Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z
      named startRiding Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
    • canStartRiding

      protected boolean canStartRiding(Entity entity)
      Returns whether this entity can ride entity.

      Returning false causes the entity to be unable to ride other entities. For example, WitherEntity overrides this to return false, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passing true to startRiding(Entity, boolean).

      This is the opposite of canAddPassenger(net.minecraft.entity.Entity).

      Returns:
      whether this entity can ride entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l(Lbdr;)Z
      intermediary method_5860 Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Z
      named canStartRiding Lnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Z
    • wouldPoseNotCollide

      protected boolean wouldPoseNotCollide(EntityPose pose)
      Returns true if the entity would not collide with blocks if the pose is pose.
      Returns:
      true if the entity would not collide with blocks if the pose is pose
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(Lbes;)Z
      intermediary method_20233 Lnet/minecraft/class_1297;method_20233(Lnet/minecraft/class_4050;)Z
      named wouldPoseNotCollide Lnet/minecraft/entity/Entity;wouldPoseNotCollide(Lnet/minecraft/entity/EntityPose;)Z
    • removeAllPassengers

      public void removeAllPassengers()
      Causes all passengers of this entity to stop riding this entity.

      For example, boat.removeAllPassengers() will dismount all passengers of the boat.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official by Lbdr;by()V
      intermediary method_5772 Lnet/minecraft/class_1297;method_5772()V
      named removeAllPassengers Lnet/minecraft/entity/Entity;removeAllPassengers()V
    • dismountVehicle

      public void dismountVehicle()
      Dismounts the vehicle if present.

      For players, will not trigger any networking changes. Use stopRiding() instead.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bz Lbdr;bz()V
      intermediary method_29239 Lnet/minecraft/class_1297;method_29239()V
      named dismountVehicle Lnet/minecraft/entity/Entity;dismountVehicle()V
    • method_45320

      public boolean method_45320(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official m Lbdr;m(Lbdr;)Z
      intermediary method_45320 Lnet/minecraft/class_1297;method_45320(Lnet/minecraft/class_1297;)Z
      named method_45320 Lnet/minecraft/entity/Entity;method_45320(Lnet/minecraft/entity/Entity;)Z
    • stopRiding

      public void stopRiding()
      Stops riding the vehicle if present.

      For example, if player is riding on a horse, player.stopRiding() will dismount that player from the horse.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official q Lbdr;q()V
      intermediary method_5848 Lnet/minecraft/class_1297;method_5848()V
      named stopRiding Lnet/minecraft/entity/Entity;stopRiding()V
    • addPassenger

      protected void addPassenger(Entity passenger)
      Adds passenger as a passenger. This should not be called normally; call startRiding(Entity) instead. (Note that the entity to pass and the entity to call are swapped in this case; entity.startRiding(vehicle) is the equivalent of vehicle.addPassenger(entity).)
      Throws:
      IllegalStateException - when the method is called directly
      Mappings:
      Namespace Name Mixin selector
      official n Lbdr;n(Lbdr;)V
      intermediary method_5627 Lnet/minecraft/class_1297;method_5627(Lnet/minecraft/class_1297;)V
      named addPassenger Lnet/minecraft/entity/Entity;addPassenger(Lnet/minecraft/entity/Entity;)V
    • removePassenger

      protected void removePassenger(Entity passenger)
      Removes passenger from the passengers. This should not be called normally; call stopRiding() instead. (Note that vehicles are not passed to that method; entity.stopRiding() is the equivalent of vehicle.removePassenger(entity).)
      Throws:
      IllegalStateException - when the method is called directly
      Mappings:
      Namespace Name Mixin selector
      official o Lbdr;o(Lbdr;)V
      intermediary method_5793 Lnet/minecraft/class_1297;method_5793(Lnet/minecraft/class_1297;)V
      named removePassenger Lnet/minecraft/entity/Entity;removePassenger(Lnet/minecraft/entity/Entity;)V
    • canAddPassenger

      protected boolean canAddPassenger(Entity passenger)
      Returns whether entity can ride this entity.

      Returning false causes other entities to be unable to ride this entity. For example, BoatEntity uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).

      This is the opposite of canStartRiding(net.minecraft.entity.Entity).

      Returns:
      whether entity can ride this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lbdr;p(Lbdr;)Z
      intermediary method_5818 Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
      named canAddPassenger Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
    • updateTrackedPositionAndAngles

      public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DDDFFIZ)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFIZ)V
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
    • updateTrackedHeadRotation

      public void updateTrackedHeadRotation(float yaw, int interpolationSteps)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(FI)V
      intermediary method_5683 Lnet/minecraft/class_1297;method_5683(FI)V
      named updateTrackedHeadRotation Lnet/minecraft/entity/Entity;updateTrackedHeadRotation(FI)V
    • getTargetingMargin

      public float getTargetingMargin()
      Returns the margin around the entity's bounding box where the entity targeting is still successful.
      Returns:
      the margin around the entity's bounding box where the entity targeting is still successful
      API Note:
      ExplosiveProjectileEntity overrides this method to return 1.0f, which expands the ghast fireball's effective hitbox.
      Mappings:
      Namespace Name Mixin selector
      official bA Lbdr;bA()F
      intermediary method_5871 Lnet/minecraft/class_1297;method_5871()F
      named getTargetingMargin Lnet/minecraft/entity/Entity;getTargetingMargin()F
    • getRotationVector

      public Vec3d getRotationVector()
      Mappings:
      Namespace Name Mixin selector
      official bB Lbdr;bB()Leae;
      intermediary method_5720 Lnet/minecraft/class_1297;method_5720()Lnet/minecraft/class_243;
      named getRotationVector Lnet/minecraft/entity/Entity;getRotationVector()Lnet/minecraft/util/math/Vec3d;
    • getHandPosOffset

      public Vec3d getHandPosOffset(Item item)
      Returns the offset of the hand that holds item.

      This returns Vec3d.ZERO if the entity is not a player.

      Returns:
      the offset of the hand that holds item
      API Note:
      The offset is applied to the position of the firework rocket particle when used by players.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcdp;)Leae;
      intermediary method_40123 Lnet/minecraft/class_1297;method_40123(Lnet/minecraft/class_1792;)Lnet/minecraft/class_243;
      named getHandPosOffset Lnet/minecraft/entity/Entity;getHandPosOffset(Lnet/minecraft/item/Item;)Lnet/minecraft/util/math/Vec3d;
    • getRotationClient

      public Vec2f getRotationClient()
      Mappings:
      Namespace Name Mixin selector
      official bC Lbdr;bC()Lead;
      intermediary method_5802 Lnet/minecraft/class_1297;method_5802()Lnet/minecraft/class_241;
      named getRotationClient Lnet/minecraft/entity/Entity;getRotationClient()Lnet/minecraft/util/math/Vec2f;
    • getRotationVecClient

      public Vec3d getRotationVecClient()
      Mappings:
      Namespace Name Mixin selector
      official bD Lbdr;bD()Leae;
      intermediary method_5663 Lnet/minecraft/class_1297;method_5663()Lnet/minecraft/class_243;
      named getRotationVecClient Lnet/minecraft/entity/Entity;getRotationVecClient()Lnet/minecraft/util/math/Vec3d;
    • setInNetherPortal

      public void setInNetherPortal(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(Lgp;)V
      intermediary method_5717 Lnet/minecraft/class_1297;method_5717(Lnet/minecraft/class_2338;)V
      named setInNetherPortal Lnet/minecraft/entity/Entity;setInNetherPortal(Lnet/minecraft/util/math/BlockPos;)V
    • tickPortal

      protected void tickPortal()
      Mappings:
      Namespace Name Mixin selector
      official bE Lbdr;bE()V
      intermediary method_18379 Lnet/minecraft/class_1297;method_18379()V
      named tickPortal Lnet/minecraft/entity/Entity;tickPortal()V
    • getDefaultPortalCooldown

      public int getDefaultPortalCooldown()
      Returns the entity's default portal cooldown.

      This is 300 ticks by default, or 10 ticks for players.

      Returns:
      the entity's default portal cooldown
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bF Lbdr;bF()I
      intermediary method_5806 Lnet/minecraft/class_1297;method_5806()I
      named getDefaultPortalCooldown Lnet/minecraft/entity/Entity;getDefaultPortalCooldown()I
    • setVelocityClient

      public void setVelocityClient(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l(DDD)V
      intermediary method_5750 Lnet/minecraft/class_1297;method_5750(DDD)V
      named setVelocityClient Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      See Also:
      API Note:
      To send an entity status, use World.sendEntityStatus(net.minecraft.entity.Entity, byte).
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
    • animateDamage

      public void animateDamage()
      Called on the client to animate the entity's damage (the wobble).
      Mappings:
      Namespace Name Mixin selector
      official bG Lbdr;bG()V
      intermediary method_5879 Lnet/minecraft/class_1297;method_5879()V
      named animateDamage Lnet/minecraft/entity/Entity;animateDamage()V
    • getHandItems

      public Iterable<ItemStack> getHandItems()
      Returns an iterable of item stacks held in the hands.
      Returns:
      an iterable of item stacks held in the hands
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bH Lbdr;bH()Ljava/lang/Iterable;
      intermediary method_5877 Lnet/minecraft/class_1297;method_5877()Ljava/lang/Iterable;
      named getHandItems Lnet/minecraft/entity/Entity;getHandItems()Ljava/lang/Iterable;
    • getArmorItems

      public Iterable<ItemStack> getArmorItems()
      Returns an iterable of item stacks equipped as armor.
      Returns:
      an iterable of item stacks equipped as armor
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bI Lbdr;bI()Ljava/lang/Iterable;
      intermediary method_5661 Lnet/minecraft/class_1297;method_5661()Ljava/lang/Iterable;
      named getArmorItems Lnet/minecraft/entity/Entity;getArmorItems()Ljava/lang/Iterable;
    • getItemsEquipped

      public Iterable<ItemStack> getItemsEquipped()
      Returns an iterable of item stacks held in the hands or equipped as armor.
      Returns:
      an iterable of item stacks held in the hands or equipped as armor
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bJ Lbdr;bJ()Ljava/lang/Iterable;
      intermediary method_5743 Lnet/minecraft/class_1297;method_5743()Ljava/lang/Iterable;
      named getItemsEquipped Lnet/minecraft/entity/Entity;getItemsEquipped()Ljava/lang/Iterable;
    • equipStack

      public void equipStack(EquipmentSlot slot, ItemStack stack)
      Equips stack at slot.This is also used to set an entity's mainhand or offhand stack. This overwrites any stacks present in that slot without dropping them.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbdw;Lcdt;)V
      intermediary method_5673 Lnet/minecraft/class_1297;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
      named equipStack Lnet/minecraft/entity/Entity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
    • isOnFire

      public boolean isOnFire()
      Returns whether the entity is on fire and is not fire immune.
      Returns:
      whether the entity is on fire and is not fire immune
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bK Lbdr;bK()Z
      intermediary method_5809 Lnet/minecraft/class_1297;method_5809()Z
      named isOnFire Lnet/minecraft/entity/Entity;isOnFire()Z
    • hasVehicle

      public boolean hasVehicle()
      Returns whether this entity is riding an entity.

      This is the opposite of hasPassengers().

      Returns:
      whether this entity is riding an entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bL Lbdr;bL()Z
      intermediary method_5765 Lnet/minecraft/class_1297;method_5765()Z
      named hasVehicle Lnet/minecraft/entity/Entity;hasVehicle()Z
    • hasPassengers

      public boolean hasPassengers()
      Returns whether another entity is riding this entity.

      This is the opposite of hasVehicle().

      Returns:
      whether another entity is riding this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bM Lbdr;bM()Z
      intermediary method_5782 Lnet/minecraft/class_1297;method_5782()Z
      named hasPassengers Lnet/minecraft/entity/Entity;hasPassengers()Z
    • canBeRiddenInWater

      public boolean canBeRiddenInWater()
      Returns whether the passenger dismounts this entity when the entity is submerged in water.

      This is not used to check whether the entity can start riding this entity in the first place; override canAddPassenger(net.minecraft.entity.Entity) instead.

      Returns:
      whether the passenger dismounts this entity when the entity is submerged in water
      See Also:
      API Note:
      This returns true for non-living entities and SkeletonHorseEntity.
      Mappings:
      Namespace Name Mixin selector
      official bN Lbdr;bN()Z
      intermediary method_5788 Lnet/minecraft/class_1297;method_5788()Z
      named canBeRiddenInWater Lnet/minecraft/entity/Entity;canBeRiddenInWater()Z
    • setSneaking

      public void setSneaking(boolean sneaking)
      Sets whether the entity is sneaking.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(Z)V
      intermediary method_5660 Lnet/minecraft/class_1297;method_5660(Z)V
      named setSneaking Lnet/minecraft/entity/Entity;setSneaking(Z)V
    • isSneaking

      public boolean isSneaking()
      Returns whether the entity is sneaking.

      This only returns true if the entity is a player and that player is pressing the Sneak key. See also isInSneakingPose().

      Returns:
      whether the entity is sneaking
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bO Lbdr;bO()Z
      intermediary method_5715 Lnet/minecraft/class_1297;method_5715()Z
      named isSneaking Lnet/minecraft/entity/Entity;isSneaking()Z
    • bypassesSteppingEffects

      public boolean bypassesSteppingEffects()
      Returns whether the entity should bypass effects caused by stepping.

      This returns isSneaking() by default.

      Returns:
      whether the entity should bypass effects caused by stepping
      See Also:
      API Note:
      Stepping effects include magma blocks dealing fire damage, turtle eggs breaking, or sculk sensors triggering.
      Mappings:
      Namespace Name Mixin selector
      official bP Lbdr;bP()Z
      intermediary method_21749 Lnet/minecraft/class_1297;method_21749()Z
      named bypassesSteppingEffects Lnet/minecraft/entity/Entity;bypassesSteppingEffects()Z
    • bypassesLandingEffects

      public boolean bypassesLandingEffects()
      Returns whether the entity should bypass effects caused by landing on a block.

      This returns isSneaking() by default.

      Returns:
      whether the entity should bypass effects caused by landing on a block
      See Also:
      API Note:
      Landing effects include slime blocks nullifying the fall damage and slime blocks and beds bouncing the entity.
      Mappings:
      Namespace Name Mixin selector
      official bQ Lbdr;bQ()Z
      intermediary method_21750 Lnet/minecraft/class_1297;method_21750()Z
      named bypassesLandingEffects Lnet/minecraft/entity/Entity;bypassesLandingEffects()Z
    • isSneaky

      public boolean isSneaky()
      Mappings:
      Namespace Name Mixin selector
      official bR Lbdr;bR()Z
      intermediary method_21751 Lnet/minecraft/class_1297;method_21751()Z
      named isSneaky Lnet/minecraft/entity/Entity;isSneaky()Z
    • isDescending

      public boolean isDescending()
      Returns whether the entity is actively descending.

      This affects scaffolding and powder snow (if the entity can walk on it), and returns isSneaking() by default. This returns false for entities descending a ladder, since the entity is not actively doing so, instead letting the gravity to do so.

      Returns:
      whether the entity is actively descending
      Mappings:
      Namespace Name Mixin selector
      official bS Lbdr;bS()Z
      intermediary method_21752 Lnet/minecraft/class_1297;method_21752()Z
      named isDescending Lnet/minecraft/entity/Entity;isDescending()Z
    • isInSneakingPose

      public boolean isInSneakingPose()
      Returns whether the entity is in a crouching pose.

      Compared to isSneaking(), it only makes the entity appear crouching and does not bring other effects of sneaking, such as no less obvious name label rendering, no dismounting while riding, etc.

      This is used by vanilla for non-player entities to crouch, such as for foxes and cats. This is also used when the entity is a player and the player would otherwise collide with blocks (for example, when the player is in a 1.5 blocks tall tunnel).

      Returns:
      whether the entity is in a crouching pose
      Mappings:
      Namespace Name Mixin selector
      official bT Lbdr;bT()Z
      intermediary method_18276 Lnet/minecraft/class_1297;method_18276()Z
      named isInSneakingPose Lnet/minecraft/entity/Entity;isInSneakingPose()Z
    • isSprinting

      public boolean isSprinting()
      Returns whether the entity is sprinting.

      Swimming is also considered as sprinting. #setSprinting

      Returns:
      whether the entity is sprinting
      Mappings:
      Namespace Name Mixin selector
      official bU Lbdr;bU()Z
      intermediary method_5624 Lnet/minecraft/class_1297;method_5624()Z
      named isSprinting Lnet/minecraft/entity/Entity;isSprinting()Z
    • setSprinting

      public void setSprinting(boolean sprinting)
      Sets whether the entity is sprinting.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(Z)V
      intermediary method_5728 Lnet/minecraft/class_1297;method_5728(Z)V
      named setSprinting Lnet/minecraft/entity/Entity;setSprinting(Z)V
    • isSwimming

      public boolean isSwimming()
      Returns whether the entity is swimming.

      An entity is swimming if it is touching water, not riding any entities, and is sprinting. Note that to start swimming, the entity must first be submerged in water.

      Returns:
      whether the entity is swimming
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bV Lbdr;bV()Z
      intermediary method_5681 Lnet/minecraft/class_1297;method_5681()Z
      named isSwimming Lnet/minecraft/entity/Entity;isSwimming()Z
    • isInSwimmingPose

      public boolean isInSwimmingPose()
      Returns whether the entity is in swimming pose.

      This includes crawling entities and entities using elytra that aren't fall-flying. Players start crawling if they would otherwise collide with blocks (for example, when the player is in a 1 block tall tunnel).

      Returns:
      whether the entity is in swimming pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bW Lbdr;bW()Z
      intermediary method_20232 Lnet/minecraft/class_1297;method_20232()Z
      named isInSwimmingPose Lnet/minecraft/entity/Entity;isInSwimmingPose()Z
    • isCrawling

      public boolean isCrawling()
      Returns whether the entity is crawling.

      An entity is crawling if it is in swimming pose, but is not touching water. Players start crawling if they would otherwise collide with blocks (for example, when the player is in a 1 block tall tunnel).

      Returns:
      whether the entity is crawling
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bX Lbdr;bX()Z
      intermediary method_20448 Lnet/minecraft/class_1297;method_20448()Z
      named isCrawling Lnet/minecraft/entity/Entity;isCrawling()Z
    • setSwimming

      public void setSwimming(boolean swimming)
      Sets whether the entity is swimming.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h(Z)V
      intermediary method_5796 Lnet/minecraft/class_1297;method_5796(Z)V
      named setSwimming Lnet/minecraft/entity/Entity;setSwimming(Z)V
    • isGlowingLocal

      public final boolean isGlowingLocal()
      Returns whether the entity is glowing, without checking the entity flags.
      Returns:
      whether the entity is glowing, without checking the entity flags
      See Also:
      API Note:
      This is only used to copy entity data to NBT when bucketing.
      Mappings:
      Namespace Name Mixin selector
      official bY Lbdr;bY()Z
      intermediary method_36361 Lnet/minecraft/class_1297;method_36361()Z
      named isGlowingLocal Lnet/minecraft/entity/Entity;isGlowingLocal()Z
    • setGlowing

      public final void setGlowing(boolean glowing)
      Sets whether the entity is glowing.

      Glowing entities have an outline when rendered.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lbdr;i(Z)V
      intermediary method_5834 Lnet/minecraft/class_1297;method_5834(Z)V
      named setGlowing Lnet/minecraft/entity/Entity;setGlowing(Z)V
    • isGlowing

      public boolean isGlowing()
      Returns whether the entity is glowing, checking the entity flags on the client.

      Glowing entities have an outline when rendered.

      Returns:
      whether the entity is glowing, checking the entity flags on the client
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bZ Lbdr;bZ()Z
      intermediary method_5851 Lnet/minecraft/class_1297;method_5851()Z
      named isGlowing Lnet/minecraft/entity/Entity;isGlowing()Z
    • isInvisible

      public boolean isInvisible()
      Returns whether the entity is invisible to everyone.

      Invisibility status effect and ArmorStandEntity's Invisible NBT key can cause an entity to be invisible.

      Returns:
      whether the entity is invisible to everyone
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ca Lbdr;ca()Z
      intermediary method_5767 Lnet/minecraft/class_1297;method_5767()Z
      named isInvisible Lnet/minecraft/entity/Entity;isInvisible()Z
    • isInvisibleTo

      public boolean isInvisibleTo(PlayerEntity player)
      Returns whether the entity is invisible to player.

      Spectators can see all entities, and entities on the same team as player's can see all entities if AbstractTeam.shouldShowFriendlyInvisibles() returns true. Otherwise, this returns isInvisible().

      Returns:
      whether the entity is invisible to player
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Lbwp;)Z
      intermediary method_5756 Lnet/minecraft/class_1297;method_5756(Lnet/minecraft/class_1657;)Z
      named isInvisibleTo Lnet/minecraft/entity/Entity;isInvisibleTo(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • updateEventHandler

      public void updateEventHandler(BiConsumer<EntityGameEventHandler<?>,ServerWorld> callback)
      Called when the entity is loaded to register game event handlers.

      Entities that listen to game events should first create an instance of EntityGameEventHandler in the entity's constructor, and override this to call callback. For example:

      
       if (this.world instanceof ServerWorld serverWorld) {
         callback.accept(this.handler, serverWorld);
       }
       
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Ljava/util/function/BiConsumer;)V
      intermediary method_42147 Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
      named updateEventHandler Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
    • getScoreboardTeam

      @Nullable public @Nullable AbstractTeam getScoreboardTeam()
      Returns the scoreboard team the entity belongs to, or null if there is none.
      Returns:
      the scoreboard team the entity belongs to, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official cb Lbdr;cb()Lebe;
      intermediary method_5781 Lnet/minecraft/class_1297;method_5781()Lnet/minecraft/class_270;
      named getScoreboardTeam Lnet/minecraft/entity/Entity;getScoreboardTeam()Lnet/minecraft/scoreboard/AbstractTeam;
    • isTeammate

      public boolean isTeammate(Entity other)
      Returns whether this entity and other are in the same team.

      This returns false if this entity is not in any team.

      Returns:
      whether this entity and other are in the same team
      Mappings:
      Namespace Name Mixin selector
      official q Lbdr;q(Lbdr;)Z
      intermediary method_5722 Lnet/minecraft/class_1297;method_5722(Lnet/minecraft/class_1297;)Z
      named isTeammate Lnet/minecraft/entity/Entity;isTeammate(Lnet/minecraft/entity/Entity;)Z
    • isTeamPlayer

      public boolean isTeamPlayer(AbstractTeam team)
      Returns whether this entity is in team.

      This returns false if this entity is not in any team.

      Returns:
      whether this entity is in team
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lebe;)Z
      intermediary method_5645 Lnet/minecraft/class_1297;method_5645(Lnet/minecraft/class_270;)Z
      named isTeamPlayer Lnet/minecraft/entity/Entity;isTeamPlayer(Lnet/minecraft/scoreboard/AbstractTeam;)Z
    • setInvisible

      public void setInvisible(boolean invisible)
      Sets whether the entity is invisible to everyone.

      Invisibility status effect and ArmorStandEntity's Invisible NBT key can cause an entity to be invisible.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j(Z)V
      intermediary method_5648 Lnet/minecraft/class_1297;method_5648(Z)V
      named setInvisible Lnet/minecraft/entity/Entity;setInvisible(Z)V
    • getFlag

      protected boolean getFlag(int index)
      Returns the entity flag with index flag.

      Entity flag is used to track whether the entity is sneaking, sprinting, invisible, etc.

      Returns:
      the entity flag with index flag
      Mappings:
      Namespace Name Mixin selector
      official h Lbdr;h(I)Z
      intermediary method_5795 Lnet/minecraft/class_1297;method_5795(I)Z
      named getFlag Lnet/minecraft/entity/Entity;getFlag(I)Z
    • setFlag

      protected void setFlag(int index, boolean value)
      Sets the entity flag with index flag to value.

      Entity flag is used to track whether the entity is sneaking, sprinting, invisible, etc.

      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(IZ)V
      intermediary method_5729 Lnet/minecraft/class_1297;method_5729(IZ)V
      named setFlag Lnet/minecraft/entity/Entity;setFlag(IZ)V
    • getMaxAir

      public int getMaxAir()
      Returns the maximum amount of air the entity can hold, in ticks.

      Most entities have the max air of 300 ticks, or 15 seconds. DolphinEntity has 4800 ticks or 4 minutes; AxolotlEntity has 6000 ticks or 5 minutes. Note that this does not include enchantments.

      Returns:
      the maximum amount of air the entity can hold, in ticks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cc Lbdr;cc()I
      intermediary method_5748 Lnet/minecraft/class_1297;method_5748()I
      named getMaxAir Lnet/minecraft/entity/Entity;getMaxAir()I
    • getAir

      public int getAir()
      Returns the air left for the entity, in ticks.

      Air is decremented every tick if the entity's eye is submerged in water. If this is -20, the air will be reset to 0 and the entity takes a drowning damage.

      Returns:
      the air left for the entity, in ticks
      See Also:
      API Note:
      WaterCreatureEntity reuses the air to indicate the entity's air breathed when the entity is in water. If the entity is not touching a water, the air decrements, and the entity drowns in the same way as other entities.
      Mappings:
      Namespace Name Mixin selector
      official cd Lbdr;cd()I
      intermediary method_5669 Lnet/minecraft/class_1297;method_5669()I
      named getAir Lnet/minecraft/entity/Entity;getAir()I
    • setAir

      public void setAir(int air)
      Sets the air left for the entity in ticks.

      Air is decremented every tick if the entity's eye is submerged in water. If this is -20, the air will be reset to 0 and the entity takes a drowning damage.

      See Also:
      API Note:
      WaterCreatureEntity reuses the air to indicate the entity's air breathed when the entity is in water. If the entity is not touching a water, the air decrements, and the entity drowns in the same way as other entities.
      Mappings:
      Namespace Name Mixin selector
      official i Lbdr;i(I)V
      intermediary method_5855 Lnet/minecraft/class_1297;method_5855(I)V
      named setAir Lnet/minecraft/entity/Entity;setAir(I)V
    • getFrozenTicks

      public int getFrozenTicks()
      Returns how long the entity is freezing, in ticks.

      If this is equal to or above getMinFreezeDamageTicks(), the entity receives freezing damage.

      Returns:
      how long the entity is freezing, in ticks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ce Lbdr;ce()I
      intermediary method_32312 Lnet/minecraft/class_1297;method_32312()I
      named getFrozenTicks Lnet/minecraft/entity/Entity;getFrozenTicks()I
    • setFrozenTicks

      public void setFrozenTicks(int frozenTicks)
      Sets how long the entity is freezing in ticks.

      If this is equal to or above getMinFreezeDamageTicks(), the entity receives freezing damage.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbdr;j(I)V
      intermediary method_32317 Lnet/minecraft/class_1297;method_32317(I)V
      named setFrozenTicks Lnet/minecraft/entity/Entity;setFrozenTicks(I)V
    • getFreezingScale

      public float getFreezingScale()
      Returns the current freezing scale.

      Freezing scale is calculated as Math.min(1, getFrozenTicks() / getMinFreezeDamageTicks()).

      Returns:
      the current freezing scale
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cf Lbdr;cf()F
      intermediary method_32313 Lnet/minecraft/class_1297;method_32313()F
      named getFreezingScale Lnet/minecraft/entity/Entity;getFreezingScale()F
    • isFrozen

      public boolean isFrozen()
      Returns whether the entity is frozen.

      Frozen entities take freezing damage. Entity becomes frozen getMinFreezeDamageTicks() ticks after starting to freeze.

      Returns:
      whether the entity is frozen
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cg Lbdr;cg()Z
      intermediary method_32314 Lnet/minecraft/class_1297;method_32314()Z
      named isFrozen Lnet/minecraft/entity/Entity;isFrozen()Z
    • getMinFreezeDamageTicks

      public int getMinFreezeDamageTicks()
      Returns how long it takes for the entity to be completely frozen and receive freezing damage, in ticks.
      Returns:
      how long it takes for the entity to be completely frozen and receive freezing damage, in ticks
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ch Lbdr;ch()I
      intermediary method_32315 Lnet/minecraft/class_1297;method_32315()I
      named getMinFreezeDamageTicks Lnet/minecraft/entity/Entity;getMinFreezeDamageTicks()I
    • onStruckByLightning

      public void onStruckByLightning(ServerWorld world, LightningEntity lightning)
      Called when the entity is struck by lightning. This sets the entity on fire and deals lightning damage by default; entities that do not take such damage should override this method to do nothing.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lahm;Lbef;)V
      intermediary method_5800 Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
      named onStruckByLightning Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
    • onBubbleColumnSurfaceCollision

      public void onBubbleColumnSurfaceCollision(boolean drag)
      Called when the entity collides with a bubble column with an air above.

      This applies the bubble column velocity by default. BoatEntity uses this to spawn splash particles.

      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k(Z)V
      intermediary method_5700 Lnet/minecraft/class_1297;method_5700(Z)V
      named onBubbleColumnSurfaceCollision Lnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(Z)V
    • onBubbleColumnCollision

      public void onBubbleColumnCollision(boolean drag)
      Called when the entity collides with a bubble column without an air above.

      This applies the bubble column velocity by default.

      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l(Z)V
      intermediary method_5764 Lnet/minecraft/class_1297;method_5764(Z)V
      named onBubbleColumnCollision Lnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)V
    • onKilledOther

      public boolean onKilledOther(ServerWorld world, LivingEntity other)
      Called when this entity kills other.
      Returns:
      whether the entity died (and not converted to another entity)
      API Note:
      ZombieEntity overrides this to convert the killed villager to a zombie villager.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lahm;Lbeg;)Z
      intermediary method_5874 Lnet/minecraft/class_1297;method_5874(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
      named onKilledOther Lnet/minecraft/entity/Entity;onKilledOther(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • limitFallDistance

      public void limitFallDistance()
      Called when this entity is fall flying or on a lead.

      Limits this entity's fallDistance if its downward velocity isn't fast enough in order to prevent unwarranted fall damage.

      Mappings:
      Namespace Name Mixin selector
      official ci Lbdr;ci()V
      intermediary method_45318 Lnet/minecraft/class_1297;method_45318()V
      named limitFallDistance Lnet/minecraft/entity/Entity;limitFallDistance()V
    • onLanding

      public void onLanding()
      Called when the entity lands on a block.
      Mappings:
      Namespace Name Mixin selector
      official n Lbdr;n()V
      intermediary method_38785 Lnet/minecraft/class_1297;method_38785()V
      named onLanding Lnet/minecraft/entity/Entity;onLanding()V
    • pushOutOfBlocks

      protected void pushOutOfBlocks(double x, double y, double z)
      Pushes this entity out of blocks.
      Parameters:
      x - the entity's X position
      y - the entity bounding box's center Y position
      z - the entity's Z position
      API Note:
      This is used by ItemEntity and ExperienceOrbEntity.
      Mappings:
      Namespace Name Mixin selector
      official m Lbdr;m(DDD)V
      intermediary method_5632 Lnet/minecraft/class_1297;method_5632(DDD)V
      named pushOutOfBlocks Lnet/minecraft/entity/Entity;pushOutOfBlocks(DDD)V
    • slowMovement

      public void slowMovement(BlockState state, Vec3d multiplier)
      Calls onLanding() and slows this entity.

      This means that the entity will avoid taking fall damage.

      API Note:
      This should be called inside AbstractBlock.onEntityCollision(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity). This is used by cobwebs, sweet berries, and powder snow.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcyt;Leae;)V
      intermediary method_5844 Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V
      named slowMovement Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
    • removeClickEvents

      private static Text removeClickEvents(Text textComponent)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Lss;)Lss;
      intermediary method_5856 Lnet/minecraft/class_1297;method_5856(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
      named removeClickEvents Lnet/minecraft/entity/Entity;removeClickEvents(Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
    • getName

      public Text getName()
      Returns the name of this object.

      This should return the custom name if it exists, otherwise the default name. This should not have styling applied.

      Specified by:
      getName in interface Nameable
      Returns:
      the name of this object
      Mappings:
      Namespace Name Mixin selector
      official aa Lbcq;aa()Lss;
      intermediary method_5477 Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
    • getDefaultName

      protected Text getDefaultName()
      Returns the default name of the entity.
      Returns:
      the default name of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cj Lbdr;cj()Lss;
      intermediary method_23315 Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;
      named getDefaultName Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
    • isPartOf

      public boolean isPartOf(Entity entity)
      Returns whether this entity is part of entity.

      This is just an equality check for all entities except the ender dragon part. An ender dragon is composed of several entity parts; each part returns true for part.isPartOf(dragon).

      Returns:
      whether this entity is part of entity
      Mappings:
      Namespace Name Mixin selector
      official r Lbdr;r(Lbdr;)Z
      intermediary method_5779 Lnet/minecraft/class_1297;method_5779(Lnet/minecraft/class_1297;)Z
      named isPartOf Lnet/minecraft/entity/Entity;isPartOf(Lnet/minecraft/entity/Entity;)Z
    • getHeadYaw

      public float getHeadYaw()
      Returns the head yaw of the entity.
      Returns:
      the head yaw of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ck Lbdr;ck()F
      intermediary method_5791 Lnet/minecraft/class_1297;method_5791()F
      named getHeadYaw Lnet/minecraft/entity/Entity;getHeadYaw()F
    • setHeadYaw

      public void setHeadYaw(float headYaw)
      Sets the head yaw of this entity.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l(F)V
      intermediary method_5847 Lnet/minecraft/class_1297;method_5847(F)V
      named setHeadYaw Lnet/minecraft/entity/Entity;setHeadYaw(F)V
    • setBodyYaw

      public void setBodyYaw(float bodyYaw)
      Sets the body yaw of this entity.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lbdr;m(F)V
      intermediary method_5636 Lnet/minecraft/class_1297;method_5636(F)V
      named setBodyYaw Lnet/minecraft/entity/Entity;setBodyYaw(F)V
    • isAttackable

      public boolean isAttackable()
      Returns whether the entity can be attacked by players.

      Note that this is not called for most entities defined in vanilla as unattackable (such as ItemEntity and ExperienceOrbEntity) as trying to attack them kicks the player.

      Returns:
      whether the entity can be attacked by players
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cl Lbdr;cl()Z
      intermediary method_5732 Lnet/minecraft/class_1297;method_5732()Z
      named isAttackable Lnet/minecraft/entity/Entity;isAttackable()Z
    • handleAttack

      public boolean handleAttack(Entity attacker)
      Handles a player attacking the entity. This is called before damage(net.minecraft.entity.damage.DamageSource, float) and can be used to restrict players from attacking the entity by returning true.
      Returns:
      whether to stop handling the attack
      See Also:
      API Note:
      For example, ArmorStandEntity checks whether the player can modify blocks at the entity's position.
      Mappings:
      Namespace Name Mixin selector
      official s Lbdr;s(Lbdr;)Z
      intermediary method_5698 Lnet/minecraft/class_1297;method_5698(Lnet/minecraft/class_1297;)Z
      named handleAttack Lnet/minecraft/entity/Entity;handleAttack(Lnet/minecraft/entity/Entity;)Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isInvulnerableTo

      public boolean isInvulnerableTo(DamageSource damageSource)
      Returns whether the entity is invulnerable to damageSource.

      This can be overridden to make the entity invulnerable to some damages, but super.isInvulnerableTo() should be called in this case.

      Returns:
      whether the entity is invulnerable to damageSource
      See Also:
      Implementation Note:
      Entity is invulnerable to all damages if it is removed, and is invulnerable to all damages except DamageSource.OUT_OF_WORLD or damages from creative mode players if the entity is invulnerable. This also checks isFireImmune().
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lbcz;)Z
      intermediary method_5679 Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Z
      named isInvulnerableTo Lnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
    • isInvulnerable

      public boolean isInvulnerable()
      Returns whether the entity is invulnerable.

      This is saved on the Invulnerable NBT key.

      Returns:
      whether the entity is invulnerable
      See Also:
      Implementation Note:
      Invulnerable entities are immune from all damages except DamageSource.OUT_OF_WORLD and damages by creative mode players by default.
      Mappings:
      Namespace Name Mixin selector
      official cm Lbdr;cm()Z
      intermediary method_5655 Lnet/minecraft/class_1297;method_5655()Z
      named isInvulnerable Lnet/minecraft/entity/Entity;isInvulnerable()Z
    • setInvulnerable

      public void setInvulnerable(boolean invulnerable)
      Sets whether the entity is invulnerable.

      This is saved on the Invulnerable NBT key.

      See Also:
      Implementation Note:
      Invulnerable entities are immune from all damages except DamageSource.OUT_OF_WORLD and damages by creative mode players by default.
      Mappings:
      Namespace Name Mixin selector
      official m Lbdr;m(Z)V
      intermediary method_5684 Lnet/minecraft/class_1297;method_5684(Z)V
      named setInvulnerable Lnet/minecraft/entity/Entity;setInvulnerable(Z)V
    • copyPositionAndRotation

      public void copyPositionAndRotation(Entity entity)
      Sets the entity's position and rotation the same as entity.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official t Lbdr;t(Lbdr;)V
      intermediary method_5719 Lnet/minecraft/class_1297;method_5719(Lnet/minecraft/class_1297;)V
      named copyPositionAndRotation Lnet/minecraft/entity/Entity;copyPositionAndRotation(Lnet/minecraft/entity/Entity;)V
    • copyFrom

      public void copyFrom(Entity original)
      Copies serializable data and nether portal data from original.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official u Lbdr;u(Lbdr;)V
      intermediary method_5878 Lnet/minecraft/class_1297;method_5878(Lnet/minecraft/class_1297;)V
      named copyFrom Lnet/minecraft/entity/Entity;copyFrom(Lnet/minecraft/entity/Entity;)V
    • moveToWorld

      @Nullable public @Nullable Entity moveToWorld(ServerWorld destination)
      Moves this entity to another world.

      Note all entities except server player entities are completely recreated at the destination.

      Returns:
      the entity in the other world
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lahm;)Lbdr;
      intermediary method_5731 Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
      named moveToWorld Lnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
    • removeFromDimension

      protected void removeFromDimension()
      Removes this entity from the current dimension.

      This calls setRemoved(net.minecraft.entity.Entity.RemovalReason) by default. Subclasses can add other logics, such as setting the stack count of equipped stacks to zero.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cn Lbdr;cn()V
      intermediary method_30076 Lnet/minecraft/class_1297;method_30076()V
      named removeFromDimension Lnet/minecraft/entity/Entity;removeFromDimension()V
    • getTeleportTarget

      @Nullable protected @Nullable TeleportTarget getTeleportTarget(ServerWorld destination)
      Returns a TeleportTarget for the entity based on its current and destination worlds, plus any nether portals that may be present.
      Returns:
      a TeleportTarget for the entity based on its current and destination worlds, plus any nether portals that may be present
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lahm;)Lduh;
      intermediary method_30329 Lnet/minecraft/class_1297;method_30329(Lnet/minecraft/class_3218;)Lnet/minecraft/class_5454;
      named getTeleportTarget Lnet/minecraft/entity/Entity;getTeleportTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/TeleportTarget;
    • positionInPortal

      protected Vec3d positionInPortal(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect)
      Returns the entity's position in the portal after teleportation.
      Returns:
      the entity's position in the portal after teleportation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lgv$a;Lk$a;)Leae;
      intermediary method_30633 Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;
      named positionInPortal Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
    • getPortalRect

      protected Optional<BlockLocating.Rectangle> getPortalRect(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder)
      Returns the portal rect at destPos.
      Returns:
      the portal rect at destPos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lahm;Lgp;ZLdak;)Ljava/util/Optional;
      intermediary method_30330 Lnet/minecraft/class_1297;method_30330(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;ZLnet/minecraft/class_2784;)Ljava/util/Optional;
      named getPortalRect Lnet/minecraft/entity/Entity;getPortalRect(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Ljava/util/Optional;
    • canUsePortals

      public boolean canUsePortals()
      Returns whether the entity can use nether portals and end portals.

      EnderDragonEntity, WitherEntity, and FishingBobberEntity cannot use portals.

      Returns:
      whether the entity can use nether portals and end portals
      Mappings:
      Namespace Name Mixin selector
      official co Lbdr;co()Z
      intermediary method_5822 Lnet/minecraft/class_1297;method_5822()Z
      named canUsePortals Lnet/minecraft/entity/Entity;canUsePortals()Z
    • getEffectiveExplosionResistance

      public float getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max)
      Returns the blast resistance of blockState for an explosion caused by this entity.
      Returns:
      the blast resistance of blockState for an explosion caused by this entity
      See Also:
      API Note:
      WitherSkullEntity overrides this to implement the "charged/blue skull" behavior.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcjo;Lcjc;Lgp;Lcyt;Ldtj;F)F
      intermediary method_5774 Lnet/minecraft/class_1297;method_5774(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;F)F
      named getEffectiveExplosionResistance Lnet/minecraft/entity/Entity;getEffectiveExplosionResistance(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;F)F
    • canExplosionDestroyBlock

      public boolean canExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower)
      Returns whether explosion from this entity can destroy state.
      Returns:
      whether explosion from this entity can destroy state
      See Also:
      API Note:
      This is used by TntMinecartEntity to prevent the rail from being destroyed by explosion.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcjo;Lcjc;Lgp;Lcyt;F)Z
      intermediary method_5853 Lnet/minecraft/class_1297;method_5853(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)Z
      named canExplosionDestroyBlock Lnet/minecraft/entity/Entity;canExplosionDestroyBlock(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;F)Z
    • getSafeFallDistance

      public int getSafeFallDistance()
      Returns the maximum height of a fall the entity takes during pathfinding.
      Returns:
      the maximum height of a fall the entity takes during pathfinding
      Mappings:
      Namespace Name Mixin selector
      official cp Lbdr;cp()I
      intermediary method_5850 Lnet/minecraft/class_1297;method_5850()I
      named getSafeFallDistance Lnet/minecraft/entity/Entity;getSafeFallDistance()I
    • canAvoidTraps

      public boolean canAvoidTraps()
      Returns whether the entity cannot trigger pressure plates or tripwires.

      BatEntity is the only entity in vanilla that can avoid traps.

      Returns:
      whether the entity cannot trigger pressure plates or tripwires
      Mappings:
      Namespace Name Mixin selector
      official cq Lbdr;cq()Z
      intermediary method_5696 Lnet/minecraft/class_1297;method_5696()Z
      named canAvoidTraps Lnet/minecraft/entity/Entity;canAvoidTraps()Z
    • populateCrashReport

      public void populateCrashReport(CrashReportSection section)
      Populates the crash report section to include the entity's information.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lo;)V
      intermediary method_5819 Lnet/minecraft/class_1297;method_5819(Lnet/minecraft/class_129;)V
      named populateCrashReport Lnet/minecraft/entity/Entity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
    • doesRenderOnFire

      public boolean doesRenderOnFire()
      Returns whether an entity should render as being on fire.

      This returns whether the entity is on fire and is not a spectator.

      Returns:
      whether an entity should render as being on fire
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cr Lbdr;cr()Z
      intermediary method_5862 Lnet/minecraft/class_1297;method_5862()Z
      named doesRenderOnFire Lnet/minecraft/entity/Entity;doesRenderOnFire()Z
    • setUuid

      public void setUuid(UUID uuid)
      Sets the UUID of the entity to uuid.

      This should not be called after spawning the entity.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbdr;a_(Ljava/util/UUID;)V
      intermediary method_5826 Lnet/minecraft/class_1297;method_5826(Ljava/util/UUID;)V
      named setUuid Lnet/minecraft/entity/Entity;setUuid(Ljava/util/UUID;)V
    • getUuid

      public UUID getUuid()
      Specified by:
      getUuid in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official cs Ldcj;cs()Ljava/util/UUID;
      intermediary method_5667 Lnet/minecraft/class_5568;method_5667()Ljava/util/UUID;
      named getUuid Lnet/minecraft/world/entity/EntityLike;getUuid()Ljava/util/UUID;
    • getUuidAsString

      public String getUuidAsString()
      Returns the entity's UUID as string.

      This is a shortcut of getUuid().toString().

      Returns:
      the entity's UUID as string
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ct Lbdr;ct()Ljava/lang/String;
      intermediary method_5845 Lnet/minecraft/class_1297;method_5845()Ljava/lang/String;
      named getUuidAsString Lnet/minecraft/entity/Entity;getUuidAsString()Ljava/lang/String;
    • getEntityName

      public String getEntityName()
      Returns the name uniquely identifying the entity.

      Unlike getName(), this is guaranteed to be unique. This is the UUID for all entities except players (which use the player's username). This is mostly used when passing the player name to net.minecraft.scoreboard.Scoreboard methods.

      Returns:
      the name uniquely identifying the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cu Lbdr;cu()Ljava/lang/String;
      intermediary method_5820 Lnet/minecraft/class_1297;method_5820()Ljava/lang/String;
      named getEntityName Lnet/minecraft/entity/Entity;getEntityName()Ljava/lang/String;
    • isPushedByFluids

      public boolean isPushedByFluids()
      Returns whether the entity is pushed by fluids.
      Returns:
      whether the entity is pushed by fluids
      API Note:
      Aquatic mobs should override this to return false. Players are not pushed by fluids if they can fly (e.g. because of game mode).
      Mappings:
      Namespace Name Mixin selector
      official cv Lbdr;cv()Z
      intermediary method_5675 Lnet/minecraft/class_1297;method_5675()Z
      named isPushedByFluids Lnet/minecraft/entity/Entity;isPushedByFluids()Z
    • getRenderDistanceMultiplier

      public static double getRenderDistanceMultiplier()
      Returns the entity render distance multiplier.

      This is only usable on the client.

      Returns:
      the entity render distance multiplier
      Mappings:
      Namespace Name Mixin selector
      official cw Lbdr;cw()D
      intermediary method_5824 Lnet/minecraft/class_1297;method_5824()D
      named getRenderDistanceMultiplier Lnet/minecraft/entity/Entity;getRenderDistanceMultiplier()D
    • setRenderDistanceMultiplier

      public static void setRenderDistanceMultiplier(double value)
      Sets the render distance multiplier.

      This is only used on the client.

      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(D)V
      intermediary method_5840 Lnet/minecraft/class_1297;method_5840(D)V
      named setRenderDistanceMultiplier Lnet/minecraft/entity/Entity;setRenderDistanceMultiplier(D)V
    • getDisplayName

      public Text getDisplayName()
      Returns the display name of this object.

      By default, this returns the result of Nameable.getName(). The return value can have styling applied.

      Specified by:
      getDisplayName in interface Nameable
      Returns:
      the display name of this object
      Mappings:
      Namespace Name Mixin selector
      official C_ Lbcq;C_()Lss;
      intermediary method_5476 Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;
      named getDisplayName Lnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;
    • setCustomName

      public void setCustomName(@Nullable @Nullable Text name)
      Sets the custom name of the entity to name (or null to remove the custom name).
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lss;)V
      intermediary method_5665 Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)V
      named setCustomName Lnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)V
    • getCustomName

      @Nullable public @Nullable Text getCustomName()
      Returns the custom name of this object, or null if there is none.
      Specified by:
      getCustomName in interface Nameable
      Returns:
      the custom name of this object, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official ac Lbcq;ac()Lss;
      intermediary method_5797 Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
      named getCustomName Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
    • hasCustomName

      public boolean hasCustomName()
      Returns whether this object has a custom name.
      Specified by:
      hasCustomName in interface Nameable
      Returns:
      whether this object has a custom name
      Mappings:
      Namespace Name Mixin selector
      official ab Lbcq;ab()Z
      intermediary method_16914 Lnet/minecraft/class_1275;method_16914()Z
      named hasCustomName Lnet/minecraft/util/Nameable;hasCustomName()Z
    • setCustomNameVisible

      public void setCustomNameVisible(boolean visible)
      Sets whether the custom name should be shown.

      This is stored on CustomNameVisible NBT key.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lbdr;n(Z)V
      intermediary method_5880 Lnet/minecraft/class_1297;method_5880(Z)V
      named setCustomNameVisible Lnet/minecraft/entity/Entity;setCustomNameVisible(Z)V
    • isCustomNameVisible

      public boolean isCustomNameVisible()
      Returns whether the custom name should be shown.

      This is stored on CustomNameVisible NBT key.

      Returns:
      whether the custom name should be shown
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cx Lbdr;cx()Z
      intermediary method_5807 Lnet/minecraft/class_1297;method_5807()Z
      named isCustomNameVisible Lnet/minecraft/entity/Entity;isCustomNameVisible()Z
    • teleport

      public final void teleport(double destX, double destY, double destZ)
      Teleports the entity to the given position, loading the chunk with ChunkTicketType.POST_TELEPORT.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lbdr;n(DDD)V
      intermediary method_20620 Lnet/minecraft/class_1297;method_20620(DDD)V
      named teleport Lnet/minecraft/entity/Entity;teleport(DDD)V
    • requestTeleportAndDismount

      public void requestTeleportAndDismount(double destX, double destY, double destZ)
      Requests the entity to teleport to the given position. If the entity is a player, this also dismounts the player.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DDD)V
      intermediary method_33567 Lnet/minecraft/class_1297;method_33567(DDD)V
      named requestTeleportAndDismount Lnet/minecraft/entity/Entity;requestTeleportAndDismount(DDD)V
    • requestTeleport

      public void requestTeleport(double destX, double destY, double destZ)
      Requests the entity to teleport to the given position.

      For players, this sends the teleport packet. For other entities, this just sets the position of the entity and its passengers.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(DDD)V
      intermediary method_5859 Lnet/minecraft/class_1297;method_5859(DDD)V
      named requestTeleport Lnet/minecraft/entity/Entity;requestTeleport(DDD)V
    • requestTeleportOffset

      public void requestTeleportOffset(double offsetX, double offsetY, double offsetZ)
      Requests the entity to teleport to the current position offset by the given amount.

      For players, this sends the teleport packet. For other entities, this just sets the position of the entity and its passengers.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(DDD)V
      intermediary method_45166 Lnet/minecraft/class_1297;method_45166(DDD)V
      named requestTeleportOffset Lnet/minecraft/entity/Entity;requestTeleportOffset(DDD)V
    • shouldRenderName

      public boolean shouldRenderName()
      Returns whether to render the name of the entity.

      This returns true for players and isCustomNameVisible() for other entities.

      Returns:
      whether to render the name of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cy Lbdr;cy()Z
      intermediary method_5733 Lnet/minecraft/class_1297;method_5733()Z
      named shouldRenderName Lnet/minecraft/entity/Entity;shouldRenderName()Z
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Labn;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • reinitDimensions

      @Deprecated protected void reinitDimensions()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official cz Lbdr;cz()V
      intermediary method_46396 Lnet/minecraft/class_1297;method_46396()V
      named reinitDimensions Lnet/minecraft/entity/Entity;reinitDimensions()V
    • calculateDimensions

      public void calculateDimensions()
      Calculates and sets the dimension (bounding box) of the entity and refreshes its position.
      Mappings:
      Namespace Name Mixin selector
      official d_ Lbdr;d_()V
      intermediary method_18382 Lnet/minecraft/class_1297;method_18382()V
      named calculateDimensions Lnet/minecraft/entity/Entity;calculateDimensions()V
    • getHorizontalFacing

      public Direction getHorizontalFacing()
      Mappings:
      Namespace Name Mixin selector
      official cA Lbdr;cA()Lgv;
      intermediary method_5735 Lnet/minecraft/class_1297;method_5735()Lnet/minecraft/class_2350;
      named getHorizontalFacing Lnet/minecraft/entity/Entity;getHorizontalFacing()Lnet/minecraft/util/math/Direction;
    • getMovementDirection

      public Direction getMovementDirection()
      Mappings:
      Namespace Name Mixin selector
      official cB Lbdr;cB()Lgv;
      intermediary method_5755 Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
      named getMovementDirection Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
    • getHoverEvent

      protected HoverEvent getHoverEvent()
      Returns the hover event referencing this entity.
      Returns:
      the hover event referencing this entity
      Mappings:
      Namespace Name Mixin selector
      official cC Lbdr;cC()Lsx;
      intermediary method_5769 Lnet/minecraft/class_1297;method_5769()Lnet/minecraft/class_2568;
      named getHoverEvent Lnet/minecraft/entity/Entity;getHoverEvent()Lnet/minecraft/text/HoverEvent;
    • canBeSpectated

      public boolean canBeSpectated(ServerPlayerEntity spectator)
      Returns whether spectator can spectate this entity.

      Spectator players (other than themselves) cannot be spectated.

      Returns:
      whether spectator can spectate this entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lahn;)Z
      intermediary method_5680 Lnet/minecraft/class_1297;method_5680(Lnet/minecraft/class_3222;)Z
      named canBeSpectated Lnet/minecraft/entity/Entity;canBeSpectated(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
    • getBoundingBox

      public final Box getBoundingBox()
      Specified by:
      getBoundingBox in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official cD Ldcj;cD()Ldzz;
      intermediary method_5829 Lnet/minecraft/class_5568;method_5829()Lnet/minecraft/class_238;
      named getBoundingBox Lnet/minecraft/world/entity/EntityLike;getBoundingBox()Lnet/minecraft/util/math/Box;
    • getVisibilityBoundingBox

      public Box getVisibilityBoundingBox()
      Mappings:
      Namespace Name Mixin selector
      official cE Lbdr;cE()Ldzz;
      intermediary method_5830 Lnet/minecraft/class_1297;method_5830()Lnet/minecraft/class_238;
      named getVisibilityBoundingBox Lnet/minecraft/entity/Entity;getVisibilityBoundingBox()Lnet/minecraft/util/math/Box;
    • calculateBoundsForPose

      protected Box calculateBoundsForPose(EntityPose pos)
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(Lbes;)Ldzz;
      intermediary method_20343 Lnet/minecraft/class_1297;method_20343(Lnet/minecraft/class_4050;)Lnet/minecraft/class_238;
      named calculateBoundsForPose Lnet/minecraft/entity/Entity;calculateBoundsForPose(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/util/math/Box;
    • setBoundingBox

      public final void setBoundingBox(Box boundingBox)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Ldzz;)V
      intermediary method_5857 Lnet/minecraft/class_1297;method_5857(Lnet/minecraft/class_238;)V
      named setBoundingBox Lnet/minecraft/entity/Entity;setBoundingBox(Lnet/minecraft/util/math/Box;)V
    • getEyeHeight

      protected float getEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbes;Lbds;)F
      intermediary method_18378 Lnet/minecraft/class_1297;method_18378(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getEyeHeight Lnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • getEyeHeight

      public float getEyeHeight(EntityPose pose)
      Returns the eye height for pose.
      Returns:
      the eye height for pose
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(Lbes;)F
      intermediary method_18381 Lnet/minecraft/class_1297;method_18381(Lnet/minecraft/class_4050;)F
      named getEyeHeight Lnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;)F
    • getStandingEyeHeight

      public final float getStandingEyeHeight()
      Returns the standing eye height.

      This is used for calculating the leash offset.

      Returns:
      the standing eye height
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cF Lbdr;cF()F
      intermediary method_5751 Lnet/minecraft/class_1297;method_5751()F
      named getStandingEyeHeight Lnet/minecraft/entity/Entity;getStandingEyeHeight()F
    • getLeashOffset

      public Vec3d getLeashOffset(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official n Lbdr;n(F)Leae;
      intermediary method_45321 Lnet/minecraft/class_1297;method_45321(F)Lnet/minecraft/class_243;
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset(F)Lnet/minecraft/util/math/Vec3d;
    • getLeashOffset

      protected Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from getLeashPos(float); this method is called on the entity which a leash is attached to.

      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cG Lbdr;cG()Leae;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
    • getStackReference

      public StackReference getStackReference(int mappedIndex)
      Obtains a stack reference to be modified. Used by commands like /loot or /item.
      Parameters:
      mappedIndex - the mapped index as given by the item slot argument
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lbdr;k(I)Lbey;
      intermediary method_32318 Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
      named getStackReference Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;
    • sendMessage

      public void sendMessage(Text message)
      Sends a system message.
      Specified by:
      sendMessage in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Lss;)V
      intermediary method_43496 Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)V
      named sendMessage Lnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)V
    • getEntityWorld

      public World getEntityWorld()
      Mappings:
      Namespace Name Mixin selector
      official cH Lbdr;cH()Lcjw;
      intermediary method_5770 Lnet/minecraft/class_1297;method_5770()Lnet/minecraft/class_1937;
      named getEntityWorld Lnet/minecraft/entity/Entity;getEntityWorld()Lnet/minecraft/world/World;
    • getServer

      @Nullable public @Nullable MinecraftServer getServer()
      Returns the server the entity is in, or null if called on the client side.
      Returns:
      the server the entity is in, or null if called on the client side
      Mappings:
      Namespace Name Mixin selector
      official cI Lbdr;cI()Lnet/minecraft/server/MinecraftServer;
      intermediary method_5682 Lnet/minecraft/class_1297;method_5682()Lnet/minecraft/server/MinecraftServer;
      named getServer Lnet/minecraft/entity/Entity;getServer()Lnet/minecraft/server/MinecraftServer;
    • interactAt

      public ActionResult interactAt(PlayerEntity player, Vec3d hitPos, Hand hand)
      Called when the player interacts with the entity at the specific position.

      This should not be used in most cases; interact(net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand) should be used. This should be used if the interaction's result depends on which part of the entity was interacted at.

      Parameters:
      hitPos - the interaction's position offset from the entity's position
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbwp;Leae;Lbcl;)Lbcm;
      intermediary method_5664 Lnet/minecraft/class_1297;method_5664(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactAt Lnet/minecraft/entity/Entity;interactAt(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • isImmuneToExplosion

      public boolean isImmuneToExplosion()
      Returns whether the entity is immune from explosion knockback and damage.

      Invisible ArmorStandEntity and emerging or digging WardenEntity are immune from explosions.

      Returns:
      whether the entity is immune from explosion knockback and damage
      Mappings:
      Namespace Name Mixin selector
      official cJ Lbdr;cJ()Z
      intermediary method_5659 Lnet/minecraft/class_1297;method_5659()Z
      named isImmuneToExplosion Lnet/minecraft/entity/Entity;isImmuneToExplosion()Z
    • applyDamageEffects

      public void applyDamageEffects(LivingEntity attacker, Entity target)
      Applies damage effects to attacker or target.

      Called when attacker damages target.

      Used to apply damage effects based on enchantments, such as Thorns attacker damage or slowness from Bane of Arthropods.

      Parameters:
      attacker - the attacker; usually this entity, but may be a projectile's owner entity
      Implementation Note:
      Although this method is non-static, this keyword is not used anywhere in this method.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbeg;Lbdr;)V
      intermediary method_5723 Lnet/minecraft/class_1297;method_5723(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;)V
      named applyDamageEffects Lnet/minecraft/entity/Entity;applyDamageEffects(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;)V
    • onStartedTrackingBy

      public void onStartedTrackingBy(ServerPlayerEntity player)
      Called when player starts tracking this entity.

      Entities with boss bars like WitherEntity should override this to add the player to the boss bar.

      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Lahn;)V
      intermediary method_5837 Lnet/minecraft/class_1297;method_5837(Lnet/minecraft/class_3222;)V
      named onStartedTrackingBy Lnet/minecraft/entity/Entity;onStartedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • onStoppedTrackingBy

      public void onStoppedTrackingBy(ServerPlayerEntity player)
      Called when player stops tracking this entity.

      Entities with boss bars like WitherEntity should override this to remove the player from the boss bar.

      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(Lahn;)V
      intermediary method_5742 Lnet/minecraft/class_1297;method_5742(Lnet/minecraft/class_3222;)V
      named onStoppedTrackingBy Lnet/minecraft/entity/Entity;onStoppedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • applyRotation

      public float applyRotation(BlockRotation rotation)
      Applies rotation to the entity's yaw.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcsz;)F
      intermediary method_5832 Lnet/minecraft/class_1297;method_5832(Lnet/minecraft/class_2470;)F
      named applyRotation Lnet/minecraft/entity/Entity;applyRotation(Lnet/minecraft/util/BlockRotation;)F
    • applyMirror

      public float applyMirror(BlockMirror mirror)
      Applies mirror to the entity's yaw.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcrk;)F
      intermediary method_5763 Lnet/minecraft/class_1297;method_5763(Lnet/minecraft/class_2415;)F
      named applyMirror Lnet/minecraft/entity/Entity;applyMirror(Lnet/minecraft/util/BlockMirror;)F
    • entityDataRequiresOperator

      public boolean entityDataRequiresOperator()
      Returns whether EntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.nbt.NbtCompound) should reject entity NBTs unless called by an operator.

      This is false by default, and should be overridden if the entity provides functionality that is usually restricted to operators (such as CommandBlockMinecartEntity).

      Returns:
      whether EntityType.loadFromEntityNbt(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.entity.Entity, net.minecraft.nbt.NbtCompound) should reject entity NBTs unless called by an operator
      Mappings:
      Namespace Name Mixin selector
      official cK Lbdr;cK()Z
      intermediary method_5833 Lnet/minecraft/class_1297;method_5833()Z
      named entityDataRequiresOperator Lnet/minecraft/entity/Entity;entityDataRequiresOperator()Z
    • getPrimaryPassenger

      @Nullable public @Nullable Entity getPrimaryPassenger()
      Returns the passenger in control of this entity, or null if there is none.

      Rideable entities should override this to return the entity. This is usually #getFirstPassenger.

      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cL Lbdr;cL()Lbdr;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1297;
      named getPrimaryPassenger Lnet/minecraft/entity/Entity;getPrimaryPassenger()Lnet/minecraft/entity/Entity;
    • hasPrimaryPassenger

      public final boolean hasPrimaryPassenger()
      Returns whether there is a passenger in control of this entity.
      Returns:
      whether there is a passenger in control of this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cM Lbdr;cM()Z
      intermediary method_42148 Lnet/minecraft/class_1297;method_42148()Z
      named hasPrimaryPassenger Lnet/minecraft/entity/Entity;hasPrimaryPassenger()Z
    • getPassengerList

      public final List<Entity> getPassengerList()
      Returns the list of passengers of this entity.
      Returns:
      the list of passengers of this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cN Lbdr;cN()Ljava/util/List;
      intermediary method_5685 Lnet/minecraft/class_1297;method_5685()Ljava/util/List;
      named getPassengerList Lnet/minecraft/entity/Entity;getPassengerList()Ljava/util/List;
    • getFirstPassenger

      @Nullable public @Nullable Entity getFirstPassenger()
      Returns the first passenger of the passenger list, or null if there is no passengers.

      Such passenger is usually also the the primary passenger.

      Returns:
      the first passenger of the passenger list, or null if there is no passengers
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cO Lbdr;cO()Lbdr;
      intermediary method_31483 Lnet/minecraft/class_1297;method_31483()Lnet/minecraft/class_1297;
      named getFirstPassenger Lnet/minecraft/entity/Entity;getFirstPassenger()Lnet/minecraft/entity/Entity;
    • hasPassenger

      public boolean hasPassenger(Entity passenger)
      Returns whether passenger is a passenger of this entity.
      Returns:
      whether passenger is a passenger of this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official v Lbdr;v(Lbdr;)Z
      intermediary method_5626 Lnet/minecraft/class_1297;method_5626(Lnet/minecraft/class_1297;)Z
      named hasPassenger Lnet/minecraft/entity/Entity;hasPassenger(Lnet/minecraft/entity/Entity;)Z
    • hasPassenger

      public boolean hasPassenger(Predicate<Entity> predicate)
      Returns whether there is a passenger of this entity matching predicate.
      Returns:
      whether there is a passenger of this entity matching predicate
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Ljava/util/function/Predicate;)Z
      intermediary method_5703 Lnet/minecraft/class_1297;method_5703(Ljava/util/function/Predicate;)Z
      named hasPassenger Lnet/minecraft/entity/Entity;hasPassenger(Ljava/util/function/Predicate;)Z
    • streamIntoPassengers

      private Stream<Entity> streamIntoPassengers()
      Returns a recursive stream of all passengers.

      This is recursive; for example, if a boat has 2 pigs, ridden by player A and player B, then boat.streamIntoPassengers() would return a stream of the first pig, player A, the second pig, and player B. This does not stream the vehicle itself.

      Returns:
      a recursive stream of all passengers
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lbdr;o()Ljava/util/stream/Stream;
      intermediary method_31484 Lnet/minecraft/class_1297;method_31484()Ljava/util/stream/Stream;
      named streamIntoPassengers Lnet/minecraft/entity/Entity;streamIntoPassengers()Ljava/util/stream/Stream;
    • streamSelfAndPassengers

      public Stream<Entity> streamSelfAndPassengers()
      Returns a stream consisting of this entity and its passengers recursively. Each entity will appear before any of its passengers.

      This may be less costly than EntityLike.streamPassengersAndSelf() if the stream's iteration would terminates fast, such as finding an arbitrary match of entity in the passengers tree.

      Specified by:
      streamSelfAndPassengers in interface EntityLike
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cP Ldcj;cP()Ljava/util/stream/Stream;
      intermediary method_24204 Lnet/minecraft/class_5568;method_24204()Ljava/util/stream/Stream;
      named streamSelfAndPassengers Lnet/minecraft/world/entity/EntityLike;streamSelfAndPassengers()Ljava/util/stream/Stream;
    • streamPassengersAndSelf

      public Stream<Entity> streamPassengersAndSelf()
      Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.

      Moreover, this stream guarantees that any entity only appears after all its passengers have appeared in the stream. This is useful for certain actions that must be applied on passengers before applying on this entity.

      Specified by:
      streamPassengersAndSelf in interface EntityLike
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cQ Ldcj;cQ()Ljava/util/stream/Stream;
      intermediary method_31748 Lnet/minecraft/class_5568;method_31748()Ljava/util/stream/Stream;
      named streamPassengersAndSelf Lnet/minecraft/world/entity/EntityLike;streamPassengersAndSelf()Ljava/util/stream/Stream;
    • getPassengersDeep

      public Iterable<Entity> getPassengersDeep()
      Returns an iterable of all passengers.

      This is recursive; for example, if a boat has 2 pigs, ridden by player A and player B, then boat.streamIntoPassengers() would return a stream of the first pig, player A, the second pig, and player B. This does not stream the vehicle itself.

      Returns:
      an iterable of all passengers
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cR Lbdr;cR()Ljava/lang/Iterable;
      intermediary method_5736 Lnet/minecraft/class_1297;method_5736()Ljava/lang/Iterable;
      named getPassengersDeep Lnet/minecraft/entity/Entity;getPassengersDeep()Ljava/lang/Iterable;
    • hasPlayerRider

      public boolean hasPlayerRider()
      Returns whether a player is riding this entity or any of its passengers.
      Returns:
      whether a player is riding this entity or any of its passengers
      See Also:
      Implementation Note:
      The default implementation is very inefficient.
      Mappings:
      Namespace Name Mixin selector
      official cS Lbdr;cS()Z
      intermediary method_5817 Lnet/minecraft/class_1297;method_5817()Z
      named hasPlayerRider Lnet/minecraft/entity/Entity;hasPlayerRider()Z
    • getRootVehicle

      public Entity getRootVehicle()
      Returns the lowest entity this entity is riding.
      Returns:
      the lowest entity this entity is riding
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cT Lbdr;cT()Lbdr;
      intermediary method_5668 Lnet/minecraft/class_1297;method_5668()Lnet/minecraft/class_1297;
      named getRootVehicle Lnet/minecraft/entity/Entity;getRootVehicle()Lnet/minecraft/entity/Entity;
    • isConnectedThroughVehicle

      public boolean isConnectedThroughVehicle(Entity entity)
      Returns whether this entity and another entity share the same root vehicle.
      Parameters:
      entity - the other entity
      Returns:
      whether this entity and another entity share the same root vehicle
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official w Lbdr;w(Lbdr;)Z
      intermediary method_5794 Lnet/minecraft/class_1297;method_5794(Lnet/minecraft/class_1297;)Z
      named isConnectedThroughVehicle Lnet/minecraft/entity/Entity;isConnectedThroughVehicle(Lnet/minecraft/entity/Entity;)Z
    • hasPassengerDeep

      public boolean hasPassengerDeep(Entity passenger)
      Returns whether passenger is riding this entity or any of its passengers.
      Returns:
      whether passenger is riding this entity or any of its passengers
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official x Lbdr;x(Lbdr;)Z
      intermediary method_5821 Lnet/minecraft/class_1297;method_5821(Lnet/minecraft/class_1297;)Z
      named hasPassengerDeep Lnet/minecraft/entity/Entity;hasPassengerDeep(Lnet/minecraft/entity/Entity;)Z
    • isLogicalSideForUpdatingMovement

      public boolean isLogicalSideForUpdatingMovement()
      Returns whether the current side is responsible for updating the movement.

      For non-player ridden entities, this checks whether the entity is on the server; for player-ridden entities, this checks whether the entity is on the client.

      Returns:
      whether the current side is responsible for updating the movement
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cU Lbdr;cU()Z
      intermediary method_5787 Lnet/minecraft/class_1297;method_5787()Z
      named isLogicalSideForUpdatingMovement Lnet/minecraft/entity/Entity;isLogicalSideForUpdatingMovement()Z
    • getPassengerDismountOffset

      protected static Vec3d getPassengerDismountOffset(double vehicleWidth, double passengerWidth, float passengerYaw)
      Returns the offset for dismounting the passenger.
      Returns:
      the offset for dismounting the passenger
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(DDF)Leae;
      intermediary method_24826 Lnet/minecraft/class_1297;method_24826(DDF)Lnet/minecraft/class_243;
      named getPassengerDismountOffset Lnet/minecraft/entity/Entity;getPassengerDismountOffset(DDF)Lnet/minecraft/util/math/Vec3d;
    • updatePassengerForDismount

      public Vec3d updatePassengerForDismount(LivingEntity passenger)
      Returns the position of the dismounted passenger.

      Vehicles should override this to return a suitable dismounting position for the passenger. Check the implementation of the subclass for details.

      Returns:
      the position of the dismounted passenger
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lbeg;)Leae;
      intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
    • getVehicle

      @Nullable public @Nullable Entity getVehicle()
      Returns the entity this entity rides, or null if there is none.
      Returns:
      the entity this entity rides, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cV Lbdr;cV()Lbdr;
      intermediary method_5854 Lnet/minecraft/class_1297;method_5854()Lnet/minecraft/class_1297;
      named getVehicle Lnet/minecraft/entity/Entity;getVehicle()Lnet/minecraft/entity/Entity;
    • getPistonBehavior

      public PistonBehavior getPistonBehavior()
      Returns the behavior of the piston for this entity.

      This is PistonBehavior.NORMAL by default. AreaEffectCloudEntity, MarkerEntity, and marker ArmorStandEntity return PistonBehavior.IGNORE, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated like PistonBehavior.NORMAL.

      Returns:
      the behavior of the piston for this entity
      Mappings:
      Namespace Name Mixin selector
      official z_ Lbdr;z_()Ldtp;
      intermediary method_5657 Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
      named getPistonBehavior Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
    • getSoundCategory

      public SoundCategory getSoundCategory()
      Returns the sound category for sounds from this entity.

      This is used by playSound(SoundEvent, float, float) and defaults to SoundCategory.NEUTRAL. Hostile entities should override this to return SoundCategory.HOSTILE.

      Returns:
      the sound category for sounds from this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cW Lbdr;cW()Lalp;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
    • getBurningDuration

      protected int getBurningDuration()
      Mappings:
      Namespace Name Mixin selector
      official cX Lbdr;cX()I
      intermediary method_5676 Lnet/minecraft/class_1297;method_5676()I
      named getBurningDuration Lnet/minecraft/entity/Entity;getBurningDuration()I
    • getCommandSource

      public ServerCommandSource getCommandSource()
      Returns a command source which represents this entity.
      Returns:
      a command source which represents this entity
      Mappings:
      Namespace Name Mixin selector
      official cY Lbdr;cY()Ldn;
      intermediary method_5671 Lnet/minecraft/class_1297;method_5671()Lnet/minecraft/class_2168;
      named getCommandSource Lnet/minecraft/entity/Entity;getCommandSource()Lnet/minecraft/server/command/ServerCommandSource;
    • getPermissionLevel

      protected int getPermissionLevel()
      Returns the permission level of this entity.

      This is 0 for non-players.

      Returns:
      the permission level of this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official C Lbdr;C()I
      intermediary method_5691 Lnet/minecraft/class_1297;method_5691()I
      named getPermissionLevel Lnet/minecraft/entity/Entity;getPermissionLevel()I
    • hasPermissionLevel

      public boolean hasPermissionLevel(int permissionLevel)
      Returns whether this entity has at least permission level permissionLevel.

      This is always false for non-players.

      Returns:
      whether this entity has at least permission level permissionLevel
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l(I)Z
      intermediary method_5687 Lnet/minecraft/class_1297;method_5687(I)Z
      named hasPermissionLevel Lnet/minecraft/entity/Entity;hasPermissionLevel(I)Z
    • shouldReceiveFeedback

      public boolean shouldReceiveFeedback()
      Specified by:
      shouldReceiveFeedback in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      official j_ Ldm;j_()Z
      intermediary method_9200 Lnet/minecraft/class_2165;method_9200()Z
      named shouldReceiveFeedback Lnet/minecraft/server/command/CommandOutput;shouldReceiveFeedback()Z
    • shouldTrackOutput

      public boolean shouldTrackOutput()
      Specified by:
      shouldTrackOutput in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      official k_ Ldm;k_()Z
      intermediary method_9202 Lnet/minecraft/class_2165;method_9202()Z
      named shouldTrackOutput Lnet/minecraft/server/command/CommandOutput;shouldTrackOutput()Z
    • shouldBroadcastConsoleToOps

      public boolean shouldBroadcastConsoleToOps()
      Specified by:
      shouldBroadcastConsoleToOps in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      official G_ Ldm;G_()Z
      intermediary method_9201 Lnet/minecraft/class_2165;method_9201()Z
      named shouldBroadcastConsoleToOps Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
    • lookAt

      public void lookAt(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target)
      Changes this entity's pitch and yaw to look at target.
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Ldx$a;Leae;)V
      intermediary method_5702 Lnet/minecraft/class_1297;method_5702(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_243;)V
      named lookAt Lnet/minecraft/entity/Entity;lookAt(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/util/math/Vec3d;)V
    • updateMovementInFluid

      public boolean updateMovementInFluid(TagKey<Fluid> tag, double speed)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lamr;D)Z
      intermediary method_5692 Lnet/minecraft/class_1297;method_5692(Lnet/minecraft/class_6862;D)Z
      named updateMovementInFluid Lnet/minecraft/entity/Entity;updateMovementInFluid(Lnet/minecraft/registry/tag/TagKey;D)Z
    • isRegionUnloaded

      public boolean isRegionUnloaded()
      Returns whether any part of this entity's bounding box is in an unloaded region of the world the entity is in.
      Returns:
      whether any part of this entity's bounding box is in an unloaded region of the world the entity is in
      Implementation Note:
      This implementation expands this entity's bounding box by 1 in each axis and checks whether the expanded box's smallest enclosing axis-aligned integer box is fully loaded in the world.
      Mappings:
      Namespace Name Mixin selector
      official cZ Lbdr;cZ()Z
      intermediary method_33724 Lnet/minecraft/class_1297;method_33724()Z
      named isRegionUnloaded Lnet/minecraft/entity/Entity;isRegionUnloaded()Z
    • getFluidHeight

      public double getFluidHeight(TagKey<Fluid> fluid)
      Returns the height of the fluid in fluid tag.
      Returns:
      the height of the fluid in fluid tag
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lamr;)D
      intermediary method_5861 Lnet/minecraft/class_1297;method_5861(Lnet/minecraft/class_6862;)D
      named getFluidHeight Lnet/minecraft/entity/Entity;getFluidHeight(Lnet/minecraft/registry/tag/TagKey;)D
    • getSwimHeight

      public double getSwimHeight()
      Returns the minimum submerged height of this entity in fluid so that it would be affected by fluid physics.
      Returns:
      the minimum submerged height of this entity in fluid so that it would be affected by fluid physics
      API Note:
      This is also used by living entities for checking whether to start swimming.
      Implementation Note:
      This implementation returns 0.4 if its standing eye height is larger than 0.4; otherwise it returns 0.0 for shorter entities. The swim height of 0 allows short entities like baby animals to start swimming to avoid suffocation.
      Mappings:
      Namespace Name Mixin selector
      official da Lbdr;da()D
      intermediary method_29241 Lnet/minecraft/class_1297;method_29241()D
      named getSwimHeight Lnet/minecraft/entity/Entity;getSwimHeight()D
    • getWidth

      public final float getWidth()
      Returns the width of the entity's current dimension.
      Returns:
      the width of the entity's current dimension
      Mappings:
      Namespace Name Mixin selector
      official db Lbdr;db()F
      intermediary method_17681 Lnet/minecraft/class_1297;method_17681()F
      named getWidth Lnet/minecraft/entity/Entity;getWidth()F
    • getHeight

      public final float getHeight()
      Returns the height of the entity's current dimension.
      Returns:
      the height of the entity's current dimension
      Mappings:
      Namespace Name Mixin selector
      official dc Lbdr;dc()F
      intermediary method_17682 Lnet/minecraft/class_1297;method_17682()F
      named getHeight Lnet/minecraft/entity/Entity;getHeight()F
    • createSpawnPacket

      public Packet<ClientPlayPacketListener> createSpawnPacket()
      Returns a packet to notify the clients of the entity's spawning.
      Returns:
      a packet to notify the clients of the entity's spawning
      API Note:
      Subclasses should return new EntitySpawnS2CPacket(this), unless they use a custom spawning packet.
      Mappings:
      Namespace Name Mixin selector
      official T Lbdr;T()Luh;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
    • getDimensions

      public EntityDimensions getDimensions(EntityPose pose)
      Returns the dimensions of the entity with the given pose.
      Returns:
      the dimensions of the entity with the given pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lbes;)Lbds;
      intermediary method_18377 Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      named getDimensions Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
    • getPos

      public Vec3d getPos()
      Returns the exact position of the entity.
      Returns:
      the exact position of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official dd Lbdr;dd()Leae;
      intermediary method_19538 Lnet/minecraft/class_1297;method_19538()Lnet/minecraft/class_243;
      named getPos Lnet/minecraft/entity/Entity;getPos()Lnet/minecraft/util/math/Vec3d;
    • getSyncedPos

      public Vec3d getSyncedPos()
      Returns the position of the entity synced to clients.

      This is the same as getPos() except for paintings which return the attachment position.

      Returns:
      the position of the entity synced to clients
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official de Lbdr;de()Leae;
      intermediary method_43390 Lnet/minecraft/class_1297;method_43390()Lnet/minecraft/class_243;
      named getSyncedPos Lnet/minecraft/entity/Entity;getSyncedPos()Lnet/minecraft/util/math/Vec3d;
    • getBlockPos

      public BlockPos getBlockPos()
      Specified by:
      getBlockPos in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official df Ldcj;df()Lgp;
      intermediary method_24515 Lnet/minecraft/class_5568;method_24515()Lnet/minecraft/class_2338;
      named getBlockPos Lnet/minecraft/world/entity/EntityLike;getBlockPos()Lnet/minecraft/util/math/BlockPos;
    • getBlockStateAtPos

      public BlockState getBlockStateAtPos()
      Returns the block state at the entity's position.

      The result is cached.

      Returns:
      the block state at the entity's position
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official dg Lbdr;dg()Lcyt;
      intermediary method_36601 Lnet/minecraft/class_1297;method_36601()Lnet/minecraft/class_2680;
      named getBlockStateAtPos Lnet/minecraft/entity/Entity;getBlockStateAtPos()Lnet/minecraft/block/BlockState;
    • getChunkPos

      public ChunkPos getChunkPos()
      Returns the chunk position of the entity.
      Returns:
      the chunk position of the entity
      Mappings:
      Namespace Name Mixin selector
      official dh Lbdr;dh()Lcjd;
      intermediary method_31476 Lnet/minecraft/class_1297;method_31476()Lnet/minecraft/class_1923;
      named getChunkPos Lnet/minecraft/entity/Entity;getChunkPos()Lnet/minecraft/util/math/ChunkPos;
    • getVelocity

      public Vec3d getVelocity()
      Mappings:
      Namespace Name Mixin selector
      official di Lbdr;di()Leae;
      intermediary method_18798 Lnet/minecraft/class_1297;method_18798()Lnet/minecraft/class_243;
      named getVelocity Lnet/minecraft/entity/Entity;getVelocity()Lnet/minecraft/util/math/Vec3d;
    • setVelocity

      public void setVelocity(Vec3d velocity)
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(Leae;)V
      intermediary method_18799 Lnet/minecraft/class_1297;method_18799(Lnet/minecraft/class_243;)V
      named setVelocity Lnet/minecraft/entity/Entity;setVelocity(Lnet/minecraft/util/math/Vec3d;)V
    • addVelocity

      public void addVelocity(Vec3d velocity)
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(Leae;)V
      intermediary method_45319 Lnet/minecraft/class_1297;method_45319(Lnet/minecraft/class_243;)V
      named addVelocity Lnet/minecraft/entity/Entity;addVelocity(Lnet/minecraft/util/math/Vec3d;)V
    • setVelocity

      public void setVelocity(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official o Lbdr;o(DDD)V
      intermediary method_18800 Lnet/minecraft/class_1297;method_18800(DDD)V
      named setVelocity Lnet/minecraft/entity/Entity;setVelocity(DDD)V
    • getBlockX

      public final int getBlockX()
      Mappings:
      Namespace Name Mixin selector
      official dj Lbdr;dj()I
      intermediary method_31477 Lnet/minecraft/class_1297;method_31477()I
      named getBlockX Lnet/minecraft/entity/Entity;getBlockX()I
    • getX

      public final double getX()
      Mappings:
      Namespace Name Mixin selector
      official dk Lbdr;dk()D
      intermediary method_23317 Lnet/minecraft/class_1297;method_23317()D
      named getX Lnet/minecraft/entity/Entity;getX()D
    • offsetX

      public double offsetX(double widthScale)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(D)D
      intermediary method_23316 Lnet/minecraft/class_1297;method_23316(D)D
      named offsetX Lnet/minecraft/entity/Entity;offsetX(D)D
    • getParticleX

      public double getParticleX(double widthScale)
      Mappings:
      Namespace Name Mixin selector
      official d Lbdr;d(D)D
      intermediary method_23322 Lnet/minecraft/class_1297;method_23322(D)D
      named getParticleX Lnet/minecraft/entity/Entity;getParticleX(D)D
    • getBlockY

      public final int getBlockY()
      Mappings:
      Namespace Name Mixin selector
      official dl Lbdr;dl()I
      intermediary method_31478 Lnet/minecraft/class_1297;method_31478()I
      named getBlockY Lnet/minecraft/entity/Entity;getBlockY()I
    • getY

      public final double getY()
      Mappings:
      Namespace Name Mixin selector
      official dm Lbdr;dm()D
      intermediary method_23318 Lnet/minecraft/class_1297;method_23318()D
      named getY Lnet/minecraft/entity/Entity;getY()D
    • getBodyY

      public double getBodyY(double heightScale)
      Mappings:
      Namespace Name Mixin selector
      official e Lbdr;e(D)D
      intermediary method_23323 Lnet/minecraft/class_1297;method_23323(D)D
      named getBodyY Lnet/minecraft/entity/Entity;getBodyY(D)D
    • getRandomBodyY

      public double getRandomBodyY()
      Mappings:
      Namespace Name Mixin selector
      official dn Lbdr;dn()D
      intermediary method_23319 Lnet/minecraft/class_1297;method_23319()D
      named getRandomBodyY Lnet/minecraft/entity/Entity;getRandomBodyY()D
    • getEyeY

      public double getEyeY()
      Mappings:
      Namespace Name Mixin selector
      official do Lbdr;do()D
      intermediary method_23320 Lnet/minecraft/class_1297;method_23320()D
      named getEyeY Lnet/minecraft/entity/Entity;getEyeY()D
    • getBlockZ

      public final int getBlockZ()
      Mappings:
      Namespace Name Mixin selector
      official dp Lbdr;dp()I
      intermediary method_31479 Lnet/minecraft/class_1297;method_31479()I
      named getBlockZ Lnet/minecraft/entity/Entity;getBlockZ()I
    • getZ

      public final double getZ()
      Mappings:
      Namespace Name Mixin selector
      official dq Lbdr;dq()D
      intermediary method_23321 Lnet/minecraft/class_1297;method_23321()D
      named getZ Lnet/minecraft/entity/Entity;getZ()D
    • offsetZ

      public double offsetZ(double widthScale)
      Mappings:
      Namespace Name Mixin selector
      official f Lbdr;f(D)D
      intermediary method_23324 Lnet/minecraft/class_1297;method_23324(D)D
      named offsetZ Lnet/minecraft/entity/Entity;offsetZ(D)D
    • getParticleZ

      public double getParticleZ(double widthScale)
      Mappings:
      Namespace Name Mixin selector
      official g Lbdr;g(D)D
      intermediary method_23325 Lnet/minecraft/class_1297;method_23325(D)D
      named getParticleZ Lnet/minecraft/entity/Entity;getParticleZ(D)D
    • setPos

      public final void setPos(double x, double y, double z)
      Sets the position of this entity.

      This should be used when overriding tick() to change the entity's position; in other cases, use setPosition(double, double, double) or refreshPositionAndAngles(double, double, double, float, float).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lbdr;p(DDD)V
      intermediary method_23327 Lnet/minecraft/class_1297;method_23327(DDD)V
      named setPos Lnet/minecraft/entity/Entity;setPos(DDD)V
    • checkDespawn

      public void checkDespawn()
      Checks whether the entity should be despawned.

      To despawn this entity, call discard().

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official dr Lbdr;dr()V
      intermediary method_5982 Lnet/minecraft/class_1297;method_5982()V
      named checkDespawn Lnet/minecraft/entity/Entity;checkDespawn()V
    • getLeashPos

      public Vec3d getLeashPos(float delta)
      Returns the position of the leash this entity holds.

      This is different from getLeashOffset(float); this method is called on the entity that holds the leash.

      Returns:
      the position of the leash this entity holds
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lbdr;o(F)Leae;
      intermediary method_30951 Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
      named getLeashPos Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
    • onSpawnPacket

      public void onSpawnPacket(EntitySpawnS2CPacket packet)
      Called on the client when the entity receives a spawn packet.

      This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.

      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lul;)V
      intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
      named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
    • getPickBlockStack

      @Nullable public @Nullable ItemStack getPickBlockStack()
      Returns the stack for creative "pick block" functionality, or null if there is none.

      If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that MobEntity handles the spawn eggs. ItemFrameEntity instead returns the copy of the stack held in the frame.

      Returns:
      the stack for creative "pick block" functionality, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official ds Lbdr;ds()Lcdt;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
    • setInPowderSnow

      public void setInPowderSnow(boolean inPowderSnow)
      Mappings:
      Namespace Name Mixin selector
      official o Lbdr;o(Z)V
      intermediary method_32319 Lnet/minecraft/class_1297;method_32319(Z)V
      named setInPowderSnow Lnet/minecraft/entity/Entity;setInPowderSnow(Z)V
    • canFreeze

      public boolean canFreeze()
      Returns whether the entity can freeze.
      Returns:
      whether the entity can freeze
      Implementation Note:
      Entities cannot be frozen if they are in the EntityTypeTags.FREEZE_IMMUNE_ENTITY_TYPES tag. In addition to this, LivingEntity cannot be frozen if they are spectator or if they wear an item inside ItemTags.FREEZE_IMMUNE_WEARABLES tag.
      Mappings:
      Namespace Name Mixin selector
      official dt Lbdr;dt()Z
      intermediary method_32316 Lnet/minecraft/class_1297;method_32316()Z
      named canFreeze Lnet/minecraft/entity/Entity;canFreeze()Z
    • shouldEscapePowderSnow

      public boolean shouldEscapePowderSnow()
      Returns whether the entity should escape from powder snow.

      This returns true if the entity is/was in powder snow and if it can freeze.

      Returns:
      whether the entity should escape from powder snow
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official du Lbdr;du()Z
      intermediary method_40071 Lnet/minecraft/class_1297;method_40071()Z
      named shouldEscapePowderSnow Lnet/minecraft/entity/Entity;shouldEscapePowderSnow()Z
    • getYaw

      public float getYaw()
      Mappings:
      Namespace Name Mixin selector
      official dv Lbdr;dv()F
      intermediary method_36454 Lnet/minecraft/class_1297;method_36454()F
      named getYaw Lnet/minecraft/entity/Entity;getYaw()F
    • getBodyYaw

      public float getBodyYaw()
      Returns the body yaw of the entity.
      Returns:
      the body yaw of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official dw Lbdr;dw()F
      intermediary method_43078 Lnet/minecraft/class_1297;method_43078()F
      named getBodyYaw Lnet/minecraft/entity/Entity;getBodyYaw()F
    • setYaw

      public void setYaw(float yaw)
      Mappings:
      Namespace Name Mixin selector
      official p Lbdr;p(F)V
      intermediary method_36456 Lnet/minecraft/class_1297;method_36456(F)V
      named setYaw Lnet/minecraft/entity/Entity;setYaw(F)V
    • getPitch

      public float getPitch()
      Mappings:
      Namespace Name Mixin selector
      official dx Lbdr;dx()F
      intermediary method_36455 Lnet/minecraft/class_1297;method_36455()F
      named getPitch Lnet/minecraft/entity/Entity;getPitch()F
    • setPitch

      public void setPitch(float pitch)
      Mappings:
      Namespace Name Mixin selector
      official q Lbdr;q(F)V
      intermediary method_36457 Lnet/minecraft/class_1297;method_36457(F)V
      named setPitch Lnet/minecraft/entity/Entity;setPitch(F)V
    • isRemoved

      public final boolean isRemoved()
      Returns whether the entity is removed.

      Removed entities should not be interacted with.

      Returns:
      whether the entity is removed
      Mappings:
      Namespace Name Mixin selector
      official dy Lbdr;dy()Z
      intermediary method_31481 Lnet/minecraft/class_1297;method_31481()Z
      named isRemoved Lnet/minecraft/entity/Entity;isRemoved()Z
    • getRemovalReason

      @Nullable public @Nullable Entity.RemovalReason getRemovalReason()
      Returns the reason for the entity's removal, or null if it is not removed.
      Returns:
      the reason for the entity's removal, or null if it is not removed
      Mappings:
      Namespace Name Mixin selector
      official dz Lbdr;dz()Lbdr$c;
      intermediary method_35049 Lnet/minecraft/class_1297;method_35049()Lnet/minecraft/class_1297$class_5529;
      named getRemovalReason Lnet/minecraft/entity/Entity;getRemovalReason()Lnet/minecraft/entity/Entity$RemovalReason;
    • setRemoved

      public final void setRemoved(Entity.RemovalReason reason)
      Specified by:
      setRemoved in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official b Ldcj;b(Lbdr$c;)V
      intermediary method_31745 Lnet/minecraft/class_5568;method_31745(Lnet/minecraft/class_1297$class_5529;)V
      named setRemoved Lnet/minecraft/world/entity/EntityLike;setRemoved(Lnet/minecraft/entity/Entity$RemovalReason;)V
    • unsetRemoved

      protected void unsetRemoved()
      Unsets this entity's removal.

      This should rarely be used; this is only used by players during teleportation.

      Mappings:
      Namespace Name Mixin selector
      official dA Lbdr;dA()V
      intermediary method_31482 Lnet/minecraft/class_1297;method_31482()V
      named unsetRemoved Lnet/minecraft/entity/Entity;unsetRemoved()V
    • setChangeListener

      public void setChangeListener(EntityChangeListener changeListener)
      Specified by:
      setChangeListener in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official a Ldcj;a(Ldck;)V
      intermediary method_31744 Lnet/minecraft/class_5568;method_31744(Lnet/minecraft/class_5569;)V
      named setChangeListener Lnet/minecraft/world/entity/EntityLike;setChangeListener(Lnet/minecraft/world/entity/EntityChangeListener;)V
    • shouldSave

      public boolean shouldSave()
      Specified by:
      shouldSave in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official dB Ldcj;dB()Z
      intermediary method_31746 Lnet/minecraft/class_5568;method_31746()Z
      named shouldSave Lnet/minecraft/world/entity/EntityLike;shouldSave()Z
    • isPlayer

      public boolean isPlayer()
      Specified by:
      isPlayer in interface EntityLike
      Mappings:
      Namespace Name Mixin selector
      official dC Ldcj;dC()Z
      intermediary method_31747 Lnet/minecraft/class_5568;method_31747()Z
      named isPlayer Lnet/minecraft/world/entity/EntityLike;isPlayer()Z
    • canModifyAt

      public boolean canModifyAt(World world, BlockPos pos)
      Returns whether the entity can modify the world at pos.

      This returns true for most entities. Players check World.canPlayerModifyAt(net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.BlockPos) to prevent them from modifying entities in the spawn protection or outside the world border. ProjectileEntity delegates it to the owner if the owner is a player; if the owner is a non-player entity, this returns the value of GameRules.DO_MOB_GRIEFING, and ownerless projectiles are always allowed to modify the world.

      Returns:
      whether the entity can modify the world at pos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lcjw;Lgp;)Z
      intermediary method_36971 Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
      named canModifyAt Lnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • getWorld

      public World getWorld()
      Mappings:
      Namespace Name Mixin selector
      official Z Lbdr;Z()Lcjw;
      intermediary method_37908 Lnet/minecraft/class_1297;method_37908()Lnet/minecraft/class_1937;
      named getWorld Lnet/minecraft/entity/Entity;getWorld()Lnet/minecraft/world/World;