Class Entity
- All Implemented Interfaces:
ComponentsAccess
,DataTracked
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
- Direct Known Subclasses:
AreaEffectCloudEntity
,BlockAttachedEntity
,DisplayEntity
,EndCrystalEntity
,EnderDragonPart
,EvokerFangsEntity
,ExperienceOrbEntity
,EyeOfEnderEntity
,FallingBlockEntity
,InteractionEntity
,ItemEntity
,LightningEntity
,LivingEntity
,MarkerEntity
,OminousItemSpawnerEntity
,ProjectileEntity
,TntEntity
,VehicleEntity
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:Method | Recommended usage | Additional note |
---|---|---|
EntityType.spawn(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.entity.SpawnReason) | Any entity | Initializes mobs. |
EntityType.spawnFromItemStack(net.minecraft.server.world.ServerWorld, net.minecraft.item.ItemStack, net.minecraft.entity.LivingEntity, 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 amount | Can spawn multiple orbs. |
ItemScatterer methods | Items | Will spawn with random velocity. |
Method | Recommended usage | Additional note |
---|---|---|
Subclass constructors | Non-mob entities (such as projectiles) | NBT and other data must be set manually. |
EntityType.create(net.minecraft.server.world.ServerWorld, java.util.function.Consumer<T>, net.minecraft.util.math.BlockPos, net.minecraft.entity.SpawnReason, boolean, boolean) | Any entity | Initializes mobs and supports custom NBT. |
invalid reference
| Entities stored in NBT | Can throw exceptions. |
invalid reference
| Entities stored in user-provided NBT | Ignores exceptions. |
EntityType.loadEntityWithPassengers(net.minecraft.nbt.NbtCompound, net.minecraft.world.World, net.minecraft.entity.SpawnReason, java.util.function.Function<net.minecraft.entity.Entity, net.minecraft.entity.Entity>) | Entities with passengers stored in user-provided NBT | Ignores exceptions. Initializes rides. |
invalid reference
| Entities with passengers stored in NBT | Ignores exceptions. |
Method | Recommended usage | Additional note |
---|---|---|
ServerWorldAccess.spawnEntityAndPassengers(net.minecraft.entity.Entity) | Any entity | Does not check duplicate UUID. |
ServerWorld.spawnNewEntityAndPassengers(net.minecraft.entity.Entity) | Any entity | Checks duplicate UUID. |
ModifiableWorld.spawnEntity(net.minecraft.entity.Entity) | Any entity | Does not spawn passengers. |
Warning: When using constructors to spawn mobs instead of
EntityType.create(net.minecraft.server.world.ServerWorld, 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 callingdiscard()
. This does not drop loot.
To kill entities and drop loot, call kill(net.minecraft.server.world.ServerWorld)
or damage(net.minecraft.server.world.ServerWorld,net.minecraft.entity.damage.DamageSource,float)
(with large enough damage amount).- Mappings:
Namespace Name named net/minecraft/entity/Entity
intermediary net/minecraft/class_1297
official bzm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record
static enum
The move effect represents possible effects of an entity moving, such as playing sounds, emitting game events, none, or both.static interface
private static final record
static enum
The reason of the entity's removal. -
Field Summary
FieldsModifier and TypeFieldDescriptionint
private static final TrackedData
<Integer> static final String
private boolean
private BlockPos
private Box
private EntityChangeListener
private ChunkPos
private final LongSet
boolean
private final EntityCollisionHandler.Impl
private static final AtomicInteger
A generator of unique entitynetwork IDs
.private final List
<Entity.QueuedCollisionCheck> static final String
private static final TrackedData
<Optional<Text>> private NbtComponent
protected final DataTracker
static final float
The factor by which an entity's speed is reduced every tick.static final int
static final int
private EntityDimensions
float
static final String
double
static final float
static final double
static final double
static final int
static final int
static final String
private int
protected boolean
protected static final TrackedData
<Byte> protected Object2DoubleMap
<TagKey<Fluid>> private boolean
static final int
private static final TrackedData
<Integer> protected static final int
private boolean
protected static final int
static final String
boolean
private boolean
boolean
private int
The entity's network ID, used as a reference for synchronization over network.static final String
boolean
boolean
Whether the entity should be included in intersection checks.private static final int
private boolean
static final String
private int
private float
float
double
double
double
double
double
float
double
private static final Logger
static final int
static final int
static final int
static final float
static final String
protected Vec3d
private static final TrackedData
<Boolean> private float
private static final TrackedData
<Boolean> static final String
boolean
private static final Box
protected static final int
static final String
private boolean
private ImmutableList
<Entity> static final String
private final double[]
private long
private float
static final String
private int
private Vec3d
static final String
protected static final TrackedData
<EntityPose> private final ArrayDeque
<Entity.QueuedCollisionCheck> protected final Random
private @Nullable Entity.RemovalReason
private static double
protected int
static final String
private static final TrackedData
<Boolean> static final String
private static final int
float
private static final double
private static final double
private static final double
private static final int
private float
private @Nullable BlockState
protected boolean
private static final int
int
protected boolean
private final TrackedPosition
private final EntityType
<?> protected UUID
static final String
protected String
private Vec3d
boolean
boolean
boolean
boolean
private World
private static final ImmutableList
<Direction.Axis> private float
private static final ImmutableList
<Direction.Axis> Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the effects of this entity when it travels in air, usually to the world the entity is in.boolean
addCommandTag
(String tag) Adds a command tag to this entity.protected void
Adds the effects of this entity flapping, usually to the world the entity is in.protected void
addPassenger
(Entity passenger) Addspassenger
as a passenger.void
private void
addQueuedCollisionChecks
(Entity.QueuedCollisionCheck queuedCollisionCheck) void
addVelocity
(double deltaX, double deltaY, double deltaZ) void
addVelocity
(Vec3d velocity) void
addVelocityInternal
(Vec3d velocity) static Vec3d
adjustMovementForCollisions
(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) private Vec3d
adjustMovementForCollisions
(Vec3d movement) private static Vec3d
adjustMovementForCollisions
(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) protected Vec3d
adjustMovementForPiston
(Vec3d movement) protected Vec3d
adjustMovementForSneaking
(Vec3d movement, MovementType type) private void
afterCollisionCheck
(BlockPos pos, boolean blockCollision, boolean fluidCollision) void
animateDamage
(float yaw) Called on the client to animate the entity's damage (the wobble).protected static void
applyBubbleColumnEffects
(Entity entity, boolean drag) protected static void
applyBubbleColumnSurfaceEffects
(Entity entity, boolean drag, BlockPos pos) protected void
float
applyMirror
(BlockMirror mirror) Appliesmirror
to the entity's yaw.private void
applyMoveEffect
(Entity.MoveEffect moveEffect, Vec3d movement, BlockPos landingPos, BlockState landingState) float
applyRotation
(BlockRotation rotation) Appliesrotation
to the entity's yaw.void
CallstickInVoid()
when the entity is 64 blocks below the world's minimum Y position.void
baseTick()
boolean
Returns whether the entity should bypass effects caused by landing on a block.boolean
Returns whether the entity should bypass effects caused by stepping.protected final Box
protected Box
void
Calculates and sets the dimension (bounding box) of the entity and refreshes its position.protected float
private double
calculatePistonMovementFactor
(Direction.Axis axis, double offsetFactor) boolean
protected boolean
canAddPassenger
(Entity passenger) Returns whetherentity
can ride this entity.boolean
Returns whether the entity cannot trigger pressure plates or tripwires.boolean
boolean
canBeSpectated
(ServerPlayerEntity spectator) Returns whetherspectator
can spectate this entity.private boolean
canClimb
(BlockState state) boolean
canExplosionDestroyBlock
(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosion
from this entity can destroystate
.boolean
Returns whether the entity can freeze.boolean
canHit()
Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.boolean
canModifyAt
(ServerWorld world, BlockPos pos) Returns whether the entity can modify the world atpos
.boolean
boolean
protected boolean
canStartRiding
(Entity entity) Returns whether this entity can rideentity
.boolean
canTeleportBetween
(World from, World to) boolean
canUsePortals
(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.protected static <T> T
castComponentValue
(ComponentType<T> type, @Nullable Object value) void
changeLookDirection
(double cursorDeltaX, double cursorDeltaY) private void
checkBlockCollision
(Vec3d from, Vec3d to, EntityCollisionHandler.Impl collisionHandler, LongSet collidedBlockPositions) private void
checkBlockCollisions
(List<Entity.QueuedCollisionCheck> queuedCollisionChecks, EntityCollisionHandler.Impl collisionHandler) void
Checks whether the entity should be despawned.(package private) void
protected void
boolean
clientDamage
(DamageSource source) private static float[]
collectStepHeights
(Box collisionBox, List<VoxelShape> collisions, float float2, float stepHeight) boolean
boolean
collidesWith
(Entity other) Returns whether this entity cannot occupy the same space withother
.boolean
collidesWithFluid
(FluidState state, BlockPos fluidPos, Vec3d oldPos, Vec3d newPos) boolean
collidesWithStateAtPos
(BlockPos pos, BlockState state) Returns whether the entity collides with the blockstate
atpos
.protected <T> boolean
copyComponentFrom
(ComponentsAccess from, ComponentType<T> type) protected void
final void
copyComponentsFrom
(ItemStack stack) void
Copies serializable data and nether portal data fromoriginal
.void
copyPositionAndRotation
(Entity entity) Sets the entity's position and rotation the same asentity
.protected boolean
Returnstrue
if this entity supports passengers in general.createSpawnPacket
(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.abstract boolean
damage
(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.void
defrost()
final void
detach()
Removes all the passengers and removes this entity from any vehicles it is riding.boolean
final void
discard()
Discards the entity.void
Dismounts the vehicle if present.float
distanceTo
(Entity entity) Returns the distance between this entity andentity
.boolean
doesNotCollide
(double offsetX, double offsetY, double offsetZ) Returns whether the bounding box with the given offsets do not collide with blocks or fluids.private boolean
doesNotCollide
(Box box) boolean
Returns whether an entity should render as being on fire.dropItem
(ServerWorld world, ItemConvertible item) Drops oneitem
at the entity's position.dropItem
(ServerWorld world, ItemConvertible item, int offsetY) Drops oneitem
at the entity's position with the given Y offset.dropStack
(ServerWorld world, ItemStack stack) Dropsstack
at the entity's position.dropStack
(ServerWorld world, ItemStack stack, float yOffset) Dropsstack
at the entity's position with the given Y offset.dropStack
(ServerWorld world, ItemStack stack, Vec3d offset) void
emitGameEvent
(RegistryEntry<GameEvent> event) Emits a game event originating from this entity at this entity's position.void
emitGameEvent
(RegistryEntry<GameEvent> event, @Nullable Entity entity) Emits a game event originating from another entity at this entity's position.boolean
void
Extinguishes this entity.void
protected void
fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private static List
<VoxelShape> findCollisionsForMovement
(@Nullable Entity entity, World world, List<VoxelShape> regularCollisions, Box movingEntityBoundingBox) <T> T
get
(ComponentType<? extends T> type) int
getAir()
Returns the air left for the entity, in ticks.final EntityAttachments
private static Iterable
<Direction.Axis> getAxisCheckOrder
(Vec3d movement) Returns the block state at the entity's position.final int
final int
final int
double
getBodyX
(double widthScale) double
getBodyY
(double heightScale) float
Returns the body yaw of the entity.double
getBodyZ
(double widthScale) final Box
float
Deprecated.protected int
final Vec3d
getCameraPosVec
(float tickProgress) Returns the chunk position of the entity.getClientCameraPosVec
(float tickProgress) getCommandSource
(ServerWorld world) Returns a command source which represents this entity.Returns all command tags the entity belongs to.Returns the passenger in control of this entity, ornull
if there is none.Returns the entity this entity rides and controls, ornull
if there is none.Returns the custom name of this object, ornull
if there is none.protected Text
Returns the default name of the entity.int
Returns the entity's default portal cooldown.getDimensions
(EntityPose pose) Returns the dimensions of the entity with the givenpose
.Returns the display name of this object.float
getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity.final float
getEyeHeight
(EntityPose pose) Returns the eye height forpose
.final Vec3d
Returns the position of the eye.double
getEyeY()
final double
int
Returns the first passenger of the passenger list, ornull
if there is no passengers.protected boolean
getFlag
(int index) Returns the entity flag with indexflag
.double
getFluidHeight
(TagKey<Fluid> fluid) Returns the height of the fluid influid
tag.float
Returns the current freezing scale.int
Returns how long the entity is freezing, in ticks.protected double
getHandPosOffset
(Item item) Returns the offset of the hand that holdsitem
.float
Returns the head yaw of the entity.final float
Returns the height of the entity's current dimension.Vec3d[]
protected SoundEvent
protected HoverEvent
Returns the hover event referencing this entity.int
getId()
Returns the network ID of this entity.protected float
protected BlockState
Deprecated.Deprecated.final Vec3d
getLeashPos
(float tickProgress) Returns the position of the leash this entity holds.float
getLerpedPitch
(float tickProgress) final Vec3d
getLerpedPos
(float deltaTicks) float
getLerpedYaw
(float tickProgress) int
Returns the maximum amount of air the entity can hold, in ticks.int
Returns how long it takes for the entity to be completely frozen and receive freezing damage, in ticks.protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.getName()
Returns the name of this object.Returns the name uniquely identifying the score holder.final Vec3d
getOppositeRotationVector
(float tickProgress) protected final Vec3d
getOppositeRotationVector
(float pitch, float yaw) double
getParticleX
(double widthScale) double
getParticleZ
(double widthScale) protected Vec3d
getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected static Vec3d
getPassengerAttachmentPos
(Entity vehicle, Entity passenger, EntityAttachments attachments) protected static Vec3d
getPassengerDismountOffset
(double vehicleWidth, double passengerWidth, float passengerYaw) Returns the offset for dismounting the passenger.Returns the list of passengers of this entity.getPassengerRidingPos
(Entity passenger) Returns an iterable of all passengers.private TeleportTarget
getPassengerTeleportTarget
(TeleportTarget teleportTarget, Entity passenger) Returns the stack for creative "pick block" functionality, ornull
if there is none.Returns the behavior of the piston for this entity.float
getPitch()
float
getPitch
(float tickProgress) int
int
getPos()
Returns the exact position of the entity.getPose()
protected BlockPos
getPosWithYOffset
(float offset) getProjectileDeflection
(ProjectileEntity projectile) double
Returns the reason for the entity's removal, ornull
if it is not removed.static double
Returns the entity render distance multiplier.Returns the lowest entity this entity is riding.final Vec3d
getRotationVec
(float tickProgress) final Vec3d
getRotationVector
(float pitch, float yaw) int
Returns the maximum height of a fall the entity takes during pathfinding.Returns the scoreboard team the entity belongs to, ornull
if there is none.Returns the server the entity is in, ornull
if called on the client side.Returns the sound category for sounds from this entity.protected SoundEvent
getStackReference
(int mappedIndex) Obtains a stack reference to be modified.final float
Returns the standing eye height.float
Returns the block state at the stepping position.Returns the stepping position.protected BlockPos
getStepSoundPos
(BlockPos pos) double
Returns the minimum submerged height of this entity in fluid so that it would be affected by fluid physics.protected SoundEvent
Returns the position of the entity synced to clients.float
Returns the margin around the entity's bounding box where the entity targeting is still successful.int
Returns the team color value, or0xFFFFFF
if the entity is not in a team or the color is not set.EntityType
<?> getType()
getUuid()
Returns the entity's UUID as string.Returns the entity this entity rides, ornull
if there is none.getVehicleAttachmentPos
(Entity vehicle) protected float
final float
getWidth()
Returns the width of the entity's current dimension.getWorld()
getWorldSpawnPos
(ServerWorld world, BlockPos basePos) final double
getX()
final double
getY()
float
getYaw()
float
getYaw
(float tickProgress) final double
getZ()
boolean
handleAttack
(Entity attacker) Handles a player attacking the entity.final void
handleFall
(double xDifference, double yDifference, double zDifference, boolean onGround) boolean
handleFallDamage
(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.protected void
handleFallDamageForPassengers
(double fallDistance, float damagePerDistance, DamageSource damageSource) void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.protected boolean
hasCollidedSoftly
(Vec3d adjustedMovement) final boolean
Returns whether there is a passenger in control of this entity.boolean
Returns whether this object has a custom name.int
hashCode()
boolean
Returns whether the entity has no gravity.boolean
hasPassenger
(Predicate<Entity> predicate) Returns whether there is a passenger of this entity matchingpredicate
.boolean
hasPassenger
(Entity passenger) Returns whetherpassenger
is a passenger of this entity.boolean
hasPassengerDeep
(Entity passenger) Returns whetherpassenger
is riding this entity or any of its passengers.boolean
Returns whether another entity is riding this entity.boolean
Returns whether a player is riding this entity or any of its passengers.boolean
Returns whether the entity's portal cooldown is in effect.boolean
boolean
Returns whether this entity is riding an entity.void
protected abstract void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position.boolean
isAlive()
Returns whether the entity is alive.protected final boolean
isAlwaysInvulnerableTo
(DamageSource damageSource) boolean
boolean
Returns whether the entity can be attacked by players.(package private) boolean
Returns whether it is raining at the entity's position.boolean
isCollidable
(@Nullable Entity entity) Returns whether other entities cannot occupy the same space with this entity.boolean
isConnectedThroughVehicle
(Entity entity) Returns whether this entity and another entity share the same root vehicle.protected boolean
boolean
boolean
Returns whether the entity is crawling.boolean
Returns whether the custom name should be shown.boolean
Returns whether the entity is actively descending.boolean
Returns whether the entity is immune to fire damage.protected boolean
Returns whether the entity is flapping their wings.boolean
boolean
isFrozen()
Returns whether the entity is frozen.boolean
Returns whether the entity is glowing, checking the entity flags on the client.final boolean
Returns whether the entity is glowing, without checking the entity flags.boolean
isImmuneToExplosion
(Explosion explosion) Returns whether the entity is immune from explosion knockback and damage.boolean
boolean
isInLava()
Returns whether the entity is in lava.boolean
isInPose
(EntityPose pose) boolean
Returns whether the distance between this entity andentity
is belowradius
.boolean
Returns whether both the horizontal and vertical distances between this entity andentity
are below the passed values.protected boolean
isInSameTeam
(Entity other) boolean
Returns whether the entity is in a wall and should suffocate.boolean
Returns whether the entity is in a crouching pose.boolean
Returns whether the entity is in swimming pose.final boolean
boolean
Returns whether the entity is invisible to everyone.boolean
isInvisibleTo
(PlayerEntity player) Returns whether the entity is invisible toplayer
.boolean
Returns whether the entity is invulnerable.boolean
isLiving()
final boolean
boolean
isOnFire()
Returns whether the entity is on fire and is not fire immune.boolean
Returns whether the entity is on the ground.boolean
isOnRail()
boolean
Returns whether this entity is part ofentity
.boolean
isPlayer()
boolean
Returns whether the entity can be pushed by other entities.boolean
Returns whether the entity is pushed by fluids.boolean
Returns whether any part of this entity's bounding box is in an unloaded region of the world the entity is in.final boolean
boolean
isSilent()
Returns whether the entity is silent.boolean
Returns whether the entity is sneaking.boolean
isSneaky()
boolean
Returns whether the entity is a spectator.boolean
Returns whether the entity is sprinting.boolean
isSubmergedIn
(TagKey<Fluid> fluidTag) Returns whether the entity is submerged in a fluid influidTag
.boolean
Returns whether this entity's hitbox is fully submerged in water.boolean
isSupportedBy
(BlockPos pos) boolean
Returns whether the entity is swimming.final boolean
isTeammate
(@Nullable Entity other) Returns whether this entity andother
are in the same team.boolean
Returns whether this entity is inteam
.boolean
Returns whether this entity's hitbox is touching water fluid.boolean
Returns whether this entity is touching water or is being rained on (but does not check for a bubble column).void
kill
(ServerWorld world) Kills the entity.protected void
lerpPosAndRotation
(int step, double x, double y, double z, double yaw, double pitch) float
lerpYaw
(float tickProgress) void
void
lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget
.void
move
(MovementType type, Vec3d movement) protected static Vec3d
movementInputToVelocity
(Vec3d movementInput, float speed, float yaw) Returns a vector with the horizontal direction beingyaw
degrees and the absolute value beingmovementInput
normalized and multiplied byspeed
.boolean
Returns whether the entity should not emit vibrations.protected void
onBlockCollision
(BlockState state) Called when this entity's collision box intersectsstate
.void
onBubbleColumnCollision
(boolean drag) Called when the entity collides with a bubble column without an air above.void
onBubbleColumnSurfaceCollision
(boolean drag, BlockPos pos) Called when the entity collides with a bubble column with an air above.void
onDamaged
(DamageSource damageSource) void
onDataTrackerUpdate
(List<DataTracker.SerializedEntry<?>> entries) void
onExplodedBy
(@Nullable Entity entity) void
onHeldLeashUpdate
(Leashable heldLeashable) boolean
onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
.void
Called when the entity lands on a block.void
onPassengerLookAround
(Entity passenger) void
onPlayerCollision
(PlayerEntity player) Called when a player collides with the entity.void
onRemove
(Entity.RemovalReason reason) Called when the entity is about to be removed.void
Called on the client side when the entity is removed.void
onSpawnPacket
(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.void
Called whenplayer
starts tracking this entity.void
Called whenplayer
stops tracking this entity.void
onStruckByLightning
(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.protected void
void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.private void
protected void
playCombinationStepSounds
(BlockState primaryState, BlockState secondaryState) protected void
Plays theSoundEvents.ENTITY_GENERIC_EXTINGUISH_FIRE
sound.protected void
playSecondaryStepSound
(BlockState state) void
playSound
(SoundEvent sound, float volume, float pitch) void
playSoundIfNotSilent
(SoundEvent event) protected void
playStepSound
(BlockPos pos, BlockState state) private void
playStepSounds
(BlockPos pos, BlockState state) protected void
protected void
playSwimSound
(float volume) void
void
populateCrashReport
(CrashReportSection section) Populates the crash report section to include the entity's information.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.void
pushAwayFrom
(Entity entity) protected void
pushOutOfBlocks
(double x, double y, double z) Pushes this entity out of blocks.raycast
(double maxDistance, float tickProgress, boolean includeFluids) protected abstract void
readCustomData
(ReadView view) void
boolean
recalculateDimensions
(EntityDimensions previous) protected void
void
refreshPositionAfterTeleport
(double x, double y, double z) void
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.void
refreshPositionAndAngles
(BlockPos pos, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.void
refreshPositionAndAngles
(Vec3d pos, float yaw, float pitch) protected void
Deprecated.void
remove
(Entity.RemovalReason reason) Removes the entity.void
Causes all passengers of this entity to stop riding this entity.private static Text
removeClickEvents
(Text textComponent) boolean
removeCommandTag
(String tag) Removes a command tag from this entity.protected void
Removes this entity from the current dimension.protected void
removePassenger
(Entity passenger) Removespassenger
from the passengers.void
requestTeleport
(double destX, double destY, double destZ) Requests the entity to teleport to the given position.void
requestTeleportAndDismount
(double destX, double destY, double destZ) Requests the entity to teleport to the given position.void
requestTeleportOffset
(double offsetX, double offsetY, double offsetZ) Requests the entity to teleport to the current position offset by the given amount.void
Resets the entity's portal cooldown to the default.final void
void
rotate
(float yaw, float pitch) boolean
boolean
saveSelfData
(WriteView view) protected void
private void
sendTeleportPacket
(TeleportTarget teleportTarget) final void
serverDamage
(DamageSource source, float amount) Deprecated.void
setAir
(int air) Sets the air left for the entity in ticks.void
setAlwaysSyncAbsolute
(boolean alwaysSyncAbsolute) void
setAngles
(float yaw, float pitch) protected <T> boolean
setApplicableComponent
(ComponentType<T> type, T value) void
setBodyYaw
(float bodyYaw) Sets the body yaw of this entity.final void
setBoundingBox
(Box boundingBox) void
setChangeListener
(EntityChangeListener changeListener) <T> void
setComponent
(ComponentType<T> type, T value) void
setCustomName
(@Nullable Text name) Sets the custom name of the entity toname
(ornull
to remove the custom name).void
setCustomNameVisible
(boolean visible) Sets whether the custom name should be shown.void
setFireTicks
(int fireTicks) Sets the entity on fire forticks
ticks.protected void
setFlag
(int index, boolean value) Sets the entity flag with indexflag
tovalue
.void
setFrozenTicks
(int frozenTicks) Sets how long the entity is freezing in ticks.final void
setGlowing
(boolean glowing) Sets whether the entity is glowing.void
setHeadYaw
(float headYaw) Sets the head yaw of this entity.void
setId
(int id) Sets the network ID of this entity.void
setInPowderSnow
(boolean inPowderSnow) void
setInvisible
(boolean invisible) Sets whether the entity is invisible to everyone.void
setInvulnerable
(boolean invulnerable) Sets whether the entity is invulnerable.private void
setLastAngles
(float lastYaw, float lastPitch) private void
setLastPosition
(Vec3d pos) final void
setLastPositionAndAngles
(Vec3d pos, float yaw, float pitch) void
setMovement
(boolean onGround, boolean horizontalCollision, Vec3d movement) void
setMovement
(boolean onGround, Vec3d movement) void
setNoGravity
(boolean noGravity) Sets whether the entity has no gravity.void
setOnFire
(boolean onFire) final void
setOnFireFor
(float seconds) Sets the entity on fire forseconds
seconds.void
setOnFireForTicks
(int ticks) void
Sets the entity on fire from lava, applies lava damage, and plays the burning sound.void
setOnGround
(boolean onGround) void
setPitch
(float pitch) void
setPortalCooldown
(int portalCooldown) final void
setPos
(double x, double y, double z) Sets the position of this entity.void
setPose
(EntityPose pose) void
setPosition
(double x, double y, double z) Sets the position and refreshes the bounding box.void
setPosition
(PlayerPosition pos, Set<PositionFlag> flags) final void
setPosition
(Vec3d pos) Sets the position and refreshes the bounding box.final void
setRemoved
(Entity.RemovalReason reason) static void
setRenderDistanceMultiplier
(double value) Sets the render distance multiplier.protected void
setRotation
(float yaw, float pitch) Sets the entity's yaw and pitch.void
setSilent
(boolean silent) Sets whether the entity is silent.void
setSneaking
(boolean sneaking) Sets whether the entity is sneaking.void
setSprinting
(boolean sprinting) Sets whether the entity is sprinting.void
setSwimming
(boolean swimming) Sets whether the entity is swimming.void
Sets the UUID of the entity touuid
.void
setVelocity
(double x, double y, double z) void
setVelocity
(Vec3d velocity) void
setVelocityClient
(double x, double y, double z) protected void
void
setYaw
(float yaw) private boolean
shearEquipment
(PlayerEntity player, Hand hand, ItemStack shears, MobEntity entity) boolean
boolean
boolean
Returns whether this vehicle should dismount the passenger if submerged underwater.boolean
Returns whether the entity should escape from powder snow.private boolean
protected boolean
boolean
shouldRender
(double distance) boolean
shouldRender
(double cameraX, double cameraY, double cameraZ) boolean
Returns whether to render the name of the entity.boolean
protected boolean
boolean
protected boolean
final boolean
sidedDamage
(DamageSource source, float amount) Deprecated.void
slowMovement
(BlockState state, Vec3d multiplier) CallsonLanding()
and slows this entity.boolean
snipAllHeldLeashes
(@Nullable PlayerEntity player) protected static void
spawnBubbleColumnParticles
(World world, BlockPos pos) protected void
double
squaredDistanceTo
(double x, double y, double z) Returns the squared distance between this entity and the given position.double
squaredDistanceTo
(Entity entity) Returns the squared distance between this entity andentity
.double
squaredDistanceTo
(Vec3d vector) Returns the squared distance between this entity and the given position.boolean
startRiding
(Entity entity) Starts ridingentity
.boolean
startRiding
(Entity entity, boolean force) Starts ridingentity
.private boolean
stepOnBlock
(BlockPos pos, BlockState state, boolean playSound, boolean emitEvent, Vec3d movement) void
Stops riding the vehicle if present.Returns a recursive stream of all passengers.Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.Returns a stream consisting of this entity and its passengers recursively.boolean
teleport
(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position.private Entity
teleportCrossDimension
(ServerWorld from, ServerWorld to, TeleportTarget teleportTarget) private void
private Entity
teleportSameDimension
(ServerWorld world, TeleportTarget teleportTarget) protected void
teleportSpectatingPlayers
(TeleportTarget teleportTarget, ServerWorld from) teleportTo
(TeleportTarget teleportTarget) Teleports this entity to another location, potentially in another world.void
tick()
Ticks this entity.protected void
void
tickBlockCollision
(Vec3d lastRenderPos, Vec3d pos) private void
void
tickHeldLeash
(Leashable leashedEntity) protected void
Called when the entity is 64 blocks below the world's minimum Y position.protected void
protected void
void
toString()
void
tryUsePortal
(Portal portal, BlockPos pos) protected void
Unsets this entity's removal.void
updateEventHandler
(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers.void
updateKilledAdvancementCriterion
(Entity entityKilled, DamageSource damageSource) void
protected void
boolean
updateMovementInFluid
(TagKey<Fluid> tag, double speed) updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.final void
updatePassengerPosition
(Entity passenger) protected void
updatePassengerPosition
(Entity passenger, Entity.PositionUpdater positionUpdater) void
updatePosition
(double x, double y, double z) void
updatePositionAndAngles
(double x, double y, double z, float yaw, float pitch) private void
protected void
updateSupportingBlockPos
(boolean onGround, @Nullable Vec3d movement) void
void
updateTrackedHeadRotation
(float yaw, int interpolationSteps) void
updateTrackedPosition
(double x, double y, double z) final void
updateTrackedPositionAndAngles
(Vec3d pos, float yaw, float pitch) 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 ismovementInput
normalized and multiplied byspeed
.protected boolean
protected abstract void
writeCustomData
(WriteView view) void
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/Entity;LOGGER:Lorg/slf4j/Logger;
intermediary field_60355
Lnet/minecraft/class_1297;field_60355:Lorg/slf4j/Logger;
official b
Lbzm;b:Lorg/slf4j/Logger;
-
ID_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ID_KEY
Lnet/minecraft/entity/Entity;ID_KEY:Ljava/lang/String;
intermediary field_29985
Lnet/minecraft/class_1297;field_29985:Ljava/lang/String;
official v
Lbzm;v:Ljava/lang/String;
-
UUID_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named UUID_KEY
Lnet/minecraft/entity/Entity;UUID_KEY:Ljava/lang/String;
intermediary field_29994
Lnet/minecraft/class_1297;field_29994:Ljava/lang/String;
official w
Lbzm;w:Ljava/lang/String;
-
PASSENGERS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PASSENGERS_KEY
Lnet/minecraft/entity/Entity;PASSENGERS_KEY:Ljava/lang/String;
intermediary field_29986
Lnet/minecraft/class_1297;field_29986:Ljava/lang/String;
official x
Lbzm;x:Ljava/lang/String;
-
CUSTOM_DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named CUSTOM_DATA_KEY
Lnet/minecraft/entity/Entity;CUSTOM_DATA_KEY:Ljava/lang/String;
intermediary field_58050
Lnet/minecraft/class_1297;field_58050:Ljava/lang/String;
official y
Lbzm;y:Ljava/lang/String;
-
POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named POS_KEY
Lnet/minecraft/entity/Entity;POS_KEY:Ljava/lang/String;
intermediary field_60535
Lnet/minecraft/class_1297;field_60535:Ljava/lang/String;
official z
Lbzm;z:Ljava/lang/String;
-
MOTION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named MOTION_KEY
Lnet/minecraft/entity/Entity;MOTION_KEY:Ljava/lang/String;
intermediary field_60524
Lnet/minecraft/class_1297;field_60524:Ljava/lang/String;
official A
Lbzm;A:Ljava/lang/String;
-
ROTATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ROTATION_KEY
Lnet/minecraft/entity/Entity;ROTATION_KEY:Ljava/lang/String;
intermediary field_60525
Lnet/minecraft/class_1297;field_60525:Ljava/lang/String;
official B
Lbzm;B:Ljava/lang/String;
-
PORTAL_COOLDOWN_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PORTAL_COOLDOWN_KEY
Lnet/minecraft/entity/Entity;PORTAL_COOLDOWN_KEY:Ljava/lang/String;
intermediary field_60526
Lnet/minecraft/class_1297;field_60526:Ljava/lang/String;
official C
Lbzm;C:Ljava/lang/String;
-
NO_GRAVITY_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named NO_GRAVITY_KEY
Lnet/minecraft/entity/Entity;NO_GRAVITY_KEY:Ljava/lang/String;
intermediary field_60527
Lnet/minecraft/class_1297;field_60527:Ljava/lang/String;
official D
Lbzm;D:Ljava/lang/String;
-
AIR_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named AIR_KEY
Lnet/minecraft/entity/Entity;AIR_KEY:Ljava/lang/String;
intermediary field_60528
Lnet/minecraft/class_1297;field_60528:Ljava/lang/String;
official E
Lbzm;E:Ljava/lang/String;
-
ON_GROUND_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ON_GROUND_KEY
Lnet/minecraft/entity/Entity;ON_GROUND_KEY:Ljava/lang/String;
intermediary field_60529
Lnet/minecraft/class_1297;field_60529:Ljava/lang/String;
official F
Lbzm;F:Ljava/lang/String;
-
FALL_DISTANCE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FALL_DISTANCE_KEY
Lnet/minecraft/entity/Entity;FALL_DISTANCE_KEY:Ljava/lang/String;
intermediary field_60530
Lnet/minecraft/class_1297;field_60530:Ljava/lang/String;
official G
Lbzm;G:Ljava/lang/String;
-
FIRE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FIRE_KEY
Lnet/minecraft/entity/Entity;FIRE_KEY:Ljava/lang/String;
intermediary field_60531
Lnet/minecraft/class_1297;field_60531:Ljava/lang/String;
official H
Lbzm;H:Ljava/lang/String;
-
SILENT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SILENT_KEY
Lnet/minecraft/entity/Entity;SILENT_KEY:Ljava/lang/String;
intermediary field_60532
Lnet/minecraft/class_1297;field_60532:Ljava/lang/String;
official I
Lbzm;I:Ljava/lang/String;
-
GLOWING_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named GLOWING_KEY
Lnet/minecraft/entity/Entity;GLOWING_KEY:Ljava/lang/String;
intermediary field_60533
Lnet/minecraft/class_1297;field_60533:Ljava/lang/String;
official J
Lbzm;J:Ljava/lang/String;
-
INVULNERABLE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named INVULNERABLE_KEY
Lnet/minecraft/entity/Entity;INVULNERABLE_KEY:Ljava/lang/String;
intermediary field_60534
Lnet/minecraft/class_1297;field_60534:Ljava/lang/String;
official K
Lbzm;K:Ljava/lang/String;
-
CURRENT_ID
A generator of unique entitynetwork IDs
. The generated ID for client entities are useless and discarded subsequently throughsetId(int)
calls.- Mappings:
Namespace Name Mixin selector named CURRENT_ID
Lnet/minecraft/entity/Entity;CURRENT_ID:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_5978
Lnet/minecraft/class_1297;field_5978:Ljava/util/concurrent/atomic/AtomicInteger;
official c
Lbzm;c:Ljava/util/concurrent/atomic/AtomicInteger;
-
field_49791
public static final int field_49791- See Also:
- Mappings:
Namespace Name Mixin selector named field_49791
Lnet/minecraft/entity/Entity;field_49791:I
intermediary field_49791
Lnet/minecraft/class_1297;field_49791:I
official L
Lbzm;L:I
-
MAX_RIDING_COOLDOWN
public static final int MAX_RIDING_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RIDING_COOLDOWN
Lnet/minecraft/entity/Entity;MAX_RIDING_COOLDOWN:I
intermediary field_29987
Lnet/minecraft/class_1297;field_29987:I
official M
Lbzm;M:I
-
DEFAULT_PORTAL_COOLDOWN
public static final int DEFAULT_PORTAL_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_PORTAL_COOLDOWN
Lnet/minecraft/entity/Entity;DEFAULT_PORTAL_COOLDOWN:I
intermediary field_29988
Lnet/minecraft/class_1297;field_29988:I
official N
Lbzm;N:I
-
MAX_COMMAND_TAGS
public static final int MAX_COMMAND_TAGS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_TAGS
Lnet/minecraft/entity/Entity;MAX_COMMAND_TAGS:I
intermediary field_29989
Lnet/minecraft/class_1297;field_29989:I
official O
Lbzm;O:I
-
TAG_LIST_CODEC
- Mappings:
Namespace Name Mixin selector named TAG_LIST_CODEC
Lnet/minecraft/entity/Entity;TAG_LIST_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56631
Lnet/minecraft/class_1297;field_56631:Lcom/mojang/serialization/Codec;
official d
Lbzm;d:Lcom/mojang/serialization/Codec;
-
field_44870
public static final float field_44870- See Also:
- Mappings:
Namespace Name Mixin selector named field_44870
Lnet/minecraft/entity/Entity;field_44870:F
intermediary field_44870
Lnet/minecraft/class_1297;field_44870:F
official P
Lbzm;P:F
-
field_44871
public static final double field_44871- See Also:
- Mappings:
Namespace Name Mixin selector named field_44871
Lnet/minecraft/entity/Entity;field_44871:D
intermediary field_44871
Lnet/minecraft/class_1297;field_44871:D
official Q
Lbzm;Q:D
-
field_44872
public static final double field_44872- See Also:
- Mappings:
Namespace Name Mixin selector named field_44872
Lnet/minecraft/entity/Entity;field_44872:D
intermediary field_44872
Lnet/minecraft/class_1297;field_44872:D
official R
Lbzm;R:D
-
DEFAULT_MIN_FREEZE_DAMAGE_TICKS
public static final int DEFAULT_MIN_FREEZE_DAMAGE_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_MIN_FREEZE_DAMAGE_TICKS
Lnet/minecraft/entity/Entity;DEFAULT_MIN_FREEZE_DAMAGE_TICKS:I
intermediary field_29992
Lnet/minecraft/class_1297;field_29992:I
official S
Lbzm;S:I
-
FREEZING_DAMAGE_INTERVAL
public static final int FREEZING_DAMAGE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named FREEZING_DAMAGE_INTERVAL
Lnet/minecraft/entity/Entity;FREEZING_DAMAGE_INTERVAL:I
intermediary field_29993
Lnet/minecraft/class_1297;field_29993:I
official T
Lbzm;T:I
-
field_49073
public static final int field_49073- See Also:
- Mappings:
Namespace Name Mixin selector named field_49073
Lnet/minecraft/entity/Entity;field_49073:I
intermediary field_49073
Lnet/minecraft/class_1297;field_49073:I
official U
Lbzm;U:I
-
X_THEN_Z
- Mappings:
Namespace Name Mixin selector named X_THEN_Z
Lnet/minecraft/entity/Entity;X_THEN_Z:Lcom/google/common/collect/ImmutableList;
intermediary field_57580
Lnet/minecraft/class_1297;field_57580:Lcom/google/common/collect/ImmutableList;
official e
Lbzm;e:Lcom/google/common/collect/ImmutableList;
-
Z_THEN_X
- Mappings:
Namespace Name Mixin selector named Z_THEN_X
Lnet/minecraft/entity/Entity;Z_THEN_X:Lcom/google/common/collect/ImmutableList;
intermediary field_57581
Lnet/minecraft/class_1297;field_57581:Lcom/google/common/collect/ImmutableList;
official r
Lbzm;r:Lcom/google/common/collect/ImmutableList;
-
NULL_BOX
- Mappings:
Namespace Name Mixin selector named NULL_BOX
Lnet/minecraft/entity/Entity;NULL_BOX:Lnet/minecraft/util/math/Box;
intermediary field_6025
Lnet/minecraft/class_1297;field_6025:Lnet/minecraft/class_238;
official s
Lbzm;s:Lfin;
-
SPEED_IN_WATER
private static final double SPEED_IN_WATER- See Also:
- Mappings:
Namespace Name Mixin selector named SPEED_IN_WATER
Lnet/minecraft/entity/Entity;SPEED_IN_WATER:D
intermediary field_29984
Lnet/minecraft/class_1297;field_29984:D
official t
Lbzm;t:D
-
SPEED_IN_LAVA_IN_NETHER
private static final double SPEED_IN_LAVA_IN_NETHER- See Also:
- Mappings:
Namespace Name Mixin selector named SPEED_IN_LAVA_IN_NETHER
Lnet/minecraft/entity/Entity;SPEED_IN_LAVA_IN_NETHER:D
intermediary field_29982
Lnet/minecraft/class_1297;field_29982:D
official u
Lbzm;u:D
-
SPEED_IN_LAVA
private static final double SPEED_IN_LAVA- See Also:
- Mappings:
Namespace Name Mixin selector named SPEED_IN_LAVA
Lnet/minecraft/entity/Entity;SPEED_IN_LAVA:D
intermediary field_29983
Lnet/minecraft/class_1297;field_29983:D
official aM
Lbzm;aM:D
-
renderDistanceMultiplier
private static double renderDistanceMultiplier- Mappings:
Namespace Name Mixin selector named renderDistanceMultiplier
Lnet/minecraft/entity/Entity;renderDistanceMultiplier:D
intermediary field_5999
Lnet/minecraft/class_1297;field_5999:D
official aN
Lbzm;aN:D
-
DEFAULT_FRICTION
public static final float DEFAULT_FRICTIONThe 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 named DEFAULT_FRICTION
Lnet/minecraft/entity/Entity;DEFAULT_FRICTION:F
intermediary field_29973
Lnet/minecraft/class_1297;field_29973:F
official ai
Lbzm;ai:F
-
MIN_RISING_BUBBLE_COLUMN_SPEED
public static final float MIN_RISING_BUBBLE_COLUMN_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_RISING_BUBBLE_COLUMN_SPEED
Lnet/minecraft/entity/Entity;MIN_RISING_BUBBLE_COLUMN_SPEED:F
intermediary field_29974
Lnet/minecraft/class_1297;field_29974:F
official aj
Lbzm;aj:F
-
FLAGS
- Mappings:
Namespace Name Mixin selector named FLAGS
Lnet/minecraft/entity/Entity;FLAGS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_5990
Lnet/minecraft/class_1297;field_5990:Lnet/minecraft/class_2940;
official az
Lbzm;az:Lalh;
-
ON_FIRE_FLAG_INDEX
protected static final int ON_FIRE_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named ON_FIRE_FLAG_INDEX
Lnet/minecraft/entity/Entity;ON_FIRE_FLAG_INDEX:I
intermediary field_29979
Lnet/minecraft/class_1297;field_29979:I
official aA
Lbzm;aA:I
-
SNEAKING_FLAG_INDEX
private static final int SNEAKING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named SNEAKING_FLAG_INDEX
Lnet/minecraft/entity/Entity;SNEAKING_FLAG_INDEX:I
intermediary field_29975
Lnet/minecraft/class_1297;field_29975:I
official bg
Lbzm;bg:I
-
SPRINTING_FLAG_INDEX
private static final int SPRINTING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named SPRINTING_FLAG_INDEX
Lnet/minecraft/entity/Entity;SPRINTING_FLAG_INDEX:I
intermediary field_29976
Lnet/minecraft/class_1297;field_29976:I
official bh
Lbzm;bh:I
-
SWIMMING_FLAG_INDEX
private static final int SWIMMING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named SWIMMING_FLAG_INDEX
Lnet/minecraft/entity/Entity;SWIMMING_FLAG_INDEX:I
intermediary field_29977
Lnet/minecraft/class_1297;field_29977:I
official bi
Lbzm;bi:I
-
INVISIBLE_FLAG_INDEX
private static final int INVISIBLE_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named INVISIBLE_FLAG_INDEX
Lnet/minecraft/entity/Entity;INVISIBLE_FLAG_INDEX:I
intermediary field_29978
Lnet/minecraft/class_1297;field_29978:I
official bj
Lbzm;bj:I
-
GLOWING_FLAG_INDEX
protected static final int GLOWING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named GLOWING_FLAG_INDEX
Lnet/minecraft/entity/Entity;GLOWING_FLAG_INDEX:I
intermediary field_29980
Lnet/minecraft/class_1297;field_29980:I
official aB
Lbzm;aB:I
-
GLIDING_FLAG_INDEX
protected static final int GLIDING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named GLIDING_FLAG_INDEX
Lnet/minecraft/entity/Entity;GLIDING_FLAG_INDEX:I
intermediary field_29981
Lnet/minecraft/class_1297;field_29981:I
official aC
Lbzm;aC:I
-
AIR
- Mappings:
Namespace Name Mixin selector named AIR
Lnet/minecraft/entity/Entity;AIR:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6032
Lnet/minecraft/class_1297;field_6032:Lnet/minecraft/class_2940;
official bk
Lbzm;bk:Lalh;
-
CUSTOM_NAME
- Mappings:
Namespace Name Mixin selector named CUSTOM_NAME
Lnet/minecraft/entity/Entity;CUSTOM_NAME:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6027
Lnet/minecraft/class_1297;field_6027:Lnet/minecraft/class_2940;
official bl
Lbzm;bl:Lalh;
-
NAME_VISIBLE
- Mappings:
Namespace Name Mixin selector named NAME_VISIBLE
Lnet/minecraft/entity/Entity;NAME_VISIBLE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_5975
Lnet/minecraft/class_1297;field_5975:Lnet/minecraft/class_2940;
official bm
Lbzm;bm:Lalh;
-
SILENT
- Mappings:
Namespace Name Mixin selector named SILENT
Lnet/minecraft/entity/Entity;SILENT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_5962
Lnet/minecraft/class_1297;field_5962:Lnet/minecraft/class_2940;
official bn
Lbzm;bn:Lalh;
-
NO_GRAVITY
- Mappings:
Namespace Name Mixin selector named NO_GRAVITY
Lnet/minecraft/entity/Entity;NO_GRAVITY:Lnet/minecraft/entity/data/TrackedData;
intermediary field_5995
Lnet/minecraft/class_1297;field_5995:Lnet/minecraft/class_2940;
official bo
Lbzm;bo:Lalh;
-
POSE
- Mappings:
Namespace Name Mixin selector named POSE
Lnet/minecraft/entity/Entity;POSE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_18064
Lnet/minecraft/class_1297;field_18064:Lnet/minecraft/class_2940;
official aD
Lbzm;aD:Lalh;
-
FROZEN_TICKS
- Mappings:
Namespace Name Mixin selector named FROZEN_TICKS
Lnet/minecraft/entity/Entity;FROZEN_TICKS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_27858
Lnet/minecraft/class_1297;field_27858:Lnet/minecraft/class_2940;
official bp
Lbzm;bp:Lalh;
-
MAX_QUEUED_COLLISION_CHECKS
public static final int MAX_QUEUED_COLLISION_CHECKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_QUEUED_COLLISION_CHECKS
Lnet/minecraft/entity/Entity;MAX_QUEUED_COLLISION_CHECKS:I
intermediary field_60858
Lnet/minecraft/class_1297;field_60858:I
official aL
Lbzm;aL:I
-
type
- Mappings:
Namespace Name Mixin selector named type
Lnet/minecraft/entity/Entity;type:Lnet/minecraft/entity/EntityType;
intermediary field_5961
Lnet/minecraft/class_1297;field_5961:Lnet/minecraft/class_1299;
official aO
Lbzm;aO:Lbzv;
-
alwaysSyncAbsolute
private boolean alwaysSyncAbsolute- Mappings:
Namespace Name Mixin selector named alwaysSyncAbsolute
Lnet/minecraft/entity/Entity;alwaysSyncAbsolute:Z
intermediary field_59667
Lnet/minecraft/class_1297;field_59667:Z
official aP
Lbzm;aP:Z
-
id
private int idThe entity's network ID, used as a reference for synchronization over network. This is not persistent across save and loads; useuuid
to identify an entity in those cases.- See Also:
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/entity/Entity;id:I
intermediary field_5986
Lnet/minecraft/class_1297;field_5986:I
official aQ
Lbzm;aQ:I
-
intersectionChecked
public boolean intersectionCheckedWhether 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
, andLivingEntity
. Intersection withArmorStandEntity
is checked if it is not amarker
. - Mappings:
Namespace Name Mixin selector named intersectionChecked
Lnet/minecraft/entity/Entity;intersectionChecked:Z
intermediary field_23807
Lnet/minecraft/class_1297;field_23807:Z
official V
Lbzm;V:Z
-
passengerList
- Mappings:
Namespace Name Mixin selector named passengerList
Lnet/minecraft/entity/Entity;passengerList:Lcom/google/common/collect/ImmutableList;
intermediary field_5979
Lnet/minecraft/class_1297;field_5979:Lcom/google/common/collect/ImmutableList;
official aR
Lbzm;aR:Lcom/google/common/collect/ImmutableList;
-
ridingCooldown
protected int ridingCooldown- Mappings:
Namespace Name Mixin selector named ridingCooldown
Lnet/minecraft/entity/Entity;ridingCooldown:I
intermediary field_5951
Lnet/minecraft/class_1297;field_5951:I
official W
Lbzm;W:I
-
vehicle
- Mappings:
Namespace Name Mixin selector named vehicle
Lnet/minecraft/entity/Entity;vehicle:Lnet/minecraft/entity/Entity;
intermediary field_6034
Lnet/minecraft/class_1297;field_6034:Lnet/minecraft/class_1297;
official aS
Lbzm;aS:Lbzm;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/entity/Entity;world:Lnet/minecraft/world/World;
intermediary field_6002
Lnet/minecraft/class_1297;field_6002:Lnet/minecraft/class_1937;
official aT
Lbzm;aT:Ldmu;
-
lastX
public double lastX- Mappings:
Namespace Name Mixin selector named lastX
Lnet/minecraft/entity/Entity;lastX:D
intermediary field_6014
Lnet/minecraft/class_1297;field_6014:D
official X
Lbzm;X:D
-
lastY
public double lastY- Mappings:
Namespace Name Mixin selector named lastY
Lnet/minecraft/entity/Entity;lastY:D
intermediary field_6036
Lnet/minecraft/class_1297;field_6036:D
official Y
Lbzm;Y:D
-
lastZ
public double lastZ- Mappings:
Namespace Name Mixin selector named lastZ
Lnet/minecraft/entity/Entity;lastZ:D
intermediary field_5969
Lnet/minecraft/class_1297;field_5969:D
official Z
Lbzm;Z:D
-
pos
- Mappings:
Namespace Name Mixin selector named pos
Lnet/minecraft/entity/Entity;pos:Lnet/minecraft/util/math/Vec3d;
intermediary field_22467
Lnet/minecraft/class_1297;field_22467:Lnet/minecraft/class_243;
official aU
Lbzm;aU:Lfis;
-
blockPos
- Mappings:
Namespace Name Mixin selector named blockPos
Lnet/minecraft/entity/Entity;blockPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_22468
Lnet/minecraft/class_1297;field_22468:Lnet/minecraft/class_2338;
official aV
Lbzm;aV:Ljb;
-
chunkPos
- Mappings:
Namespace Name Mixin selector named chunkPos
Lnet/minecraft/entity/Entity;chunkPos:Lnet/minecraft/util/math/ChunkPos;
intermediary field_35101
Lnet/minecraft/class_1297;field_35101:Lnet/minecraft/class_1923;
official aW
Lbzm;aW:Ldlz;
-
velocity
- Mappings:
Namespace Name Mixin selector named velocity
Lnet/minecraft/entity/Entity;velocity:Lnet/minecraft/util/math/Vec3d;
intermediary field_18276
Lnet/minecraft/class_1297;field_18276:Lnet/minecraft/class_243;
official aX
Lbzm;aX:Lfis;
-
yaw
private float yaw- Mappings:
Namespace Name Mixin selector named yaw
Lnet/minecraft/entity/Entity;yaw:F
intermediary field_6031
Lnet/minecraft/class_1297;field_6031:F
official aY
Lbzm;aY:F
-
pitch
private float pitch- Mappings:
Namespace Name Mixin selector named pitch
Lnet/minecraft/entity/Entity;pitch:F
intermediary field_5965
Lnet/minecraft/class_1297;field_5965:F
official aZ
Lbzm;aZ:F
-
lastYaw
public float lastYaw- Mappings:
Namespace Name Mixin selector named lastYaw
Lnet/minecraft/entity/Entity;lastYaw:F
intermediary field_5982
Lnet/minecraft/class_1297;field_5982:F
official aa
Lbzm;aa:F
-
lastPitch
public float lastPitch- Mappings:
Namespace Name Mixin selector named lastPitch
Lnet/minecraft/entity/Entity;lastPitch:F
intermediary field_6004
Lnet/minecraft/class_1297;field_6004:F
official ab
Lbzm;ab:F
-
boundingBox
- Mappings:
Namespace Name Mixin selector named boundingBox
Lnet/minecraft/entity/Entity;boundingBox:Lnet/minecraft/util/math/Box;
intermediary field_6005
Lnet/minecraft/class_1297;field_6005:Lnet/minecraft/class_238;
official ba
Lbzm;ba:Lfin;
-
onGround
private boolean onGround- Mappings:
Namespace Name Mixin selector named onGround
Lnet/minecraft/entity/Entity;onGround:Z
intermediary field_5952
Lnet/minecraft/class_1297;field_5952:Z
official bb
Lbzm;bb:Z
-
horizontalCollision
public boolean horizontalCollision- Mappings:
Namespace Name Mixin selector named horizontalCollision
Lnet/minecraft/entity/Entity;horizontalCollision:Z
intermediary field_5976
Lnet/minecraft/class_1297;field_5976:Z
official ac
Lbzm;ac:Z
-
verticalCollision
public boolean verticalCollision- Mappings:
Namespace Name Mixin selector named verticalCollision
Lnet/minecraft/entity/Entity;verticalCollision:Z
intermediary field_5992
Lnet/minecraft/class_1297;field_5992:Z
official ad
Lbzm;ad:Z
-
groundCollision
public boolean groundCollision- Mappings:
Namespace Name Mixin selector named groundCollision
Lnet/minecraft/entity/Entity;groundCollision:Z
intermediary field_36331
Lnet/minecraft/class_1297;field_36331:Z
official ae
Lbzm;ae:Z
-
collidedSoftly
public boolean collidedSoftly- Mappings:
Namespace Name Mixin selector named collidedSoftly
Lnet/minecraft/entity/Entity;collidedSoftly:Z
intermediary field_34927
Lnet/minecraft/class_1297;field_34927:Z
official af
Lbzm;af:Z
-
velocityModified
public boolean velocityModified- Mappings:
Namespace Name Mixin selector named velocityModified
Lnet/minecraft/entity/Entity;velocityModified:Z
intermediary field_6037
Lnet/minecraft/class_1297;field_6037:Z
official ag
Lbzm;ag:Z
-
movementMultiplier
- Mappings:
Namespace Name Mixin selector named movementMultiplier
Lnet/minecraft/entity/Entity;movementMultiplier:Lnet/minecraft/util/math/Vec3d;
intermediary field_17046
Lnet/minecraft/class_1297;field_17046:Lnet/minecraft/class_243;
official ah
Lbzm;ah:Lfis;
-
removalReason
- Mappings:
Namespace Name Mixin selector named removalReason
Lnet/minecraft/entity/Entity;removalReason:Lnet/minecraft/entity/Entity$RemovalReason;
intermediary field_26995
Lnet/minecraft/class_1297;field_26995:Lnet/minecraft/class_1297$class_5529;
official bc
Lbzm;bc:Lbzm$e;
-
distanceTraveled
public float distanceTraveled- Mappings:
Namespace Name Mixin selector named distanceTraveled
Lnet/minecraft/entity/Entity;distanceTraveled:F
intermediary field_5994
Lnet/minecraft/class_1297;field_5994:F
official ak
Lbzm;ak:F
-
speed
public float speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/Entity;speed:F
intermediary field_28627
Lnet/minecraft/class_1297;field_28627:F
official al
Lbzm;al:F
-
fallDistance
public double fallDistance- Mappings:
Namespace Name Mixin selector named fallDistance
Lnet/minecraft/entity/Entity;fallDistance:D
intermediary field_6017
Lnet/minecraft/class_1297;field_6017:D
official am
Lbzm;am:D
-
nextStepSoundDistance
private float nextStepSoundDistance- Mappings:
Namespace Name Mixin selector named nextStepSoundDistance
Lnet/minecraft/entity/Entity;nextStepSoundDistance:F
intermediary field_6003
Lnet/minecraft/class_1297;field_6003:F
official bd
Lbzm;bd:F
-
lastRenderX
public double lastRenderX- Mappings:
Namespace Name Mixin selector named lastRenderX
Lnet/minecraft/entity/Entity;lastRenderX:D
intermediary field_6038
Lnet/minecraft/class_1297;field_6038:D
official an
Lbzm;an:D
-
lastRenderY
public double lastRenderY- Mappings:
Namespace Name Mixin selector named lastRenderY
Lnet/minecraft/entity/Entity;lastRenderY:D
intermediary field_5971
Lnet/minecraft/class_1297;field_5971:D
official ao
Lbzm;ao:D
-
lastRenderZ
public double lastRenderZ- Mappings:
Namespace Name Mixin selector named lastRenderZ
Lnet/minecraft/entity/Entity;lastRenderZ:D
intermediary field_5989
Lnet/minecraft/class_1297;field_5989:D
official ap
Lbzm;ap:D
-
noClip
public boolean noClip- Mappings:
Namespace Name Mixin selector named noClip
Lnet/minecraft/entity/Entity;noClip:Z
intermediary field_5960
Lnet/minecraft/class_1297;field_5960:Z
official aq
Lbzm;aq:Z
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/entity/Entity;random:Lnet/minecraft/util/math/random/Random;
intermediary field_5974
Lnet/minecraft/class_1297;field_5974:Lnet/minecraft/class_5819;
official ar
Lbzm;ar:Lbck;
-
age
public int age- Mappings:
Namespace Name Mixin selector named age
Lnet/minecraft/entity/Entity;age:I
intermediary field_6012
Lnet/minecraft/class_1297;field_6012:I
official as
Lbzm;as:I
-
fireTicks
private int fireTicks- Mappings:
Namespace Name Mixin selector named fireTicks
Lnet/minecraft/entity/Entity;fireTicks:I
intermediary field_5956
Lnet/minecraft/class_1297;field_5956:I
official be
Lbzm;be:I
-
touchingWater
protected boolean touchingWater- Mappings:
Namespace Name Mixin selector named touchingWater
Lnet/minecraft/entity/Entity;touchingWater:Z
intermediary field_5957
Lnet/minecraft/class_1297;field_5957:Z
official at
Lbzm;at:Z
-
fluidHeight
- Mappings:
Namespace Name Mixin selector named fluidHeight
Lnet/minecraft/entity/Entity;fluidHeight:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
intermediary field_5964
Lnet/minecraft/class_1297;field_5964:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
official au
Lbzm;au:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
-
submergedInWater
protected boolean submergedInWater- Mappings:
Namespace Name Mixin selector named submergedInWater
Lnet/minecraft/entity/Entity;submergedInWater:Z
intermediary field_6000
Lnet/minecraft/class_1297;field_6000:Z
official av
Lbzm;av:Z
-
submergedFluidTag
- Mappings:
Namespace Name Mixin selector named submergedFluidTag
Lnet/minecraft/entity/Entity;submergedFluidTag:Ljava/util/Set;
intermediary field_25599
Lnet/minecraft/class_1297;field_25599:Ljava/util/Set;
official bf
Lbzm;bf:Ljava/util/Set;
-
timeUntilRegen
public int timeUntilRegen- Mappings:
Namespace Name Mixin selector named timeUntilRegen
Lnet/minecraft/entity/Entity;timeUntilRegen:I
intermediary field_6008
Lnet/minecraft/class_1297;field_6008:I
official aw
Lbzm;aw:I
-
firstUpdate
protected boolean firstUpdate- Mappings:
Namespace Name Mixin selector named firstUpdate
Lnet/minecraft/entity/Entity;firstUpdate:Z
intermediary field_5953
Lnet/minecraft/class_1297;field_5953:Z
official ax
Lbzm;ax:Z
-
dataTracker
- Mappings:
Namespace Name Mixin selector named dataTracker
Lnet/minecraft/entity/Entity;dataTracker:Lnet/minecraft/entity/data/DataTracker;
intermediary field_6011
Lnet/minecraft/class_1297;field_6011:Lnet/minecraft/class_2945;
official ay
Lbzm;ay:Lall;
-
changeListener
- Mappings:
Namespace Name Mixin selector named changeListener
Lnet/minecraft/entity/Entity;changeListener:Lnet/minecraft/world/entity/EntityChangeListener;
intermediary field_26996
Lnet/minecraft/class_1297;field_26996:Lnet/minecraft/class_5569;
official bq
Lbzm;bq:Leih;
-
trackedPosition
- Mappings:
Namespace Name Mixin selector named trackedPosition
Lnet/minecraft/entity/Entity;trackedPosition:Lnet/minecraft/entity/TrackedPosition;
intermediary field_38931
Lnet/minecraft/class_1297;field_38931:Lnet/minecraft/class_7422;
official br
Lbzm;br:Lajr;
-
velocityDirty
public boolean velocityDirty- Mappings:
Namespace Name Mixin selector named velocityDirty
Lnet/minecraft/entity/Entity;velocityDirty:Z
intermediary field_6007
Lnet/minecraft/class_1297;field_6007:Z
official aE
Lbzm;aE:Z
-
portalManager
- Mappings:
Namespace Name Mixin selector named portalManager
Lnet/minecraft/entity/Entity;portalManager:Lnet/minecraft/world/dimension/PortalManager;
intermediary field_51994
Lnet/minecraft/class_1297;field_51994:Lnet/minecraft/class_9787;
official aF
Lbzm;aF:Lcax;
-
portalCooldown
private int portalCooldown- Mappings:
Namespace Name Mixin selector named portalCooldown
Lnet/minecraft/entity/Entity;portalCooldown:I
intermediary field_6018
Lnet/minecraft/class_1297;field_6018:I
official bs
Lbzm;bs:I
-
invulnerable
private boolean invulnerable- Mappings:
Namespace Name Mixin selector named invulnerable
Lnet/minecraft/entity/Entity;invulnerable:Z
intermediary field_6009
Lnet/minecraft/class_1297;field_6009:Z
official bt
Lbzm;bt:Z
-
uuid
- Mappings:
Namespace Name Mixin selector named uuid
Lnet/minecraft/entity/Entity;uuid:Ljava/util/UUID;
intermediary field_6021
Lnet/minecraft/class_1297;field_6021:Ljava/util/UUID;
official aG
Lbzm;aG:Ljava/util/UUID;
-
uuidString
- Mappings:
Namespace Name Mixin selector named uuidString
Lnet/minecraft/entity/Entity;uuidString:Ljava/lang/String;
intermediary field_5981
Lnet/minecraft/class_1297;field_5981:Ljava/lang/String;
official aH
Lbzm;aH:Ljava/lang/String;
-
glowing
private boolean glowing- Mappings:
Namespace Name Mixin selector named glowing
Lnet/minecraft/entity/Entity;glowing:Z
intermediary field_5958
Lnet/minecraft/class_1297;field_5958:Z
official bu
Lbzm;bu:Z
-
commandTags
- Mappings:
Namespace Name Mixin selector named commandTags
Lnet/minecraft/entity/Entity;commandTags:Ljava/util/Set;
intermediary field_6029
Lnet/minecraft/class_1297;field_6029:Ljava/util/Set;
official bv
Lbzm;bv:Ljava/util/Set;
-
pistonMovementDelta
private final double[] pistonMovementDelta- Mappings:
Namespace Name Mixin selector named pistonMovementDelta
Lnet/minecraft/entity/Entity;pistonMovementDelta:[D
intermediary field_5993
Lnet/minecraft/class_1297;field_5993:[D
official bw
Lbzm;bw:[D
-
pistonMovementTick
private long pistonMovementTick- Mappings:
Namespace Name Mixin selector named pistonMovementTick
Lnet/minecraft/entity/Entity;pistonMovementTick:J
intermediary field_5996
Lnet/minecraft/class_1297;field_5996:J
official bx
Lbzm;bx:J
-
dimensions
- Mappings:
Namespace Name Mixin selector named dimensions
Lnet/minecraft/entity/Entity;dimensions:Lnet/minecraft/entity/EntityDimensions;
intermediary field_18065
Lnet/minecraft/class_1297;field_18065:Lnet/minecraft/class_4048;
official by
Lbzm;by:Lbzp;
-
standingEyeHeight
private float standingEyeHeight- Mappings:
Namespace Name Mixin selector named standingEyeHeight
Lnet/minecraft/entity/Entity;standingEyeHeight:F
intermediary field_18066
Lnet/minecraft/class_1297;field_18066:F
official bz
Lbzm;bz:F
-
inPowderSnow
public boolean inPowderSnow- Mappings:
Namespace Name Mixin selector named inPowderSnow
Lnet/minecraft/entity/Entity;inPowderSnow:Z
intermediary field_27857
Lnet/minecraft/class_1297;field_27857:Z
official aI
Lbzm;aI:Z
-
wasInPowderSnow
public boolean wasInPowderSnow- Mappings:
Namespace Name Mixin selector named wasInPowderSnow
Lnet/minecraft/entity/Entity;wasInPowderSnow:Z
intermediary field_28628
Lnet/minecraft/class_1297;field_28628:Z
official aJ
Lbzm;aJ:Z
-
supportingBlockPos
- Mappings:
Namespace Name Mixin selector named supportingBlockPos
Lnet/minecraft/entity/Entity;supportingBlockPos:Ljava/util/Optional;
intermediary field_44784
Lnet/minecraft/class_1297;field_44784:Ljava/util/Optional;
official aK
Lbzm;aK:Ljava/util/Optional;
-
forceUpdateSupportingBlockPos
private boolean forceUpdateSupportingBlockPos- Mappings:
Namespace Name Mixin selector named forceUpdateSupportingBlockPos
Lnet/minecraft/entity/Entity;forceUpdateSupportingBlockPos:Z
intermediary field_44873
Lnet/minecraft/class_1297;field_44873:Z
official bA
Lbzm;bA:Z
-
lastChimeIntensity
private float lastChimeIntensity- Mappings:
Namespace Name Mixin selector named lastChimeIntensity
Lnet/minecraft/entity/Entity;lastChimeIntensity:F
intermediary field_26997
Lnet/minecraft/class_1297;field_26997:F
official bB
Lbzm;bB:F
-
lastChimeAge
private int lastChimeAge- Mappings:
Namespace Name Mixin selector named lastChimeAge
Lnet/minecraft/entity/Entity;lastChimeAge:I
intermediary field_26994
Lnet/minecraft/class_1297;field_26994:I
official bC
Lbzm;bC:I
-
hasVisualFire
private boolean hasVisualFire- Mappings:
Namespace Name Mixin selector named hasVisualFire
Lnet/minecraft/entity/Entity;hasVisualFire:Z
intermediary field_33758
Lnet/minecraft/class_1297;field_33758:Z
official bD
Lbzm;bD:Z
-
stateAtPos
- Mappings:
Namespace Name Mixin selector named stateAtPos
Lnet/minecraft/entity/Entity;stateAtPos:Lnet/minecraft/block/BlockState;
intermediary field_47742
Lnet/minecraft/class_1297;field_47742:Lnet/minecraft/class_2680;
official bE
Lbzm;bE:Leeb;
-
queuedCollisionChecks
- Mappings:
Namespace Name Mixin selector named queuedCollisionChecks
Lnet/minecraft/entity/Entity;queuedCollisionChecks:Ljava/util/ArrayDeque;
intermediary field_54947
Lnet/minecraft/class_1297;field_54947:Ljava/util/ArrayDeque;
official bF
Lbzm;bF:Ljava/util/ArrayDeque;
-
currentlyCheckedCollisions
- Mappings:
Namespace Name Mixin selector named currentlyCheckedCollisions
Lnet/minecraft/entity/Entity;currentlyCheckedCollisions:Ljava/util/List;
intermediary field_57579
Lnet/minecraft/class_1297;field_57579:Ljava/util/List;
official bG
Lbzm;bG:Ljava/util/List;
-
collidedBlockPositions
- Mappings:
Namespace Name Mixin selector named collidedBlockPositions
Lnet/minecraft/entity/Entity;collidedBlockPositions:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_54948
Lnet/minecraft/class_1297;field_54948:Lit/unimi/dsi/fastutil/longs/LongSet;
official bH
Lbzm;bH:Lit/unimi/dsi/fastutil/longs/LongSet;
-
collisionHandler
- Mappings:
Namespace Name Mixin selector named collisionHandler
Lnet/minecraft/entity/Entity;collisionHandler:Lnet/minecraft/entity/EntityCollisionHandler$Impl;
intermediary field_56630
Lnet/minecraft/class_1297;field_56630:Lnet/minecraft/class_10774$class_10775;
official bI
Lbzm;bI:Lcae$a;
-
customData
- Mappings:
Namespace Name Mixin selector named customData
Lnet/minecraft/entity/Entity;customData:Lnet/minecraft/component/type/NbtComponent;
intermediary field_58051
Lnet/minecraft/class_1297;field_58051:Lnet/minecraft/class_9279;
official bJ
Lbzm;bJ:Ldfd;
-
-
Constructor Details
-
Entity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbzm;<init>(Lbzv;Ldmu;)V
-
-
Method Details
-
collidesWithStateAtPos
Returns whether the entity collides with the blockstate
atpos
.- Returns:
- whether the entity collides with the block
state
atpos
- Mappings:
Namespace Name Mixin selector named collidesWithStateAtPos
Lnet/minecraft/entity/Entity;collidesWithStateAtPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
intermediary method_30632
Lnet/minecraft/class_1297;method_30632(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
official a
Lbzm;a(Ljb;Leeb;)Z
-
getTeamColorValue
public int getTeamColorValue()Returns the team color value, or0xFFFFFF
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 named getTeamColorValue
Lnet/minecraft/entity/Entity;getTeamColorValue()I
intermediary method_22861
Lnet/minecraft/class_1297;method_22861()I
official m_
Lbzm;m_()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 named isSpectator
Lnet/minecraft/entity/Entity;isSpectator()Z
intermediary method_7325
Lnet/minecraft/class_1297;method_7325()Z
official am
Lbzm;am()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 named detach
Lnet/minecraft/entity/Entity;detach()V
intermediary method_18375
Lnet/minecraft/class_1297;method_18375()V
official an
Lbzm;an()V
-
updateTrackedPosition
public void updateTrackedPosition(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named updateTrackedPosition
Lnet/minecraft/entity/Entity;updateTrackedPosition(DDD)V
intermediary method_43391
Lnet/minecraft/class_1297;method_43391(DDD)V
official e
Lbzm;e(DDD)V
-
getTrackedPosition
- Mappings:
Namespace Name Mixin selector named getTrackedPosition
Lnet/minecraft/entity/Entity;getTrackedPosition()Lnet/minecraft/entity/TrackedPosition;
intermediary method_43389
Lnet/minecraft/class_1297;method_43389()Lnet/minecraft/class_7422;
official ao
Lbzm;ao()Lajr;
-
getType
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/entity/Entity;getType()Lnet/minecraft/entity/EntityType;
intermediary method_5864
Lnet/minecraft/class_1297;method_5864()Lnet/minecraft/class_1299;
official ap
Lbzm;ap()Lbzv;
-
shouldAlwaysSyncAbsolute
public boolean shouldAlwaysSyncAbsolute()- Mappings:
Namespace Name Mixin selector named shouldAlwaysSyncAbsolute
Lnet/minecraft/entity/Entity;shouldAlwaysSyncAbsolute()Z
intermediary method_70667
Lnet/minecraft/class_1297;method_70667()Z
official aq
Lbzm;aq()Z
-
setAlwaysSyncAbsolute
public void setAlwaysSyncAbsolute(boolean alwaysSyncAbsolute) - Mappings:
Namespace Name Mixin selector named setAlwaysSyncAbsolute
Lnet/minecraft/entity/Entity;setAlwaysSyncAbsolute(Z)V
intermediary method_70669
Lnet/minecraft/class_1297;method_70669(Z)V
official c
Lbzm;c(Z)V
-
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 interfaceEntityLike
- Returns:
- the network ID of this entity
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/world/entity/EntityLike;getId()I
intermediary method_5628
Lnet/minecraft/class_5568;method_5628()I
official ar
Leig;ar()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 named setId
Lnet/minecraft/entity/Entity;setId(I)V
intermediary method_5838
Lnet/minecraft/class_1297;method_5838(I)V
official e
Lbzm;e(I)V
-
getCommandTags
Returns all command 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 command tags the entity belongs to
- Mappings:
Namespace Name Mixin selector named getCommandTags
Lnet/minecraft/entity/Entity;getCommandTags()Ljava/util/Set;
intermediary method_5752
Lnet/minecraft/class_1297;method_5752()Ljava/util/Set;
official as
Lbzm;as()Ljava/util/Set;
-
addCommandTag
Adds a command tag to this entity. An entity can have up to1024
command tags.Command tags are set using the /tag command, and is different from entity type tags defined in data packs.
- Returns:
- whether the command tag was successfully added
- Mappings:
Namespace Name Mixin selector named addCommandTag
Lnet/minecraft/entity/Entity;addCommandTag(Ljava/lang/String;)Z
intermediary method_5780
Lnet/minecraft/class_1297;method_5780(Ljava/lang/String;)Z
official a
Lbzm;a(Ljava/lang/String;)Z
-
removeCommandTag
Removes a command tag from this entity.Command tags are set using the /tag command, and is different from entity type tags defined in data packs.
- Returns:
- whether the command tag was successfully removed
- Mappings:
Namespace Name Mixin selector named removeCommandTag
Lnet/minecraft/entity/Entity;removeCommandTag(Ljava/lang/String;)Z
intermediary method_5738
Lnet/minecraft/class_1297;method_5738(Ljava/lang/String;)Z
official b
Lbzm;b(Ljava/lang/String;)Z
-
kill
Kills the entity.This drops loot when applicable, and emits the
GameEvent.ENTITY_DIE
game event.- Mappings:
Namespace Name Mixin selector named kill
Lnet/minecraft/entity/Entity;kill(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_5768
Lnet/minecraft/class_1297;method_5768(Lnet/minecraft/class_3218;)V
official c
Lbzm;c(Laub;)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 named discard
Lnet/minecraft/entity/Entity;discard()V
intermediary method_31472
Lnet/minecraft/class_1297;method_31472()V
official at
Lbzm;at()V
-
initDataTracker
Initializes data tracker.- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbzm;a(Lall$a;)V
-
getDataTracker
- Mappings:
Namespace Name Mixin selector named getDataTracker
Lnet/minecraft/entity/Entity;getDataTracker()Lnet/minecraft/entity/data/DataTracker;
intermediary method_5841
Lnet/minecraft/class_1297;method_5841()Lnet/minecraft/class_2945;
official au
Lbzm;au()Lall;
-
equals
-
hashCode
public int hashCode() -
remove
Removes the entity.- See Also:
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_5650
Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
official a
Lbzm;a(Lbzm$e;)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 named onRemoved
Lnet/minecraft/entity/Entity;onRemoved()V
intermediary method_36209
Lnet/minecraft/class_1297;method_36209()V
official av
Lbzm;av()V
-
onRemove
Called when the entity is about to be removed.- Mappings:
Namespace Name Mixin selector named onRemove
Lnet/minecraft/entity/Entity;onRemove(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_64615
Lnet/minecraft/class_1297;method_64615(Lnet/minecraft/class_1297$class_5529;)V
official b
Lbzm;b(Lbzm$e;)V
-
setPose
- Mappings:
Namespace Name Mixin selector named setPose
Lnet/minecraft/entity/Entity;setPose(Lnet/minecraft/entity/EntityPose;)V
intermediary method_18380
Lnet/minecraft/class_1297;method_18380(Lnet/minecraft/class_4050;)V
official b
Lbzm;b(Lcay;)V
-
getPose
- Mappings:
Namespace Name Mixin selector named getPose
Lnet/minecraft/entity/Entity;getPose()Lnet/minecraft/entity/EntityPose;
intermediary method_18376
Lnet/minecraft/class_1297;method_18376()Lnet/minecraft/class_4050;
official aw
Lbzm;aw()Lcay;
-
isInPose
- Mappings:
Namespace Name Mixin selector named isInPose
Lnet/minecraft/entity/Entity;isInPose(Lnet/minecraft/entity/EntityPose;)Z
intermediary method_41328
Lnet/minecraft/class_1297;method_41328(Lnet/minecraft/class_4050;)Z
official c
Lbzm;c(Lcay;)Z
-
isInRange
Returns whether the distance between this entity andentity
is belowradius
.- Returns:
- whether the distance between this entity and
entity
is belowradius
- Mappings:
Namespace Name Mixin selector named isInRange
Lnet/minecraft/entity/Entity;isInRange(Lnet/minecraft/entity/Entity;D)Z
intermediary method_24516
Lnet/minecraft/class_1297;method_24516(Lnet/minecraft/class_1297;D)Z
official a
Lbzm;a(Lbzm;D)Z
-
isInRange
Returns whether both the horizontal and vertical distances between this entity andentity
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 named isInRange
Lnet/minecraft/entity/Entity;isInRange(Lnet/minecraft/entity/Entity;DD)Z
intermediary method_43259
Lnet/minecraft/class_1297;method_43259(Lnet/minecraft/class_1297;DD)Z
official a
Lbzm;a(Lbzm;DD)Z
-
setRotation
protected void setRotation(float yaw, float pitch) Sets the entity's yaw and pitch.- Mappings:
Namespace Name Mixin selector named setRotation
Lnet/minecraft/entity/Entity;setRotation(FF)V
intermediary method_5710
Lnet/minecraft/class_1297;method_5710(FF)V
official b
Lbzm;b(FF)V
-
setPosition
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 named setPosition
Lnet/minecraft/entity/Entity;setPosition(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_33574
Lnet/minecraft/class_1297;method_33574(Lnet/minecraft/class_243;)V
official b
Lbzm;b(Lfis;)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 named setPosition
Lnet/minecraft/entity/Entity;setPosition(DDD)V
intermediary method_5814
Lnet/minecraft/class_1297;method_5814(DDD)V
official a_
Lbzm;a_(DDD)V
-
calculateBoundingBox
- Mappings:
Namespace Name Mixin selector named calculateBoundingBox
Lnet/minecraft/entity/Entity;calculateBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_33332
Lnet/minecraft/class_1297;method_33332()Lnet/minecraft/class_238;
official ax
Lbzm;ax()Lfin;
-
calculateDefaultBoundingBox
- Mappings:
Namespace Name Mixin selector named calculateDefaultBoundingBox
Lnet/minecraft/entity/Entity;calculateDefaultBoundingBox(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
intermediary method_65341
Lnet/minecraft/class_1297;method_65341(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
official c
Lbzm;c(Lfis;)Lfin;
-
refreshPosition
protected void refreshPosition()- Mappings:
Namespace Name Mixin selector named refreshPosition
Lnet/minecraft/entity/Entity;refreshPosition()V
intermediary method_23311
Lnet/minecraft/class_1297;method_23311()V
official ay
Lbzm;ay()V
-
changeLookDirection
public void changeLookDirection(double cursorDeltaX, double cursorDeltaY) - Mappings:
Namespace Name Mixin selector named changeLookDirection
Lnet/minecraft/entity/Entity;changeLookDirection(DD)V
intermediary method_5872
Lnet/minecraft/class_1297;method_5872(DD)V
official b
Lbzm;b(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 named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official g
Lbzm;g()V
-
baseTick
public void baseTick()- Mappings:
Namespace Name Mixin selector named baseTick
Lnet/minecraft/entity/Entity;baseTick()V
intermediary method_5670
Lnet/minecraft/class_1297;method_5670()V
official az
Lbzm;az()V
-
setOnFire
public void setOnFire(boolean onFire) - Mappings:
Namespace Name Mixin selector named setOnFire
Lnet/minecraft/entity/Entity;setOnFire(Z)V
intermediary method_33572
Lnet/minecraft/class_1297;method_33572(Z)V
official d
Lbzm;d(Z)V
-
attemptTickInVoid
public void attemptTickInVoid()CallstickInVoid()
when the entity is 64 blocks below the world's minimum Y position.- Mappings:
Namespace Name Mixin selector named attemptTickInVoid
Lnet/minecraft/entity/Entity;attemptTickInVoid()V
intermediary method_31473
Lnet/minecraft/class_1297;method_31473()V
official aA
Lbzm;aA()V
-
resetPortalCooldown
public void resetPortalCooldown()Resets the entity's portal cooldown to the default.- See Also:
- Mappings:
Namespace Name Mixin selector named resetPortalCooldown
Lnet/minecraft/entity/Entity;resetPortalCooldown()V
intermediary method_30229
Lnet/minecraft/class_1297;method_30229()V
official aB
Lbzm;aB()V
-
setPortalCooldown
public void setPortalCooldown(int portalCooldown) - Mappings:
Namespace Name Mixin selector named setPortalCooldown
Lnet/minecraft/entity/Entity;setPortalCooldown(I)V
intermediary method_51850
Lnet/minecraft/class_1297;method_51850(I)V
official f
Lbzm;f(I)V
-
getPortalCooldown
public int getPortalCooldown()- Mappings:
Namespace Name Mixin selector named getPortalCooldown
Lnet/minecraft/entity/Entity;getPortalCooldown()I
intermediary method_51848
Lnet/minecraft/class_1297;method_51848()I
official aC
Lbzm;aC()I
-
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 named hasPortalCooldown
Lnet/minecraft/entity/Entity;hasPortalCooldown()Z
intermediary method_30230
Lnet/minecraft/class_1297;method_30230()Z
official aD
Lbzm;aD()Z
-
tickPortalCooldown
protected void tickPortalCooldown()- Mappings:
Namespace Name Mixin selector named tickPortalCooldown
Lnet/minecraft/entity/Entity;tickPortalCooldown()V
intermediary method_5760
Lnet/minecraft/class_1297;method_5760()V
official M
Lbzm;M()V
-
igniteByLava
public void igniteByLava()- Mappings:
Namespace Name Mixin selector named igniteByLava
Lnet/minecraft/entity/Entity;igniteByLava()V
intermediary method_67633
Lnet/minecraft/class_1297;method_67633()V
official aE
Lbzm;aE()V
-
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 named setOnFireFromLava
Lnet/minecraft/entity/Entity;setOnFireFromLava()V
intermediary method_5730
Lnet/minecraft/class_1297;method_5730()V
official aF
Lbzm;aF()V
-
shouldPlayBurnSoundInLava
protected boolean shouldPlayBurnSoundInLava()- Mappings:
Namespace Name Mixin selector named shouldPlayBurnSoundInLava
Lnet/minecraft/entity/Entity;shouldPlayBurnSoundInLava()Z
intermediary method_64270
Lnet/minecraft/class_1297;method_64270()Z
official aG
Lbzm;aG()Z
-
setOnFireFor
public final void setOnFireFor(float seconds) Sets the entity on fire forseconds
seconds.- Mappings:
Namespace Name Mixin selector named setOnFireFor
Lnet/minecraft/entity/Entity;setOnFireFor(F)V
intermediary method_5639
Lnet/minecraft/class_1297;method_5639(F)V
official e
Lbzm;e(F)V
-
setOnFireForTicks
public void setOnFireForTicks(int ticks) - Mappings:
Namespace Name Mixin selector named setOnFireForTicks
Lnet/minecraft/entity/Entity;setOnFireForTicks(I)V
intermediary method_56073
Lnet/minecraft/class_1297;method_56073(I)V
official g
Lbzm;g(I)V
-
setFireTicks
public void setFireTicks(int fireTicks) Sets the entity on fire forticks
ticks.- See Also:
- Mappings:
Namespace Name Mixin selector named setFireTicks
Lnet/minecraft/entity/Entity;setFireTicks(I)V
intermediary method_20803
Lnet/minecraft/class_1297;method_20803(I)V
official h
Lbzm;h(I)V
-
getFireTicks
public int getFireTicks()- Mappings:
Namespace Name Mixin selector named getFireTicks
Lnet/minecraft/entity/Entity;getFireTicks()I
intermediary method_20802
Lnet/minecraft/class_1297;method_20802()I
official aH
Lbzm;aH()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 named extinguish
Lnet/minecraft/entity/Entity;extinguish()V
intermediary method_5646
Lnet/minecraft/class_1297;method_5646()V
official aI
Lbzm;aI()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 named tickInVoid
Lnet/minecraft/entity/Entity;tickInVoid()V
intermediary method_5825
Lnet/minecraft/class_1297;method_5825()V
official aJ
Lbzm;aJ()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 named doesNotCollide
Lnet/minecraft/entity/Entity;doesNotCollide(DDD)Z
intermediary method_5654
Lnet/minecraft/class_1297;method_5654(DDD)Z
official f
Lbzm;f(DDD)Z
-
doesNotCollide
- Mappings:
Namespace Name Mixin selector named doesNotCollide
Lnet/minecraft/entity/Entity;doesNotCollide(Lnet/minecraft/util/math/Box;)Z
intermediary method_5629
Lnet/minecraft/class_1297;method_5629(Lnet/minecraft/class_238;)Z
official b
Lbzm;b(Lfin;)Z
-
setOnGround
public void setOnGround(boolean onGround) - Mappings:
Namespace Name Mixin selector named setOnGround
Lnet/minecraft/entity/Entity;setOnGround(Z)V
intermediary method_24830
Lnet/minecraft/class_1297;method_24830(Z)V
official e
Lbzm;e(Z)V
-
setMovement
- Mappings:
Namespace Name Mixin selector named setMovement
Lnet/minecraft/entity/Entity;setMovement(ZLnet/minecraft/util/math/Vec3d;)V
intermediary method_65342
Lnet/minecraft/class_1297;method_65342(ZLnet/minecraft/class_243;)V
official a
Lbzm;a(ZLfis;)V
-
setMovement
- Mappings:
Namespace Name Mixin selector named setMovement
Lnet/minecraft/entity/Entity;setMovement(ZZLnet/minecraft/util/math/Vec3d;)V
intermediary method_60607
Lnet/minecraft/class_1297;method_60607(ZZLnet/minecraft/class_243;)V
official a
Lbzm;a(ZZLfis;)V
-
isSupportedBy
- Mappings:
Namespace Name Mixin selector named isSupportedBy
Lnet/minecraft/entity/Entity;isSupportedBy(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_51849
Lnet/minecraft/class_1297;method_51849(Lnet/minecraft/class_2338;)Z
official d
Lbzm;d(Ljb;)Z
-
updateSupportingBlockPos
- Mappings:
Namespace Name Mixin selector named updateSupportingBlockPos
Lnet/minecraft/entity/Entity;updateSupportingBlockPos(ZLnet/minecraft/util/math/Vec3d;)V
intermediary method_51703
Lnet/minecraft/class_1297;method_51703(ZLnet/minecraft/class_243;)V
official b
Lbzm;b(ZLfis;)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 named isOnGround
Lnet/minecraft/entity/Entity;isOnGround()Z
intermediary method_24828
Lnet/minecraft/class_1297;method_24828()Z
official aK
Lbzm;aK()Z
-
move
- Mappings:
Namespace Name Mixin selector named move
Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5784
Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
official a
Lbzm;a(Lcaq;Lfis;)V
-
applyMoveEffect
private void applyMoveEffect(Entity.MoveEffect moveEffect, Vec3d movement, BlockPos landingPos, BlockState landingState) - Mappings:
Namespace Name Mixin selector named applyMoveEffect
Lnet/minecraft/entity/Entity;applyMoveEffect(Lnet/minecraft/entity/Entity$MoveEffect;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_61407
Lnet/minecraft/class_1297;method_61407(Lnet/minecraft/class_1297$class_5799;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official a
Lbzm;a(Lbzm$d;Lfis;Ljb;Leeb;)V
-
tickBlockCollision
protected void tickBlockCollision()- Mappings:
Namespace Name Mixin selector named tickBlockCollision
Lnet/minecraft/entity/Entity;tickBlockCollision()V
intermediary method_61409
Lnet/minecraft/class_1297;method_61409()V
official aL
Lbzm;aL()V
-
addQueuedCollisionChecks
- Mappings:
Namespace Name Mixin selector named addQueuedCollisionChecks
Lnet/minecraft/entity/Entity;addQueuedCollisionChecks(Lnet/minecraft/entity/Entity$QueuedCollisionCheck;)V
intermediary method_71966
Lnet/minecraft/class_1297;method_71966(Lnet/minecraft/class_1297$class_10365;)V
official a
Lbzm;a(Lbzm$c;)V
-
popQueuedCollisionCheck
public void popQueuedCollisionCheck()- Mappings:
Namespace Name Mixin selector named popQueuedCollisionCheck
Lnet/minecraft/entity/Entity;popQueuedCollisionCheck()V
intermediary method_68259
Lnet/minecraft/class_1297;method_68259()V
official aM
Lbzm;aM()V
-
clearQueuedCollisionChecks
protected void clearQueuedCollisionChecks()- Mappings:
Namespace Name Mixin selector named clearQueuedCollisionChecks
Lnet/minecraft/entity/Entity;clearQueuedCollisionChecks()V
intermediary method_71965
Lnet/minecraft/class_1297;method_71965()V
official aN
Lbzm;aN()V
-
tickBlockCollision
- Mappings:
Namespace Name Mixin selector named tickBlockCollision
Lnet/minecraft/entity/Entity;tickBlockCollision(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_64166
Lnet/minecraft/class_1297;method_64166(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V
official a
Lbzm;a(Lfis;Lfis;)V
-
tickBlockCollisions
- Mappings:
Namespace Name Mixin selector named tickBlockCollisions
Lnet/minecraft/entity/Entity;tickBlockCollisions(Ljava/util/List;)V
intermediary method_68260
Lnet/minecraft/class_1297;method_68260(Ljava/util/List;)V
official b
Lbzm;b(Ljava/util/List;)V
-
shouldTickBlockCollision
protected boolean shouldTickBlockCollision()- Mappings:
Namespace Name Mixin selector named shouldTickBlockCollision
Lnet/minecraft/entity/Entity;shouldTickBlockCollision()Z
intermediary method_61410
Lnet/minecraft/class_1297;method_61410()Z
official aO
Lbzm;aO()Z
-
canClimb
- Mappings:
Namespace Name Mixin selector named canClimb
Lnet/minecraft/entity/Entity;canClimb(Lnet/minecraft/block/BlockState;)Z
intermediary method_51702
Lnet/minecraft/class_1297;method_51702(Lnet/minecraft/class_2680;)Z
official c
Lbzm;c(Leeb;)Z
-
stepOnBlock
private boolean stepOnBlock(BlockPos pos, BlockState state, boolean playSound, boolean emitEvent, Vec3d movement) - Mappings:
Namespace Name Mixin selector named stepOnBlock
Lnet/minecraft/entity/Entity;stepOnBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;ZZLnet/minecraft/util/math/Vec3d;)Z
intermediary method_51701
Lnet/minecraft/class_1297;method_51701(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;ZZLnet/minecraft/class_243;)Z
official a
Lbzm;a(Ljb;Leeb;ZZLfis;)Z
-
hasCollidedSoftly
- Mappings:
Namespace Name Mixin selector named hasCollidedSoftly
Lnet/minecraft/entity/Entity;hasCollidedSoftly(Lnet/minecraft/util/math/Vec3d;)Z
intermediary method_39759
Lnet/minecraft/class_1297;method_39759(Lnet/minecraft/class_243;)Z
official d
Lbzm;d(Lfis;)Z
-
playExtinguishSound
protected void playExtinguishSound()Plays theSoundEvents.ENTITY_GENERIC_EXTINGUISH_FIRE
sound.- Mappings:
Namespace Name Mixin selector named playExtinguishSound
Lnet/minecraft/entity/Entity;playExtinguishSound()V
intermediary method_36975
Lnet/minecraft/class_1297;method_36975()V
official aP
Lbzm;aP()V
-
extinguishWithSound
public void extinguishWithSound()- Mappings:
Namespace Name Mixin selector named extinguishWithSound
Lnet/minecraft/entity/Entity;extinguishWithSound()V
intermediary method_46395
Lnet/minecraft/class_1297;method_46395()V
official aQ
Lbzm;aQ()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 named addAirTravelEffects
Lnet/minecraft/entity/Entity;addAirTravelEffects()V
intermediary method_33573
Lnet/minecraft/class_1297;method_33573()V
official aR
Lbzm;aR()V
-
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 named getLandingPos
Lnet/minecraft/entity/Entity;getLandingPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_43260
Lnet/minecraft/class_1297;method_43260()Lnet/minecraft/class_2338;
official aS
Lbzm;aS()Ljb;
-
getVelocityAffectingPos
- Mappings:
Namespace Name Mixin selector named getVelocityAffectingPos
Lnet/minecraft/entity/Entity;getVelocityAffectingPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_23314
Lnet/minecraft/class_1297;method_23314()Lnet/minecraft/class_2338;
official aT
Lbzm;aT()Ljb;
-
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 named getSteppingPos
Lnet/minecraft/entity/Entity;getSteppingPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_23312
Lnet/minecraft/class_1297;method_23312()Lnet/minecraft/class_2338;
official aU
Lbzm;aU()Ljb;
-
getPosWithYOffset
- Mappings:
Namespace Name Mixin selector named getPosWithYOffset
Lnet/minecraft/entity/Entity;getPosWithYOffset(F)Lnet/minecraft/util/math/BlockPos;
intermediary method_43258
Lnet/minecraft/class_1297;method_43258(F)Lnet/minecraft/class_2338;
official f
Lbzm;f(F)Ljb;
-
getJumpVelocityMultiplier
protected float getJumpVelocityMultiplier()- Mappings:
Namespace Name Mixin selector named getJumpVelocityMultiplier
Lnet/minecraft/entity/Entity;getJumpVelocityMultiplier()F
intermediary method_23313
Lnet/minecraft/class_1297;method_23313()F
official aV
Lbzm;aV()F
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Mappings:
Namespace Name Mixin selector named getVelocityMultiplier
Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
intermediary method_23326
Lnet/minecraft/class_1297;method_23326()F
official aW
Lbzm;aW()F
-
adjustMovementForSneaking
- Mappings:
Namespace Name Mixin selector named adjustMovementForSneaking
Lnet/minecraft/entity/Entity;adjustMovementForSneaking(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/MovementType;)Lnet/minecraft/util/math/Vec3d;
intermediary method_18796
Lnet/minecraft/class_1297;method_18796(Lnet/minecraft/class_243;Lnet/minecraft/class_1313;)Lnet/minecraft/class_243;
official a
Lbzm;a(Lfis;Lcaq;)Lfis;
-
adjustMovementForPiston
- Mappings:
Namespace Name Mixin selector named adjustMovementForPiston
Lnet/minecraft/entity/Entity;adjustMovementForPiston(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
intermediary method_18794
Lnet/minecraft/class_1297;method_18794(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
official e
Lbzm;e(Lfis;)Lfis;
-
calculatePistonMovementFactor
- Mappings:
Namespace Name Mixin selector named calculatePistonMovementFactor
Lnet/minecraft/entity/Entity;calculatePistonMovementFactor(Lnet/minecraft/util/math/Direction$Axis;D)D
intermediary method_18797
Lnet/minecraft/class_1297;method_18797(Lnet/minecraft/class_2350$class_2351;D)D
official a
Lbzm;a(Ljh$a;D)D
-
adjustMovementForCollisions
- Mappings:
Namespace Name Mixin selector named adjustMovementForCollisions
Lnet/minecraft/entity/Entity;adjustMovementForCollisions(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
intermediary method_17835
Lnet/minecraft/class_1297;method_17835(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
official a
Lbzm;a(Lfis;)Lfis;
-
collectStepHeights
private static float[] collectStepHeights(Box collisionBox, List<VoxelShape> collisions, float float2, float stepHeight) - Mappings:
Namespace Name Mixin selector named collectStepHeights
Lnet/minecraft/entity/Entity;collectStepHeights(Lnet/minecraft/util/math/Box;Ljava/util/List;FF)[F
intermediary method_59921
Lnet/minecraft/class_1297;method_59921(Lnet/minecraft/class_238;Ljava/util/List;FF)[F
official a
Lbzm;a(Lfin;Ljava/util/List;FF)[F
-
adjustMovementForCollisions
public static Vec3d adjustMovementForCollisions(@Nullable @Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) - Mappings:
Namespace Name Mixin selector 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;
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;
official a
Lbzm;a(Lbzm;Lfis;Lfin;Ldmu;Ljava/util/List;)Lfis;
-
findCollisionsForMovement
private static List<VoxelShape> findCollisionsForMovement(@Nullable @Nullable Entity entity, World world, List<VoxelShape> regularCollisions, Box movingEntityBoundingBox) - Mappings:
Namespace Name Mixin selector named findCollisionsForMovement
Lnet/minecraft/entity/Entity;findCollisionsForMovement(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/util/math/Box;)Ljava/util/List;
intermediary method_59920
Lnet/minecraft/class_1297;method_59920(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_238;)Ljava/util/List;
official a
Lbzm;a(Lbzm;Ldmu;Ljava/util/List;Lfin;)Ljava/util/List;
-
adjustMovementForCollisions
private static Vec3d adjustMovementForCollisions(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) - Mappings:
Namespace Name Mixin selector 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;
intermediary method_20737
Lnet/minecraft/class_1297;method_20737(Lnet/minecraft/class_243;Lnet/minecraft/class_238;Ljava/util/List;)Lnet/minecraft/class_243;
official a
Lbzm;a(Lfis;Lfin;Ljava/util/List;)Lfis;
-
getAxisCheckOrder
- Mappings:
Namespace Name Mixin selector named getAxisCheckOrder
Lnet/minecraft/entity/Entity;getAxisCheckOrder(Lnet/minecraft/util/math/Vec3d;)Ljava/lang/Iterable;
intermediary method_68261
Lnet/minecraft/class_1297;method_68261(Lnet/minecraft/class_243;)Ljava/lang/Iterable;
official k
Lbzm;k(Lfis;)Ljava/lang/Iterable;
-
calculateNextStepSoundDistance
protected float calculateNextStepSoundDistance()- Mappings:
Namespace Name Mixin selector named calculateNextStepSoundDistance
Lnet/minecraft/entity/Entity;calculateNextStepSoundDistance()F
intermediary method_5867
Lnet/minecraft/class_1297;method_5867()F
official aX
Lbzm;aX()F
-
getSwimSound
- Mappings:
Namespace Name Mixin selector named getSwimSound
Lnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5737
Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;
official aY
Lbzm;aY()Layy;
-
getSplashSound
- Mappings:
Namespace Name Mixin selector named getSplashSound
Lnet/minecraft/entity/Entity;getSplashSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5625
Lnet/minecraft/class_1297;method_5625()Lnet/minecraft/class_3414;
official aZ
Lbzm;aZ()Layy;
-
getHighSpeedSplashSound
- Mappings:
Namespace Name Mixin selector named getHighSpeedSplashSound
Lnet/minecraft/entity/Entity;getHighSpeedSplashSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5672
Lnet/minecraft/class_1297;method_5672()Lnet/minecraft/class_3414;
official ba
Lbzm;ba()Layy;
-
checkBlockCollisions
private void checkBlockCollisions(List<Entity.QueuedCollisionCheck> queuedCollisionChecks, EntityCollisionHandler.Impl collisionHandler) - Mappings:
Namespace Name Mixin selector named checkBlockCollisions
Lnet/minecraft/entity/Entity;checkBlockCollisions(Ljava/util/List;Lnet/minecraft/entity/EntityCollisionHandler$Impl;)V
intermediary method_65037
Lnet/minecraft/class_1297;method_65037(Ljava/util/List;Lnet/minecraft/class_10774$class_10775;)V
official a
Lbzm;a(Ljava/util/List;Lcae$a;)V
-
checkBlockCollision
private void checkBlockCollision(Vec3d from, Vec3d to, EntityCollisionHandler.Impl collisionHandler, LongSet collidedBlockPositions) - Mappings:
Namespace Name Mixin selector named checkBlockCollision
Lnet/minecraft/entity/Entity;checkBlockCollision(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/EntityCollisionHandler$Impl;Lit/unimi/dsi/fastutil/longs/LongSet;)V
intermediary method_72084
Lnet/minecraft/class_1297;method_72084(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_10774$class_10775;Lit/unimi/dsi/fastutil/longs/LongSet;)V
official a
Lbzm;a(Lfis;Lfis;Lcae$a;Lit/unimi/dsi/fastutil/longs/LongSet;)V
-
afterCollisionCheck
- Mappings:
Namespace Name Mixin selector named afterCollisionCheck
Lnet/minecraft/entity/Entity;afterCollisionCheck(Lnet/minecraft/util/math/BlockPos;ZZ)V
intermediary method_72085
Lnet/minecraft/class_1297;method_72085(Lnet/minecraft/class_2338;ZZ)V
official a
Lbzm;a(Ljb;ZZ)V
-
collidesWithFluid
- Mappings:
Namespace Name Mixin selector named collidesWithFluid
Lnet/minecraft/entity/Entity;collidesWithFluid(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
intermediary method_66648
Lnet/minecraft/class_1297;method_66648(Lnet/minecraft/class_3610;Lnet/minecraft/class_2338;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
official a
Lbzm;a(Lfal;Ljb;Lfis;Lfis;)Z
-
collides
- Mappings:
Namespace Name Mixin selector named collides
Lnet/minecraft/entity/Entity;collides(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Ljava/util/List;)Z
intermediary method_63612
Lnet/minecraft/class_1297;method_63612(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Ljava/util/List;)Z
official a
Lbzm;a(Lfis;Lfis;Ljava/util/List;)Z
-
onBlockCollision
Called when this entity's collision box intersectsstate
.- See Also:
- Mappings:
Namespace Name Mixin selector named onBlockCollision
Lnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)V
intermediary method_5622
Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)V
official a
Lbzm;a(Leeb;)V
-
getWorldSpawnPos
- Mappings:
Namespace Name Mixin selector named getWorldSpawnPos
Lnet/minecraft/entity/Entity;getWorldSpawnPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
intermediary method_14245
Lnet/minecraft/class_1297;method_14245(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
official a
Lbzm;a(Laub;Ljb;)Ljb;
-
emitGameEvent
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, ornull
if there is none- See Also:
- Mappings:
Namespace Name Mixin selector named emitGameEvent
Lnet/minecraft/entity/Entity;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;)V
intermediary method_32875
Lnet/minecraft/class_1297;method_32875(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;)V
official a
Lbzm;a(Ljl;Lbzm;)V
-
emitGameEvent
Emits a game event originating from this entity at this entity's position.- See Also:
- Mappings:
Namespace Name Mixin selector named emitGameEvent
Lnet/minecraft/entity/Entity;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary method_32876
Lnet/minecraft/class_1297;method_32876(Lnet/minecraft/class_6880;)V
official c
Lbzm;c(Ljl;)V
-
playStepSounds
- Mappings:
Namespace Name Mixin selector named playStepSounds
Lnet/minecraft/entity/Entity;playStepSounds(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_51297
Lnet/minecraft/class_1297;method_51297(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official c
Lbzm;c(Ljb;Leeb;)V
-
playSwimSound
protected void playSwimSound()- Mappings:
Namespace Name Mixin selector named playSwimSound
Lnet/minecraft/entity/Entity;playSwimSound()V
intermediary method_51295
Lnet/minecraft/class_1297;method_51295()V
official bb
Lbzm;bb()V
-
getStepSoundPos
- Mappings:
Namespace Name Mixin selector named getStepSoundPos
Lnet/minecraft/entity/Entity;getStepSoundPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
intermediary method_49788
Lnet/minecraft/class_1297;method_49788(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
official e
Lbzm;e(Ljb;)Ljb;
-
playCombinationStepSounds
- Mappings:
Namespace Name Mixin selector named playCombinationStepSounds
Lnet/minecraft/entity/Entity;playCombinationStepSounds(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)V
intermediary method_49787
Lnet/minecraft/class_1297;method_49787(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V
official a
Lbzm;a(Leeb;Leeb;)V
-
playSecondaryStepSound
- Mappings:
Namespace Name Mixin selector named playSecondaryStepSound
Lnet/minecraft/entity/Entity;playSecondaryStepSound(Lnet/minecraft/block/BlockState;)V
intermediary method_51296
Lnet/minecraft/class_1297;method_51296(Lnet/minecraft/class_2680;)V
official b
Lbzm;b(Leeb;)V
-
playStepSound
- Mappings:
Namespace Name Mixin selector named playStepSound
Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_5712
Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official b
Lbzm;b(Ljb;Leeb;)V
-
shouldPlayAmethystChimeSound
- Mappings:
Namespace Name Mixin selector named shouldPlayAmethystChimeSound
Lnet/minecraft/entity/Entity;shouldPlayAmethystChimeSound(Lnet/minecraft/block/BlockState;)Z
intermediary method_49790
Lnet/minecraft/class_1297;method_49790(Lnet/minecraft/class_2680;)Z
official d
Lbzm;d(Leeb;)Z
-
playAmethystChimeSound
private void playAmethystChimeSound()- Mappings:
Namespace Name Mixin selector named playAmethystChimeSound
Lnet/minecraft/entity/Entity;playAmethystChimeSound()V
intermediary method_37215
Lnet/minecraft/class_1297;method_37215()V
official l
Lbzm;l()V
-
playSwimSound
protected void playSwimSound(float volume) - Mappings:
Namespace Name Mixin selector named playSwimSound
Lnet/minecraft/entity/Entity;playSwimSound(F)V
intermediary method_5734
Lnet/minecraft/class_1297;method_5734(F)V
official g
Lbzm;g(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 named addFlapEffects
Lnet/minecraft/entity/Entity;addFlapEffects()V
intermediary method_5801
Lnet/minecraft/class_1297;method_5801()V
official bc
Lbzm;bc()V
-
isFlappingWings
protected boolean isFlappingWings()Returns whether the entity is flapping their wings.Entities flapping their wings will call
addFlapEffects()
insideaddAirTravelEffects()
.- Returns:
- whether the entity is flapping their wings
- Mappings:
Namespace Name Mixin selector named isFlappingWings
Lnet/minecraft/entity/Entity;isFlappingWings()Z
intermediary method_5776
Lnet/minecraft/class_1297;method_5776()Z
official bd
Lbzm;bd()Z
-
playSound
- Mappings:
Namespace Name Mixin selector named playSound
Lnet/minecraft/entity/Entity;playSound(Lnet/minecraft/sound/SoundEvent;FF)V
intermediary method_5783
Lnet/minecraft/class_1297;method_5783(Lnet/minecraft/class_3414;FF)V
official a
Lbzm;a(Layy;FF)V
-
playSoundIfNotSilent
- Mappings:
Namespace Name Mixin selector named playSoundIfNotSilent
Lnet/minecraft/entity/Entity;playSoundIfNotSilent(Lnet/minecraft/sound/SoundEvent;)V
intermediary method_43077
Lnet/minecraft/class_1297;method_43077(Lnet/minecraft/class_3414;)V
official a
Lbzm;a(Layy;)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 named isSilent
Lnet/minecraft/entity/Entity;isSilent()Z
intermediary method_5701
Lnet/minecraft/class_1297;method_5701()Z
official be
Lbzm;be()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 named setSilent
Lnet/minecraft/entity/Entity;setSilent(Z)V
intermediary method_5803
Lnet/minecraft/class_1297;method_5803(Z)V
official f
Lbzm;f(Z)V
-
hasNoGravity
public boolean hasNoGravity()Returns whether the entity has no gravity.Entities using
FlightMoveControl
has no gravity. This is saved under theNoGravity
NBT key.- Returns:
- whether the entity has no gravity
- Mappings:
Namespace Name Mixin selector named hasNoGravity
Lnet/minecraft/entity/Entity;hasNoGravity()Z
intermediary method_5740
Lnet/minecraft/class_1297;method_5740()Z
official bf
Lbzm;bf()Z
-
setNoGravity
public void setNoGravity(boolean noGravity) Sets whether the entity has no gravity.Entities using
FlightMoveControl
has no gravity. This is saved under theNoGravity
NBT key.- Mappings:
Namespace Name Mixin selector named setNoGravity
Lnet/minecraft/entity/Entity;setNoGravity(Z)V
intermediary method_5875
Lnet/minecraft/class_1297;method_5875(Z)V
official g
Lbzm;g(Z)V
-
getGravity
protected double getGravity()- Mappings:
Namespace Name Mixin selector named getGravity
Lnet/minecraft/entity/Entity;getGravity()D
intermediary method_7490
Lnet/minecraft/class_1297;method_7490()D
official bg
Lbzm;bg()D
-
getFinalGravity
public final double getFinalGravity()- Mappings:
Namespace Name Mixin selector named getFinalGravity
Lnet/minecraft/entity/Entity;getFinalGravity()D
intermediary method_56989
Lnet/minecraft/class_1297;method_56989()D
official bh
Lbzm;bh()D
-
applyGravity
protected void applyGravity()- Mappings:
Namespace Name Mixin selector named applyGravity
Lnet/minecraft/entity/Entity;applyGravity()V
intermediary method_56990
Lnet/minecraft/class_1297;method_56990()V
official bi
Lbzm;bi()V
-
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 named getMoveEffect
Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
official bj
Lbzm;bj()Lbzm$d;
-
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 named occludeVibrationSignals
Lnet/minecraft/entity/Entity;occludeVibrationSignals()Z
intermediary method_33189
Lnet/minecraft/class_1297;method_33189()Z
official bk
Lbzm;bk()Z
-
handleFall
public final void handleFall(double xDifference, double yDifference, double zDifference, boolean onGround) - Mappings:
Namespace Name Mixin selector named handleFall
Lnet/minecraft/entity/Entity;handleFall(DDDZ)V
intermediary method_65942
Lnet/minecraft/class_1297;method_65942(DDDZ)V
official a
Lbzm;a(DDDZ)V
-
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, double)
, which can add or reduce fall damage, emitsGameEvent.HIT_GROUND
, then callsonLanding()
. Otherwise, ifheightDifference
is negative, it subtracts that value fromfallDistance
. - Mappings:
Namespace Name Mixin selector named fall
Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_5623
Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
official a
Lbzm;a(DZLeeb;Ljb;)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 named isFireImmune
Lnet/minecraft/entity/Entity;isFireImmune()Z
intermediary method_5753
Lnet/minecraft/class_1297;method_5753()Z
official bl
Lbzm;bl()Z
-
handleFallDamage
public boolean handleFallDamage(double fallDistance, float damagePerDistance, 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 named handleFallDamage
Lnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5747
Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Z
official a
Lbzm;a(DFLbyb;)Z
-
handleFallDamageForPassengers
protected void handleFallDamageForPassengers(double fallDistance, float damagePerDistance, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named handleFallDamageForPassengers
Lnet/minecraft/entity/Entity;handleFallDamageForPassengers(DFLnet/minecraft/entity/damage/DamageSource;)V
intermediary method_67345
Lnet/minecraft/class_1297;method_67345(DFLnet/minecraft/class_1282;)V
official b
Lbzm;b(DFLbyb;)V
-
isTouchingWater
public boolean isTouchingWater()Returns whether this entity's hitbox is touching water fluid.- Mappings:
Namespace Name Mixin selector named isTouchingWater
Lnet/minecraft/entity/Entity;isTouchingWater()Z
intermediary method_5799
Lnet/minecraft/class_1297;method_5799()Z
official bm
Lbzm;bm()Z
-
isBeingRainedOn
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 named isBeingRainedOn
Lnet/minecraft/entity/Entity;isBeingRainedOn()Z
intermediary method_5778
Lnet/minecraft/class_1297;method_5778()Z
official bn
Lbzm;bn()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 named isTouchingWaterOrRain
Lnet/minecraft/entity/Entity;isTouchingWaterOrRain()Z
intermediary method_5721
Lnet/minecraft/class_1297;method_5721()Z
official bo
Lbzm;bo()Z
-
isInFluid
public boolean isInFluid()- Mappings:
Namespace Name Mixin selector named isInFluid
Lnet/minecraft/entity/Entity;isInFluid()Z
intermediary method_52535
Lnet/minecraft/class_1297;method_52535()Z
official bp
Lbzm;bp()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 named isSubmergedInWater
Lnet/minecraft/entity/Entity;isSubmergedInWater()Z
intermediary method_5869
Lnet/minecraft/class_1297;method_5869()Z
official bq
Lbzm;bq()Z
-
isAtCloudHeight
public boolean isAtCloudHeight()- Mappings:
Namespace Name Mixin selector named isAtCloudHeight
Lnet/minecraft/entity/Entity;isAtCloudHeight()Z
intermediary method_70668
Lnet/minecraft/class_1297;method_70668()Z
official br
Lbzm;br()Z
-
updateSwimming
public void updateSwimming()- Mappings:
Namespace Name Mixin selector named updateSwimming
Lnet/minecraft/entity/Entity;updateSwimming()V
intermediary method_5790
Lnet/minecraft/class_1297;method_5790()V
official bs
Lbzm;bs()V
-
updateWaterState
protected boolean updateWaterState()- Mappings:
Namespace Name Mixin selector named updateWaterState
Lnet/minecraft/entity/Entity;updateWaterState()Z
intermediary method_5876
Lnet/minecraft/class_1297;method_5876()Z
official bt
Lbzm;bt()Z
-
checkWaterState
void checkWaterState()- Mappings:
Namespace Name Mixin selector named checkWaterState
Lnet/minecraft/entity/Entity;checkWaterState()V
intermediary method_5713
Lnet/minecraft/class_1297;method_5713()V
official bu
Lbzm;bu()V
-
updateSubmergedInWaterState
private void updateSubmergedInWaterState()- Mappings:
Namespace Name Mixin selector named updateSubmergedInWaterState
Lnet/minecraft/entity/Entity;updateSubmergedInWaterState()V
intermediary method_5630
Lnet/minecraft/class_1297;method_5630()V
official I
Lbzm;I()V
-
onSwimmingStart
protected void onSwimmingStart()- Mappings:
Namespace Name Mixin selector named onSwimmingStart
Lnet/minecraft/entity/Entity;onSwimmingStart()V
intermediary method_5746
Lnet/minecraft/class_1297;method_5746()V
official bv
Lbzm;bv()V
-
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 named getLandingBlockState
Lnet/minecraft/entity/Entity;getLandingBlockState()Lnet/minecraft/block/BlockState;
intermediary method_43261
Lnet/minecraft/class_1297;method_43261()Lnet/minecraft/class_2680;
official bw
Lbzm;bw()Leeb;
-
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 named getSteppingBlockState
Lnet/minecraft/entity/Entity;getSteppingBlockState()Lnet/minecraft/block/BlockState;
intermediary method_25936
Lnet/minecraft/class_1297;method_25936()Lnet/minecraft/class_2680;
official bx
Lbzm;bx()Leeb;
-
shouldSpawnSprintingParticles
public boolean shouldSpawnSprintingParticles()- Mappings:
Namespace Name Mixin selector named shouldSpawnSprintingParticles
Lnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Z
intermediary method_27298
Lnet/minecraft/class_1297;method_27298()Z
official by
Lbzm;by()Z
-
spawnSprintingParticles
protected void spawnSprintingParticles()- Mappings:
Namespace Name Mixin selector named spawnSprintingParticles
Lnet/minecraft/entity/Entity;spawnSprintingParticles()V
intermediary method_5839
Lnet/minecraft/class_1297;method_5839()V
official bz
Lbzm;bz()V
-
isSubmergedIn
Returns whether the entity is submerged in a fluid influidTag
.- Returns:
- whether the entity is submerged in a fluid in
fluidTag
- Mappings:
Namespace Name Mixin selector named isSubmergedIn
Lnet/minecraft/entity/Entity;isSubmergedIn(Lnet/minecraft/registry/tag/TagKey;)Z
intermediary method_5777
Lnet/minecraft/class_1297;method_5777(Lnet/minecraft/class_6862;)Z
official a
Lbzm;a(Lbae;)Z
-
isInLava
public boolean isInLava()Returns whether the entity is in lava.- Returns:
- whether the entity is in lava
- Mappings:
Namespace Name Mixin selector named isInLava
Lnet/minecraft/entity/Entity;isInLava()Z
intermediary method_5771
Lnet/minecraft/class_1297;method_5771()Z
official bA
Lbzm;bA()Z
-
updateVelocity
Updates the entity's velocity to add a vector in the direction of the entity's yaw whose absolute value ismovementInput
normalized and multiplied byspeed
.This is usually called inside overridden
LivingEntity.travel(net.minecraft.util.math.Vec3d)
if the entity is touching water; seeFishEntity
for an example.- Mappings:
Namespace Name Mixin selector named updateVelocity
Lnet/minecraft/entity/Entity;updateVelocity(FLnet/minecraft/util/math/Vec3d;)V
intermediary method_5724
Lnet/minecraft/class_1297;method_5724(FLnet/minecraft/class_243;)V
official a
Lbzm;a(FLfis;)V
-
movementInputToVelocity
Returns a vector with the horizontal direction beingyaw
degrees and the absolute value beingmovementInput
normalized and multiplied byspeed
.- Returns:
- a vector with the horizontal direction being
yaw
degrees and the absolute value beingmovementInput
normalized and multiplied byspeed
- Mappings:
Namespace Name Mixin selector named movementInputToVelocity
Lnet/minecraft/entity/Entity;movementInputToVelocity(Lnet/minecraft/util/math/Vec3d;FF)Lnet/minecraft/util/math/Vec3d;
intermediary method_18795
Lnet/minecraft/class_1297;method_18795(Lnet/minecraft/class_243;FF)Lnet/minecraft/class_243;
official a
Lbzm;a(Lfis;FF)Lfis;
-
getBrightnessAtEyes
Deprecated.- Mappings:
Namespace Name Mixin selector named getBrightnessAtEyes
Lnet/minecraft/entity/Entity;getBrightnessAtEyes()F
intermediary method_5718
Lnet/minecraft/class_1297;method_5718()F
official bB
Lbzm;bB()F
-
updatePositionAndAngles
public void updatePositionAndAngles(double x, double y, double z, float yaw, float pitch) - Mappings:
Namespace Name Mixin selector named updatePositionAndAngles
Lnet/minecraft/entity/Entity;updatePositionAndAngles(DDDFF)V
intermediary method_5641
Lnet/minecraft/class_1297;method_5641(DDDFF)V
official a
Lbzm;a(DDDFF)V
-
setAngles
public void setAngles(float yaw, float pitch) - Mappings:
Namespace Name Mixin selector named setAngles
Lnet/minecraft/entity/Entity;setAngles(FF)V
intermediary method_60608
Lnet/minecraft/class_1297;method_60608(FF)V
official c
Lbzm;c(FF)V
-
updatePosition
public void updatePosition(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named updatePosition
Lnet/minecraft/entity/Entity;updatePosition(DDD)V
intermediary method_30634
Lnet/minecraft/class_1297;method_30634(DDD)V
official g
Lbzm;g(DDD)V
-
refreshPositionAfterTeleport
- Mappings:
Namespace Name Mixin selector named refreshPositionAfterTeleport
Lnet/minecraft/entity/Entity;refreshPositionAfterTeleport(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_29495
Lnet/minecraft/class_1297;method_29495(Lnet/minecraft/class_243;)V
official f
Lbzm;f(Lfis;)V
-
refreshPositionAfterTeleport
public void refreshPositionAfterTeleport(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named refreshPositionAfterTeleport
Lnet/minecraft/entity/Entity;refreshPositionAfterTeleport(DDD)V
intermediary method_24203
Lnet/minecraft/class_1297;method_24203(DDD)V
official d
Lbzm;d(DDD)V
-
refreshPositionAndAngles
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 named refreshPositionAndAngles
Lnet/minecraft/entity/Entity;refreshPositionAndAngles(Lnet/minecraft/util/math/BlockPos;FF)V
intermediary method_5725
Lnet/minecraft/class_1297;method_5725(Lnet/minecraft/class_2338;FF)V
official a
Lbzm;a(Ljb;FF)V
-
refreshPositionAndAngles
- Mappings:
Namespace Name Mixin selector named refreshPositionAndAngles
Lnet/minecraft/entity/Entity;refreshPositionAndAngles(Lnet/minecraft/util/math/Vec3d;FF)V
intermediary method_60949
Lnet/minecraft/class_1297;method_60949(Lnet/minecraft/class_243;FF)V
official b
Lbzm;b(Lfis;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 named refreshPositionAndAngles
Lnet/minecraft/entity/Entity;refreshPositionAndAngles(DDDFF)V
intermediary method_5808
Lnet/minecraft/class_1297;method_5808(DDDFF)V
official b
Lbzm;b(DDDFF)V
-
resetPosition
public final void resetPosition()- Mappings:
Namespace Name Mixin selector named resetPosition
Lnet/minecraft/entity/Entity;resetPosition()V
intermediary method_22862
Lnet/minecraft/class_1297;method_22862()V
official bC
Lbzm;bC()V
-
setLastPositionAndAngles
- Mappings:
Namespace Name Mixin selector named setLastPositionAndAngles
Lnet/minecraft/entity/Entity;setLastPositionAndAngles(Lnet/minecraft/util/math/Vec3d;FF)V
intermediary method_63615
Lnet/minecraft/class_1297;method_63615(Lnet/minecraft/class_243;FF)V
official c
Lbzm;c(Lfis;FF)V
-
updateLastPosition
protected void updateLastPosition()- Mappings:
Namespace Name Mixin selector named updateLastPosition
Lnet/minecraft/entity/Entity;updateLastPosition()V
intermediary method_63613
Lnet/minecraft/class_1297;method_63613()V
official bD
Lbzm;bD()V
-
updateLastAngles
public void updateLastAngles()- Mappings:
Namespace Name Mixin selector named updateLastAngles
Lnet/minecraft/entity/Entity;updateLastAngles()V
intermediary method_63614
Lnet/minecraft/class_1297;method_63614()V
official bE
Lbzm;bE()V
-
setLastPosition
- Mappings:
Namespace Name Mixin selector named setLastPosition
Lnet/minecraft/entity/Entity;setLastPosition(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_63618
Lnet/minecraft/class_1297;method_63618(Lnet/minecraft/class_243;)V
official l
Lbzm;l(Lfis;)V
-
setLastAngles
private void setLastAngles(float lastYaw, float lastPitch) - Mappings:
Namespace Name Mixin selector named setLastAngles
Lnet/minecraft/entity/Entity;setLastAngles(FF)V
intermediary method_63617
Lnet/minecraft/class_1297;method_63617(FF)V
official f
Lbzm;f(FF)V
-
getLastRenderPos
- Mappings:
Namespace Name Mixin selector named getLastRenderPos
Lnet/minecraft/entity/Entity;getLastRenderPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_61411
Lnet/minecraft/class_1297;method_61411()Lnet/minecraft/class_243;
official bF
Lbzm;bF()Lfis;
-
distanceTo
Returns the distance between this entity andentity
.- Returns:
- the distance between this entity and
entity
- Mappings:
Namespace Name Mixin selector named distanceTo
Lnet/minecraft/entity/Entity;distanceTo(Lnet/minecraft/entity/Entity;)F
intermediary method_5739
Lnet/minecraft/class_1297;method_5739(Lnet/minecraft/class_1297;)F
official f
Lbzm;f(Lbzm;)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 named squaredDistanceTo
Lnet/minecraft/entity/Entity;squaredDistanceTo(DDD)D
intermediary method_5649
Lnet/minecraft/class_1297;method_5649(DDD)D
official h
Lbzm;h(DDD)D
-
squaredDistanceTo
Returns the squared distance between this entity andentity
.- Returns:
- the squared distance between this entity and
entity
- Mappings:
Namespace Name Mixin selector named squaredDistanceTo
Lnet/minecraft/entity/Entity;squaredDistanceTo(Lnet/minecraft/entity/Entity;)D
intermediary method_5858
Lnet/minecraft/class_1297;method_5858(Lnet/minecraft/class_1297;)D
official g
Lbzm;g(Lbzm;)D
-
squaredDistanceTo
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 named squaredDistanceTo
Lnet/minecraft/entity/Entity;squaredDistanceTo(Lnet/minecraft/util/math/Vec3d;)D
intermediary method_5707
Lnet/minecraft/class_1297;method_5707(Lnet/minecraft/class_243;)D
official g
Lbzm;g(Lfis;)D
-
onPlayerCollision
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 named onPlayerCollision
Lnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_5694
Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)V
official a_
Lbzm;a_(Lcut;)V
-
pushAwayFrom
- Mappings:
Namespace Name Mixin selector named pushAwayFrom
Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
intermediary method_5697
Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
official h
Lbzm;h(Lbzm;)V
-
addVelocity
- Mappings:
Namespace Name Mixin selector named addVelocity
Lnet/minecraft/entity/Entity;addVelocity(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_60491
Lnet/minecraft/class_1297;method_60491(Lnet/minecraft/class_243;)V
official h
Lbzm;h(Lfis;)V
-
addVelocity
public void addVelocity(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector named addVelocity
Lnet/minecraft/entity/Entity;addVelocity(DDD)V
intermediary method_5762
Lnet/minecraft/class_1297;method_5762(DDD)V
official i
Lbzm;i(DDD)V
-
scheduleVelocityUpdate
protected void scheduleVelocityUpdate()- Mappings:
Namespace Name Mixin selector named scheduleVelocityUpdate
Lnet/minecraft/entity/Entity;scheduleVelocityUpdate()V
intermediary method_5785
Lnet/minecraft/class_1297;method_5785()V
official bG
Lbzm;bG()V
-
serverDamage
Deprecated.- Mappings:
Namespace Name Mixin selector named serverDamage
Lnet/minecraft/entity/Entity;serverDamage(Lnet/minecraft/entity/damage/DamageSource;F)V
intermediary method_64419
Lnet/minecraft/class_1297;method_64419(Lnet/minecraft/class_1282;F)V
official a
Lbzm;a(Lbyb;F)V
-
sidedDamage
Deprecated.- Mappings:
Namespace Name Mixin selector named sidedDamage
Lnet/minecraft/entity/Entity;sidedDamage(Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_64420
Lnet/minecraft/class_1297;method_64420(Lnet/minecraft/class_1282;F)Z
official b
Lbzm;b(Lbyb;F)Z
-
damage
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, likeEndCrystalEntity
, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource)
and return early.- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_64397
Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
official a
Lbzm;a(Laub;Lbyb;F)Z
-
clientDamage
- Mappings:
Namespace Name Mixin selector named clientDamage
Lnet/minecraft/entity/Entity;clientDamage(Lnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5643
Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;)Z
official b
Lbzm;b(Lbyb;)Z
-
getRotationVec
- Mappings:
Namespace Name Mixin selector named getRotationVec
Lnet/minecraft/entity/Entity;getRotationVec(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_5828
Lnet/minecraft/class_1297;method_5828(F)Lnet/minecraft/class_243;
official h
Lbzm;h(F)Lfis;
-
getFacing
- Mappings:
Namespace Name Mixin selector named getFacing
Lnet/minecraft/entity/Entity;getFacing()Lnet/minecraft/util/math/Direction;
intermediary method_58149
Lnet/minecraft/class_1297;method_58149()Lnet/minecraft/class_2350;
official bH
Lbzm;bH()Ljh;
-
getPitch
public float getPitch(float tickProgress) - Mappings:
Namespace Name Mixin selector named getPitch
Lnet/minecraft/entity/Entity;getPitch(F)F
intermediary method_5695
Lnet/minecraft/class_1297;method_5695(F)F
official i
Lbzm;i(F)F
-
getYaw
public float getYaw(float tickProgress) - Mappings:
Namespace Name Mixin selector named getYaw
Lnet/minecraft/entity/Entity;getYaw(F)F
intermediary method_5705
Lnet/minecraft/class_1297;method_5705(F)F
official j
Lbzm;j(F)F
-
getLerpedPitch
public float getLerpedPitch(float tickProgress) - Mappings:
Namespace Name Mixin selector named getLerpedPitch
Lnet/minecraft/entity/Entity;getLerpedPitch(F)F
intermediary method_61414
Lnet/minecraft/class_1297;method_61414(F)F
official k
Lbzm;k(F)F
-
getLerpedYaw
public float getLerpedYaw(float tickProgress) - Mappings:
Namespace Name Mixin selector named getLerpedYaw
Lnet/minecraft/entity/Entity;getLerpedYaw(F)F
intermediary method_61415
Lnet/minecraft/class_1297;method_61415(F)F
official l
Lbzm;l(F)F
-
getRotationVector
- Mappings:
Namespace Name Mixin selector named getRotationVector
Lnet/minecraft/entity/Entity;getRotationVector(FF)Lnet/minecraft/util/math/Vec3d;
intermediary method_5631
Lnet/minecraft/class_1297;method_5631(FF)Lnet/minecraft/class_243;
official d
Lbzm;d(FF)Lfis;
-
getOppositeRotationVector
- Mappings:
Namespace Name Mixin selector named getOppositeRotationVector
Lnet/minecraft/entity/Entity;getOppositeRotationVector(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_18864
Lnet/minecraft/class_1297;method_18864(F)Lnet/minecraft/class_243;
official m
Lbzm;m(F)Lfis;
-
getOppositeRotationVector
- Mappings:
Namespace Name Mixin selector named getOppositeRotationVector
Lnet/minecraft/entity/Entity;getOppositeRotationVector(FF)Lnet/minecraft/util/math/Vec3d;
intermediary method_18863
Lnet/minecraft/class_1297;method_18863(FF)Lnet/minecraft/class_243;
official e
Lbzm;e(FF)Lfis;
-
getEyePos
Returns the position of the eye.- Returns:
- the position of the eye
- See Also:
- Mappings:
Namespace Name Mixin selector named getEyePos
Lnet/minecraft/entity/Entity;getEyePos()Lnet/minecraft/util/math/Vec3d;
intermediary method_33571
Lnet/minecraft/class_1297;method_33571()Lnet/minecraft/class_243;
official bI
Lbzm;bI()Lfis;
-
getCameraPosVec
- Mappings:
Namespace Name Mixin selector named getCameraPosVec
Lnet/minecraft/entity/Entity;getCameraPosVec(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_5836
Lnet/minecraft/class_1297;method_5836(F)Lnet/minecraft/class_243;
official n
Lbzm;n(F)Lfis;
-
getClientCameraPosVec
- Mappings:
Namespace Name Mixin selector named getClientCameraPosVec
Lnet/minecraft/entity/Entity;getClientCameraPosVec(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_31166
Lnet/minecraft/class_1297;method_31166(F)Lnet/minecraft/class_243;
official o
Lbzm;o(F)Lfis;
-
getLerpedPos
- Mappings:
Namespace Name Mixin selector named getLerpedPos
Lnet/minecraft/entity/Entity;getLerpedPos(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_30950
Lnet/minecraft/class_1297;method_30950(F)Lnet/minecraft/class_243;
official p
Lbzm;p(F)Lfis;
-
raycast
- Mappings:
Namespace Name Mixin selector named raycast
Lnet/minecraft/entity/Entity;raycast(DFZ)Lnet/minecraft/util/hit/HitResult;
intermediary method_5745
Lnet/minecraft/class_1297;method_5745(DFZ)Lnet/minecraft/class_239;
official a
Lbzm;a(DFZ)Lfiq;
-
canBeHitByProjectile
public boolean canBeHitByProjectile()- Mappings:
Namespace Name Mixin selector named canBeHitByProjectile
Lnet/minecraft/entity/Entity;canBeHitByProjectile()Z
intermediary method_49108
Lnet/minecraft/class_1297;method_49108()Z
official bJ
Lbzm;bJ()Z
-
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 named canHit
Lnet/minecraft/entity/Entity;canHit()Z
intermediary method_5863
Lnet/minecraft/class_1297;method_5863()Z
official bK
Lbzm;bK()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 named isPushable
Lnet/minecraft/entity/Entity;isPushable()Z
intermediary method_5810
Lnet/minecraft/class_1297;method_5810()Z
official bL
Lbzm;bL()Z
-
updateKilledAdvancementCriterion
- Mappings:
Namespace Name Mixin selector named updateKilledAdvancementCriterion
Lnet/minecraft/entity/Entity;updateKilledAdvancementCriterion(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_5716
Lnet/minecraft/class_1297;method_5716(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)V
official a
Lbzm;a(Lbzm;Lbyb;)V
-
shouldRender
public boolean shouldRender(double cameraX, double cameraY, double cameraZ) - Mappings:
Namespace Name Mixin selector named shouldRender
Lnet/minecraft/entity/Entity;shouldRender(DDD)Z
intermediary method_5727
Lnet/minecraft/class_1297;method_5727(DDD)Z
official j
Lbzm;j(DDD)Z
-
shouldRender
public boolean shouldRender(double distance) - Mappings:
Namespace Name Mixin selector named shouldRender
Lnet/minecraft/entity/Entity;shouldRender(D)Z
intermediary method_5640
Lnet/minecraft/class_1297;method_5640(D)Z
official a
Lbzm;a(D)Z
-
saveSelfData
- Mappings:
Namespace Name Mixin selector named saveSelfData
Lnet/minecraft/entity/Entity;saveSelfData(Lnet/minecraft/storage/WriteView;)Z
intermediary method_5786
Lnet/minecraft/class_1297;method_5786(Lnet/minecraft/class_11372;)Z
official b
Lbzm;b(Lfdc;)Z
-
saveData
- Mappings:
Namespace Name Mixin selector named saveData
Lnet/minecraft/entity/Entity;saveData(Lnet/minecraft/storage/WriteView;)Z
intermediary method_5662
Lnet/minecraft/class_1297;method_5662(Lnet/minecraft/class_11372;)Z
official c
Lbzm;c(Lfdc;)Z
-
writeData
- Mappings:
Namespace Name Mixin selector named writeData
Lnet/minecraft/entity/Entity;writeData(Lnet/minecraft/storage/WriteView;)V
intermediary method_5647
Lnet/minecraft/class_1297;method_5647(Lnet/minecraft/class_11372;)V
official d
Lbzm;d(Lfdc;)V
-
readData
- Mappings:
Namespace Name Mixin selector named readData
Lnet/minecraft/entity/Entity;readData(Lnet/minecraft/storage/ReadView;)V
intermediary method_5651
Lnet/minecraft/class_1297;method_5651(Lnet/minecraft/class_11368;)V
official e
Lbzm;e(Lfda;)V
-
shouldSetPositionOnLoad
protected boolean shouldSetPositionOnLoad()- Mappings:
Namespace Name Mixin selector named shouldSetPositionOnLoad
Lnet/minecraft/entity/Entity;shouldSetPositionOnLoad()Z
intermediary method_5638
Lnet/minecraft/class_1297;method_5638()Z
official bM
Lbzm;bM()Z
-
getSavedEntityId
- Mappings:
Namespace Name Mixin selector named getSavedEntityId
Lnet/minecraft/entity/Entity;getSavedEntityId()Ljava/lang/String;
intermediary method_5653
Lnet/minecraft/class_1297;method_5653()Ljava/lang/String;
official bN
Lbzm;bN()Ljava/lang/String;
-
readCustomData
- Mappings:
Namespace Name Mixin selector named readCustomData
Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
official a
Lbzm;a(Lfda;)V
-
writeCustomData
- Mappings:
Namespace Name Mixin selector named writeCustomData
Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
official a
Lbzm;a(Lfdc;)V
-
dropItem
Drops oneitem
at the entity's position.- Returns:
- the spawned item entity, or
null
if called on the client - See Also:
- Mappings:
Namespace Name Mixin selector named dropItem
Lnet/minecraft/entity/Entity;dropItem(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/entity/ItemEntity;
intermediary method_5706
Lnet/minecraft/class_1297;method_5706(Lnet/minecraft/class_3218;Lnet/minecraft/class_1935;)Lnet/minecraft/class_1542;
official a
Lbzm;a(Laub;Ldmt;)Lcqz;
-
dropItem
@Nullable public @Nullable ItemEntity dropItem(ServerWorld world, ItemConvertible item, int offsetY) Drops oneitem
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 named dropItem
Lnet/minecraft/entity/Entity;dropItem(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemConvertible;I)Lnet/minecraft/entity/ItemEntity;
intermediary method_5870
Lnet/minecraft/class_1297;method_5870(Lnet/minecraft/class_3218;Lnet/minecraft/class_1935;I)Lnet/minecraft/class_1542;
official a
Lbzm;a(Laub;Ldmt;I)Lcqz;
-
dropStack
Dropsstack
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 named dropStack
Lnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/ItemEntity;
intermediary method_5775
Lnet/minecraft/class_1297;method_5775(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1542;
official a
Lbzm;a(Laub;Ldcv;)Lcqz;
-
dropStack
- Mappings:
Namespace Name Mixin selector named dropStack
Lnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/entity/ItemEntity;
intermediary method_71764
Lnet/minecraft/class_1297;method_71764(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_243;)Lnet/minecraft/class_1542;
official a
Lbzm;a(Laub;Ldcv;Lfis;)Lcqz;
-
dropStack
Dropsstack
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 named dropStack
Lnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/ItemEntity;
intermediary method_5699
Lnet/minecraft/class_1297;method_5699(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1542;
official a
Lbzm;a(Laub;Ldcv;F)Lcqz;
-
isAlive
public boolean isAlive()Returns whether the entity is alive.For non-
LivingEntity
, this is the same as negatingisRemoved()
.LivingEntity
checks the entity's health in addition to the removal.- Returns:
- whether the entity is alive
- Mappings:
Namespace Name Mixin selector named isAlive
Lnet/minecraft/entity/Entity;isAlive()Z
intermediary method_5805
Lnet/minecraft/class_1297;method_5805()Z
official bO
Lbzm;bO()Z
-
isInsideWall
public boolean isInsideWall()Returns whether the entity is in a wall and should suffocate.This returns
false
ifnoClip
istrue
; otherwise, this returnstrue
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 named isInsideWall
Lnet/minecraft/entity/Entity;isInsideWall()Z
intermediary method_5757
Lnet/minecraft/class_1297;method_5757()Z
official bP
Lbzm;bP()Z
-
interact
Called when a player interacts with this entity.- Parameters:
player
- the playerhand
- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector named interact
Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5688
Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official a
Lbzm;a(Lcut;Lbxi;)Lbxj;
-
snipAllHeldLeashes
- Mappings:
Namespace Name Mixin selector named snipAllHeldLeashes
Lnet/minecraft/entity/Entity;snipAllHeldLeashes(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_70984
Lnet/minecraft/class_1297;method_70984(Lnet/minecraft/class_1657;)Z
official d
Lbzm;d(Lcut;)Z
-
detachAllHeldLeashes
- Mappings:
Namespace Name Mixin selector named detachAllHeldLeashes
Lnet/minecraft/entity/Entity;detachAllHeldLeashes(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_70988
Lnet/minecraft/class_1297;method_70988(Lnet/minecraft/class_1657;)Z
official e
Lbzm;e(Lcut;)Z
-
shearEquipment
- Mappings:
Namespace Name Mixin selector named shearEquipment
Lnet/minecraft/entity/Entity;shearEquipment(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_71765
Lnet/minecraft/class_1297;method_71765(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_1308;)Z
official a
Lbzm;a(Lcut;Lbxi;Ldcv;Lcao;)Z
-
collidesWith
Returns whether this entity cannot occupy the same space withother
.This returns
false
ifother
is connected through vehicles.- Returns:
- whether this entity cannot occupy the same space with
other
- See Also:
- Mappings:
Namespace Name Mixin selector named collidesWith
Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
intermediary method_30949
Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
official i
Lbzm;i(Lbzm;)Z
-
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
andShulkerEntity
has this behavior.- Returns:
- whether other entities cannot occupy the same space with this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named isCollidable
Lnet/minecraft/entity/Entity;isCollidable(Lnet/minecraft/entity/Entity;)Z
intermediary method_30948
Lnet/minecraft/class_1297;method_30948(Lnet/minecraft/class_1297;)Z
official j
Lbzm;j(Lbzm;)Z
-
tickRiding
public void tickRiding()- Mappings:
Namespace Name Mixin selector named tickRiding
Lnet/minecraft/entity/Entity;tickRiding()V
intermediary method_5842
Lnet/minecraft/class_1297;method_5842()V
official r
Lbzm;r()V
-
updatePassengerPosition
- Mappings:
Namespace Name Mixin selector named updatePassengerPosition
Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;)V
intermediary method_24201
Lnet/minecraft/class_1297;method_24201(Lnet/minecraft/class_1297;)V
official k
Lbzm;k(Lbzm;)V
-
updatePassengerPosition
- Mappings:
Namespace Name Mixin selector named updatePassengerPosition
Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
intermediary method_5865
Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
official a
Lbzm;a(Lbzm;Lbzm$b;)V
-
onPassengerLookAround
- Mappings:
Namespace Name Mixin selector named onPassengerLookAround
Lnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)V
intermediary method_5644
Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)V
official l
Lbzm;l(Lbzm;)V
-
getVehicleAttachmentPos
- Mappings:
Namespace Name Mixin selector named getVehicleAttachmentPos
Lnet/minecraft/entity/Entity;getVehicleAttachmentPos(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
intermediary method_55668
Lnet/minecraft/class_1297;method_55668(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;
official m
Lbzm;m(Lbzm;)Lfis;
-
getPassengerRidingPos
- Mappings:
Namespace Name Mixin selector named getPassengerRidingPos
Lnet/minecraft/entity/Entity;getPassengerRidingPos(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
intermediary method_52538
Lnet/minecraft/class_1297;method_52538(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;
official n
Lbzm;n(Lbzm;)Lfis;
-
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPos
Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
intermediary method_52533
Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
official a
Lbzm;a(Lbzm;Lbzp;F)Lfis;
-
getPassengerAttachmentPos
protected static Vec3d getPassengerAttachmentPos(Entity vehicle, Entity passenger, EntityAttachments attachments) - Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPos
Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityAttachments;)Lnet/minecraft/util/math/Vec3d;
intermediary method_55665
Lnet/minecraft/class_1297;method_55665(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_9066;)Lnet/minecraft/class_243;
official a
Lbzm;a(Lbzm;Lbzm;Lbzo;)Lfis;
-
startRiding
Starts ridingentity
.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 named startRiding
Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;)Z
intermediary method_5804
Lnet/minecraft/class_1297;method_5804(Lnet/minecraft/class_1297;)Z
official o
Lbzm;o(Lbzm;)Z
-
isLiving
public boolean isLiving()- Mappings:
Namespace Name Mixin selector named isLiving
Lnet/minecraft/entity/Entity;isLiving()Z
intermediary method_5709
Lnet/minecraft/class_1297;method_5709()Z
official bQ
Lbzm;bQ()Z
-
startRiding
Starts ridingentity
.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
istrue
. 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 named startRiding
Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
intermediary method_5873
Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z
official a
Lbzm;a(Lbzm;Z)Z
-
canStartRiding
Returns whether this entity can rideentity
.Returning
false
causes the entity to be unable to ride other entities. For example,WitherEntity
overrides this to returnfalse
, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passingtrue
tostartRiding(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 named canStartRiding
Lnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Z
intermediary method_5860
Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Z
official p
Lbzm;p(Lbzm;)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 named removeAllPassengers
Lnet/minecraft/entity/Entity;removeAllPassengers()V
intermediary method_5772
Lnet/minecraft/class_1297;method_5772()V
official bR
Lbzm;bR()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 named dismountVehicle
Lnet/minecraft/entity/Entity;dismountVehicle()V
intermediary method_29239
Lnet/minecraft/class_1297;method_29239()V
official ab
Lbzm;ab()V
-
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 named stopRiding
Lnet/minecraft/entity/Entity;stopRiding()V
intermediary method_5848
Lnet/minecraft/class_1297;method_5848()V
official bS
Lbzm;bS()V
-
addPassenger
Addspassenger
as a passenger. This should not be called normally; callstartRiding(Entity)
instead. (Note that the entity to pass and the entity to call are swapped in this case;entity.startRiding(vehicle)
is the equivalent ofvehicle.addPassenger(entity)
.)- Throws:
IllegalStateException
- when the method is called directly- Mappings:
Namespace Name Mixin selector named addPassenger
Lnet/minecraft/entity/Entity;addPassenger(Lnet/minecraft/entity/Entity;)V
intermediary method_5627
Lnet/minecraft/class_1297;method_5627(Lnet/minecraft/class_1297;)V
official q
Lbzm;q(Lbzm;)V
-
removePassenger
Removespassenger
from the passengers. This should not be called normally; callstopRiding()
instead. (Note that vehicles are not passed to that method;entity.stopRiding()
is the equivalent ofvehicle.removePassenger(entity)
.)- Throws:
IllegalStateException
- when the method is called directly- Mappings:
Namespace Name Mixin selector named removePassenger
Lnet/minecraft/entity/Entity;removePassenger(Lnet/minecraft/entity/Entity;)V
intermediary method_5793
Lnet/minecraft/class_1297;method_5793(Lnet/minecraft/class_1297;)V
official r
Lbzm;r(Lbzm;)V
-
canAddPassenger
Returns whetherentity
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 named canAddPassenger
Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
intermediary method_5818
Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
official s
Lbzm;s(Lbzm;)Z
-
couldAcceptPassenger
protected boolean couldAcceptPassenger()Returnstrue
if this entity supports passengers in general.- Returns:
true
if this entity supports passengers in general- Mappings:
Namespace Name Mixin selector named couldAcceptPassenger
Lnet/minecraft/entity/Entity;couldAcceptPassenger()Z
intermediary method_48921
Lnet/minecraft/class_1297;method_48921()Z
official bT
Lbzm;bT()Z
-
isInterpolating
public final boolean isInterpolating()- Mappings:
Namespace Name Mixin selector named isInterpolating
Lnet/minecraft/entity/Entity;isInterpolating()Z
intermediary method_66245
Lnet/minecraft/class_1297;method_66245()Z
official bU
Lbzm;bU()Z
-
updateTrackedPositionAndAngles
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(Lnet/minecraft/util/math/Vec3d;FF)V
intermediary method_66246
Lnet/minecraft/class_1297;method_66246(Lnet/minecraft/class_243;FF)V
official d
Lbzm;d(Lfis;FF)V
-
getInterpolator
- Mappings:
Namespace Name Mixin selector named getInterpolator
Lnet/minecraft/entity/Entity;getInterpolator()Lnet/minecraft/entity/PositionInterpolator;
intermediary method_66233
Lnet/minecraft/class_1297;method_66233()Lnet/minecraft/class_10584;
official l_
Lbzm;l_()Lcah;
-
updateTrackedHeadRotation
public void updateTrackedHeadRotation(float yaw, int interpolationSteps) - Mappings:
Namespace Name Mixin selector named updateTrackedHeadRotation
Lnet/minecraft/entity/Entity;updateTrackedHeadRotation(FI)V
intermediary method_5683
Lnet/minecraft/class_1297;method_5683(FI)V
official a
Lbzm;a(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 return1.0f
, which expands the ghast fireball's effective hitbox.- Mappings:
Namespace Name Mixin selector named getTargetingMargin
Lnet/minecraft/entity/Entity;getTargetingMargin()F
intermediary method_5871
Lnet/minecraft/class_1297;method_5871()F
official bV
Lbzm;bV()F
-
getRotationVector
- Mappings:
Namespace Name Mixin selector named getRotationVector
Lnet/minecraft/entity/Entity;getRotationVector()Lnet/minecraft/util/math/Vec3d;
intermediary method_5720
Lnet/minecraft/class_1297;method_5720()Lnet/minecraft/class_243;
official bW
Lbzm;bW()Lfis;
-
getHandPosOffset
Returns the offset of the hand that holdsitem
.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 named getHandPosOffset
Lnet/minecraft/entity/Entity;getHandPosOffset(Lnet/minecraft/item/Item;)Lnet/minecraft/util/math/Vec3d;
intermediary method_40123
Lnet/minecraft/class_1297;method_40123(Lnet/minecraft/class_1792;)Lnet/minecraft/class_243;
official a
Lbzm;a(Ldcr;)Lfis;
-
getRotationClient
- Mappings:
Namespace Name Mixin selector named getRotationClient
Lnet/minecraft/entity/Entity;getRotationClient()Lnet/minecraft/util/math/Vec2f;
intermediary method_5802
Lnet/minecraft/class_1297;method_5802()Lnet/minecraft/class_241;
official bX
Lbzm;bX()Lfir;
-
getRotationVecClient
- Mappings:
Namespace Name Mixin selector named getRotationVecClient
Lnet/minecraft/entity/Entity;getRotationVecClient()Lnet/minecraft/util/math/Vec3d;
intermediary method_5663
Lnet/minecraft/class_1297;method_5663()Lnet/minecraft/class_243;
official bY
Lbzm;bY()Lfis;
-
tryUsePortal
- Mappings:
Namespace Name Mixin selector named tryUsePortal
Lnet/minecraft/entity/Entity;tryUsePortal(Lnet/minecraft/block/Portal;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_60697
Lnet/minecraft/class_1297;method_60697(Lnet/minecraft/class_9797;Lnet/minecraft/class_2338;)V
official a
Lbzm;a(Ldvz;Ljb;)V
-
tickPortalTeleportation
protected void tickPortalTeleportation()- Mappings:
Namespace Name Mixin selector named tickPortalTeleportation
Lnet/minecraft/entity/Entity;tickPortalTeleportation()V
intermediary method_60698
Lnet/minecraft/class_1297;method_60698()V
official bZ
Lbzm;bZ()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 named getDefaultPortalCooldown
Lnet/minecraft/entity/Entity;getDefaultPortalCooldown()I
intermediary method_5806
Lnet/minecraft/class_1297;method_5806()I
official ca
Lbzm;ca()I
-
setVelocityClient
public void setVelocityClient(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named setVelocityClient
Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
intermediary method_5750
Lnet/minecraft/class_1297;method_5750(DDD)V
official k
Lbzm;k(DDD)V
-
onDamaged
- Mappings:
Namespace Name Mixin selector named onDamaged
Lnet/minecraft/entity/Entity;onDamaged(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_48922
Lnet/minecraft/class_1297;method_48922(Lnet/minecraft/class_1282;)V
official c
Lbzm;c(Lbyb;)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 named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbzm;b(B)V
-
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Mappings:
Namespace Name Mixin selector named animateDamage
Lnet/minecraft/entity/Entity;animateDamage(F)V
intermediary method_5879
Lnet/minecraft/class_1297;method_5879(F)V
official q
Lbzm;q(F)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 named isOnFire
Lnet/minecraft/entity/Entity;isOnFire()Z
intermediary method_5809
Lnet/minecraft/class_1297;method_5809()Z
official cb
Lbzm;cb()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 named hasVehicle
Lnet/minecraft/entity/Entity;hasVehicle()Z
intermediary method_5765
Lnet/minecraft/class_1297;method_5765()Z
official cc
Lbzm;cc()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 named hasPassengers
Lnet/minecraft/entity/Entity;hasPassengers()Z
intermediary method_5782
Lnet/minecraft/class_1297;method_5782()Z
official cd
Lbzm;cd()Z
-
shouldDismountUnderwater
public boolean shouldDismountUnderwater()Returns whether this vehicle should dismount the passenger if submerged underwater.- Returns:
- whether this vehicle should dismount the passenger if submerged underwater
- Mappings:
Namespace Name Mixin selector named shouldDismountUnderwater
Lnet/minecraft/entity/Entity;shouldDismountUnderwater()Z
intermediary method_49693
Lnet/minecraft/class_1297;method_49693()Z
official ce
Lbzm;ce()Z
-
shouldControlVehicles
public boolean shouldControlVehicles()- Mappings:
Namespace Name Mixin selector named shouldControlVehicles
Lnet/minecraft/entity/Entity;shouldControlVehicles()Z
intermediary method_52534
Lnet/minecraft/class_1297;method_52534()Z
official cf
Lbzm;cf()Z
-
setSneaking
public void setSneaking(boolean sneaking) Sets whether the entity is sneaking.- See Also:
- Mappings:
Namespace Name Mixin selector named setSneaking
Lnet/minecraft/entity/Entity;setSneaking(Z)V
intermediary method_5660
Lnet/minecraft/class_1297;method_5660(Z)V
official h
Lbzm;h(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 alsoisInSneakingPose()
.- Returns:
- whether the entity is sneaking
- See Also:
- Mappings:
Namespace Name Mixin selector named isSneaking
Lnet/minecraft/entity/Entity;isSneaking()Z
intermediary method_5715
Lnet/minecraft/class_1297;method_5715()Z
official cg
Lbzm;cg()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 named bypassesSteppingEffects
Lnet/minecraft/entity/Entity;bypassesSteppingEffects()Z
intermediary method_21749
Lnet/minecraft/class_1297;method_21749()Z
official ch
Lbzm;ch()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 named bypassesLandingEffects
Lnet/minecraft/entity/Entity;bypassesLandingEffects()Z
intermediary method_21750
Lnet/minecraft/class_1297;method_21750()Z
official ci
Lbzm;ci()Z
-
isSneaky
public boolean isSneaky()- Mappings:
Namespace Name Mixin selector named isSneaky
Lnet/minecraft/entity/Entity;isSneaky()Z
intermediary method_21751
Lnet/minecraft/class_1297;method_21751()Z
official cj
Lbzm;cj()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 returnsfalse
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 named isDescending
Lnet/minecraft/entity/Entity;isDescending()Z
intermediary method_21752
Lnet/minecraft/class_1297;method_21752()Z
official ck
Lbzm;ck()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 named isInSneakingPose
Lnet/minecraft/entity/Entity;isInSneakingPose()Z
intermediary method_18276
Lnet/minecraft/class_1297;method_18276()Z
official cl
Lbzm;cl()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 named isSprinting
Lnet/minecraft/entity/Entity;isSprinting()Z
intermediary method_5624
Lnet/minecraft/class_1297;method_5624()Z
official cm
Lbzm;cm()Z
-
setSprinting
public void setSprinting(boolean sprinting) Sets whether the entity is sprinting.- See Also:
- Mappings:
Namespace Name Mixin selector named setSprinting
Lnet/minecraft/entity/Entity;setSprinting(Z)V
intermediary method_5728
Lnet/minecraft/class_1297;method_5728(Z)V
official i
Lbzm;i(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 named isSwimming
Lnet/minecraft/entity/Entity;isSwimming()Z
intermediary method_5681
Lnet/minecraft/class_1297;method_5681()Z
official cn
Lbzm;cn()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 named isInSwimmingPose
Lnet/minecraft/entity/Entity;isInSwimmingPose()Z
intermediary method_20232
Lnet/minecraft/class_1297;method_20232()Z
official co
Lbzm;co()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 named isCrawling
Lnet/minecraft/entity/Entity;isCrawling()Z
intermediary method_20448
Lnet/minecraft/class_1297;method_20448()Z
official cp
Lbzm;cp()Z
-
setSwimming
public void setSwimming(boolean swimming) Sets whether the entity is swimming.- See Also:
- Mappings:
Namespace Name Mixin selector named setSwimming
Lnet/minecraft/entity/Entity;setSwimming(Z)V
intermediary method_5796
Lnet/minecraft/class_1297;method_5796(Z)V
official j
Lbzm;j(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 named isGlowingLocal
Lnet/minecraft/entity/Entity;isGlowingLocal()Z
intermediary method_36361
Lnet/minecraft/class_1297;method_36361()Z
official cq
Lbzm;cq()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 named setGlowing
Lnet/minecraft/entity/Entity;setGlowing(Z)V
intermediary method_5834
Lnet/minecraft/class_1297;method_5834(Z)V
official k
Lbzm;k(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 named isGlowing
Lnet/minecraft/entity/Entity;isGlowing()Z
intermediary method_5851
Lnet/minecraft/class_1297;method_5851()Z
official cr
Lbzm;cr()Z
-
isInvisible
public boolean isInvisible()Returns whether the entity is invisible to everyone.Invisibility status effect and
ArmorStandEntity
'sInvisible
NBT key can cause an entity to be invisible.- Returns:
- whether the entity is invisible to everyone
- See Also:
- Mappings:
Namespace Name Mixin selector named isInvisible
Lnet/minecraft/entity/Entity;isInvisible()Z
intermediary method_5767
Lnet/minecraft/class_1297;method_5767()Z
official cs
Lbzm;cs()Z
-
isInvisibleTo
Returns whether the entity is invisible toplayer
.Spectators can see all entities, and entities on the same team as player's can see all entities if
AbstractTeam.shouldShowFriendlyInvisibles()
returnstrue
. Otherwise, this returnsisInvisible()
.- Returns:
- whether the entity is invisible to
player
- See Also:
- Mappings:
Namespace Name Mixin selector named isInvisibleTo
Lnet/minecraft/entity/Entity;isInvisibleTo(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_5756
Lnet/minecraft/class_1297;method_5756(Lnet/minecraft/class_1657;)Z
official f
Lbzm;f(Lcut;)Z
-
isOnRail
public boolean isOnRail()- Mappings:
Namespace Name Mixin selector named isOnRail
Lnet/minecraft/entity/Entity;isOnRail()Z
intermediary method_52172
Lnet/minecraft/class_1297;method_52172()Z
official ct
Lbzm;ct()Z
-
updateEventHandler
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 callcallback
. For example:if (this.world instanceof ServerWorld serverWorld) { callback.accept(this.handler, serverWorld); }
- Mappings:
Namespace Name Mixin selector named updateEventHandler
Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
intermediary method_42147
Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
official a
Lbzm;a(Ljava/util/function/BiConsumer;)V
-
getScoreboardTeam
Returns the scoreboard team the entity belongs to, ornull
if there is none.- Returns:
- the scoreboard team the entity belongs to, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getScoreboardTeam
Lnet/minecraft/entity/Entity;getScoreboardTeam()Lnet/minecraft/scoreboard/Team;
intermediary method_5781
Lnet/minecraft/class_1297;method_5781()Lnet/minecraft/class_268;
official cu
Lbzm;cu()Lfjs;
-
isTeammate
Returns whether this entity andother
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 named isTeammate
Lnet/minecraft/entity/Entity;isTeammate(Lnet/minecraft/entity/Entity;)Z
intermediary method_5722
Lnet/minecraft/class_1297;method_5722(Lnet/minecraft/class_1297;)Z
official t
Lbzm;t(Lbzm;)Z
-
isInSameTeam
- Mappings:
Namespace Name Mixin selector named isInSameTeam
Lnet/minecraft/entity/Entity;isInSameTeam(Lnet/minecraft/entity/Entity;)Z
intermediary method_61416
Lnet/minecraft/class_1297;method_61416(Lnet/minecraft/class_1297;)Z
official u
Lbzm;u(Lbzm;)Z
-
isTeamPlayer
Returns whether this entity is inteam
.This returns
false
if this entity is not in any team.- Returns:
- whether this entity is in
team
- Mappings:
Namespace Name Mixin selector named isTeamPlayer
Lnet/minecraft/entity/Entity;isTeamPlayer(Lnet/minecraft/scoreboard/AbstractTeam;)Z
intermediary method_5645
Lnet/minecraft/class_1297;method_5645(Lnet/minecraft/class_270;)Z
official a
Lbzm;a(Lfjz;)Z
-
setInvisible
public void setInvisible(boolean invisible) Sets whether the entity is invisible to everyone.Invisibility status effect and
ArmorStandEntity
'sInvisible
NBT key can cause an entity to be invisible.- See Also:
- Mappings:
Namespace Name Mixin selector named setInvisible
Lnet/minecraft/entity/Entity;setInvisible(Z)V
intermediary method_5648
Lnet/minecraft/class_1297;method_5648(Z)V
official l
Lbzm;l(Z)V
-
getFlag
protected boolean getFlag(int index) Returns the entity flag with indexflag
.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 named getFlag
Lnet/minecraft/entity/Entity;getFlag(I)Z
intermediary method_5795
Lnet/minecraft/class_1297;method_5795(I)Z
official i
Lbzm;i(I)Z
-
setFlag
protected void setFlag(int index, boolean value) Sets the entity flag with indexflag
tovalue
.Entity flag is used to track whether the entity is sneaking, sprinting, invisible, etc.
- Mappings:
Namespace Name Mixin selector named setFlag
Lnet/minecraft/entity/Entity;setFlag(IZ)V
intermediary method_5729
Lnet/minecraft/class_1297;method_5729(IZ)V
official b
Lbzm;b(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 named getMaxAir
Lnet/minecraft/entity/Entity;getMaxAir()I
intermediary method_5748
Lnet/minecraft/class_1297;method_5748()I
official cv
Lbzm;cv()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 to0
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 named getAir
Lnet/minecraft/entity/Entity;getAir()I
intermediary method_5669
Lnet/minecraft/class_1297;method_5669()I
official cw
Lbzm;cw()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 to0
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 named setAir
Lnet/minecraft/entity/Entity;setAir(I)V
intermediary method_5855
Lnet/minecraft/class_1297;method_5855(I)V
official j
Lbzm;j(I)V
-
defrost
public void defrost()- Mappings:
Namespace Name Mixin selector named defrost
Lnet/minecraft/entity/Entity;defrost()V
intermediary method_67635
Lnet/minecraft/class_1297;method_67635()V
official cx
Lbzm;cx()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 named getFrozenTicks
Lnet/minecraft/entity/Entity;getFrozenTicks()I
intermediary method_32312
Lnet/minecraft/class_1297;method_32312()I
official cy
Lbzm;cy()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 named setFrozenTicks
Lnet/minecraft/entity/Entity;setFrozenTicks(I)V
intermediary method_32317
Lnet/minecraft/class_1297;method_32317(I)V
official k
Lbzm;k(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 named getFreezingScale
Lnet/minecraft/entity/Entity;getFreezingScale()F
intermediary method_32313
Lnet/minecraft/class_1297;method_32313()F
official cz
Lbzm;cz()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 named isFrozen
Lnet/minecraft/entity/Entity;isFrozen()Z
intermediary method_32314
Lnet/minecraft/class_1297;method_32314()Z
official cA
Lbzm;cA()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 named getMinFreezeDamageTicks
Lnet/minecraft/entity/Entity;getMinFreezeDamageTicks()I
intermediary method_32315
Lnet/minecraft/class_1297;method_32315()I
official cB
Lbzm;cB()I
-
onStruckByLightning
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 named onStruckByLightning
Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
intermediary method_5800
Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
official a
Lbzm;a(Laub;Lcal;)V
-
onBubbleColumnSurfaceCollision
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 named onBubbleColumnSurfaceCollision
Lnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(ZLnet/minecraft/util/math/BlockPos;)V
intermediary method_5700
Lnet/minecraft/class_1297;method_5700(ZLnet/minecraft/class_2338;)V
official a
Lbzm;a(ZLjb;)V
-
applyBubbleColumnSurfaceEffects
- Mappings:
Namespace Name Mixin selector named applyBubbleColumnSurfaceEffects
Lnet/minecraft/entity/Entity;applyBubbleColumnSurfaceEffects(Lnet/minecraft/entity/Entity;ZLnet/minecraft/util/math/BlockPos;)V
intermediary method_67123
Lnet/minecraft/class_1297;method_67123(Lnet/minecraft/class_1297;ZLnet/minecraft/class_2338;)V
official a
Lbzm;a(Lbzm;ZLjb;)V
-
spawnBubbleColumnParticles
- Mappings:
Namespace Name Mixin selector named spawnBubbleColumnParticles
Lnet/minecraft/entity/Entity;spawnBubbleColumnParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_66250
Lnet/minecraft/class_1297;method_66250(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
official a
Lbzm;a(Ldmu;Ljb;)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 named onBubbleColumnCollision
Lnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)V
intermediary method_5764
Lnet/minecraft/class_1297;method_5764(Z)V
official m
Lbzm;m(Z)V
-
applyBubbleColumnEffects
- Mappings:
Namespace Name Mixin selector named applyBubbleColumnEffects
Lnet/minecraft/entity/Entity;applyBubbleColumnEffects(Lnet/minecraft/entity/Entity;Z)V
intermediary method_67124
Lnet/minecraft/class_1297;method_67124(Lnet/minecraft/class_1297;Z)V
official b
Lbzm;b(Lbzm;Z)V
-
onKilledOther
Called when this entity killsother
.- 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 named onKilledOther
Lnet/minecraft/entity/Entity;onKilledOther(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_5874
Lnet/minecraft/class_1297;method_5874(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
official a
Lbzm;a(Laub;Lcam;)Z
-
limitFallDistance
public void limitFallDistance()- Mappings:
Namespace Name Mixin selector named limitFallDistance
Lnet/minecraft/entity/Entity;limitFallDistance()V
intermediary method_70983
Lnet/minecraft/class_1297;method_70983()V
official cC
Lbzm;cC()V
-
onLanding
public void onLanding()Called when the entity lands on a block.- Mappings:
Namespace Name Mixin selector named onLanding
Lnet/minecraft/entity/Entity;onLanding()V
intermediary method_38785
Lnet/minecraft/class_1297;method_38785()V
official j
Lbzm;j()V
-
pushOutOfBlocks
protected void pushOutOfBlocks(double x, double y, double z) Pushes this entity out of blocks.- Parameters:
x
- the entity's X positiony
- the entity bounding box's center Y positionz
- the entity's Z position- API Note:
- This is used by
ItemEntity
andExperienceOrbEntity
. - Mappings:
Namespace Name Mixin selector named pushOutOfBlocks
Lnet/minecraft/entity/Entity;pushOutOfBlocks(DDD)V
intermediary method_5632
Lnet/minecraft/class_1297;method_5632(DDD)V
official l
Lbzm;l(DDD)V
-
slowMovement
CallsonLanding()
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, net.minecraft.entity.EntityCollisionHandler)
. This is used by cobwebs, sweet berries, and powder snow. - Mappings:
Namespace Name Mixin selector named slowMovement
Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5844
Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V
official a
Lbzm;a(Leeb;Lfis;)V
-
removeClickEvents
- Mappings:
Namespace Name Mixin selector named removeClickEvents
Lnet/minecraft/entity/Entity;removeClickEvents(Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
intermediary method_5856
Lnet/minecraft/class_1297;method_5856(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
official a
Lbzm;a(Lxo;)Lxo;
-
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 interfaceNameable
- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
intermediary method_5477
Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
official aj
Lbxn;aj()Lxo;
-
getDefaultName
Returns the default name of the entity.- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultName
Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
intermediary method_23315
Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;
official cD
Lbzm;cD()Lxo;
-
isPartOf
Returns whether this entity is part ofentity
.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
forpart.isPartOf(dragon)
.- Returns:
- whether this entity is part of
entity
- Mappings:
Namespace Name Mixin selector named isPartOf
Lnet/minecraft/entity/Entity;isPartOf(Lnet/minecraft/entity/Entity;)Z
intermediary method_5779
Lnet/minecraft/class_1297;method_5779(Lnet/minecraft/class_1297;)Z
official v
Lbzm;v(Lbzm;)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 named getHeadYaw
Lnet/minecraft/entity/Entity;getHeadYaw()F
intermediary method_5791
Lnet/minecraft/class_1297;method_5791()F
official cE
Lbzm;cE()F
-
setHeadYaw
public void setHeadYaw(float headYaw) Sets the head yaw of this entity.- See Also:
- Mappings:
Namespace Name Mixin selector named setHeadYaw
Lnet/minecraft/entity/Entity;setHeadYaw(F)V
intermediary method_5847
Lnet/minecraft/class_1297;method_5847(F)V
official r
Lbzm;r(F)V
-
setBodyYaw
public void setBodyYaw(float bodyYaw) Sets the body yaw of this entity.- See Also:
- Mappings:
Namespace Name Mixin selector named setBodyYaw
Lnet/minecraft/entity/Entity;setBodyYaw(F)V
intermediary method_5636
Lnet/minecraft/class_1297;method_5636(F)V
official s
Lbzm;s(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
andExperienceOrbEntity
) as trying to attack them kicks the player.- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
Namespace Name Mixin selector named isAttackable
Lnet/minecraft/entity/Entity;isAttackable()Z
intermediary method_5732
Lnet/minecraft/class_1297;method_5732()Z
official cF
Lbzm;cF()Z
-
handleAttack
Handles a player attacking the entity. This is called beforedamage(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource, float)
and can be used to restrict players from attacking the entity by returningtrue
.- 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 named handleAttack
Lnet/minecraft/entity/Entity;handleAttack(Lnet/minecraft/entity/Entity;)Z
intermediary method_5698
Lnet/minecraft/class_1297;method_5698(Lnet/minecraft/class_1297;)Z
official w
Lbzm;w(Lbzm;)Z
-
toString
-
isAlwaysInvulnerableTo
- Mappings:
Namespace Name Mixin selector named isAlwaysInvulnerableTo
Lnet/minecraft/entity/Entity;isAlwaysInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_64421
Lnet/minecraft/class_1297;method_64421(Lnet/minecraft/class_1282;)Z
official d
Lbzm;d(Lbyb;)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
DamageTypes.OUT_OF_WORLD
and damages by creative mode players by default. - Mappings:
Namespace Name Mixin selector named isInvulnerable
Lnet/minecraft/entity/Entity;isInvulnerable()Z
intermediary method_5655
Lnet/minecraft/class_1297;method_5655()Z
official cG
Lbzm;cG()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
DamageTypes.OUT_OF_WORLD
and damages by creative mode players by default. - Mappings:
Namespace Name Mixin selector named setInvulnerable
Lnet/minecraft/entity/Entity;setInvulnerable(Z)V
intermediary method_5684
Lnet/minecraft/class_1297;method_5684(Z)V
official n
Lbzm;n(Z)V
-
copyPositionAndRotation
Sets the entity's position and rotation the same asentity
.- See Also:
- Mappings:
Namespace Name Mixin selector named copyPositionAndRotation
Lnet/minecraft/entity/Entity;copyPositionAndRotation(Lnet/minecraft/entity/Entity;)V
intermediary method_5719
Lnet/minecraft/class_1297;method_5719(Lnet/minecraft/class_1297;)V
official x
Lbzm;x(Lbzm;)V
-
copyFrom
Copies serializable data and nether portal data fromoriginal
.- See Also:
- Mappings:
Namespace Name Mixin selector named copyFrom
Lnet/minecraft/entity/Entity;copyFrom(Lnet/minecraft/entity/Entity;)V
intermediary method_5878
Lnet/minecraft/class_1297;method_5878(Lnet/minecraft/class_1297;)V
official y
Lbzm;y(Lbzm;)V
-
teleportTo
Teleports this entity to another location, potentially in another world.Note if teleported to a different world, entities (excluding server player entities) are completely recreated at the destination.
- Returns:
- the entity after teleporting
- Mappings:
Namespace Name Mixin selector named teleportTo
Lnet/minecraft/entity/Entity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;
intermediary method_5731
Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;
official b
Lbzm;b(Lfbl;)Lbzm;
-
teleportSameDimension
- Mappings:
Namespace Name Mixin selector named teleportSameDimension
Lnet/minecraft/entity/Entity;teleportSameDimension(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;
intermediary method_64611
Lnet/minecraft/class_1297;method_64611(Lnet/minecraft/class_3218;Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;
official a
Lbzm;a(Laub;Lfbl;)Lbzm;
-
teleportCrossDimension
private Entity teleportCrossDimension(ServerWorld from, ServerWorld to, TeleportTarget teleportTarget) - Mappings:
Namespace Name Mixin selector named teleportCrossDimension
Lnet/minecraft/entity/Entity;teleportCrossDimension(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;
intermediary method_64614
Lnet/minecraft/class_1297;method_64614(Lnet/minecraft/class_3218;Lnet/minecraft/class_3218;Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;
official a
Lbzm;a(Laub;Laub;Lfbl;)Lbzm;
-
teleportSpectatingPlayers
- Mappings:
Namespace Name Mixin selector named teleportSpectatingPlayers
Lnet/minecraft/entity/Entity;teleportSpectatingPlayers(Lnet/minecraft/world/TeleportTarget;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_70666
Lnet/minecraft/class_1297;method_70666(Lnet/minecraft/class_5454;Lnet/minecraft/class_3218;)V
official a
Lbzm;a(Lfbl;Laub;)V
-
getPassengerTeleportTarget
- Mappings:
Namespace Name Mixin selector named getPassengerTeleportTarget
Lnet/minecraft/entity/Entity;getPassengerTeleportTarget(Lnet/minecraft/world/TeleportTarget;Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/TeleportTarget;
intermediary method_64613
Lnet/minecraft/class_1297;method_64613(Lnet/minecraft/class_5454;Lnet/minecraft/class_1297;)Lnet/minecraft/class_5454;
official a
Lbzm;a(Lfbl;Lbzm;)Lfbl;
-
sendTeleportPacket
- Mappings:
Namespace Name Mixin selector named sendTeleportPacket
Lnet/minecraft/entity/Entity;sendTeleportPacket(Lnet/minecraft/world/TeleportTarget;)V
intermediary method_64612
Lnet/minecraft/class_1297;method_64612(Lnet/minecraft/class_5454;)V
official a
Lbzm;a(Lfbl;)V
-
setPosition
- Mappings:
Namespace Name Mixin selector named setPosition
Lnet/minecraft/entity/Entity;setPosition(Lnet/minecraft/entity/player/PlayerPosition;Ljava/util/Set;)V
intermediary method_61412
Lnet/minecraft/class_1297;method_61412(Lnet/minecraft/class_10182;Ljava/util/Set;)V
official a
Lbzm;a(Lcaz;Ljava/util/Set;)V
-
rotate
public void rotate(float yaw, float pitch) - Mappings:
Namespace Name Mixin selector named rotate
Lnet/minecraft/entity/Entity;rotate(FF)V
intermediary method_64578
Lnet/minecraft/class_1297;method_64578(FF)V
official a
Lbzm;a(FF)V
-
addPortalChunkTicketAt
- Mappings:
Namespace Name Mixin selector named addPortalChunkTicketAt
Lnet/minecraft/entity/Entity;addPortalChunkTicketAt(Lnet/minecraft/util/math/BlockPos;)V
intermediary method_60950
Lnet/minecraft/class_1297;method_60950(Lnet/minecraft/class_2338;)V
official f
Lbzm;f(Ljb;)V
-
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 ofinvalid reference
equipped stacks
- See Also:
- Mappings:
Namespace Name Mixin selector named removeFromDimension
Lnet/minecraft/entity/Entity;removeFromDimension()V
intermediary method_30076
Lnet/minecraft/class_1297;method_30076()V
official cH
Lbzm;cH()V
-
positionInPortal
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 named positionInPortal
Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
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;
official a
Lbzm;a(Ljh$a;Lm$a;)Lfis;
-
canUsePortals
public boolean canUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.EnderDragonEntity
,WitherEntity
, andFishingBobberEntity
cannot use portals.- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector named canUsePortals
Lnet/minecraft/entity/Entity;canUsePortals(Z)Z
intermediary method_5822
Lnet/minecraft/class_1297;method_5822(Z)Z
official o
Lbzm;o(Z)Z
-
canTeleportBetween
- Mappings:
Namespace Name Mixin selector named canTeleportBetween
Lnet/minecraft/entity/Entity;canTeleportBetween(Lnet/minecraft/world/World;Lnet/minecraft/world/World;)Z
intermediary method_61113
Lnet/minecraft/class_1297;method_61113(Lnet/minecraft/class_1937;Lnet/minecraft/class_1937;)Z
official a
Lbzm;a(Ldmu;Ldmu;)Z
-
getEffectiveExplosionResistance
public float getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
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 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
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
official a
Lbzm;a(Ldmn;Ldly;Ljb;Leeb;Lfal;F)F
-
canExplosionDestroyBlock
public boolean canExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosion
from this entity can destroystate
.- Returns:
- whether
explosion
from this entity can destroystate
- See Also:
- API Note:
- This is used by
TntMinecartEntity
to prevent the rail from being destroyed by explosion. - Mappings:
Namespace Name Mixin selector 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
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
official a
Lbzm;a(Ldmn;Ldly;Ljb;Leeb;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 named getSafeFallDistance
Lnet/minecraft/entity/Entity;getSafeFallDistance()I
intermediary method_5850
Lnet/minecraft/class_1297;method_5850()I
official cI
Lbzm;cI()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 named canAvoidTraps
Lnet/minecraft/entity/Entity;canAvoidTraps()Z
intermediary method_5696
Lnet/minecraft/class_1297;method_5696()Z
official n_
Lbzm;n_()Z
-
populateCrashReport
Populates the crash report section to include the entity's information.- Mappings:
Namespace Name Mixin selector named populateCrashReport
Lnet/minecraft/entity/Entity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
intermediary method_5819
Lnet/minecraft/class_1297;method_5819(Lnet/minecraft/class_129;)V
official a
Lbzm;a(Lq;)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 named doesRenderOnFire
Lnet/minecraft/entity/Entity;doesRenderOnFire()Z
intermediary method_5862
Lnet/minecraft/class_1297;method_5862()Z
official cJ
Lbzm;cJ()Z
-
setUuid
Sets the UUID of the entity touuid
.This should not be called after spawning the entity.
- See Also:
- Mappings:
Namespace Name Mixin selector named setUuid
Lnet/minecraft/entity/Entity;setUuid(Ljava/util/UUID;)V
intermediary method_5826
Lnet/minecraft/class_1297;method_5826(Ljava/util/UUID;)V
official a_
Lbzm;a_(Ljava/util/UUID;)V
-
getUuid
- Specified by:
getUuid
in interfaceUniquelyIdentifiable
- Mappings:
Namespace Name Mixin selector named getUuid
Lnet/minecraft/world/entity/UniquelyIdentifiable;getUuid()Ljava/util/UUID;
intermediary method_5667
Lnet/minecraft/class_10599;method_5667()Ljava/util/UUID;
official cK
Leiu;cK()Ljava/util/UUID;
-
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 named getUuidAsString
Lnet/minecraft/entity/Entity;getUuidAsString()Ljava/lang/String;
intermediary method_5845
Lnet/minecraft/class_1297;method_5845()Ljava/lang/String;
official cL
Lbzm;cL()Ljava/lang/String;
-
getNameForScoreboard
Returns the name uniquely identifying the score holder.Unlike
getName()
, this is guaranteed to be unique. This is the UUID for all entities except players (which use the player's username).- Specified by:
getNameForScoreboard
in interfaceScoreHolder
- Returns:
- the name uniquely identifying the score holder
- See Also:
- Mappings:
Namespace Name Mixin selector named getNameForScoreboard
Lnet/minecraft/scoreboard/ScoreHolder;getNameForScoreboard()Ljava/lang/String;
intermediary method_5820
Lnet/minecraft/class_9015;method_5820()Ljava/lang/String;
official cM
Lfjw;cM()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 named isPushedByFluids
Lnet/minecraft/entity/Entity;isPushedByFluids()Z
intermediary method_5675
Lnet/minecraft/class_1297;method_5675()Z
official cN
Lbzm;cN()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 named getRenderDistanceMultiplier
Lnet/minecraft/entity/Entity;getRenderDistanceMultiplier()D
intermediary method_5824
Lnet/minecraft/class_1297;method_5824()D
official cO
Lbzm;cO()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 named setRenderDistanceMultiplier
Lnet/minecraft/entity/Entity;setRenderDistanceMultiplier(D)V
intermediary method_5840
Lnet/minecraft/class_1297;method_5840(D)V
official b
Lbzm;b(D)V
-
getDisplayName
Returns the display name of this object.By default, this returns the result of
getName()
. The return value can have styling applied.- Specified by:
getDisplayName
in interfaceNameable
- Specified by:
getDisplayName
in interfaceScoreHolder
- Returns:
- the display name of this object
- Mappings:
Namespace Name Mixin selector named getDisplayName
Lnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;
intermediary method_5476
Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;
official Q_
Lbxn;Q_()Lxo;
-
setCustomName
Sets the custom name of the entity toname
(ornull
to remove the custom name).- Mappings:
Namespace Name Mixin selector named setCustomName
Lnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)V
intermediary method_5665
Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)V
official b
Lbzm;b(Lxo;)V
-
getCustomName
Returns the custom name of this object, ornull
if there is none.- Specified by:
getCustomName
in interfaceNameable
- Returns:
- the custom name of this object, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getCustomName
Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
intermediary method_5797
Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
official al
Lbxn;al()Lxo;
-
hasCustomName
public boolean hasCustomName()Returns whether this object has a custom name.- Specified by:
hasCustomName
in interfaceNameable
- Returns:
- whether this object has a custom name
- Mappings:
Namespace Name Mixin selector named hasCustomName
Lnet/minecraft/util/Nameable;hasCustomName()Z
intermediary method_16914
Lnet/minecraft/class_1275;method_16914()Z
official i_
Lbxn;i_()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 named setCustomNameVisible
Lnet/minecraft/entity/Entity;setCustomNameVisible(Z)V
intermediary method_5880
Lnet/minecraft/class_1297;method_5880(Z)V
official p
Lbzm;p(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 named isCustomNameVisible
Lnet/minecraft/entity/Entity;isCustomNameVisible()Z
intermediary method_5807
Lnet/minecraft/class_1297;method_5807()Z
official cP
Lbzm;cP()Z
-
teleport
public boolean teleport(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera) Teleports the entity to the given position. Ifworld
differs from the current world, it copies the entity and discards the current one.- See Also:
- Mappings:
Namespace Name Mixin selector named teleport
Lnet/minecraft/entity/Entity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FFZ)Z
intermediary method_48105
Lnet/minecraft/class_1297;method_48105(Lnet/minecraft/class_3218;DDDLjava/util/Set;FFZ)Z
official a
Lbzm;a(Laub;DDDLjava/util/Set;FFZ)Z
-
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 named requestTeleportAndDismount
Lnet/minecraft/entity/Entity;requestTeleportAndDismount(DDD)V
intermediary method_33567
Lnet/minecraft/class_1297;method_33567(DDD)V
official m
Lbzm;m(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 named requestTeleport
Lnet/minecraft/entity/Entity;requestTeleport(DDD)V
intermediary method_5859
Lnet/minecraft/class_1297;method_5859(DDD)V
official b
Lbzm;b(DDD)V
-
teleportPassengers
private void teleportPassengers()- Mappings:
Namespace Name Mixin selector named teleportPassengers
Lnet/minecraft/entity/Entity;teleportPassengers()V
intermediary method_49792
Lnet/minecraft/class_1297;method_49792()V
official J
Lbzm;J()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 named requestTeleportOffset
Lnet/minecraft/entity/Entity;requestTeleportOffset(DDD)V
intermediary method_45166
Lnet/minecraft/class_1297;method_45166(DDD)V
official c
Lbzm;c(DDD)V
-
shouldRenderName
public boolean shouldRenderName()Returns whether to render the name of the entity.This returns
true
for players andisCustomNameVisible()
for other entities.- Returns:
- whether to render the name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRenderName
Lnet/minecraft/entity/Entity;shouldRenderName()Z
intermediary method_5733
Lnet/minecraft/class_1297;method_5733()Z
official cQ
Lbzm;cQ()Z
-
onDataTrackerUpdate
- Specified by:
onDataTrackerUpdate
in interfaceDataTracked
- Mappings:
Namespace Name Mixin selector named onDataTrackerUpdate
Lnet/minecraft/entity/data/DataTracked;onDataTrackerUpdate(Ljava/util/List;)V
intermediary method_48850
Lnet/minecraft/class_9221;method_48850(Ljava/util/List;)V
official a
Lalk;a(Ljava/util/List;)V
-
onTrackedDataSet
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.
- Specified by:
onTrackedDataSet
in interfaceDataTracked
- Mappings:
Namespace Name Mixin selector named onTrackedDataSet
Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
intermediary method_5674
Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
official a
Lalk;a(Lalh;)V
-
reinitDimensions
Deprecated.- Mappings:
Namespace Name Mixin selector named reinitDimensions
Lnet/minecraft/entity/Entity;reinitDimensions()V
intermediary method_46396
Lnet/minecraft/class_1297;method_46396()V
official cR
Lbzm;cR()V
-
calculateDimensions
public void calculateDimensions()Calculates and sets the dimension (bounding box) of the entity and refreshes its position.- Mappings:
Namespace Name Mixin selector named calculateDimensions
Lnet/minecraft/entity/Entity;calculateDimensions()V
intermediary method_18382
Lnet/minecraft/class_1297;method_18382()V
official j_
Lbzm;j_()V
-
recalculateDimensions
- Mappings:
Namespace Name Mixin selector named recalculateDimensions
Lnet/minecraft/entity/Entity;recalculateDimensions(Lnet/minecraft/entity/EntityDimensions;)Z
intermediary method_60490
Lnet/minecraft/class_1297;method_60490(Lnet/minecraft/class_4048;)Z
official a
Lbzm;a(Lbzp;)Z
-
getHorizontalFacing
- Mappings:
Namespace Name Mixin selector named getHorizontalFacing
Lnet/minecraft/entity/Entity;getHorizontalFacing()Lnet/minecraft/util/math/Direction;
intermediary method_5735
Lnet/minecraft/class_1297;method_5735()Lnet/minecraft/class_2350;
official cS
Lbzm;cS()Ljh;
-
getMovementDirection
- Mappings:
Namespace Name Mixin selector named getMovementDirection
Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
intermediary method_5755
Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
official cT
Lbzm;cT()Ljh;
-
getHoverEvent
Returns the hover event referencing this entity.- Returns:
- the hover event referencing this entity
- Mappings:
Namespace Name Mixin selector named getHoverEvent
Lnet/minecraft/entity/Entity;getHoverEvent()Lnet/minecraft/text/HoverEvent;
intermediary method_5769
Lnet/minecraft/class_1297;method_5769()Lnet/minecraft/class_2568;
official cU
Lbzm;cU()Lxu;
-
canBeSpectated
Returns whetherspectator
can spectate this entity.Spectator players (other than themselves) cannot be spectated.
- Returns:
- whether
spectator
can spectate this entity - Mappings:
Namespace Name Mixin selector named canBeSpectated
Lnet/minecraft/entity/Entity;canBeSpectated(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
intermediary method_5680
Lnet/minecraft/class_1297;method_5680(Lnet/minecraft/class_3222;)Z
official a
Lbzm;a(Lauc;)Z
-
getBoundingBox
- Specified by:
getBoundingBox
in interfaceEntityLike
- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/world/entity/EntityLike;getBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_5829
Lnet/minecraft/class_5568;method_5829()Lnet/minecraft/class_238;
official cV
Leig;cV()Lfin;
-
setBoundingBox
- Mappings:
Namespace Name Mixin selector named setBoundingBox
Lnet/minecraft/entity/Entity;setBoundingBox(Lnet/minecraft/util/math/Box;)V
intermediary method_5857
Lnet/minecraft/class_1297;method_5857(Lnet/minecraft/class_238;)V
official a
Lbzm;a(Lfin;)V
-
getEyeHeight
Returns the eye height forpose
.- Returns:
- the eye height for
pose
- Mappings:
Namespace Name Mixin selector named getEyeHeight
Lnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;)F
intermediary method_18381
Lnet/minecraft/class_1297;method_18381(Lnet/minecraft/class_4050;)F
official d
Lbzm;d(Lcay;)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 named getStandingEyeHeight
Lnet/minecraft/entity/Entity;getStandingEyeHeight()F
intermediary method_5751
Lnet/minecraft/class_1297;method_5751()F
official cW
Lbzm;cW()F
-
getStackReference
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 named getStackReference
Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;
intermediary method_32318
Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
official a_
Lbzm;a_(I)Lcbd;
-
getServer
Returns the server the entity is in, ornull
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 named getServer
Lnet/minecraft/entity/Entity;getServer()Lnet/minecraft/server/MinecraftServer;
intermediary method_5682
Lnet/minecraft/class_1297;method_5682()Lnet/minecraft/server/MinecraftServer;
official cX
Lbzm;cX()Lnet/minecraft/server/MinecraftServer;
-
interactAt
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 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;
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;
official a
Lbzm;a(Lcut;Lfis;Lbxi;)Lbxj;
-
isImmuneToExplosion
Returns whether the entity is immune from explosion knockback and damage.Invisible
ArmorStandEntity
and emerging or diggingWardenEntity
are immune from explosions.- Returns:
- whether the entity is immune from explosion knockback and damage
- Mappings:
Namespace Name Mixin selector named isImmuneToExplosion
Lnet/minecraft/entity/Entity;isImmuneToExplosion(Lnet/minecraft/world/explosion/Explosion;)Z
intermediary method_5659
Lnet/minecraft/class_1297;method_5659(Lnet/minecraft/class_1927;)Z
official a
Lbzm;a(Ldmn;)Z
-
onStartedTrackingBy
Called whenplayer
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 named onStartedTrackingBy
Lnet/minecraft/entity/Entity;onStartedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_5837
Lnet/minecraft/class_1297;method_5837(Lnet/minecraft/class_3222;)V
official d
Lbzm;d(Lauc;)V
-
onStoppedTrackingBy
Called whenplayer
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 named onStoppedTrackingBy
Lnet/minecraft/entity/Entity;onStoppedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)V
intermediary method_5742
Lnet/minecraft/class_1297;method_5742(Lnet/minecraft/class_3222;)V
official e
Lbzm;e(Lauc;)V
-
applyRotation
Appliesrotation
to the entity's yaw.- Mappings:
Namespace Name Mixin selector named applyRotation
Lnet/minecraft/entity/Entity;applyRotation(Lnet/minecraft/util/BlockRotation;)F
intermediary method_5832
Lnet/minecraft/class_1297;method_5832(Lnet/minecraft/class_2470;)F
official a
Lbzm;a(Ldwu;)F
-
applyMirror
Appliesmirror
to the entity's yaw.- Mappings:
Namespace Name Mixin selector named applyMirror
Lnet/minecraft/entity/Entity;applyMirror(Lnet/minecraft/util/BlockMirror;)F
intermediary method_5763
Lnet/minecraft/class_1297;method_5763(Lnet/minecraft/class_2415;)F
official a
Lbzm;a(Ldvd;)F
-
getProjectileDeflection
- Mappings:
Namespace Name Mixin selector named getProjectileDeflection
Lnet/minecraft/entity/Entity;getProjectileDeflection(Lnet/minecraft/entity/projectile/ProjectileEntity;)Lnet/minecraft/entity/ProjectileDeflection;
intermediary method_56071
Lnet/minecraft/class_1297;method_56071(Lnet/minecraft/class_1676;)Lnet/minecraft/class_9109;
official a
Lbzm;a(Lcvo;)Lcvp;
-
getControllingPassenger
Returns the passenger in control of this entity, ornull
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 named getControllingPassenger
Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
intermediary method_5642
Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
official cY
Lbzm;cY()Lcam;
-
hasControllingPassenger
public final boolean hasControllingPassenger()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 named hasControllingPassenger
Lnet/minecraft/entity/Entity;hasControllingPassenger()Z
intermediary method_42148
Lnet/minecraft/class_1297;method_42148()Z
official cZ
Lbzm;cZ()Z
-
getPassengerList
Returns the list of passengers of this entity.- Returns:
- the list of passengers of this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getPassengerList
Lnet/minecraft/entity/Entity;getPassengerList()Ljava/util/List;
intermediary method_5685
Lnet/minecraft/class_1297;method_5685()Ljava/util/List;
official da
Lbzm;da()Ljava/util/List;
-
getFirstPassenger
Returns the first passenger of the passenger list, ornull
if there is no passengers.Such passenger is usually also the the controlling passenger.
- Returns:
- the first passenger of the passenger list,
or
null
if there is no passengers - See Also:
- Mappings:
Namespace Name Mixin selector named getFirstPassenger
Lnet/minecraft/entity/Entity;getFirstPassenger()Lnet/minecraft/entity/Entity;
intermediary method_31483
Lnet/minecraft/class_1297;method_31483()Lnet/minecraft/class_1297;
official db
Lbzm;db()Lbzm;
-
hasPassenger
Returns whetherpassenger
is a passenger of this entity.- Returns:
- whether
passenger
is a passenger of this entity - See Also:
- Mappings:
Namespace Name Mixin selector named hasPassenger
Lnet/minecraft/entity/Entity;hasPassenger(Lnet/minecraft/entity/Entity;)Z
intermediary method_5626
Lnet/minecraft/class_1297;method_5626(Lnet/minecraft/class_1297;)Z
official z
Lbzm;z(Lbzm;)Z
-
hasPassenger
Returns whether there is a passenger of this entity matchingpredicate
.- Returns:
- whether there is a passenger of this entity matching
predicate
- See Also:
- Mappings:
Namespace Name Mixin selector named hasPassenger
Lnet/minecraft/entity/Entity;hasPassenger(Ljava/util/function/Predicate;)Z
intermediary method_5703
Lnet/minecraft/class_1297;method_5703(Ljava/util/function/Predicate;)Z
official a
Lbzm;a(Ljava/util/function/Predicate;)Z
-
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 named streamIntoPassengers
Lnet/minecraft/entity/Entity;streamIntoPassengers()Ljava/util/stream/Stream;
intermediary method_31484
Lnet/minecraft/class_1297;method_31484()Ljava/util/stream/Stream;
official K
Lbzm;K()Ljava/util/stream/Stream;
-
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
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 interfaceEntityLike
- See Also:
- Implementation Note:
- The default implementation is not very efficient.
- Mappings:
Namespace Name Mixin selector named streamSelfAndPassengers
Lnet/minecraft/world/entity/EntityLike;streamSelfAndPassengers()Ljava/util/stream/Stream;
intermediary method_24204
Lnet/minecraft/class_5568;method_24204()Ljava/util/stream/Stream;
official dc
Leig;dc()Ljava/util/stream/Stream;
-
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 interfaceEntityLike
- See Also:
- Implementation Note:
- The default implementation is very costly.
- Mappings:
Namespace Name Mixin selector named streamPassengersAndSelf
Lnet/minecraft/world/entity/EntityLike;streamPassengersAndSelf()Ljava/util/stream/Stream;
intermediary method_31748
Lnet/minecraft/class_5568;method_31748()Ljava/util/stream/Stream;
official dd
Leig;dd()Ljava/util/stream/Stream;
-
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 named getPassengersDeep
Lnet/minecraft/entity/Entity;getPassengersDeep()Ljava/lang/Iterable;
intermediary method_5736
Lnet/minecraft/class_1297;method_5736()Ljava/lang/Iterable;
official de
Lbzm;de()Ljava/lang/Iterable;
-
getPlayerPassengers
public int getPlayerPassengers()- Mappings:
Namespace Name Mixin selector named getPlayerPassengers
Lnet/minecraft/entity/Entity;getPlayerPassengers()I
intermediary method_54757
Lnet/minecraft/class_1297;method_54757()I
official df
Lbzm;df()I
-
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 named hasPlayerRider
Lnet/minecraft/entity/Entity;hasPlayerRider()Z
intermediary method_5817
Lnet/minecraft/class_1297;method_5817()Z
official dg
Lbzm;dg()Z
-
getRootVehicle
Returns the lowest entity this entity is riding.- Returns:
- the lowest entity this entity is riding
- See Also:
- Mappings:
Namespace Name Mixin selector named getRootVehicle
Lnet/minecraft/entity/Entity;getRootVehicle()Lnet/minecraft/entity/Entity;
intermediary method_5668
Lnet/minecraft/class_1297;method_5668()Lnet/minecraft/class_1297;
official dh
Lbzm;dh()Lbzm;
-
isConnectedThroughVehicle
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 named isConnectedThroughVehicle
Lnet/minecraft/entity/Entity;isConnectedThroughVehicle(Lnet/minecraft/entity/Entity;)Z
intermediary method_5794
Lnet/minecraft/class_1297;method_5794(Lnet/minecraft/class_1297;)Z
official A
Lbzm;A(Lbzm;)Z
-
hasPassengerDeep
Returns whetherpassenger
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 named hasPassengerDeep
Lnet/minecraft/entity/Entity;hasPassengerDeep(Lnet/minecraft/entity/Entity;)Z
intermediary method_5821
Lnet/minecraft/class_1297;method_5821(Lnet/minecraft/class_1297;)Z
official B
Lbzm;B(Lbzm;)Z
-
isLogicalSideForUpdatingMovement
public final boolean isLogicalSideForUpdatingMovement()- Mappings:
Namespace Name Mixin selector named isLogicalSideForUpdatingMovement
Lnet/minecraft/entity/Entity;isLogicalSideForUpdatingMovement()Z
intermediary method_66247
Lnet/minecraft/class_1297;method_66247()Z
official di
Lbzm;di()Z
-
isControlledByMainPlayer
protected boolean isControlledByMainPlayer()- Mappings:
Namespace Name Mixin selector named isControlledByMainPlayer
Lnet/minecraft/entity/Entity;isControlledByMainPlayer()Z
intermediary method_66248
Lnet/minecraft/class_1297;method_66248()Z
official dj
Lbzm;dj()Z
-
isControlledByPlayer
public boolean isControlledByPlayer()- Mappings:
Namespace Name Mixin selector named isControlledByPlayer
Lnet/minecraft/entity/Entity;isControlledByPlayer()Z
intermediary method_65038
Lnet/minecraft/class_1297;method_65038()Z
official aa_
Lbzm;aa_()Z
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Mappings:
Namespace Name Mixin selector named canMoveVoluntarily
Lnet/minecraft/entity/Entity;canMoveVoluntarily()Z
intermediary method_66249
Lnet/minecraft/class_1297;method_66249()Z
official dk
Lbzm;dk()Z
-
canActVoluntarily
public boolean canActVoluntarily()- Mappings:
Namespace Name Mixin selector named canActVoluntarily
Lnet/minecraft/entity/Entity;canActVoluntarily()Z
intermediary method_6034
Lnet/minecraft/class_1297;method_6034()Z
official dl
Lbzm;dl()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 named getPassengerDismountOffset
Lnet/minecraft/entity/Entity;getPassengerDismountOffset(DDF)Lnet/minecraft/util/math/Vec3d;
intermediary method_24826
Lnet/minecraft/class_1297;method_24826(DDF)Lnet/minecraft/class_243;
official a
Lbzm;a(DDF)Lfis;
-
updatePassengerForDismount
Returns the position of the dismountedpassenger
.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 named updatePassengerForDismount
Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
intermediary method_24829
Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
official b
Lbzm;b(Lcam;)Lfis;
-
getVehicle
Returns the entity this entity rides, ornull
if there is none.- Returns:
- the entity this entity rides, or
null
if there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getVehicle
Lnet/minecraft/entity/Entity;getVehicle()Lnet/minecraft/entity/Entity;
intermediary method_5854
Lnet/minecraft/class_1297;method_5854()Lnet/minecraft/class_1297;
official dm
Lbzm;dm()Lbzm;
-
getControllingVehicle
Returns the entity this entity rides and controls, ornull
if there is none.- Returns:
- the entity this entity rides and controls, or
null
if there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingVehicle
Lnet/minecraft/entity/Entity;getControllingVehicle()Lnet/minecraft/entity/Entity;
intermediary method_49694
Lnet/minecraft/class_1297;method_49694()Lnet/minecraft/class_1297;
official dn
Lbzm;dn()Lbzm;
-
getPistonBehavior
Returns the behavior of the piston for this entity.This is
PistonBehavior.NORMAL
by default.AreaEffectCloudEntity
,MarkerEntity
, and markerArmorStandEntity
returnPistonBehavior.IGNORE
, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated likePistonBehavior.NORMAL
.- Returns:
- the behavior of the piston for this entity
- Mappings:
Namespace Name Mixin selector named getPistonBehavior
Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
intermediary method_5657
Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
official k_
Lbzm;k_()Lfaq;
-
getSoundCategory
Returns the sound category for sounds from this entity.This is used by
playSound(SoundEvent, float, float)
and defaults toSoundCategory.NEUTRAL
. Hostile entities should override this to returnSoundCategory.HOSTILE
.- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategory
Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
intermediary method_5634
Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
official do
Lbzm;do()Laza;
-
getBurningDuration
protected int getBurningDuration()- Mappings:
Namespace Name Mixin selector named getBurningDuration
Lnet/minecraft/entity/Entity;getBurningDuration()I
intermediary method_5676
Lnet/minecraft/class_1297;method_5676()I
official dp
Lbzm;dp()I
-
getCommandSource
Returns a command source which represents this entity.- Returns:
- a command source which represents this entity
- Mappings:
Namespace Name Mixin selector named getCommandSource
Lnet/minecraft/entity/Entity;getCommandSource(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;
intermediary method_5671
Lnet/minecraft/class_1297;method_5671(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;
official d
Lbzm;d(Laub;)Lek;
-
lookAt
Changes this entity's pitch and yaw to look attarget
.- Mappings:
Namespace Name Mixin selector named lookAt
Lnet/minecraft/entity/Entity;lookAt(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5702
Lnet/minecraft/class_1297;method_5702(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_243;)V
official a
Lbzm;a(Lex$a;Lfis;)V
-
lerpYaw
public float lerpYaw(float tickProgress) - Mappings:
Namespace Name Mixin selector named lerpYaw
Lnet/minecraft/entity/Entity;lerpYaw(F)F
intermediary method_60951
Lnet/minecraft/class_1297;method_60951(F)F
official t
Lbzm;t(F)F
-
updateMovementInFluid
- Mappings:
Namespace Name Mixin selector named updateMovementInFluid
Lnet/minecraft/entity/Entity;updateMovementInFluid(Lnet/minecraft/registry/tag/TagKey;D)Z
intermediary method_5692
Lnet/minecraft/class_1297;method_5692(Lnet/minecraft/class_6862;D)Z
official a
Lbzm;a(Lbae;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 named isRegionUnloaded
Lnet/minecraft/entity/Entity;isRegionUnloaded()Z
intermediary method_33724
Lnet/minecraft/class_1297;method_33724()Z
official dq
Lbzm;dq()Z
-
getFluidHeight
Returns the height of the fluid influid
tag.- Returns:
- the height of the fluid in
fluid
tag - Mappings:
Namespace Name Mixin selector named getFluidHeight
Lnet/minecraft/entity/Entity;getFluidHeight(Lnet/minecraft/registry/tag/TagKey;)D
intermediary method_5861
Lnet/minecraft/class_1297;method_5861(Lnet/minecraft/class_6862;)D
official b
Lbzm;b(Lbae;)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 than0.4
; otherwise it returns0.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 named getSwimHeight
Lnet/minecraft/entity/Entity;getSwimHeight()D
intermediary method_29241
Lnet/minecraft/class_1297;method_29241()D
official dr
Lbzm;dr()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 named getWidth
Lnet/minecraft/entity/Entity;getWidth()F
intermediary method_17681
Lnet/minecraft/class_1297;method_17681()F
official ds
Lbzm;ds()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 named getHeight
Lnet/minecraft/entity/Entity;getHeight()F
intermediary method_17682
Lnet/minecraft/class_1297;method_17682()F
official dt
Lbzm;dt()F
-
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 named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;
official a
Lbzm;a(Latz;)Lzw;
-
getDimensions
Returns the dimensions of the entity with the givenpose
.- Returns:
- the dimensions of the entity with the given
pose
- See Also:
- Mappings:
Namespace Name Mixin selector named getDimensions
Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
intermediary method_18377
Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
official a
Lbzm;a(Lcay;)Lbzp;
-
getAttachments
- Mappings:
Namespace Name Mixin selector named getAttachments
Lnet/minecraft/entity/Entity;getAttachments()Lnet/minecraft/entity/EntityAttachments;
intermediary method_56072
Lnet/minecraft/class_1297;method_56072()Lnet/minecraft/class_9066;
official du
Lbzm;du()Lbzo;
-
getPos
Returns the exact position of the entity.- Returns:
- the exact position of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getPos
Lnet/minecraft/entity/Entity;getPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_19538
Lnet/minecraft/class_1297;method_19538()Lnet/minecraft/class_243;
official dv
Lbzm;dv()Lfis;
-
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 named getSyncedPos
Lnet/minecraft/entity/Entity;getSyncedPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_43390
Lnet/minecraft/class_1297;method_43390()Lnet/minecraft/class_243;
official dw
Lbzm;dw()Lfis;
-
getBlockPos
- Specified by:
getBlockPos
in interfaceEntityLike
- Mappings:
Namespace Name Mixin selector named getBlockPos
Lnet/minecraft/world/entity/EntityLike;getBlockPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_24515
Lnet/minecraft/class_5568;method_24515()Lnet/minecraft/class_2338;
official dx
Leig;dx()Ljb;
-
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 named getBlockStateAtPos
Lnet/minecraft/entity/Entity;getBlockStateAtPos()Lnet/minecraft/block/BlockState;
intermediary method_55667
Lnet/minecraft/class_1297;method_55667()Lnet/minecraft/class_2680;
official dy
Lbzm;dy()Leeb;
-
getChunkPos
Returns the chunk position of the entity.- Returns:
- the chunk position of the entity
- Mappings:
Namespace Name Mixin selector named getChunkPos
Lnet/minecraft/entity/Entity;getChunkPos()Lnet/minecraft/util/math/ChunkPos;
intermediary method_31476
Lnet/minecraft/class_1297;method_31476()Lnet/minecraft/class_1923;
official dz
Lbzm;dz()Ldlz;
-
getVelocity
- Mappings:
Namespace Name Mixin selector named getVelocity
Lnet/minecraft/entity/Entity;getVelocity()Lnet/minecraft/util/math/Vec3d;
intermediary method_18798
Lnet/minecraft/class_1297;method_18798()Lnet/minecraft/class_243;
official dA
Lbzm;dA()Lfis;
-
setVelocity
- Mappings:
Namespace Name Mixin selector named setVelocity
Lnet/minecraft/entity/Entity;setVelocity(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_18799
Lnet/minecraft/class_1297;method_18799(Lnet/minecraft/class_243;)V
official i
Lbzm;i(Lfis;)V
-
addVelocityInternal
- Mappings:
Namespace Name Mixin selector named addVelocityInternal
Lnet/minecraft/entity/Entity;addVelocityInternal(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_45319
Lnet/minecraft/class_1297;method_45319(Lnet/minecraft/class_243;)V
official j
Lbzm;j(Lfis;)V
-
setVelocity
public void setVelocity(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named setVelocity
Lnet/minecraft/entity/Entity;setVelocity(DDD)V
intermediary method_18800
Lnet/minecraft/class_1297;method_18800(DDD)V
official n
Lbzm;n(DDD)V
-
getBlockX
public final int getBlockX()- Mappings:
Namespace Name Mixin selector named getBlockX
Lnet/minecraft/entity/Entity;getBlockX()I
intermediary method_31477
Lnet/minecraft/class_1297;method_31477()I
official dB
Lbzm;dB()I
-
getX
public final double getX()- Mappings:
Namespace Name Mixin selector named getX
Lnet/minecraft/entity/Entity;getX()D
intermediary method_23317
Lnet/minecraft/class_1297;method_23317()D
official dC
Lbzm;dC()D
-
getBodyX
public double getBodyX(double widthScale) - Mappings:
Namespace Name Mixin selector named getBodyX
Lnet/minecraft/entity/Entity;getBodyX(D)D
intermediary method_23316
Lnet/minecraft/class_1297;method_23316(D)D
official c
Lbzm;c(D)D
-
getParticleX
public double getParticleX(double widthScale) - Mappings:
Namespace Name Mixin selector named getParticleX
Lnet/minecraft/entity/Entity;getParticleX(D)D
intermediary method_23322
Lnet/minecraft/class_1297;method_23322(D)D
official d
Lbzm;d(D)D
-
getBlockY
public final int getBlockY()- Mappings:
Namespace Name Mixin selector named getBlockY
Lnet/minecraft/entity/Entity;getBlockY()I
intermediary method_31478
Lnet/minecraft/class_1297;method_31478()I
official dD
Lbzm;dD()I
-
getY
public final double getY()- Mappings:
Namespace Name Mixin selector named getY
Lnet/minecraft/entity/Entity;getY()D
intermediary method_23318
Lnet/minecraft/class_1297;method_23318()D
official dE
Lbzm;dE()D
-
getBodyY
public double getBodyY(double heightScale) - Mappings:
Namespace Name Mixin selector named getBodyY
Lnet/minecraft/entity/Entity;getBodyY(D)D
intermediary method_23323
Lnet/minecraft/class_1297;method_23323(D)D
official e
Lbzm;e(D)D
-
getRandomBodyY
public double getRandomBodyY()- Mappings:
Namespace Name Mixin selector named getRandomBodyY
Lnet/minecraft/entity/Entity;getRandomBodyY()D
intermediary method_23319
Lnet/minecraft/class_1297;method_23319()D
official dF
Lbzm;dF()D
-
getEyeY
public double getEyeY()- Mappings:
Namespace Name Mixin selector named getEyeY
Lnet/minecraft/entity/Entity;getEyeY()D
intermediary method_23320
Lnet/minecraft/class_1297;method_23320()D
official dG
Lbzm;dG()D
-
getBlockZ
public final int getBlockZ()- Mappings:
Namespace Name Mixin selector named getBlockZ
Lnet/minecraft/entity/Entity;getBlockZ()I
intermediary method_31479
Lnet/minecraft/class_1297;method_31479()I
official dH
Lbzm;dH()I
-
getZ
public final double getZ()- Mappings:
Namespace Name Mixin selector named getZ
Lnet/minecraft/entity/Entity;getZ()D
intermediary method_23321
Lnet/minecraft/class_1297;method_23321()D
official dI
Lbzm;dI()D
-
getBodyZ
public double getBodyZ(double widthScale) - Mappings:
Namespace Name Mixin selector named getBodyZ
Lnet/minecraft/entity/Entity;getBodyZ(D)D
intermediary method_23324
Lnet/minecraft/class_1297;method_23324(D)D
official f
Lbzm;f(D)D
-
getParticleZ
public double getParticleZ(double widthScale) - Mappings:
Namespace Name Mixin selector named getParticleZ
Lnet/minecraft/entity/Entity;getParticleZ(D)D
intermediary method_23325
Lnet/minecraft/class_1297;method_23325(D)D
official g
Lbzm;g(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, usesetPosition(double, double, double)
orrefreshPositionAndAngles(double, double, double, float, float)
.- See Also:
- Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/entity/Entity;setPos(DDD)V
intermediary method_23327
Lnet/minecraft/class_1297;method_23327(DDD)V
official o
Lbzm;o(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 named checkDespawn
Lnet/minecraft/entity/Entity;checkDespawn()V
intermediary method_5982
Lnet/minecraft/class_1297;method_5982()V
official dJ
Lbzm;dJ()V
-
getHeldQuadLeashOffsets
- Mappings:
Namespace Name Mixin selector named getHeldQuadLeashOffsets
Lnet/minecraft/entity/Entity;getHeldQuadLeashOffsets()[Lnet/minecraft/util/math/Vec3d;
intermediary method_70985
Lnet/minecraft/class_1297;method_70985()[Lnet/minecraft/class_243;
official dK
Lbzm;dK()[Lfis;
-
hasQuadLeashAttachmentPoints
public boolean hasQuadLeashAttachmentPoints()- Mappings:
Namespace Name Mixin selector named hasQuadLeashAttachmentPoints
Lnet/minecraft/entity/Entity;hasQuadLeashAttachmentPoints()Z
intermediary method_70986
Lnet/minecraft/class_1297;method_70986()Z
official dL
Lbzm;dL()Z
-
tickHeldLeash
- Mappings:
Namespace Name Mixin selector named tickHeldLeash
Lnet/minecraft/entity/Entity;tickHeldLeash(Lnet/minecraft/entity/Leashable;)V
intermediary method_70980
Lnet/minecraft/class_1297;method_70980(Lnet/minecraft/class_9817;)V
official a
Lbzm;a(Lcak;)V
-
onHeldLeashUpdate
- Mappings:
Namespace Name Mixin selector named onHeldLeashUpdate
Lnet/minecraft/entity/Entity;onHeldLeashUpdate(Lnet/minecraft/entity/Leashable;)V
intermediary method_70982
Lnet/minecraft/class_1297;method_70982(Lnet/minecraft/class_9817;)V
official b
Lbzm;b(Lcak;)V
-
getLeashPos
Returns the position of the leash this entity holds.This is different from
invalid reference
#getLeashOffset
- Returns:
- the position of the leash this entity holds
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashPos
Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_30951
Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
official u
Lbzm;u(F)Lfis;
-
onSpawnPacket
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 named onSpawnPacket
Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
intermediary method_31471
Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
official a
Lbzm;a(Lacr;)V
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornull
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 named getPickBlockStack
Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
intermediary method_31480
Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
official dM
Lbzm;dM()Ldcv;
-
setInPowderSnow
public void setInPowderSnow(boolean inPowderSnow) - Mappings:
Namespace Name Mixin selector named setInPowderSnow
Lnet/minecraft/entity/Entity;setInPowderSnow(Z)V
intermediary method_32319
Lnet/minecraft/class_1297;method_32319(Z)V
official q
Lbzm;q(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 insideItemTags.FREEZE_IMMUNE_WEARABLES
tag. - Mappings:
Namespace Name Mixin selector named canFreeze
Lnet/minecraft/entity/Entity;canFreeze()Z
intermediary method_32316
Lnet/minecraft/class_1297;method_32316()Z
official dN
Lbzm;dN()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 named shouldEscapePowderSnow
Lnet/minecraft/entity/Entity;shouldEscapePowderSnow()Z
intermediary method_40071
Lnet/minecraft/class_1297;method_40071()Z
official dO
Lbzm;dO()Z
-
getYaw
public float getYaw()- Mappings:
Namespace Name Mixin selector named getYaw
Lnet/minecraft/entity/Entity;getYaw()F
intermediary method_36454
Lnet/minecraft/class_1297;method_36454()F
official dP
Lbzm;dP()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 named getBodyYaw
Lnet/minecraft/entity/Entity;getBodyYaw()F
intermediary method_43078
Lnet/minecraft/class_1297;method_43078()F
official dQ
Lbzm;dQ()F
-
setYaw
public void setYaw(float yaw) - Mappings:
Namespace Name Mixin selector named setYaw
Lnet/minecraft/entity/Entity;setYaw(F)V
intermediary method_36456
Lnet/minecraft/class_1297;method_36456(F)V
official v
Lbzm;v(F)V
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector named getPitch
Lnet/minecraft/entity/Entity;getPitch()F
intermediary method_36455
Lnet/minecraft/class_1297;method_36455()F
official dR
Lbzm;dR()F
-
setPitch
public void setPitch(float pitch) - Mappings:
Namespace Name Mixin selector named setPitch
Lnet/minecraft/entity/Entity;setPitch(F)V
intermediary method_36457
Lnet/minecraft/class_1297;method_36457(F)V
official w
Lbzm;w(F)V
-
canSprintAsVehicle
public boolean canSprintAsVehicle()- Mappings:
Namespace Name Mixin selector named canSprintAsVehicle
Lnet/minecraft/entity/Entity;canSprintAsVehicle()Z
intermediary method_48155
Lnet/minecraft/class_1297;method_48155()Z
official dS
Lbzm;dS()Z
-
getStepHeight
public float getStepHeight()- Mappings:
Namespace Name Mixin selector named getStepHeight
Lnet/minecraft/entity/Entity;getStepHeight()F
intermediary method_49476
Lnet/minecraft/class_1297;method_49476()F
official dT
Lbzm;dT()F
-
onExplodedBy
- Mappings:
Namespace Name Mixin selector named onExplodedBy
Lnet/minecraft/entity/Entity;onExplodedBy(Lnet/minecraft/entity/Entity;)V
intermediary method_56918
Lnet/minecraft/class_1297;method_56918(Lnet/minecraft/class_1297;)V
official a
Lbzm;a(Lbzm;)V
-
isRemoved
public final boolean isRemoved()- Specified by:
isRemoved
in interfaceUniquelyIdentifiable
- Mappings:
Namespace Name Mixin selector named isRemoved
Lnet/minecraft/world/entity/UniquelyIdentifiable;isRemoved()Z
intermediary method_31481
Lnet/minecraft/class_10599;method_31481()Z
official dU
Leiu;dU()Z
-
getRemovalReason
Returns the reason for the entity's removal, ornull
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 named getRemovalReason
Lnet/minecraft/entity/Entity;getRemovalReason()Lnet/minecraft/entity/Entity$RemovalReason;
intermediary method_35049
Lnet/minecraft/class_1297;method_35049()Lnet/minecraft/class_1297$class_5529;
official dV
Lbzm;dV()Lbzm$e;
-
setRemoved
- Specified by:
setRemoved
in interfaceEntityLike
- Mappings:
Namespace Name Mixin selector named setRemoved
Lnet/minecraft/world/entity/EntityLike;setRemoved(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_31745
Lnet/minecraft/class_5568;method_31745(Lnet/minecraft/class_1297$class_5529;)V
official c
Leig;c(Lbzm$e;)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 named unsetRemoved
Lnet/minecraft/entity/Entity;unsetRemoved()V
intermediary method_31482
Lnet/minecraft/class_1297;method_31482()V
official dW
Lbzm;dW()V
-
setChangeListener
- Specified by:
setChangeListener
in interfaceEntityLike
- Mappings:
Namespace Name Mixin selector named setChangeListener
Lnet/minecraft/world/entity/EntityLike;setChangeListener(Lnet/minecraft/world/entity/EntityChangeListener;)V
intermediary method_31744
Lnet/minecraft/class_5568;method_31744(Lnet/minecraft/class_5569;)V
official a
Leig;a(Leih;)V
-
shouldSave
public boolean shouldSave()- Specified by:
shouldSave
in interfaceEntityLike
- Mappings:
Namespace Name Mixin selector named shouldSave
Lnet/minecraft/world/entity/EntityLike;shouldSave()Z
intermediary method_31746
Lnet/minecraft/class_5568;method_31746()Z
official dX
Leig;dX()Z
-
isPlayer
public boolean isPlayer()- Specified by:
isPlayer
in interfaceEntityLike
- Mappings:
Namespace Name Mixin selector named isPlayer
Lnet/minecraft/world/entity/EntityLike;isPlayer()Z
intermediary method_31747
Lnet/minecraft/class_5568;method_31747()Z
official dY
Leig;dY()Z
-
canModifyAt
Returns whether the entity can modify the world atpos
.This returns
true
for most entities. Players checkinvalid reference
World#canPlayerModifyAt
ProjectileEntity
delegates it to the owner if the owner is a player; if the owner is a non-player entity, this returns the value ofGameRules.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 named canModifyAt
Lnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_36971
Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
official c
Lbzm;c(Laub;Ljb;)Z
-
isFlyingVehicle
public boolean isFlyingVehicle()- Mappings:
Namespace Name Mixin selector named isFlyingVehicle
Lnet/minecraft/entity/Entity;isFlyingVehicle()Z
intermediary method_70987
Lnet/minecraft/class_1297;method_70987()Z
official dZ
Lbzm;dZ()Z
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorld
Lnet/minecraft/entity/Entity;getWorld()Lnet/minecraft/world/World;
intermediary method_37908
Lnet/minecraft/class_1297;method_37908()Lnet/minecraft/class_1937;
official ai
Lbzm;ai()Ldmu;
-
setWorld
- Mappings:
Namespace Name Mixin selector named setWorld
Lnet/minecraft/entity/Entity;setWorld(Lnet/minecraft/world/World;)V
intermediary method_51502
Lnet/minecraft/class_1297;method_51502(Lnet/minecraft/class_1937;)V
official a
Lbzm;a(Ldmu;)V
-
getDamageSources
- Mappings:
Namespace Name Mixin selector named getDamageSources
Lnet/minecraft/entity/Entity;getDamageSources()Lnet/minecraft/entity/damage/DamageSources;
intermediary method_48923
Lnet/minecraft/class_1297;method_48923()Lnet/minecraft/class_8109;
official ea
Lbzm;ea()Lbyc;
-
getRegistryManager
- Mappings:
Namespace Name Mixin selector named getRegistryManager
Lnet/minecraft/entity/Entity;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
intermediary method_56673
Lnet/minecraft/class_1297;method_56673()Lnet/minecraft/class_5455;
official eb
Lbzm;eb()Ljz;
-
lerpPosAndRotation
protected void lerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch) - Mappings:
Namespace Name Mixin selector named lerpPosAndRotation
Lnet/minecraft/entity/Entity;lerpPosAndRotation(IDDDDD)V
intermediary method_52532
Lnet/minecraft/class_1297;method_52532(IDDDDD)V
official a
Lbzm;a(IDDDDD)V
-
getRandom
- Mappings:
Namespace Name Mixin selector named getRandom
Lnet/minecraft/entity/Entity;getRandom()Lnet/minecraft/util/math/random/Random;
intermediary method_59922
Lnet/minecraft/class_1297;method_59922()Lnet/minecraft/class_5819;
official ec
Lbzm;ec()Lbck;
-
getMovement
- Mappings:
Namespace Name Mixin selector named getMovement
Lnet/minecraft/entity/Entity;getMovement()Lnet/minecraft/util/math/Vec3d;
intermediary method_60478
Lnet/minecraft/class_1297;method_60478()Lnet/minecraft/class_243;
official ae
Lbzm;ae()Lfis;
-
getWeaponStack
- Mappings:
Namespace Name Mixin selector named getWeaponStack
Lnet/minecraft/entity/Entity;getWeaponStack()Lnet/minecraft/item/ItemStack;
intermediary method_59958
Lnet/minecraft/class_1297;method_59958()Lnet/minecraft/class_1799;
official ed
Lbzm;ed()Ldcv;
-
getLootTableKey
- Mappings:
Namespace Name Mixin selector named getLootTableKey
Lnet/minecraft/entity/Entity;getLootTableKey()Ljava/util/Optional;
intermediary method_5991
Lnet/minecraft/class_1297;method_5991()Ljava/util/Optional;
official ee
Lbzm;ee()Ljava/util/Optional;
-
copyComponentsFrom
- Mappings:
Namespace Name Mixin selector named copyComponentsFrom
Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
intermediary method_66649
Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
official a
Lbzm;a(Lkl;)V
-
copyComponentsFrom
- Mappings:
Namespace Name Mixin selector named copyComponentsFrom
Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/item/ItemStack;)V
intermediary method_66652
Lnet/minecraft/class_1297;method_66652(Lnet/minecraft/class_1799;)V
official c
Lbzm;c(Ldcv;)V
-
get
- Specified by:
get
in interfaceComponentsAccess
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
intermediary method_58694
Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official a
Lkl;a(Lkp;)Ljava/lang/Object;
-
castComponentValue
@Contract("_,!null->!null;_,_->_") @Nullable protected static <T> T castComponentValue(ComponentType<T> type, @Nullable @Nullable Object value) - Mappings:
Namespace Name Mixin selector named castComponentValue
Lnet/minecraft/entity/Entity;castComponentValue(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_66651
Lnet/minecraft/class_1297;method_66651(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;
official c
Lbzm;c(Lkp;Ljava/lang/Object;)Ljava/lang/Object;
-
setComponent
- Mappings:
Namespace Name Mixin selector named setComponent
Lnet/minecraft/entity/Entity;setComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)V
intermediary method_66653
Lnet/minecraft/class_1297;method_66653(Lnet/minecraft/class_9331;Ljava/lang/Object;)V
official d
Lbzm;d(Lkp;Ljava/lang/Object;)V
-
setApplicableComponent
- Mappings:
Namespace Name Mixin selector named setApplicableComponent
Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
intermediary method_66654
Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
official b
Lbzm;b(Lkp;Ljava/lang/Object;)Z
-
copyComponentFrom
- Mappings:
Namespace Name Mixin selector named copyComponentFrom
Lnet/minecraft/entity/Entity;copyComponentFrom(Lnet/minecraft/component/ComponentsAccess;Lnet/minecraft/component/ComponentType;)Z
intermediary method_66650
Lnet/minecraft/class_1297;method_66650(Lnet/minecraft/class_9473;Lnet/minecraft/class_9331;)Z
official a
Lbzm;a(Lkl;Lkp;)Z
-
getErrorReporterContext
- Mappings:
Namespace Name Mixin selector named getErrorReporterContext
Lnet/minecraft/entity/Entity;getErrorReporterContext()Lnet/minecraft/util/ErrorReporter$Context;
intermediary method_71370
Lnet/minecraft/class_1297;method_71370()Lnet/minecraft/class_8942$class_11336;
official ef
Lbzm;ef()Lbci$f;
-