Class Entity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,StackReferenceGetter,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,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, net.minecraft.entity.LoadedEntityProcessor) | 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/Entityintermediary net/minecraft/class_1297official cgk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordstatic enumThe move effect represents possible effects of an entity moving, such as playing sounds, emitting game events, none, or both.static interfaceprivate static final recordstatic enumThe reason of the entity's removal.Nested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.Offset -
Field Summary
FieldsModifier and TypeFieldDescriptionintprivate static final TrackedData<Integer> static final Stringprivate booleanprivate BlockPosprivate Boxprivate EntityChangeListenerprivate ChunkPosprivate final LongSetbooleanprivate final EntityCollisionHandler.Implprivate static final AtomicIntegerA generator of unique entitynetwork IDs.private final List<Entity.QueuedCollisionCheck> static final Stringprivate static final TrackedData<Optional<Text>> static final Stringprivate NbtComponentprotected final DataTrackerstatic final floatThe factor by which an entity's speed is reduced every tick.static final intstatic final intprivate EntityDimensionsfloatstatic final Stringdoublestatic final floatstatic final doublestatic final doublestatic final intstatic final intprivate static final doubleprivate static final intstatic final Stringprivate intprotected booleanprotected static final TrackedData<Byte> protected Object2DoubleMap<TagKey<Fluid>> private booleanstatic final intprivate static final TrackedData<Integer> protected static final intprivate booleanprotected static final intstatic final Stringbooleanprivate booleanbooleanprivate intThe entity's network ID, used as a reference for synchronization over network.static final StringbooleanbooleanWhether the entity should be included in intersection checks.private static final intprivate booleanstatic final Stringbooleanprivate intprivate floatfloatprivate Vec3ddoubledoubledoubledoubledoublefloatdoubleprivate static final Loggerstatic final intstatic final intstatic final intstatic final floatstatic final Stringprivate Vec3dprotected Vec3dprivate static final TrackedData<Boolean> private floatprivate static final TrackedData<Boolean> static final Stringbooleanprivate static final Boxprotected static final intstatic final Stringprivate booleanprivate ImmutableList<Entity> static final Stringprivate final double[]private longprivate floatstatic final Stringprivate intprivate Vec3dstatic final Stringprotected static final TrackedData<EntityPose> private final ArrayDeque<Entity.QueuedCollisionCheck> protected final Randomprivate Entity.RemovalReasonprivate static doubleprotected intstatic final Stringprivate static final TrackedData<Boolean> static final Stringprivate static final intfloatprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate floatprivate BlockStateprotected booleanprivate static final intintprotected booleanprivate final TrackedPositionprivate final EntityType<?> protected UUIDstatic final Stringprotected Stringprivate Entityprivate Vec3dbooleanbooleanbooleanprivate Worldprivate floatFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds the effects of this entity when it travels in air, usually to the world the entity is in.booleanaddCommandTag(String tag) Adds a command tag to this entity.protected voidAdds the effects of this entity flapping, usually to the world the entity is in.protected voidaddPassenger(Entity passenger) Addspassengeras a passenger.voidprivate voidaddQueuedCollisionChecks(Entity.QueuedCollisionCheck queuedCollisionCheck) voidaddVelocity(double deltaX, double deltaY, double deltaZ) voidaddVelocity(Vec3d vec) voidaddVelocityInternal(Vec3d velocity) static Vec3dadjustMovementForCollisions(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) private Vec3dadjustMovementForCollisions(Vec3d movement) private static Vec3dadjustMovementForCollisions(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) protected Vec3dadjustMovementForPiston(Vec3d movement) protected Vec3dadjustMovementForSneaking(Vec3d movement, MovementType type) private voidafterCollisionCheck(ServerWorld world, BlockPos pos, boolean blockCollision, boolean fluidCollision) voidanimateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).protected static voidapplyBubbleColumnEffects(Entity entity, boolean drag) protected static voidapplyBubbleColumnSurfaceEffects(Entity entity, boolean drag, BlockPos pos) protected voidfloatapplyMirror(BlockMirror mirror) Appliesmirrorto the entity's yaw.private voidapplyMoveEffect(Entity.MoveEffect moveEffect, Vec3d movement, BlockPos landingPos, BlockState landingState) floatapplyRotation(BlockRotation rotation) Appliesrotationto the entity's yaw.voidCallstickInVoid()when the entity is 64 blocks below the world's minimum Y position.voidbaseTick()voidbooleanReturns whether the entity should bypass effects caused by landing on a block.booleanReturns whether the entity should bypass effects caused by stepping.doublecalcDistanceFromBottomCollision(double checkedDistance) protected final Boxprotected BoxvoidCalculates and sets the dimension (bounding box) of the entity and refreshes its position.protected floatprivate doublecalculatePistonMovementFactor(Direction.Axis axis, double offsetFactor) booleanprotected booleancanAddPassenger(Entity passenger) Returns whetherentitycan ride this entity.booleanReturns whether the entity cannot trigger pressure plates or tripwires.booleanbooleancanBeSpectated(ServerPlayerEntity spectator) Returns whetherspectatorcan spectate this entity.private booleancanClimb(BlockState state) booleancanExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosionfrom this entity can destroystate.booleanReturns whether the entity can freeze.booleancanHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.booleancanModifyAt(ServerWorld world, BlockPos pos) Returns whether the entity can modify the world atpos.booleanbooleanprotected booleancanStartRiding(Entity entity) Returns whether this entity can rideentity.booleancanTeleportBetween(World from, World to) booleancanUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.protected static <T> @Nullable TcastComponentValue(ComponentType<T> type, @Nullable Object value) voidchangeLookDirection(double cursorDeltaX, double cursorDeltaY) private intcheckBlockCollision(Vec3d from, Vec3d to, EntityCollisionHandler.Impl collisionHandler, LongSet collidedBlockPositions, int int2) private voidcheckBlockCollisions(List<Entity.QueuedCollisionCheck> queuedCollisionChecks, EntityCollisionHandler.Impl collisionHandler) voidChecks whether the entity should be despawned.(package private) voidprotected voidbooleanclientDamage(DamageSource source) private static float[]collectStepHeights(Box collisionBox, List<VoxelShape> collisions, float float2, float stepHeight) booleanbooleancollidesWith(Entity other) Returns whether this entity cannot occupy the same space withother.booleancollidesWithFluid(FluidState state, BlockPos fluidPos, Vec3d oldPos, Vec3d newPos) booleancollidesWithStateAtPos(BlockPos pos, BlockState state) Returns whether the entity collides with the blockstateatpos.protected <T> booleancopyComponentFrom(ComponentsAccess from, ComponentType<T> type) protected voidfinal voidcopyComponentsFrom(ItemStack stack) voidCopies serializable data and nether portal data fromoriginal.voidcopyPositionAndRotation(Entity entity) Sets the entity's position and rotation the same asentity.protected booleanReturnstrueif this entity supports passengers in general.createSpawnPacket(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.abstract booleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.voiddefrost()final voiddetach()Removes all the passengers and removes this entity from any vehicles it is riding.booleandetachAllHeldLeashes(@Nullable PlayerEntity player) final voiddiscard()Discards the entity.voidDismounts the vehicle if present.floatdistanceTo(Entity entity) Returns the distance between this entity andentity.booleandoesNotCollide(double offsetX, double offsetY, double offsetZ) Returns whether the bounding box with the given offsets do not collide with blocks or fluids.private booleandoesNotCollide(Box box) booleanReturns whether an entity should render as being on fire.@Nullable ItemEntitydropItem(ServerWorld world, ItemConvertible item) Drops oneitemat the entity's position.@Nullable ItemEntitydropStack(ServerWorld world, ItemStack stack) Dropsstackat the entity's position.@Nullable ItemEntitydropStack(ServerWorld world, ItemStack stack, float yOffset) Dropsstackat the entity's position with the given Y offset.@Nullable ItemEntitydropStack(ServerWorld world, ItemStack stack, Vec3d offset) voidemitGameEvent(RegistryEntry<GameEvent> event) Emits a game event originating from this entity at this entity's position.voidemitGameEvent(RegistryEntry<GameEvent> event, @Nullable Entity entity) Emits a game event originating from another entity at this entity's position.booleanvoidExtinguishes this entity.voidprotected voidfall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.static List<VoxelShape> findCollisions(@Nullable Entity entity, World world, Box box) private static List<VoxelShape> findCollisionsForMovement(@Nullable Entity entity, World world, List<VoxelShape> regularCollisions, Box movingEntityBoundingBox) <T> @Nullable Tget(ComponentType<? extends T> type) intgetAir()Returns the air left for the entity, in ticks.final EntityAttachmentsReturns the block state at the entity's position.final intfinal intfinal intdoublegetBodyX(double widthScale) doublegetBodyY(double heightScale) floatdoublegetBodyZ(double widthScale) final BoxfloatDeprecated.protected intfinal Vec3dgetCameraPosVec(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.@Nullable LivingEntityReturns the passenger in control of this entity, ornullif there is none.@Nullable EntityReturns the entity this entity rides and controls, ornullif there is none.@Nullable TextReturns the custom name of this object, ornullif there is none.protected TextReturns the default name of the entity.intReturns 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.floatgetEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockStatefor an explosion caused by this entity.final floatgetEyeHeight(EntityPose pose) Returns the eye height forpose.final Vec3dReturns the position of the eye.doublegetEyeY()final doubleint@Nullable EntityReturns the first passenger of the passenger list, ornullif there is no passengers.protected booleangetFlag(int index) Returns the entity flag with indexflag.doublegetFluidHeight(TagKey<Fluid> fluid) Returns the height of the fluid influidtag.floatReturns the current freezing scale.intReturns how long the entity is freezing, in ticks.protected doublegetHandPosOffset(Item item) Returns the offset of the hand that holdsitem.floatReturns the head yaw of the entity.final floatReturns the height of the entity's current dimension.Vec3d[]protected SoundEventprotected HoverEventReturns the hover event referencing this entity.intgetId()Returns the network ID of this entity.@Nullable PositionInterpolatorprotected floatprotected BlockStateDeprecated.Deprecated.final Vec3dgetLeashPos(float tickProgress) Returns the position of the leash this entity holds.floatgetLerpedPitch(float tickProgress) final Vec3dgetLerpedPos(float deltaTicks) floatgetLerpedYaw(float tickProgress) intReturns the maximum amount of air the entity can hold, in ticks.intReturns how long it takes for the entity to be completely frozen and receive freezing damage, in ticks.protected Entity.MoveEffectReturns the possible effect(s) of an entity moving.getName()Returns the name of this object.Returns the name uniquely identifying the score holder.final Vec3dgetOppositeRotationVector(float tickProgress) protected final Vec3dgetOppositeRotationVector(float pitch, float yaw) doublegetParticleX(double widthScale) doublegetParticleZ(double widthScale) protected Vec3dgetPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected static Vec3dgetPassengerAttachmentPos(Entity vehicle, Entity passenger, EntityAttachments attachments) protected static Vec3dgetPassengerDismountOffset(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 TeleportTargetgetPassengerTeleportTarget(TeleportTarget teleportTarget, Entity passenger) @Nullable ItemStackReturns the stack for creative "pick block" functionality, ornullif there is none.Returns the behavior of the piston for this entity.floatgetPitch()floatgetPitch(float tickProgress) intintgetPose()protected BlockPosgetPosWithYOffset(float offset) getProjectileDeflection(ProjectileEntity projectile) double@Nullable Entity.RemovalReasonReturns the reason for the entity's removal, ornullif it is not removed.static doubleReturns the entity render distance multiplier.Returns the lowest entity this entity is riding.final Vec3dgetRotationVec(float tickProgress) final Vec3dgetRotationVector(float pitch, float yaw) intReturns the maximum height of a fall the entity takes during pathfinding.protected final @Nullable String@Nullable TeamReturns the scoreboard team the entity belongs to, ornullif there is none.Returns the sound category for sounds from this entity.protected SoundEvent@Nullable StackReferencegetStackReference(int slot) final floatReturns the standing eye height.floatReturns the block state at the stepping position.Returns the stepping position.protected BlockPosgetStepSoundPos(BlockPos pos) doubleReturns the minimum submerged height of this entity in fluid so that it would be affected by fluid physics.protected SoundEventReturns the position of the entity synced to clients.floatReturns the margin around the entity's bounding box where the entity targeting is still successful.intReturns the team color value, or0xFFFFFFif the entity is not in a team or the color is not set.EntityType<?> getType()getUuid()Returns the entity's UUID as string.@Nullable EntityReturns the entity this entity rides, ornullif there is none.getVehicleAttachmentPos(Entity vehicle) protected float@Nullable ItemStackfinal floatgetWidth()Returns the width of the entity's current dimension.getWorldSpawnPos(ServerWorld world, BlockPos basePos) final doublegetX()final doublegetY()floatgetYaw()floatgetYaw(float tickProgress) final doublegetZ()booleanhandleAttack(Entity attacker) Handles a player attacking the entity.final voidhandleFall(double xDifference, double yDifference, double zDifference, boolean onGround) booleanhandleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.protected voidhandleFallDamageForPassengers(double fallDistance, float damagePerDistance, DamageSource damageSource) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.protected booleanhasCollidedSoftly(Vec3d adjustedMovement) final booleanReturns whether there is a passenger in control of this entity.booleanReturns whether this object has a custom name.inthashCode()booleanReturns whether the entity has no gravity.booleanhasPassenger(Predicate<Entity> predicate) Returns whether there is a passenger of this entity matchingpredicate.booleanhasPassenger(Entity passenger) Returns whetherpassengeris a passenger of this entity.booleanhasPassengerDeep(Entity passenger) Returns whetherpassengeris riding this entity or any of its passengers.booleanReturns whether another entity is riding this entity.booleanReturns whether a player is riding this entity or any of its passengers.booleanReturns whether the entity's portal cooldown is in effect.booleanbooleanReturns whether this entity is riding an entity.voidprotected abstract voidinitDataTracker(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.booleanisAlive()Returns whether the entity is alive.protected final booleanisAlwaysInvulnerableTo(DamageSource damageSource) booleanbooleanReturns whether the entity can be attacked by players.(package private) booleanReturns whether it is raining at the entity's position.booleanisCollidable(@Nullable Entity entity) Returns whether other entities cannot occupy the same space with this entity.booleanisConnectedThroughVehicle(Entity entity) Returns whether this entity and another entity share the same root vehicle.protected booleanbooleanbooleanReturns whether the entity is crawling.booleanReturns whether the custom name should be shown.booleanReturns whether the entity is actively descending.booleanReturns whether the entity is immune to fire damage.protected booleanReturns whether the entity is flapping their wings.booleanbooleanisFrozen()Returns whether the entity is frozen.booleanReturns whether the entity is glowing, checking the entity flags on the client.final booleanReturns whether the entity is glowing, without checking the entity flags.booleanisImmuneToExplosion(Explosion explosion) Returns whether the entity is immune from explosion knockback and damage.booleanbooleanisInLava()Returns whether the entity is in lava.booleanisInPose(EntityPose pose) booleanReturns whether the distance between this entity andentityis belowradius.booleanReturns whether both the horizontal and vertical distances between this entity andentityare below the passed values.protected booleanisInSameTeam(Entity other) booleanReturns whether the entity is in a wall and should suffocate.booleanReturns whether the entity is in a crouching pose.booleanReturns whether the entity is in swimming pose.booleanfinal booleanbooleanReturns whether the entity is invisible to everyone.booleanisInvisibleTo(PlayerEntity player) Returns whether the entity is invisible toplayer.booleanReturns whether the entity is invulnerable.booleanisLiving()final booleanbooleanisOnFire()Returns whether the entity is on fire and is not fire immune.booleanReturns whether the entity is on the ground.booleanisOnRail()booleanReturns whether this entity's hitbox is touching, but not fully submerged in, water.booleanReturns whether this entity is part ofentity.booleanisPlayer()booleanReturns whether the entity can be pushed by other entities.booleanReturns whether the entity is pushed by fluids.booleanReturns whether any part of this entity's bounding box is in an unloaded region of the world the entity is in.final booleanbooleanisSilent()Returns whether the entity is silent.booleanReturns whether the entity is sneaking.booleanisSneaky()booleanReturns whether the entity is a spectator.booleanReturns whether the entity is sprinting.booleanisSubmergedIn(TagKey<Fluid> fluidTag) Returns whether the entity is submerged in a fluid influidTag.booleanReturns whether this entity's hitbox is fully submerged in water.booleanisSupportedBy(BlockPos pos) booleanReturns whether the entity is swimming.final booleanisTeammate(@Nullable Entity other) Returns whether this entity andotherare in the same team.booleanisTeamPlayer(@Nullable AbstractTeam team) Returns whether this entity is inteam.booleanReturns whether this entity's hitbox is touching water fluid.booleanReturns whether this entity is touching water or is being rained on (but does not check for a bubble column).voidkill(ServerWorld world) Kills the entity.protected voidlerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch) floatlerpYaw(float tickProgress) voidvoidlookAt(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget.booleanvoidmove(MovementType type, Vec3d movement) protected static Vec3dmovementInputToVelocity(Vec3d movementInput, float speed, float yaw) Returns a vector with the horizontal direction beingyawdegrees and the absolute value beingmovementInputnormalized and multiplied byspeed.booleanReturns whether the entity should not emit vibrations.protected voidonBlockCollision(BlockState state) Called when this entity's collision box intersectsstate.voidonBubbleColumnCollision(boolean drag) Called when the entity collides with a bubble column without an air above.voidonBubbleColumnSurfaceCollision(boolean drag, BlockPos pos) Called when the entity collides with a bubble column with an air above.voidonDamaged(DamageSource damageSource) voidonDataTrackerUpdate(List<DataTracker.SerializedEntry<?>> entries) voidonExplodedBy(@Nullable Entity entity) voidonHeldLeashUpdate(Leashable heldLeashable) booleanonKilledOther(ServerWorld world, LivingEntity other, DamageSource damageSource) Called when this entity killsother.voidCalled when the entity lands on a block.voidonPassengerLookAround(Entity passenger) voidonPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidonRemove(Entity.RemovalReason reason) Called when the entity is about to be removed.voidCalled on the client side when the entity is removed.voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidCalled whenplayerstarts tracking this entity.voidCalled whenplayerstops tracking this entity.voidonStruckByLightning(ServerWorld world, LightningEntity lightning) Called when the entity is struck by lightning.protected voidvoidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.private voidprotected voidplayCombinationStepSounds(BlockState primaryState, BlockState secondaryState) protected voidPlays theSoundEvents.ENTITY_GENERIC_EXTINGUISH_FIREsound.protected voidplaySecondaryStepSound(BlockState state) voidplaySound(SoundEvent sound, float volume, float pitch) voidplaySoundIfNotSilent(SoundEvent event) protected voidplayStepSound(BlockPos pos, BlockState state) private voidplayStepSounds(BlockPos pos, BlockState state) protected voidprotected voidplaySwimSound(float volume) voidvoidpopulateCrashReport(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.voidpushAwayFrom(Entity entity) protected voidpushOutOfBlocks(double x, double y, double z) Pushes this entity out of blocks.raycast(double maxDistance, float tickProgress, boolean includeFluids) protected abstract voidreadCustomData(ReadView view) voidbooleanrecalculateDimensions(EntityDimensions previous) protected voidvoidrefreshPositionAfterTeleport(double x, double y, double z) voidvoidrefreshPositionAndAngles(double x, double y, double z, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.voidrefreshPositionAndAngles(BlockPos pos, float yaw, float pitch) Sets the entity's position, yaw, and pitch, and refreshes several position-related fields.voidrefreshPositionAndAngles(Vec3d pos, float yaw, float pitch) voidregisterTracking(ServerWorld world, DebugTrackable.Tracker tracker) protected voidDeprecated.voidremove(Entity.RemovalReason reason) Removes the entity.voidCauses all passengers of this entity to stop riding this entity.private static TextremoveClickEvents(Text textComponent) booleanremoveCommandTag(String tag) Removes a command tag from this entity.protected voidRemoves this entity from the current dimension.protected voidremovePassenger(Entity passenger) Removespassengerfrom the passengers.voidrequestTeleport(double destX, double destY, double destZ) Requests the entity to teleport to the given position.voidrequestTeleportAndDismount(double destX, double destY, double destZ) Requests the entity to teleport to the given position.voidrequestTeleportOffset(double offsetX, double offsetY, double offsetZ) Requests the entity to teleport to the current position offset by the given amount.voidResets the entity's portal cooldown to the default.final voidvoidrotate(float yaw, boolean relativeYaw, float pitch, boolean relativePitch) booleanbooleansaveSelfData(WriteView view) protected voidprivate voidsendTeleportPacket(TeleportTarget teleportTarget) final voidserverDamage(DamageSource source, float amount) Deprecated.voidsetAir(int air) Sets the air left for the entity in ticks.voidsetAlwaysSyncAbsolute(boolean alwaysSyncAbsolute) voidsetAngles(float yaw, float pitch) protected <T> booleansetApplicableComponent(ComponentType<T> type, T value) voidsetBodyYaw(float bodyYaw) Sets the body yaw of this entity.final voidsetBoundingBox(Box boundingBox) voidsetChangeListener(EntityChangeListener changeListener) <T> voidsetComponent(ComponentType<T> type, T value) voidsetCustomName(@Nullable Text name) Sets the custom name of the entity toname(ornullto remove the custom name).voidsetCustomNameVisible(boolean visible) Sets whether the custom name should be shown.voidsetFireTicks(int fireTicks) Sets the entity on fire forticksticks.protected voidsetFlag(int index, boolean value) Sets the entity flag with indexflagtovalue.voidsetFrozenTicks(int frozenTicks) Sets how long the entity is freezing in ticks.final voidsetGlowing(boolean glowing) Sets whether the entity is glowing.voidsetHeadYaw(float headYaw) Sets the head yaw of this entity.voidsetId(int id) Sets the network ID of this entity.voidsetInPowderSnow(boolean inPowderSnow) voidsetInvisible(boolean invisible) Sets whether the entity is invisible to everyone.voidsetInvulnerable(boolean invulnerable) Sets whether the entity is invulnerable.private voidsetLastAngles(float lastYaw, float lastPitch) private voidsetLastPosition(Vec3d pos) final voidsetLastPositionAndAngles(Vec3d pos, float yaw, float pitch) voidsetMovement(boolean onGround, boolean horizontalCollision, Vec3d movement) voidsetMovement(boolean onGround, Vec3d movement) voidsetNoGravity(boolean noGravity) Sets whether the entity has no gravity.voidsetOnFire(boolean onFire) final voidsetOnFireFor(float seconds) Sets the entity on fire forsecondsseconds.voidsetOnFireForTicks(int ticks) voidSets the entity on fire from lava, applies lava damage, and plays the burning sound.voidsetOnGround(boolean onGround) voidsetPitch(float pitch) voidsetPortalCooldown(int portalCooldown) final voidsetPos(double x, double y, double z) Sets the position of this entity.voidsetPose(EntityPose pose) voidsetPosition(double x, double y, double z) Sets the position and refreshes the bounding box.voidsetPosition(EntityPosition pos, Set<PositionFlag> flags) voidsetPosition(EntityPosition currentPos, EntityPosition newPos, Set<PositionFlag> flags) final voidsetPosition(Vec3d pos) Sets the position and refreshes the bounding box.final voidsetRemoved(Entity.RemovalReason reason) static voidsetRenderDistanceMultiplier(double value) Sets the render distance multiplier.protected voidsetRotation(float yaw, float pitch) Sets the entity's yaw and pitch.voidsetSilent(boolean silent) Sets whether the entity is silent.voidsetSneaking(boolean sneaking) Sets whether the entity is sneaking.voidsetSprinting(boolean sprinting) Sets whether the entity is sprinting.voidsetSwimming(boolean swimming) Sets whether the entity is swimming.voidSets the UUID of the entity touuid.voidsetVelocity(double x, double y, double z) voidsetVelocity(Vec3d velocity) voidsetVelocityClient(Vec3d clientVelocity) protected voidvoidsetYaw(float yaw) private booleanshearEquipment(PlayerEntity player, Hand hand, ItemStack shears, MobEntity entity) booleanbooleanbooleanReturns whether this vehicle should dismount the passenger if submerged underwater.booleanReturns whether the entity should escape from powder snow.private booleanprotected booleanbooleanshouldRender(double distance) booleanshouldRender(double cameraX, double cameraY, double cameraZ) booleanReturns whether to render the name of the entity.booleanprotected booleanbooleanprotected booleanfinal booleansidedDamage(DamageSource source, float amount) Deprecated.voidslowMovement(BlockState state, Vec3d multiplier) CallsonLanding()and slows this entity.booleansnipAllHeldLeashes(@Nullable PlayerEntity player) protected static voidspawnBubbleColumnParticles(World world, BlockPos pos) protected voiddoublesquaredDistanceTo(double x, double y, double z) Returns the squared distance between this entity and the given position.doublesquaredDistanceTo(Entity entity) Returns the squared distance between this entity andentity.doublesquaredDistanceTo(Vec3d vector) Returns the squared distance between this entity and the given position.final booleanstartRiding(Entity entity) Starts ridingentity.booleanstartRiding(Entity entity, boolean force, boolean emitEvent) Starts ridingentity.private booleanstepOnBlock(BlockPos pos, BlockState state, boolean playSound, boolean emitEvent, Vec3d movement) voidStops 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.booleanteleport(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 @Nullable EntityteleportCrossDimension(ServerWorld from, ServerWorld to, TeleportTarget teleportTarget) private voidprivate EntityteleportSameDimension(ServerWorld world, TeleportTarget teleportTarget) protected voidteleportSpectatingPlayers(TeleportTarget teleportTarget, ServerWorld from) @Nullable EntityteleportTo(TeleportTarget teleportTarget) Teleports this entity to another location, potentially in another world.voidtick()Ticks this entity.protected voidvoidtickBlockCollision(Vec3d lastRenderPos, Vec3d pos) private voidvoidtickHeldLeash(Leashable leashedEntity) protected voidCalled when the entity is 64 blocks below the world's minimum Y position.protected voidprotected voidprotected voidvoidtoString()voidtryUsePortal(Portal portal, BlockPos pos) protected voidUnsets this entity's removal.voidupdateEventHandler(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers.voidupdateKilledAdvancementCriterion(Entity entityKilled, DamageSource damageSource) voidprotected voidbooleanupdateMovementInFluid(TagKey<Fluid> tag, double speed) updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.final voidupdatePassengerPosition(Entity passenger) protected voidupdatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater) voidupdatePosition(double x, double y, double z) voidupdatePositionAndAngles(double x, double y, double z, float yaw, float pitch) private voidprotected voidupdateSupportingBlockPos(boolean onGround, @Nullable Vec3d movement) voidfinal voidupdateTrackedAngles(float float2, float float3) voidupdateTrackedHeadRotation(float yaw, int interpolationSteps) voidupdateTrackedPosition(double x, double y, double z) final voidupdateTrackedPosition(Vec3d vec3d) final voidupdateTrackedPositionAndAngles(Optional<Vec3d> optional, Optional<Float> optional2, Optional<Float> optional3) final voidupdateTrackedPositionAndAngles(Vec3d pos, float float2, float float3) voidupdateVelocity(float speed, Vec3d movementInput) Updates the entity's velocity to add a vector in the direction of the entity's yaw whose absolute value ismovementInputnormalized and multiplied byspeed.protected booleanprotected abstract voidwriteCustomData(WriteView view) voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.util.HeldItemContext
getEntityMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.inventory.StackReferenceGetter
getStackReferences
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/Entity;LOGGER:Lorg/slf4j/Logger;intermediary field_60355Lnet/minecraft/class_1297;field_60355:Lorg/slf4j/Logger;official bLcgk;b:Lorg/slf4j/Logger;
-
ID_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ID_KEYLnet/minecraft/entity/Entity;ID_KEY:Ljava/lang/String;intermediary field_29985Lnet/minecraft/class_1297;field_29985:Ljava/lang/String;official vLcgk;v:Ljava/lang/String;
-
UUID_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named UUID_KEYLnet/minecraft/entity/Entity;UUID_KEY:Ljava/lang/String;intermediary field_29994Lnet/minecraft/class_1297;field_29994:Ljava/lang/String;official wLcgk;w:Ljava/lang/String;
-
PASSENGERS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PASSENGERS_KEYLnet/minecraft/entity/Entity;PASSENGERS_KEY:Ljava/lang/String;intermediary field_29986Lnet/minecraft/class_1297;field_29986:Ljava/lang/String;official xLcgk;x:Ljava/lang/String;
-
CUSTOM_DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named CUSTOM_DATA_KEYLnet/minecraft/entity/Entity;CUSTOM_DATA_KEY:Ljava/lang/String;intermediary field_58050Lnet/minecraft/class_1297;field_58050:Ljava/lang/String;official yLcgk;y:Ljava/lang/String;
-
POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named POS_KEYLnet/minecraft/entity/Entity;POS_KEY:Ljava/lang/String;intermediary field_60535Lnet/minecraft/class_1297;field_60535:Ljava/lang/String;official zLcgk;z:Ljava/lang/String;
-
MOTION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named MOTION_KEYLnet/minecraft/entity/Entity;MOTION_KEY:Ljava/lang/String;intermediary field_60524Lnet/minecraft/class_1297;field_60524:Ljava/lang/String;official ALcgk;A:Ljava/lang/String;
-
ROTATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ROTATION_KEYLnet/minecraft/entity/Entity;ROTATION_KEY:Ljava/lang/String;intermediary field_60525Lnet/minecraft/class_1297;field_60525:Ljava/lang/String;official BLcgk;B:Ljava/lang/String;
-
PORTAL_COOLDOWN_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PORTAL_COOLDOWN_KEYLnet/minecraft/entity/Entity;PORTAL_COOLDOWN_KEY:Ljava/lang/String;intermediary field_60526Lnet/minecraft/class_1297;field_60526:Ljava/lang/String;official CLcgk;C:Ljava/lang/String;
-
NO_GRAVITY_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named NO_GRAVITY_KEYLnet/minecraft/entity/Entity;NO_GRAVITY_KEY:Ljava/lang/String;intermediary field_60527Lnet/minecraft/class_1297;field_60527:Ljava/lang/String;official DLcgk;D:Ljava/lang/String;
-
AIR_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named AIR_KEYLnet/minecraft/entity/Entity;AIR_KEY:Ljava/lang/String;intermediary field_60528Lnet/minecraft/class_1297;field_60528:Ljava/lang/String;official ELcgk;E:Ljava/lang/String;
-
ON_GROUND_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ON_GROUND_KEYLnet/minecraft/entity/Entity;ON_GROUND_KEY:Ljava/lang/String;intermediary field_60529Lnet/minecraft/class_1297;field_60529:Ljava/lang/String;official FLcgk;F:Ljava/lang/String;
-
FALL_DISTANCE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FALL_DISTANCE_KEYLnet/minecraft/entity/Entity;FALL_DISTANCE_KEY:Ljava/lang/String;intermediary field_60530Lnet/minecraft/class_1297;field_60530:Ljava/lang/String;official GLcgk;G:Ljava/lang/String;
-
FIRE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FIRE_KEYLnet/minecraft/entity/Entity;FIRE_KEY:Ljava/lang/String;intermediary field_60531Lnet/minecraft/class_1297;field_60531:Ljava/lang/String;official HLcgk;H:Ljava/lang/String;
-
SILENT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SILENT_KEYLnet/minecraft/entity/Entity;SILENT_KEY:Ljava/lang/String;intermediary field_60532Lnet/minecraft/class_1297;field_60532:Ljava/lang/String;official ILcgk;I:Ljava/lang/String;
-
GLOWING_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named GLOWING_KEYLnet/minecraft/entity/Entity;GLOWING_KEY:Ljava/lang/String;intermediary field_60533Lnet/minecraft/class_1297;field_60533:Ljava/lang/String;official JLcgk;J:Ljava/lang/String;
-
INVULNERABLE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named INVULNERABLE_KEYLnet/minecraft/entity/Entity;INVULNERABLE_KEY:Ljava/lang/String;intermediary field_60534Lnet/minecraft/class_1297;field_60534:Ljava/lang/String;official KLcgk;K:Ljava/lang/String;
-
CUSTOM_NAME_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named CUSTOM_NAME_KEYLnet/minecraft/entity/Entity;CUSTOM_NAME_KEY:Ljava/lang/String;intermediary field_61220Lnet/minecraft/class_1297;field_61220:Ljava/lang/String;official LLcgk;L: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_IDLnet/minecraft/entity/Entity;CURRENT_ID:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_5978Lnet/minecraft/class_1297;field_5978:Ljava/util/concurrent/atomic/AtomicInteger;official cLcgk;c:Ljava/util/concurrent/atomic/AtomicInteger;
-
field_49791
public static final int field_49791- See Also:
- Mappings:
Namespace Name Mixin selector named field_49791Lnet/minecraft/entity/Entity;field_49791:Iintermediary field_49791Lnet/minecraft/class_1297;field_49791:Iofficial MLcgk;M:I
-
MAX_RIDING_COOLDOWN
public static final int MAX_RIDING_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RIDING_COOLDOWNLnet/minecraft/entity/Entity;MAX_RIDING_COOLDOWN:Iintermediary field_29987Lnet/minecraft/class_1297;field_29987:Iofficial NLcgk;N:I
-
DEFAULT_PORTAL_COOLDOWN
public static final int DEFAULT_PORTAL_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_PORTAL_COOLDOWNLnet/minecraft/entity/Entity;DEFAULT_PORTAL_COOLDOWN:Iintermediary field_29988Lnet/minecraft/class_1297;field_29988:Iofficial OLcgk;O:I
-
MAX_COMMAND_TAGS
public static final int MAX_COMMAND_TAGS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_TAGSLnet/minecraft/entity/Entity;MAX_COMMAND_TAGS:Iintermediary field_29989Lnet/minecraft/class_1297;field_29989:Iofficial PLcgk;P:I
-
TAG_LIST_CODEC
- Mappings:
Namespace Name Mixin selector named TAG_LIST_CODECLnet/minecraft/entity/Entity;TAG_LIST_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56631Lnet/minecraft/class_1297;field_56631:Lcom/mojang/serialization/Codec;official dLcgk;d:Lcom/mojang/serialization/Codec;
-
field_44870
public static final float field_44870- See Also:
- Mappings:
Namespace Name Mixin selector named field_44870Lnet/minecraft/entity/Entity;field_44870:Fintermediary field_44870Lnet/minecraft/class_1297;field_44870:Fofficial QLcgk;Q:F
-
field_44871
public static final double field_44871- See Also:
- Mappings:
Namespace Name Mixin selector named field_44871Lnet/minecraft/entity/Entity;field_44871:Dintermediary field_44871Lnet/minecraft/class_1297;field_44871:Dofficial RLcgk;R:D
-
field_44872
public static final double field_44872- See Also:
- Mappings:
Namespace Name Mixin selector named field_44872Lnet/minecraft/entity/Entity;field_44872:Dintermediary field_44872Lnet/minecraft/class_1297;field_44872:Dofficial SLcgk;S: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_TICKSLnet/minecraft/entity/Entity;DEFAULT_MIN_FREEZE_DAMAGE_TICKS:Iintermediary field_29992Lnet/minecraft/class_1297;field_29992:Iofficial TLcgk;T:I
-
FREEZING_DAMAGE_INTERVAL
public static final int FREEZING_DAMAGE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named FREEZING_DAMAGE_INTERVALLnet/minecraft/entity/Entity;FREEZING_DAMAGE_INTERVAL:Iintermediary field_29993Lnet/minecraft/class_1297;field_29993:Iofficial ULcgk;U:I
-
field_49073
public static final int field_49073- See Also:
- Mappings:
Namespace Name Mixin selector named field_49073Lnet/minecraft/entity/Entity;field_49073:Iintermediary field_49073Lnet/minecraft/class_1297;field_49073:Iofficial VLcgk;V:I
-
NULL_BOX
- Mappings:
Namespace Name Mixin selector named NULL_BOXLnet/minecraft/entity/Entity;NULL_BOX:Lnet/minecraft/util/math/Box;intermediary field_6025Lnet/minecraft/class_1297;field_6025:Lnet/minecraft/class_238;official eLcgk;e:Lfth;
-
SPEED_IN_WATER
private static final double SPEED_IN_WATER- See Also:
- Mappings:
Namespace Name Mixin selector named SPEED_IN_WATERLnet/minecraft/entity/Entity;SPEED_IN_WATER:Dintermediary field_29984Lnet/minecraft/class_1297;field_29984:Dofficial rLcgk;r: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_NETHERLnet/minecraft/entity/Entity;SPEED_IN_LAVA_IN_NETHER:Dintermediary field_29982Lnet/minecraft/class_1297;field_29982:Dofficial sLcgk;s:D
-
SPEED_IN_LAVA
private static final double SPEED_IN_LAVA- See Also:
- Mappings:
Namespace Name Mixin selector named SPEED_IN_LAVALnet/minecraft/entity/Entity;SPEED_IN_LAVA:Dintermediary field_29983Lnet/minecraft/class_1297;field_29983:Dofficial tLcgk;t:D
-
field_61895
private static final int field_61895- See Also:
- Mappings:
Namespace Name Mixin selector named field_61895Lnet/minecraft/entity/Entity;field_61895:Iintermediary field_61895Lnet/minecraft/class_1297;field_61895:Iofficial uLcgk;u:I
-
field_61894
private static final double field_61894- See Also:
- Mappings:
Namespace Name Mixin selector named field_61894Lnet/minecraft/entity/Entity;field_61894:Dintermediary field_61894Lnet/minecraft/class_1297;field_61894:Dofficial aNLcgk;aN:D
-
renderDistanceMultiplier
private static double renderDistanceMultiplier- Mappings:
Namespace Name Mixin selector named renderDistanceMultiplierLnet/minecraft/entity/Entity;renderDistanceMultiplier:Dintermediary field_5999Lnet/minecraft/class_1297;field_5999:Dofficial aOLcgk;aO: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_FRICTIONLnet/minecraft/entity/Entity;DEFAULT_FRICTION:Fintermediary field_29973Lnet/minecraft/class_1297;field_29973:Fofficial ajLcgk;aj: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_SPEEDLnet/minecraft/entity/Entity;MIN_RISING_BUBBLE_COLUMN_SPEED:Fintermediary field_29974Lnet/minecraft/class_1297;field_29974:Fofficial akLcgk;ak:F
-
FLAGS
- Mappings:
Namespace Name Mixin selector named FLAGSLnet/minecraft/entity/Entity;FLAGS:Lnet/minecraft/entity/data/TrackedData;intermediary field_5990Lnet/minecraft/class_1297;field_5990:Lnet/minecraft/class_2940;official aALcgk;aA:Lalw;
-
ON_FIRE_FLAG_INDEX
protected static final int ON_FIRE_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named ON_FIRE_FLAG_INDEXLnet/minecraft/entity/Entity;ON_FIRE_FLAG_INDEX:Iintermediary field_29979Lnet/minecraft/class_1297;field_29979:Iofficial aBLcgk;aB:I
-
SNEAKING_FLAG_INDEX
private static final int SNEAKING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named SNEAKING_FLAG_INDEXLnet/minecraft/entity/Entity;SNEAKING_FLAG_INDEX:Iintermediary field_29975Lnet/minecraft/class_1297;field_29975:Iofficial bhLcgk;bh:I
-
SPRINTING_FLAG_INDEX
private static final int SPRINTING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named SPRINTING_FLAG_INDEXLnet/minecraft/entity/Entity;SPRINTING_FLAG_INDEX:Iintermediary field_29976Lnet/minecraft/class_1297;field_29976:Iofficial biLcgk;bi:I
-
SWIMMING_FLAG_INDEX
private static final int SWIMMING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named SWIMMING_FLAG_INDEXLnet/minecraft/entity/Entity;SWIMMING_FLAG_INDEX:Iintermediary field_29977Lnet/minecraft/class_1297;field_29977:Iofficial bjLcgk;bj:I
-
INVISIBLE_FLAG_INDEX
private static final int INVISIBLE_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named INVISIBLE_FLAG_INDEXLnet/minecraft/entity/Entity;INVISIBLE_FLAG_INDEX:Iintermediary field_29978Lnet/minecraft/class_1297;field_29978:Iofficial bkLcgk;bk:I
-
GLOWING_FLAG_INDEX
protected static final int GLOWING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named GLOWING_FLAG_INDEXLnet/minecraft/entity/Entity;GLOWING_FLAG_INDEX:Iintermediary field_29980Lnet/minecraft/class_1297;field_29980:Iofficial aCLcgk;aC:I
-
GLIDING_FLAG_INDEX
protected static final int GLIDING_FLAG_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named GLIDING_FLAG_INDEXLnet/minecraft/entity/Entity;GLIDING_FLAG_INDEX:Iintermediary field_29981Lnet/minecraft/class_1297;field_29981:Iofficial aDLcgk;aD:I
-
AIR
- Mappings:
Namespace Name Mixin selector named AIRLnet/minecraft/entity/Entity;AIR:Lnet/minecraft/entity/data/TrackedData;intermediary field_6032Lnet/minecraft/class_1297;field_6032:Lnet/minecraft/class_2940;official blLcgk;bl:Lalw;
-
CUSTOM_NAME
- Mappings:
Namespace Name Mixin selector named CUSTOM_NAMELnet/minecraft/entity/Entity;CUSTOM_NAME:Lnet/minecraft/entity/data/TrackedData;intermediary field_6027Lnet/minecraft/class_1297;field_6027:Lnet/minecraft/class_2940;official bmLcgk;bm:Lalw;
-
NAME_VISIBLE
- Mappings:
Namespace Name Mixin selector named NAME_VISIBLELnet/minecraft/entity/Entity;NAME_VISIBLE:Lnet/minecraft/entity/data/TrackedData;intermediary field_5975Lnet/minecraft/class_1297;field_5975:Lnet/minecraft/class_2940;official bnLcgk;bn:Lalw;
-
SILENT
- Mappings:
Namespace Name Mixin selector named SILENTLnet/minecraft/entity/Entity;SILENT:Lnet/minecraft/entity/data/TrackedData;intermediary field_5962Lnet/minecraft/class_1297;field_5962:Lnet/minecraft/class_2940;official boLcgk;bo:Lalw;
-
NO_GRAVITY
- Mappings:
Namespace Name Mixin selector named NO_GRAVITYLnet/minecraft/entity/Entity;NO_GRAVITY:Lnet/minecraft/entity/data/TrackedData;intermediary field_5995Lnet/minecraft/class_1297;field_5995:Lnet/minecraft/class_2940;official bpLcgk;bp:Lalw;
-
POSE
- Mappings:
Namespace Name Mixin selector named POSELnet/minecraft/entity/Entity;POSE:Lnet/minecraft/entity/data/TrackedData;intermediary field_18064Lnet/minecraft/class_1297;field_18064:Lnet/minecraft/class_2940;official aELcgk;aE:Lalw;
-
FROZEN_TICKS
- Mappings:
Namespace Name Mixin selector named FROZEN_TICKSLnet/minecraft/entity/Entity;FROZEN_TICKS:Lnet/minecraft/entity/data/TrackedData;intermediary field_27858Lnet/minecraft/class_1297;field_27858:Lnet/minecraft/class_2940;official bqLcgk;bq:Lalw;
-
MAX_QUEUED_COLLISION_CHECKS
public static final int MAX_QUEUED_COLLISION_CHECKS- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_QUEUED_COLLISION_CHECKSLnet/minecraft/entity/Entity;MAX_QUEUED_COLLISION_CHECKS:Iintermediary field_60858Lnet/minecraft/class_1297;field_60858:Iofficial aMLcgk;aM:I
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/entity/Entity;type:Lnet/minecraft/entity/EntityType;intermediary field_5961Lnet/minecraft/class_1297;field_5961:Lnet/minecraft/class_1299;official aPLcgk;aP:Lcgu;
-
alwaysSyncAbsolute
private boolean alwaysSyncAbsolute- Mappings:
Namespace Name Mixin selector named alwaysSyncAbsoluteLnet/minecraft/entity/Entity;alwaysSyncAbsolute:Zintermediary field_59667Lnet/minecraft/class_1297;field_59667:Zofficial aQLcgk;aQ: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; useuuidto identify an entity in those cases.- See Also:
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/entity/Entity;id:Iintermediary field_5986Lnet/minecraft/class_1297;field_5986:Iofficial aRLcgk;aR: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 withArmorStandEntityis checked if it is not amarker. - Mappings:
Namespace Name Mixin selector named intersectionCheckedLnet/minecraft/entity/Entity;intersectionChecked:Zintermediary field_23807Lnet/minecraft/class_1297;field_23807:Zofficial WLcgk;W:Z
-
passengerList
- Mappings:
Namespace Name Mixin selector named passengerListLnet/minecraft/entity/Entity;passengerList:Lcom/google/common/collect/ImmutableList;intermediary field_5979Lnet/minecraft/class_1297;field_5979:Lcom/google/common/collect/ImmutableList;official aSLcgk;aS:Lcom/google/common/collect/ImmutableList;
-
ridingCooldown
protected int ridingCooldown- Mappings:
Namespace Name Mixin selector named ridingCooldownLnet/minecraft/entity/Entity;ridingCooldown:Iintermediary field_5951Lnet/minecraft/class_1297;field_5951:Iofficial XLcgk;X:I
-
vehicle
- Mappings:
Namespace Name Mixin selector named vehicleLnet/minecraft/entity/Entity;vehicle:Lnet/minecraft/entity/Entity;intermediary field_6034Lnet/minecraft/class_1297;field_6034:Lnet/minecraft/class_1297;official aTLcgk;aT:Lcgk;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/entity/Entity;world:Lnet/minecraft/world/World;intermediary field_6002Lnet/minecraft/class_1297;field_6002:Lnet/minecraft/class_1937;official aULcgk;aU:Ldwo;
-
lastX
public double lastX- Mappings:
Namespace Name Mixin selector named lastXLnet/minecraft/entity/Entity;lastX:Dintermediary field_6014Lnet/minecraft/class_1297;field_6014:Dofficial YLcgk;Y:D
-
lastY
public double lastY- Mappings:
Namespace Name Mixin selector named lastYLnet/minecraft/entity/Entity;lastY:Dintermediary field_6036Lnet/minecraft/class_1297;field_6036:Dofficial ZLcgk;Z:D
-
lastZ
public double lastZ- Mappings:
Namespace Name Mixin selector named lastZLnet/minecraft/entity/Entity;lastZ:Dintermediary field_5969Lnet/minecraft/class_1297;field_5969:Dofficial aaLcgk;aa:D
-
pos
- Mappings:
Namespace Name Mixin selector named posLnet/minecraft/entity/Entity;pos:Lnet/minecraft/util/math/Vec3d;intermediary field_22467Lnet/minecraft/class_1297;field_22467:Lnet/minecraft/class_243;official aVLcgk;aV:Lftm;
-
blockPos
- Mappings:
Namespace Name Mixin selector named blockPosLnet/minecraft/entity/Entity;blockPos:Lnet/minecraft/util/math/BlockPos;intermediary field_22468Lnet/minecraft/class_1297;field_22468:Lnet/minecraft/class_2338;official aWLcgk;aW:Lis;
-
chunkPos
- Mappings:
Namespace Name Mixin selector named chunkPosLnet/minecraft/entity/Entity;chunkPos:Lnet/minecraft/util/math/ChunkPos;intermediary field_35101Lnet/minecraft/class_1297;field_35101:Lnet/minecraft/class_1923;official aXLcgk;aX:Ldvu;
-
velocity
- Mappings:
Namespace Name Mixin selector named velocityLnet/minecraft/entity/Entity;velocity:Lnet/minecraft/util/math/Vec3d;intermediary field_18276Lnet/minecraft/class_1297;field_18276:Lnet/minecraft/class_243;official aYLcgk;aY:Lftm;
-
yaw
private float yaw- Mappings:
Namespace Name Mixin selector named yawLnet/minecraft/entity/Entity;yaw:Fintermediary field_6031Lnet/minecraft/class_1297;field_6031:Fofficial aZLcgk;aZ:F
-
pitch
private float pitch- Mappings:
Namespace Name Mixin selector named pitchLnet/minecraft/entity/Entity;pitch:Fintermediary field_5965Lnet/minecraft/class_1297;field_5965:Fofficial baLcgk;ba:F
-
lastYaw
public float lastYaw- Mappings:
Namespace Name Mixin selector named lastYawLnet/minecraft/entity/Entity;lastYaw:Fintermediary field_5982Lnet/minecraft/class_1297;field_5982:Fofficial abLcgk;ab:F
-
lastPitch
public float lastPitch- Mappings:
Namespace Name Mixin selector named lastPitchLnet/minecraft/entity/Entity;lastPitch:Fintermediary field_6004Lnet/minecraft/class_1297;field_6004:Fofficial acLcgk;ac:F
-
boundingBox
- Mappings:
Namespace Name Mixin selector named boundingBoxLnet/minecraft/entity/Entity;boundingBox:Lnet/minecraft/util/math/Box;intermediary field_6005Lnet/minecraft/class_1297;field_6005:Lnet/minecraft/class_238;official bbLcgk;bb:Lfth;
-
onGround
private boolean onGround- Mappings:
Namespace Name Mixin selector named onGroundLnet/minecraft/entity/Entity;onGround:Zintermediary field_5952Lnet/minecraft/class_1297;field_5952:Zofficial bcLcgk;bc:Z
-
horizontalCollision
public boolean horizontalCollision- Mappings:
Namespace Name Mixin selector named horizontalCollisionLnet/minecraft/entity/Entity;horizontalCollision:Zintermediary field_5976Lnet/minecraft/class_1297;field_5976:Zofficial adLcgk;ad:Z
-
verticalCollision
public boolean verticalCollision- Mappings:
Namespace Name Mixin selector named verticalCollisionLnet/minecraft/entity/Entity;verticalCollision:Zintermediary field_5992Lnet/minecraft/class_1297;field_5992:Zofficial aeLcgk;ae:Z
-
groundCollision
public boolean groundCollision- Mappings:
Namespace Name Mixin selector named groundCollisionLnet/minecraft/entity/Entity;groundCollision:Zintermediary field_36331Lnet/minecraft/class_1297;field_36331:Zofficial afLcgk;af:Z
-
collidedSoftly
public boolean collidedSoftly- Mappings:
Namespace Name Mixin selector named collidedSoftlyLnet/minecraft/entity/Entity;collidedSoftly:Zintermediary field_34927Lnet/minecraft/class_1297;field_34927:Zofficial agLcgk;ag:Z
-
knockedBack
public boolean knockedBack- Mappings:
Namespace Name Mixin selector named knockedBackLnet/minecraft/entity/Entity;knockedBack:Zintermediary field_6037Lnet/minecraft/class_1297;field_6037:Zofficial ahLcgk;ah:Z
-
movementMultiplier
- Mappings:
Namespace Name Mixin selector named movementMultiplierLnet/minecraft/entity/Entity;movementMultiplier:Lnet/minecraft/util/math/Vec3d;intermediary field_17046Lnet/minecraft/class_1297;field_17046:Lnet/minecraft/class_243;official aiLcgk;ai:Lftm;
-
removalReason
- Mappings:
Namespace Name Mixin selector named removalReasonLnet/minecraft/entity/Entity;removalReason:Lnet/minecraft/entity/Entity$RemovalReason;intermediary field_26995Lnet/minecraft/class_1297;field_26995:Lnet/minecraft/class_1297$class_5529;official bdLcgk;bd:Lcgk$e;
-
distanceTraveled
public float distanceTraveled- Mappings:
Namespace Name Mixin selector named distanceTraveledLnet/minecraft/entity/Entity;distanceTraveled:Fintermediary field_5994Lnet/minecraft/class_1297;field_5994:Fofficial alLcgk;al:F
-
speed
public float speed- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/Entity;speed:Fintermediary field_28627Lnet/minecraft/class_1297;field_28627:Fofficial amLcgk;am:F
-
fallDistance
public double fallDistance- Mappings:
Namespace Name Mixin selector named fallDistanceLnet/minecraft/entity/Entity;fallDistance:Dintermediary field_6017Lnet/minecraft/class_1297;field_6017:Dofficial anLcgk;an:D
-
nextStepSoundDistance
private float nextStepSoundDistance- Mappings:
Namespace Name Mixin selector named nextStepSoundDistanceLnet/minecraft/entity/Entity;nextStepSoundDistance:Fintermediary field_6003Lnet/minecraft/class_1297;field_6003:Fofficial beLcgk;be:F
-
lastRenderX
public double lastRenderX- Mappings:
Namespace Name Mixin selector named lastRenderXLnet/minecraft/entity/Entity;lastRenderX:Dintermediary field_6038Lnet/minecraft/class_1297;field_6038:Dofficial aoLcgk;ao:D
-
lastRenderY
public double lastRenderY- Mappings:
Namespace Name Mixin selector named lastRenderYLnet/minecraft/entity/Entity;lastRenderY:Dintermediary field_5971Lnet/minecraft/class_1297;field_5971:Dofficial apLcgk;ap:D
-
lastRenderZ
public double lastRenderZ- Mappings:
Namespace Name Mixin selector named lastRenderZLnet/minecraft/entity/Entity;lastRenderZ:Dintermediary field_5989Lnet/minecraft/class_1297;field_5989:Dofficial aqLcgk;aq:D
-
noClip
public boolean noClip- Mappings:
Namespace Name Mixin selector named noClipLnet/minecraft/entity/Entity;noClip:Zintermediary field_5960Lnet/minecraft/class_1297;field_5960:Zofficial arLcgk;ar:Z
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/entity/Entity;random:Lnet/minecraft/util/math/random/Random;intermediary field_5974Lnet/minecraft/class_1297;field_5974:Lnet/minecraft/class_5819;official asLcgk;as:Lbgr;
-
age
public int age- Mappings:
Namespace Name Mixin selector named ageLnet/minecraft/entity/Entity;age:Iintermediary field_6012Lnet/minecraft/class_1297;field_6012:Iofficial atLcgk;at:I
-
fireTicks
private int fireTicks- Mappings:
Namespace Name Mixin selector named fireTicksLnet/minecraft/entity/Entity;fireTicks:Iintermediary field_5956Lnet/minecraft/class_1297;field_5956:Iofficial bfLcgk;bf:I
-
touchingWater
protected boolean touchingWater- Mappings:
Namespace Name Mixin selector named touchingWaterLnet/minecraft/entity/Entity;touchingWater:Zintermediary field_5957Lnet/minecraft/class_1297;field_5957:Zofficial auLcgk;au:Z
-
fluidHeight
- Mappings:
Namespace Name Mixin selector named fluidHeightLnet/minecraft/entity/Entity;fluidHeight:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;intermediary field_5964Lnet/minecraft/class_1297;field_5964:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;official avLcgk;av:Lit/unimi/dsi/fastutil/objects/Object2DoubleMap;
-
submergedInWater
protected boolean submergedInWater- Mappings:
Namespace Name Mixin selector named submergedInWaterLnet/minecraft/entity/Entity;submergedInWater:Zintermediary field_6000Lnet/minecraft/class_1297;field_6000:Zofficial awLcgk;aw:Z
-
submergedFluidTag
- Mappings:
Namespace Name Mixin selector named submergedFluidTagLnet/minecraft/entity/Entity;submergedFluidTag:Ljava/util/Set;intermediary field_25599Lnet/minecraft/class_1297;field_25599:Ljava/util/Set;official bgLcgk;bg:Ljava/util/Set;
-
timeUntilRegen
public int timeUntilRegen- Mappings:
Namespace Name Mixin selector named timeUntilRegenLnet/minecraft/entity/Entity;timeUntilRegen:Iintermediary field_6008Lnet/minecraft/class_1297;field_6008:Iofficial axLcgk;ax:I
-
firstUpdate
protected boolean firstUpdate- Mappings:
Namespace Name Mixin selector named firstUpdateLnet/minecraft/entity/Entity;firstUpdate:Zintermediary field_5953Lnet/minecraft/class_1297;field_5953:Zofficial ayLcgk;ay:Z
-
dataTracker
- Mappings:
Namespace Name Mixin selector named dataTrackerLnet/minecraft/entity/Entity;dataTracker:Lnet/minecraft/entity/data/DataTracker;intermediary field_6011Lnet/minecraft/class_1297;field_6011:Lnet/minecraft/class_2945;official azLcgk;az:Lama;
-
changeListener
- Mappings:
Namespace Name Mixin selector named changeListenerLnet/minecraft/entity/Entity;changeListener:Lnet/minecraft/world/entity/EntityChangeListener;intermediary field_26996Lnet/minecraft/class_1297;field_26996:Lnet/minecraft/class_5569;official brLcgk;br:Lesq;
-
trackedPosition
- Mappings:
Namespace Name Mixin selector named trackedPositionLnet/minecraft/entity/Entity;trackedPosition:Lnet/minecraft/entity/TrackedPosition;intermediary field_38931Lnet/minecraft/class_1297;field_38931:Lnet/minecraft/class_7422;official bsLcgk;bs:Lakg;
-
velocityDirty
public boolean velocityDirty- Mappings:
Namespace Name Mixin selector named velocityDirtyLnet/minecraft/entity/Entity;velocityDirty:Zintermediary field_64356Lnet/minecraft/class_1297;field_64356:Zofficial aFLcgk;aF:Z
-
portalManager
- Mappings:
Namespace Name Mixin selector named portalManagerLnet/minecraft/entity/Entity;portalManager:Lnet/minecraft/world/dimension/PortalManager;intermediary field_51994Lnet/minecraft/class_1297;field_51994:Lnet/minecraft/class_9787;official aGLcgk;aG:Lchw;
-
portalCooldown
private int portalCooldown- Mappings:
Namespace Name Mixin selector named portalCooldownLnet/minecraft/entity/Entity;portalCooldown:Iintermediary field_6018Lnet/minecraft/class_1297;field_6018:Iofficial btLcgk;bt:I
-
invulnerable
private boolean invulnerable- Mappings:
Namespace Name Mixin selector named invulnerableLnet/minecraft/entity/Entity;invulnerable:Zintermediary field_6009Lnet/minecraft/class_1297;field_6009:Zofficial buLcgk;bu:Z
-
uuid
- Mappings:
Namespace Name Mixin selector named uuidLnet/minecraft/entity/Entity;uuid:Ljava/util/UUID;intermediary field_6021Lnet/minecraft/class_1297;field_6021:Ljava/util/UUID;official aHLcgk;aH:Ljava/util/UUID;
-
uuidString
- Mappings:
Namespace Name Mixin selector named uuidStringLnet/minecraft/entity/Entity;uuidString:Ljava/lang/String;intermediary field_5981Lnet/minecraft/class_1297;field_5981:Ljava/lang/String;official aILcgk;aI:Ljava/lang/String;
-
glowing
private boolean glowing- Mappings:
Namespace Name Mixin selector named glowingLnet/minecraft/entity/Entity;glowing:Zintermediary field_5958Lnet/minecraft/class_1297;field_5958:Zofficial bvLcgk;bv:Z
-
commandTags
- Mappings:
Namespace Name Mixin selector named commandTagsLnet/minecraft/entity/Entity;commandTags:Ljava/util/Set;intermediary field_6029Lnet/minecraft/class_1297;field_6029:Ljava/util/Set;official bwLcgk;bw:Ljava/util/Set;
-
pistonMovementDelta
private final double[] pistonMovementDelta- Mappings:
Namespace Name Mixin selector named pistonMovementDeltaLnet/minecraft/entity/Entity;pistonMovementDelta:[Dintermediary field_5993Lnet/minecraft/class_1297;field_5993:[Dofficial bxLcgk;bx:[D
-
pistonMovementTick
private long pistonMovementTick- Mappings:
Namespace Name Mixin selector named pistonMovementTickLnet/minecraft/entity/Entity;pistonMovementTick:Jintermediary field_5996Lnet/minecraft/class_1297;field_5996:Jofficial byLcgk;by:J
-
dimensions
- Mappings:
Namespace Name Mixin selector named dimensionsLnet/minecraft/entity/Entity;dimensions:Lnet/minecraft/entity/EntityDimensions;intermediary field_18065Lnet/minecraft/class_1297;field_18065:Lnet/minecraft/class_4048;official bzLcgk;bz:Lcgn;
-
standingEyeHeight
private float standingEyeHeight- Mappings:
Namespace Name Mixin selector named standingEyeHeightLnet/minecraft/entity/Entity;standingEyeHeight:Fintermediary field_18066Lnet/minecraft/class_1297;field_18066:Fofficial bALcgk;bA:F
-
inPowderSnow
public boolean inPowderSnow- Mappings:
Namespace Name Mixin selector named inPowderSnowLnet/minecraft/entity/Entity;inPowderSnow:Zintermediary field_27857Lnet/minecraft/class_1297;field_27857:Zofficial aJLcgk;aJ:Z
-
wasInPowderSnow
public boolean wasInPowderSnow- Mappings:
Namespace Name Mixin selector named wasInPowderSnowLnet/minecraft/entity/Entity;wasInPowderSnow:Zintermediary field_28628Lnet/minecraft/class_1297;field_28628:Zofficial aKLcgk;aK:Z
-
supportingBlockPos
- Mappings:
Namespace Name Mixin selector named supportingBlockPosLnet/minecraft/entity/Entity;supportingBlockPos:Ljava/util/Optional;intermediary field_44784Lnet/minecraft/class_1297;field_44784:Ljava/util/Optional;official aLLcgk;aL:Ljava/util/Optional;
-
forceUpdateSupportingBlockPos
private boolean forceUpdateSupportingBlockPos- Mappings:
Namespace Name Mixin selector named forceUpdateSupportingBlockPosLnet/minecraft/entity/Entity;forceUpdateSupportingBlockPos:Zintermediary field_44873Lnet/minecraft/class_1297;field_44873:Zofficial bBLcgk;bB:Z
-
lastChimeIntensity
private float lastChimeIntensity- Mappings:
Namespace Name Mixin selector named lastChimeIntensityLnet/minecraft/entity/Entity;lastChimeIntensity:Fintermediary field_26997Lnet/minecraft/class_1297;field_26997:Fofficial bCLcgk;bC:F
-
lastChimeAge
private int lastChimeAge- Mappings:
Namespace Name Mixin selector named lastChimeAgeLnet/minecraft/entity/Entity;lastChimeAge:Iintermediary field_26994Lnet/minecraft/class_1297;field_26994:Iofficial bDLcgk;bD:I
-
hasVisualFire
private boolean hasVisualFire- Mappings:
Namespace Name Mixin selector named hasVisualFireLnet/minecraft/entity/Entity;hasVisualFire:Zintermediary field_33758Lnet/minecraft/class_1297;field_33758:Zofficial bELcgk;bE:Z
-
movement
- Mappings:
Namespace Name Mixin selector named movementLnet/minecraft/entity/Entity;movement:Lnet/minecraft/util/math/Vec3d;intermediary field_64357Lnet/minecraft/class_1297;field_64357:Lnet/minecraft/class_243;official bFLcgk;bF:Lftm;
-
lastPos
- Mappings:
Namespace Name Mixin selector named lastPosLnet/minecraft/entity/Entity;lastPos:Lnet/minecraft/util/math/Vec3d;intermediary field_64358Lnet/minecraft/class_1297;field_64358:Lnet/minecraft/class_243;official bGLcgk;bG:Lftm;
-
stateAtPos
- Mappings:
Namespace Name Mixin selector named stateAtPosLnet/minecraft/entity/Entity;stateAtPos:Lnet/minecraft/block/BlockState;intermediary field_47742Lnet/minecraft/class_1297;field_47742:Lnet/minecraft/class_2680;official bHLcgk;bH:Leoh;
-
queuedCollisionChecks
- Mappings:
Namespace Name Mixin selector named queuedCollisionChecksLnet/minecraft/entity/Entity;queuedCollisionChecks:Ljava/util/ArrayDeque;intermediary field_54947Lnet/minecraft/class_1297;field_54947:Ljava/util/ArrayDeque;official bILcgk;bI:Ljava/util/ArrayDeque;
-
currentlyCheckedCollisions
- Mappings:
Namespace Name Mixin selector named currentlyCheckedCollisionsLnet/minecraft/entity/Entity;currentlyCheckedCollisions:Ljava/util/List;intermediary field_57579Lnet/minecraft/class_1297;field_57579:Ljava/util/List;official bJLcgk;bJ:Ljava/util/List;
-
collidedBlockPositions
- Mappings:
Namespace Name Mixin selector named collidedBlockPositionsLnet/minecraft/entity/Entity;collidedBlockPositions:Lit/unimi/dsi/fastutil/longs/LongSet;intermediary field_54948Lnet/minecraft/class_1297;field_54948:Lit/unimi/dsi/fastutil/longs/LongSet;official bKLcgk;bK:Lit/unimi/dsi/fastutil/longs/LongSet;
-
collisionHandler
- Mappings:
Namespace Name Mixin selector named collisionHandlerLnet/minecraft/entity/Entity;collisionHandler:Lnet/minecraft/entity/EntityCollisionHandler$Impl;intermediary field_56630Lnet/minecraft/class_1297;field_56630:Lnet/minecraft/class_10774$class_10775;official bLLcgk;bL:Lchc$a;
-
customData
- Mappings:
Namespace Name Mixin selector named customDataLnet/minecraft/entity/Entity;customData:Lnet/minecraft/component/type/NbtComponent;intermediary field_58051Lnet/minecraft/class_1297;field_58051:Lnet/minecraft/class_9279;official bMLcgk;bM:Ldoe;
-
-
Constructor Details
-
Entity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcgk;<init>(Lcgu;Ldwo;)V
-
-
Method Details
-
collidesWithStateAtPos
Returns whether the entity collides with the blockstateatpos.- Returns:
- whether the entity collides with the block
stateatpos - Mappings:
Namespace Name Mixin selector named collidesWithStateAtPosLnet/minecraft/entity/Entity;collidesWithStateAtPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Zintermediary method_30632Lnet/minecraft/class_1297;method_30632(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial aLcgk;a(Lis;Leoh;)Z
-
getTeamColorValue
public int getTeamColorValue()Returns the team color value, or0xFFFFFFif the entity is not in a team or the color is not set.- Returns:
- the team color value, or
0xFFFFFFif the entity is not in a team or the color is not set - Mappings:
Namespace Name Mixin selector named getTeamColorValueLnet/minecraft/entity/Entity;getTeamColorValue()Iintermediary method_22861Lnet/minecraft/class_1297;method_22861()Iofficial h_Lcgk;h_()I
-
isSpectator
public boolean isSpectator()Returns whether the entity is a spectator.This returns
falseunless the entity is a player in spectator game mode.- Returns:
- whether the entity is a spectator
- Mappings:
Namespace Name Mixin selector named isSpectatorLnet/minecraft/entity/Entity;isSpectator()Zintermediary method_7325Lnet/minecraft/class_1297;method_7325()Zofficial auLcgk;au()Z
-
isInteractable
public boolean isInteractable()- Mappings:
Namespace Name Mixin selector named isInteractableLnet/minecraft/entity/Entity;isInteractable()Zintermediary method_73187Lnet/minecraft/class_1297;method_73187()Zofficial avLcgk;av()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 detachLnet/minecraft/entity/Entity;detach()Vintermediary method_18375Lnet/minecraft/class_1297;method_18375()Vofficial awLcgk;aw()V
-
updateTrackedPosition
public void updateTrackedPosition(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named updateTrackedPositionLnet/minecraft/entity/Entity;updateTrackedPosition(DDD)Vintermediary method_43391Lnet/minecraft/class_1297;method_43391(DDD)Vofficial eLcgk;e(DDD)V
-
getTrackedPosition
- Mappings:
Namespace Name Mixin selector named getTrackedPositionLnet/minecraft/entity/Entity;getTrackedPosition()Lnet/minecraft/entity/TrackedPosition;intermediary method_43389Lnet/minecraft/class_1297;method_43389()Lnet/minecraft/class_7422;official axLcgk;ax()Lakg;
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/entity/Entity;getType()Lnet/minecraft/entity/EntityType;intermediary method_5864Lnet/minecraft/class_1297;method_5864()Lnet/minecraft/class_1299;official ayLcgk;ay()Lcgu;
-
shouldAlwaysSyncAbsolute
public boolean shouldAlwaysSyncAbsolute()- Mappings:
Namespace Name Mixin selector named shouldAlwaysSyncAbsoluteLnet/minecraft/entity/Entity;shouldAlwaysSyncAbsolute()Zintermediary method_70667Lnet/minecraft/class_1297;method_70667()Zofficial azLcgk;az()Z
-
setAlwaysSyncAbsolute
public void setAlwaysSyncAbsolute(boolean alwaysSyncAbsolute) - Mappings:
Namespace Name Mixin selector named setAlwaysSyncAbsoluteLnet/minecraft/entity/Entity;setAlwaysSyncAbsolute(Z)Vintermediary method_70669Lnet/minecraft/class_1297;method_70669(Z)Vofficial cLcgk;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:
getIdin interfaceEntityLike- Returns:
- the network ID of this entity
- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/world/entity/EntityLike;getId()Iintermediary method_5628Lnet/minecraft/class_5568;method_5628()Iofficial aALesp;aA()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 setIdLnet/minecraft/entity/Entity;setId(I)Vintermediary method_5838Lnet/minecraft/class_1297;method_5838(I)Vofficial eLcgk;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 getCommandTagsLnet/minecraft/entity/Entity;getCommandTags()Ljava/util/Set;intermediary method_5752Lnet/minecraft/class_1297;method_5752()Ljava/util/Set;official aBLcgk;aB()Ljava/util/Set;
-
addCommandTag
Adds a command tag to this entity. An entity can have up to1024command 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 addCommandTagLnet/minecraft/entity/Entity;addCommandTag(Ljava/lang/String;)Zintermediary method_5780Lnet/minecraft/class_1297;method_5780(Ljava/lang/String;)Zofficial aLcgk;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 removeCommandTagLnet/minecraft/entity/Entity;removeCommandTag(Ljava/lang/String;)Zintermediary method_5738Lnet/minecraft/class_1297;method_5738(Ljava/lang/String;)Zofficial bLcgk;b(Ljava/lang/String;)Z
-
kill
Kills the entity.This drops loot when applicable, and emits the
GameEvent.ENTITY_DIEgame event.- Mappings:
Namespace Name Mixin selector named killLnet/minecraft/entity/Entity;kill(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_5768Lnet/minecraft/class_1297;method_5768(Lnet/minecraft/class_3218;)Vofficial cLcgk;c(Laxf;)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 discardLnet/minecraft/entity/Entity;discard()Vintermediary method_31472Lnet/minecraft/class_1297;method_31472()Vofficial aCLcgk;aC()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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcgk;a(Lama$a;)V
-
getDataTracker
- Mappings:
Namespace Name Mixin selector named getDataTrackerLnet/minecraft/entity/Entity;getDataTracker()Lnet/minecraft/entity/data/DataTracker;intermediary method_5841Lnet/minecraft/class_1297;method_5841()Lnet/minecraft/class_2945;official aDLcgk;aD()Lama;
-
equals
-
hashCode
public int hashCode() -
remove
Removes the entity.- See Also:
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_5650Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)Vofficial aLcgk;a(Lcgk$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 onRemovedLnet/minecraft/entity/Entity;onRemoved()Vintermediary method_36209Lnet/minecraft/class_1297;method_36209()Vofficial aELcgk;aE()V
-
onRemove
Called when the entity is about to be removed.- Mappings:
Namespace Name Mixin selector named onRemoveLnet/minecraft/entity/Entity;onRemove(Lnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_64615Lnet/minecraft/class_1297;method_64615(Lnet/minecraft/class_1297$class_5529;)Vofficial bLcgk;b(Lcgk$e;)V
-
setPose
- Mappings:
Namespace Name Mixin selector named setPoseLnet/minecraft/entity/Entity;setPose(Lnet/minecraft/entity/EntityPose;)Vintermediary method_18380Lnet/minecraft/class_1297;method_18380(Lnet/minecraft/class_4050;)Vofficial cLcgk;c(Lchx;)V
-
getPose
- Mappings:
Namespace Name Mixin selector named getPoseLnet/minecraft/entity/Entity;getPose()Lnet/minecraft/entity/EntityPose;intermediary method_18376Lnet/minecraft/class_1297;method_18376()Lnet/minecraft/class_4050;official aFLcgk;aF()Lchx;
-
isInPose
- Mappings:
Namespace Name Mixin selector named isInPoseLnet/minecraft/entity/Entity;isInPose(Lnet/minecraft/entity/EntityPose;)Zintermediary method_41328Lnet/minecraft/class_1297;method_41328(Lnet/minecraft/class_4050;)Zofficial dLcgk;d(Lchx;)Z
-
isInRange
Returns whether the distance between this entity andentityis belowradius.- Returns:
- whether the distance between this entity and
entityis belowradius - Mappings:
Namespace Name Mixin selector named isInRangeLnet/minecraft/entity/Entity;isInRange(Lnet/minecraft/entity/Entity;D)Zintermediary method_24516Lnet/minecraft/class_1297;method_24516(Lnet/minecraft/class_1297;D)Zofficial aLcgk;a(Lcgk;D)Z
-
isInRange
Returns whether both the horizontal and vertical distances between this entity andentityare below the passed values.- Returns:
- whether both the horizontal and vertical distances between this entity and
entityare below the passed values - Mappings:
Namespace Name Mixin selector named isInRangeLnet/minecraft/entity/Entity;isInRange(Lnet/minecraft/entity/Entity;DD)Zintermediary method_43259Lnet/minecraft/class_1297;method_43259(Lnet/minecraft/class_1297;DD)Zofficial aLcgk;a(Lcgk;DD)Z
-
setRotation
protected void setRotation(float yaw, float pitch) Sets the entity's yaw and pitch.- Mappings:
Namespace Name Mixin selector named setRotationLnet/minecraft/entity/Entity;setRotation(FF)Vintermediary method_5710Lnet/minecraft/class_1297;method_5710(FF)Vofficial aLcgk;a(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 setPositionLnet/minecraft/entity/Entity;setPosition(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_33574Lnet/minecraft/class_1297;method_33574(Lnet/minecraft/class_243;)Vofficial bLcgk;b(Lftm;)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 setPositionLnet/minecraft/entity/Entity;setPosition(DDD)Vintermediary method_5814Lnet/minecraft/class_1297;method_5814(DDD)Vofficial a_Lcgk;a_(DDD)V
-
calculateBoundingBox
- Mappings:
Namespace Name Mixin selector named calculateBoundingBoxLnet/minecraft/entity/Entity;calculateBoundingBox()Lnet/minecraft/util/math/Box;intermediary method_33332Lnet/minecraft/class_1297;method_33332()Lnet/minecraft/class_238;official aGLcgk;aG()Lfth;
-
calculateDefaultBoundingBox
- Mappings:
Namespace Name Mixin selector named calculateDefaultBoundingBoxLnet/minecraft/entity/Entity;calculateDefaultBoundingBox(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;intermediary method_65341Lnet/minecraft/class_1297;method_65341(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;official cLcgk;c(Lftm;)Lfth;
-
refreshPosition
protected void refreshPosition()- Mappings:
Namespace Name Mixin selector named refreshPositionLnet/minecraft/entity/Entity;refreshPosition()Vintermediary method_23311Lnet/minecraft/class_1297;method_23311()Vofficial aHLcgk;aH()V
-
changeLookDirection
public void changeLookDirection(double cursorDeltaX, double cursorDeltaY) - Mappings:
Namespace Name Mixin selector named changeLookDirectionLnet/minecraft/entity/Entity;changeLookDirection(DD)Vintermediary method_5872Lnet/minecraft/class_1297;method_5872(DD)Vofficial bLcgk;b(DD)V
-
beforePacketsSent
public void beforePacketsSent()- Mappings:
Namespace Name Mixin selector named beforePacketsSentLnet/minecraft/entity/Entity;beforePacketsSent()Vintermediary method_75725Lnet/minecraft/class_1297;method_75725()Vofficial aILcgk;aI()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 tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcgk;g()V
-
baseTick
public void baseTick()- Mappings:
Namespace Name Mixin selector named baseTickLnet/minecraft/entity/Entity;baseTick()Vintermediary method_5670Lnet/minecraft/class_1297;method_5670()Vofficial aJLcgk;aJ()V
-
tickLastPos
protected void tickLastPos()- Mappings:
Namespace Name Mixin selector named tickLastPosLnet/minecraft/entity/Entity;tickLastPos()Vintermediary method_76440Lnet/minecraft/class_1297;method_76440()Vofficial aKLcgk;aK()V
-
setOnFire
public void setOnFire(boolean onFire) - Mappings:
Namespace Name Mixin selector named setOnFireLnet/minecraft/entity/Entity;setOnFire(Z)Vintermediary method_33572Lnet/minecraft/class_1297;method_33572(Z)Vofficial dLcgk;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 attemptTickInVoidLnet/minecraft/entity/Entity;attemptTickInVoid()Vintermediary method_31473Lnet/minecraft/class_1297;method_31473()Vofficial aLLcgk;aL()V
-
resetPortalCooldown
public void resetPortalCooldown()Resets the entity's portal cooldown to the default.- See Also:
- Mappings:
Namespace Name Mixin selector named resetPortalCooldownLnet/minecraft/entity/Entity;resetPortalCooldown()Vintermediary method_30229Lnet/minecraft/class_1297;method_30229()Vofficial aMLcgk;aM()V
-
setPortalCooldown
public void setPortalCooldown(int portalCooldown) - Mappings:
Namespace Name Mixin selector named setPortalCooldownLnet/minecraft/entity/Entity;setPortalCooldown(I)Vintermediary method_51850Lnet/minecraft/class_1297;method_51850(I)Vofficial fLcgk;f(I)V
-
getPortalCooldown
public int getPortalCooldown()- Mappings:
Namespace Name Mixin selector named getPortalCooldownLnet/minecraft/entity/Entity;getPortalCooldown()Iintermediary method_51848Lnet/minecraft/class_1297;method_51848()Iofficial aNLcgk;aN()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 hasPortalCooldownLnet/minecraft/entity/Entity;hasPortalCooldown()Zintermediary method_30230Lnet/minecraft/class_1297;method_30230()Zofficial aOLcgk;aO()Z
-
tickPortalCooldown
protected void tickPortalCooldown()- Mappings:
Namespace Name Mixin selector named tickPortalCooldownLnet/minecraft/entity/Entity;tickPortalCooldown()Vintermediary method_5760Lnet/minecraft/class_1297;method_5760()Vofficial OLcgk;O()V
-
igniteByLava
public void igniteByLava()- Mappings:
Namespace Name Mixin selector named igniteByLavaLnet/minecraft/entity/Entity;igniteByLava()Vintermediary method_67633Lnet/minecraft/class_1297;method_67633()Vofficial aPLcgk;aP()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 setOnFireFromLavaLnet/minecraft/entity/Entity;setOnFireFromLava()Vintermediary method_5730Lnet/minecraft/class_1297;method_5730()Vofficial aQLcgk;aQ()V
-
shouldPlayBurnSoundInLava
protected boolean shouldPlayBurnSoundInLava()- Mappings:
Namespace Name Mixin selector named shouldPlayBurnSoundInLavaLnet/minecraft/entity/Entity;shouldPlayBurnSoundInLava()Zintermediary method_64270Lnet/minecraft/class_1297;method_64270()Zofficial aRLcgk;aR()Z
-
setOnFireFor
public final void setOnFireFor(float seconds) Sets the entity on fire forsecondsseconds.- Mappings:
Namespace Name Mixin selector named setOnFireForLnet/minecraft/entity/Entity;setOnFireFor(F)Vintermediary method_5639Lnet/minecraft/class_1297;method_5639(F)Vofficial eLcgk;e(F)V
-
setOnFireForTicks
public void setOnFireForTicks(int ticks) - Mappings:
Namespace Name Mixin selector named setOnFireForTicksLnet/minecraft/entity/Entity;setOnFireForTicks(I)Vintermediary method_56073Lnet/minecraft/class_1297;method_56073(I)Vofficial gLcgk;g(I)V
-
setFireTicks
public void setFireTicks(int fireTicks) Sets the entity on fire forticksticks.- See Also:
- Mappings:
Namespace Name Mixin selector named setFireTicksLnet/minecraft/entity/Entity;setFireTicks(I)Vintermediary method_20803Lnet/minecraft/class_1297;method_20803(I)Vofficial hLcgk;h(I)V
-
getFireTicks
public int getFireTicks()- Mappings:
Namespace Name Mixin selector named getFireTicksLnet/minecraft/entity/Entity;getFireTicks()Iintermediary method_20802Lnet/minecraft/class_1297;method_20802()Iofficial aSLcgk;aS()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 extinguishLnet/minecraft/entity/Entity;extinguish()Vintermediary method_5646Lnet/minecraft/class_1297;method_5646()Vofficial aTLcgk;aT()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 tickInVoidLnet/minecraft/entity/Entity;tickInVoid()Vintermediary method_5825Lnet/minecraft/class_1297;method_5825()Vofficial aULcgk;aU()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 doesNotCollideLnet/minecraft/entity/Entity;doesNotCollide(DDD)Zintermediary method_5654Lnet/minecraft/class_1297;method_5654(DDD)Zofficial fLcgk;f(DDD)Z
-
doesNotCollide
- Mappings:
Namespace Name Mixin selector named doesNotCollideLnet/minecraft/entity/Entity;doesNotCollide(Lnet/minecraft/util/math/Box;)Zintermediary method_5629Lnet/minecraft/class_1297;method_5629(Lnet/minecraft/class_238;)Zofficial bLcgk;b(Lfth;)Z
-
setOnGround
public void setOnGround(boolean onGround) - Mappings:
Namespace Name Mixin selector named setOnGroundLnet/minecraft/entity/Entity;setOnGround(Z)Vintermediary method_24830Lnet/minecraft/class_1297;method_24830(Z)Vofficial eLcgk;e(Z)V
-
setMovement
- Mappings:
Namespace Name Mixin selector named setMovementLnet/minecraft/entity/Entity;setMovement(ZLnet/minecraft/util/math/Vec3d;)Vintermediary method_65342Lnet/minecraft/class_1297;method_65342(ZLnet/minecraft/class_243;)Vofficial aLcgk;a(ZLftm;)V
-
setMovement
- Mappings:
Namespace Name Mixin selector named setMovementLnet/minecraft/entity/Entity;setMovement(ZZLnet/minecraft/util/math/Vec3d;)Vintermediary method_60607Lnet/minecraft/class_1297;method_60607(ZZLnet/minecraft/class_243;)Vofficial aLcgk;a(ZZLftm;)V
-
isSupportedBy
- Mappings:
Namespace Name Mixin selector named isSupportedByLnet/minecraft/entity/Entity;isSupportedBy(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_51849Lnet/minecraft/class_1297;method_51849(Lnet/minecraft/class_2338;)Zofficial dLcgk;d(Lis;)Z
-
updateSupportingBlockPos
- Mappings:
Namespace Name Mixin selector named updateSupportingBlockPosLnet/minecraft/entity/Entity;updateSupportingBlockPos(ZLnet/minecraft/util/math/Vec3d;)Vintermediary method_51703Lnet/minecraft/class_1297;method_51703(ZLnet/minecraft/class_243;)Vofficial bLcgk;b(ZLftm;)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 isOnGroundLnet/minecraft/entity/Entity;isOnGround()Zintermediary method_24828Lnet/minecraft/class_1297;method_24828()Zofficial aVLcgk;aV()Z
-
move
- Mappings:
Namespace Name Mixin selector named moveLnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5784Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)Vofficial aLcgk;a(Lchp;Lftm;)V
-
applyMoveEffect
private void applyMoveEffect(Entity.MoveEffect moveEffect, Vec3d movement, BlockPos landingPos, BlockState landingState) - Mappings:
Namespace Name Mixin selector named applyMoveEffectLnet/minecraft/entity/Entity;applyMoveEffect(Lnet/minecraft/entity/Entity$MoveEffect;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_61407Lnet/minecraft/class_1297;method_61407(Lnet/minecraft/class_1297$class_5799;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLcgk;a(Lcgk$d;Lftm;Lis;Leoh;)V
-
tickBlockCollision
protected void tickBlockCollision()- Mappings:
Namespace Name Mixin selector named tickBlockCollisionLnet/minecraft/entity/Entity;tickBlockCollision()Vintermediary method_61409Lnet/minecraft/class_1297;method_61409()Vofficial aWLcgk;aW()V
-
addQueuedCollisionChecks
- Mappings:
Namespace Name Mixin selector named addQueuedCollisionChecksLnet/minecraft/entity/Entity;addQueuedCollisionChecks(Lnet/minecraft/entity/Entity$QueuedCollisionCheck;)Vintermediary method_71966Lnet/minecraft/class_1297;method_71966(Lnet/minecraft/class_1297$class_10365;)Vofficial aLcgk;a(Lcgk$c;)V
-
popQueuedCollisionCheck
public void popQueuedCollisionCheck()- Mappings:
Namespace Name Mixin selector named popQueuedCollisionCheckLnet/minecraft/entity/Entity;popQueuedCollisionCheck()Vintermediary method_68259Lnet/minecraft/class_1297;method_68259()Vofficial aXLcgk;aX()V
-
clearQueuedCollisionChecks
protected void clearQueuedCollisionChecks()- Mappings:
Namespace Name Mixin selector named clearQueuedCollisionChecksLnet/minecraft/entity/Entity;clearQueuedCollisionChecks()Vintermediary method_71965Lnet/minecraft/class_1297;method_71965()Vofficial aYLcgk;aY()V
-
method_76798
public boolean method_76798()- Mappings:
Namespace Name Mixin selector named method_76798Lnet/minecraft/entity/Entity;method_76798()Zintermediary method_76798Lnet/minecraft/class_1297;method_76798()Zofficial aZLcgk;aZ()Z
-
tickBlockCollision
- Mappings:
Namespace Name Mixin selector named tickBlockCollisionLnet/minecraft/entity/Entity;tickBlockCollision(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_64166Lnet/minecraft/class_1297;method_64166(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Vofficial aLcgk;a(Lftm;Lftm;)V
-
tickBlockCollisions
- Mappings:
Namespace Name Mixin selector named tickBlockCollisionsLnet/minecraft/entity/Entity;tickBlockCollisions(Ljava/util/List;)Vintermediary method_68260Lnet/minecraft/class_1297;method_68260(Ljava/util/List;)Vofficial bLcgk;b(Ljava/util/List;)V
-
shouldTickBlockCollision
protected boolean shouldTickBlockCollision()- Mappings:
Namespace Name Mixin selector named shouldTickBlockCollisionLnet/minecraft/entity/Entity;shouldTickBlockCollision()Zintermediary method_61410Lnet/minecraft/class_1297;method_61410()Zofficial baLcgk;ba()Z
-
canClimb
- Mappings:
Namespace Name Mixin selector named canClimbLnet/minecraft/entity/Entity;canClimb(Lnet/minecraft/block/BlockState;)Zintermediary method_51702Lnet/minecraft/class_1297;method_51702(Lnet/minecraft/class_2680;)Zofficial cLcgk;c(Leoh;)Z
-
stepOnBlock
private boolean stepOnBlock(BlockPos pos, BlockState state, boolean playSound, boolean emitEvent, Vec3d movement) - Mappings:
Namespace Name Mixin selector named stepOnBlockLnet/minecraft/entity/Entity;stepOnBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;ZZLnet/minecraft/util/math/Vec3d;)Zintermediary method_51701Lnet/minecraft/class_1297;method_51701(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;ZZLnet/minecraft/class_243;)Zofficial aLcgk;a(Lis;Leoh;ZZLftm;)Z
-
hasCollidedSoftly
- Mappings:
Namespace Name Mixin selector named hasCollidedSoftlyLnet/minecraft/entity/Entity;hasCollidedSoftly(Lnet/minecraft/util/math/Vec3d;)Zintermediary method_39759Lnet/minecraft/class_1297;method_39759(Lnet/minecraft/class_243;)Zofficial dLcgk;d(Lftm;)Z
-
playExtinguishSound
protected void playExtinguishSound()Plays theSoundEvents.ENTITY_GENERIC_EXTINGUISH_FIREsound.- Mappings:
Namespace Name Mixin selector named playExtinguishSoundLnet/minecraft/entity/Entity;playExtinguishSound()Vintermediary method_36975Lnet/minecraft/class_1297;method_36975()Vofficial bbLcgk;bb()V
-
extinguishWithSound
public void extinguishWithSound()- Mappings:
Namespace Name Mixin selector named extinguishWithSoundLnet/minecraft/entity/Entity;extinguishWithSound()Vintermediary method_46395Lnet/minecraft/class_1297;method_46395()Vofficial bcLcgk;bc()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 addAirTravelEffectsLnet/minecraft/entity/Entity;addAirTravelEffects()Vintermediary method_33573Lnet/minecraft/class_1297;method_33573()Vofficial bdLcgk;bd()V
-
getLandingPos
Deprecated.Returns the landing position.- Returns:
- the landing position
- See Also:
- Implementation Note:
- Landing position is the entity's position, with
0.2subtracted 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 getLandingPosLnet/minecraft/entity/Entity;getLandingPos()Lnet/minecraft/util/math/BlockPos;intermediary method_43260Lnet/minecraft/class_1297;method_43260()Lnet/minecraft/class_2338;official beLcgk;be()Lis;
-
getVelocityAffectingPos
- Mappings:
Namespace Name Mixin selector named getVelocityAffectingPosLnet/minecraft/entity/Entity;getVelocityAffectingPos()Lnet/minecraft/util/math/BlockPos;intermediary method_23314Lnet/minecraft/class_1297;method_23314()Lnet/minecraft/class_2338;official bfLcgk;bf()Lis;
-
getSteppingPos
Returns the stepping position.- Returns:
- the stepping position
- See Also:
- Implementation Note:
- Stepping position is the entity's position, with
1e-05subtracted 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 getSteppingPosLnet/minecraft/entity/Entity;getSteppingPos()Lnet/minecraft/util/math/BlockPos;intermediary method_23312Lnet/minecraft/class_1297;method_23312()Lnet/minecraft/class_2338;official bgLcgk;bg()Lis;
-
getPosWithYOffset
- Mappings:
Namespace Name Mixin selector named getPosWithYOffsetLnet/minecraft/entity/Entity;getPosWithYOffset(F)Lnet/minecraft/util/math/BlockPos;intermediary method_43258Lnet/minecraft/class_1297;method_43258(F)Lnet/minecraft/class_2338;official fLcgk;f(F)Lis;
-
getJumpVelocityMultiplier
protected float getJumpVelocityMultiplier()- Mappings:
Namespace Name Mixin selector named getJumpVelocityMultiplierLnet/minecraft/entity/Entity;getJumpVelocityMultiplier()Fintermediary method_23313Lnet/minecraft/class_1297;method_23313()Fofficial bhLcgk;bh()F
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Mappings:
Namespace Name Mixin selector named getVelocityMultiplierLnet/minecraft/entity/Entity;getVelocityMultiplier()Fintermediary method_23326Lnet/minecraft/class_1297;method_23326()Fofficial biLcgk;bi()F
-
adjustMovementForSneaking
- Mappings:
Namespace Name Mixin selector named adjustMovementForSneakingLnet/minecraft/entity/Entity;adjustMovementForSneaking(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/MovementType;)Lnet/minecraft/util/math/Vec3d;intermediary method_18796Lnet/minecraft/class_1297;method_18796(Lnet/minecraft/class_243;Lnet/minecraft/class_1313;)Lnet/minecraft/class_243;official aLcgk;a(Lftm;Lchp;)Lftm;
-
adjustMovementForPiston
- Mappings:
Namespace Name Mixin selector named adjustMovementForPistonLnet/minecraft/entity/Entity;adjustMovementForPiston(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;intermediary method_18794Lnet/minecraft/class_1297;method_18794(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;official eLcgk;e(Lftm;)Lftm;
-
calculatePistonMovementFactor
- Mappings:
Namespace Name Mixin selector named calculatePistonMovementFactorLnet/minecraft/entity/Entity;calculatePistonMovementFactor(Lnet/minecraft/util/math/Direction$Axis;D)Dintermediary method_18797Lnet/minecraft/class_1297;method_18797(Lnet/minecraft/class_2350$class_2351;D)Dofficial aLcgk;a(Liz$a;D)D
-
calcDistanceFromBottomCollision
public double calcDistanceFromBottomCollision(double checkedDistance) - Mappings:
Namespace Name Mixin selector named calcDistanceFromBottomCollisionLnet/minecraft/entity/Entity;calcDistanceFromBottomCollision(D)Dintermediary method_74657Lnet/minecraft/class_1297;method_74657(D)Dofficial bLcgk;b(D)D
-
adjustMovementForCollisions
- Mappings:
Namespace Name Mixin selector named adjustMovementForCollisionsLnet/minecraft/entity/Entity;adjustMovementForCollisions(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;intermediary method_17835Lnet/minecraft/class_1297;method_17835(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;official aLcgk;a(Lftm;)Lftm;
-
collectStepHeights
private static float[] collectStepHeights(Box collisionBox, List<VoxelShape> collisions, float float2, float stepHeight) - Mappings:
Namespace Name Mixin selector named collectStepHeightsLnet/minecraft/entity/Entity;collectStepHeights(Lnet/minecraft/util/math/Box;Ljava/util/List;FF)[Fintermediary method_59921Lnet/minecraft/class_1297;method_59921(Lnet/minecraft/class_238;Ljava/util/List;FF)[Fofficial aLcgk;a(Lfth;Ljava/util/List;FF)[F
-
adjustMovementForCollisions
public static Vec3d adjustMovementForCollisions(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) - Mappings:
Namespace Name Mixin selector named adjustMovementForCollisionsLnet/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_20736Lnet/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 aLcgk;a(Lcgk;Lftm;Lfth;Ldwo;Ljava/util/List;)Lftm;
-
findCollisions
- Mappings:
Namespace Name Mixin selector named findCollisionsLnet/minecraft/entity/Entity;findCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/Box;)Ljava/util/List;intermediary method_74656Lnet/minecraft/class_1297;method_74656(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_238;)Ljava/util/List;official aLcgk;a(Lcgk;Ldwo;Lfth;)Ljava/util/List;
-
findCollisionsForMovement
private static List<VoxelShape> findCollisionsForMovement(@Nullable Entity entity, World world, List<VoxelShape> regularCollisions, Box movingEntityBoundingBox) - Mappings:
Namespace Name Mixin selector named findCollisionsForMovementLnet/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_59920Lnet/minecraft/class_1297;method_59920(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_238;)Ljava/util/List;official aLcgk;a(Lcgk;Ldwo;Ljava/util/List;Lfth;)Ljava/util/List;
-
adjustMovementForCollisions
private static Vec3d adjustMovementForCollisions(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) - Mappings:
Namespace Name Mixin selector named adjustMovementForCollisionsLnet/minecraft/entity/Entity;adjustMovementForCollisions(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Ljava/util/List;)Lnet/minecraft/util/math/Vec3d;intermediary method_20737Lnet/minecraft/class_1297;method_20737(Lnet/minecraft/class_243;Lnet/minecraft/class_238;Ljava/util/List;)Lnet/minecraft/class_243;official aLcgk;a(Lftm;Lfth;Ljava/util/List;)Lftm;
-
calculateNextStepSoundDistance
protected float calculateNextStepSoundDistance()- Mappings:
Namespace Name Mixin selector named calculateNextStepSoundDistanceLnet/minecraft/entity/Entity;calculateNextStepSoundDistance()Fintermediary method_5867Lnet/minecraft/class_1297;method_5867()Fofficial bjLcgk;bj()F
-
getSwimSound
- Mappings:
Namespace Name Mixin selector named getSwimSoundLnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5737Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;official bkLcgk;bk()Lbcz;
-
getSplashSound
- Mappings:
Namespace Name Mixin selector named getSplashSoundLnet/minecraft/entity/Entity;getSplashSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5625Lnet/minecraft/class_1297;method_5625()Lnet/minecraft/class_3414;official blLcgk;bl()Lbcz;
-
getHighSpeedSplashSound
- Mappings:
Namespace Name Mixin selector named getHighSpeedSplashSoundLnet/minecraft/entity/Entity;getHighSpeedSplashSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5672Lnet/minecraft/class_1297;method_5672()Lnet/minecraft/class_3414;official bmLcgk;bm()Lbcz;
-
checkBlockCollisions
private void checkBlockCollisions(List<Entity.QueuedCollisionCheck> queuedCollisionChecks, EntityCollisionHandler.Impl collisionHandler) - Mappings:
Namespace Name Mixin selector named checkBlockCollisionsLnet/minecraft/entity/Entity;checkBlockCollisions(Ljava/util/List;Lnet/minecraft/entity/EntityCollisionHandler$Impl;)Vintermediary method_65037Lnet/minecraft/class_1297;method_65037(Ljava/util/List;Lnet/minecraft/class_10774$class_10775;)Vofficial aLcgk;a(Ljava/util/List;Lchc$a;)V
-
checkBlockCollision
private int checkBlockCollision(Vec3d from, Vec3d to, EntityCollisionHandler.Impl collisionHandler, LongSet collidedBlockPositions, int int2) - Mappings:
Namespace Name Mixin selector named checkBlockCollisionLnet/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;I)Iintermediary method_72084Lnet/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;I)Iofficial aLcgk;a(Lftm;Lftm;Lchc$a;Lit/unimi/dsi/fastutil/longs/LongSet;I)I
-
afterCollisionCheck
private void afterCollisionCheck(ServerWorld world, BlockPos pos, boolean blockCollision, boolean fluidCollision) - Mappings:
Namespace Name Mixin selector named afterCollisionCheckLnet/minecraft/entity/Entity;afterCollisionCheck(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;ZZ)Vintermediary method_72085Lnet/minecraft/class_1297;method_72085(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;ZZ)Vofficial aLcgk;a(Laxf;Lis;ZZ)V
-
collidesWithFluid
- Mappings:
Namespace Name Mixin selector named collidesWithFluidLnet/minecraft/entity/Entity;collidesWithFluid(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Zintermediary method_66648Lnet/minecraft/class_1297;method_66648(Lnet/minecraft/class_3610;Lnet/minecraft/class_2338;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Zofficial aLcgk;a(Lflb;Lis;Lftm;Lftm;)Z
-
collides
- Mappings:
Namespace Name Mixin selector named collidesLnet/minecraft/entity/Entity;collides(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Ljava/util/List;)Zintermediary method_63612Lnet/minecraft/class_1297;method_63612(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Ljava/util/List;)Zofficial aLcgk;a(Lftm;Lftm;Ljava/util/List;)Z
-
onBlockCollision
Called when this entity's collision box intersectsstate.- See Also:
- Mappings:
Namespace Name Mixin selector named onBlockCollisionLnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)Vintermediary method_5622Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)Vofficial aLcgk;a(Leoh;)V
-
getWorldSpawnPos
- Mappings:
Namespace Name Mixin selector named getWorldSpawnPosLnet/minecraft/entity/Entity;getWorldSpawnPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_14245Lnet/minecraft/class_1297;method_14245(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;official aLcgk;a(Laxf;Lis;)Lis;
-
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, ornullif there is none- See Also:
- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/entity/Entity;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;)Vintermediary method_32875Lnet/minecraft/class_1297;method_32875(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;)Vofficial aLcgk;a(Ljd;Lcgk;)V
-
emitGameEvent
Emits a game event originating from this entity at this entity's position.- See Also:
- Mappings:
Namespace Name Mixin selector named emitGameEventLnet/minecraft/entity/Entity;emitGameEvent(Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary method_32876Lnet/minecraft/class_1297;method_32876(Lnet/minecraft/class_6880;)Vofficial cLcgk;c(Ljd;)V
-
playStepSounds
- Mappings:
Namespace Name Mixin selector named playStepSoundsLnet/minecraft/entity/Entity;playStepSounds(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_51297Lnet/minecraft/class_1297;method_51297(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial cLcgk;c(Lis;Leoh;)V
-
playSwimSound
protected void playSwimSound()- Mappings:
Namespace Name Mixin selector named playSwimSoundLnet/minecraft/entity/Entity;playSwimSound()Vintermediary method_51295Lnet/minecraft/class_1297;method_51295()Vofficial bnLcgk;bn()V
-
getStepSoundPos
- Mappings:
Namespace Name Mixin selector named getStepSoundPosLnet/minecraft/entity/Entity;getStepSoundPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_49788Lnet/minecraft/class_1297;method_49788(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;official eLcgk;e(Lis;)Lis;
-
playCombinationStepSounds
- Mappings:
Namespace Name Mixin selector named playCombinationStepSoundsLnet/minecraft/entity/Entity;playCombinationStepSounds(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Vintermediary method_49787Lnet/minecraft/class_1297;method_49787(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Vofficial aLcgk;a(Leoh;Leoh;)V
-
playSecondaryStepSound
- Mappings:
Namespace Name Mixin selector named playSecondaryStepSoundLnet/minecraft/entity/Entity;playSecondaryStepSound(Lnet/minecraft/block/BlockState;)Vintermediary method_51296Lnet/minecraft/class_1297;method_51296(Lnet/minecraft/class_2680;)Vofficial bLcgk;b(Leoh;)V
-
playStepSound
- Mappings:
Namespace Name Mixin selector named playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_5712Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial bLcgk;b(Lis;Leoh;)V
-
shouldPlayAmethystChimeSound
- Mappings:
Namespace Name Mixin selector named shouldPlayAmethystChimeSoundLnet/minecraft/entity/Entity;shouldPlayAmethystChimeSound(Lnet/minecraft/block/BlockState;)Zintermediary method_49790Lnet/minecraft/class_1297;method_49790(Lnet/minecraft/class_2680;)Zofficial dLcgk;d(Leoh;)Z
-
playAmethystChimeSound
private void playAmethystChimeSound()- Mappings:
Namespace Name Mixin selector named playAmethystChimeSoundLnet/minecraft/entity/Entity;playAmethystChimeSound()Vintermediary method_37215Lnet/minecraft/class_1297;method_37215()Vofficial qLcgk;q()V
-
playSwimSound
protected void playSwimSound(float volume) - Mappings:
Namespace Name Mixin selector named playSwimSoundLnet/minecraft/entity/Entity;playSwimSound(F)Vintermediary method_5734Lnet/minecraft/class_1297;method_5734(F)Vofficial gLcgk;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 addFlapEffectsLnet/minecraft/entity/Entity;addFlapEffects()Vintermediary method_5801Lnet/minecraft/class_1297;method_5801()Vofficial boLcgk;bo()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 isFlappingWingsLnet/minecraft/entity/Entity;isFlappingWings()Zintermediary method_5776Lnet/minecraft/class_1297;method_5776()Zofficial bpLcgk;bp()Z
-
playSound
- Mappings:
Namespace Name Mixin selector named playSoundLnet/minecraft/entity/Entity;playSound(Lnet/minecraft/sound/SoundEvent;FF)Vintermediary method_5783Lnet/minecraft/class_1297;method_5783(Lnet/minecraft/class_3414;FF)Vofficial aLcgk;a(Lbcz;FF)V
-
playSoundIfNotSilent
- Mappings:
Namespace Name Mixin selector named playSoundIfNotSilentLnet/minecraft/entity/Entity;playSoundIfNotSilent(Lnet/minecraft/sound/SoundEvent;)Vintermediary method_43077Lnet/minecraft/class_1297;method_43077(Lnet/minecraft/class_3414;)Vofficial aLcgk;a(Lbcz;)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
SilentNBT key.- Returns:
- whether the entity is silent
- Mappings:
Namespace Name Mixin selector named isSilentLnet/minecraft/entity/Entity;isSilent()Zintermediary method_5701Lnet/minecraft/class_1297;method_5701()Zofficial bqLcgk;bq()Z
-
setSilent
public void setSilent(boolean silent) Sets whether the entity is silent.This is saved under the
SilentNBT key.- Mappings:
Namespace Name Mixin selector named setSilentLnet/minecraft/entity/Entity;setSilent(Z)Vintermediary method_5803Lnet/minecraft/class_1297;method_5803(Z)Vofficial fLcgk;f(Z)V
-
hasNoGravity
public boolean hasNoGravity()Returns whether the entity has no gravity.Entities using
FlightMoveControlhas no gravity. This is saved under theNoGravityNBT key.- Returns:
- whether the entity has no gravity
- Mappings:
Namespace Name Mixin selector named hasNoGravityLnet/minecraft/entity/Entity;hasNoGravity()Zintermediary method_5740Lnet/minecraft/class_1297;method_5740()Zofficial brLcgk;br()Z
-
setNoGravity
public void setNoGravity(boolean noGravity) Sets whether the entity has no gravity.Entities using
FlightMoveControlhas no gravity. This is saved under theNoGravityNBT key.- Mappings:
Namespace Name Mixin selector named setNoGravityLnet/minecraft/entity/Entity;setNoGravity(Z)Vintermediary method_5875Lnet/minecraft/class_1297;method_5875(Z)Vofficial gLcgk;g(Z)V
-
getGravity
protected double getGravity()- Mappings:
Namespace Name Mixin selector named getGravityLnet/minecraft/entity/Entity;getGravity()Dintermediary method_7490Lnet/minecraft/class_1297;method_7490()Dofficial bsLcgk;bs()D
-
getFinalGravity
public final double getFinalGravity()- Mappings:
Namespace Name Mixin selector named getFinalGravityLnet/minecraft/entity/Entity;getFinalGravity()Dintermediary method_56989Lnet/minecraft/class_1297;method_56989()Dofficial btLcgk;bt()D
-
applyGravity
protected void applyGravity()- Mappings:
Namespace Name Mixin selector named applyGravityLnet/minecraft/entity/Entity;applyGravity()Vintermediary method_56990Lnet/minecraft/class_1297;method_56990()Vofficial buLcgk;bu()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 getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official bvLcgk;bv()Lcgk$d;
-
occludeVibrationSignals
public boolean occludeVibrationSignals()Returns whether the entity should not emit vibrations.By default, wool or carpet item entities, and
WardenEntitydo not emit vibrations.- Returns:
- whether the entity should not emit vibrations
- Mappings:
Namespace Name Mixin selector named occludeVibrationSignalsLnet/minecraft/entity/Entity;occludeVibrationSignals()Zintermediary method_33189Lnet/minecraft/class_1297;method_33189()Zofficial bwLcgk;bw()Z
-
handleFall
public final void handleFall(double xDifference, double yDifference, double zDifference, boolean onGround) - Mappings:
Namespace Name Mixin selector named handleFallLnet/minecraft/entity/Entity;handleFall(DDDZ)Vintermediary method_65942Lnet/minecraft/class_1297;method_65942(DDDZ)Vofficial aLcgk;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, ifheightDifferenceis negative, it subtracts that value fromfallDistance. - Mappings:
Namespace Name Mixin selector named fallLnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_5623Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Vofficial aLcgk;a(DZLeoh;Lis;)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 isFireImmuneLnet/minecraft/entity/Entity;isFireImmune()Zintermediary method_5753Lnet/minecraft/class_1297;method_5753()Zofficial bxLcgk;bx()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;
falsefor all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamageLnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5747Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Zofficial aLcgk;a(DFLcex;)Z
-
handleFallDamageForPassengers
protected void handleFallDamageForPassengers(double fallDistance, float damagePerDistance, DamageSource damageSource) - Mappings:
Namespace Name Mixin selector named handleFallDamageForPassengersLnet/minecraft/entity/Entity;handleFallDamageForPassengers(DFLnet/minecraft/entity/damage/DamageSource;)Vintermediary method_67345Lnet/minecraft/class_1297;method_67345(DFLnet/minecraft/class_1282;)Vofficial bLcgk;b(DFLcex;)V
-
isTouchingWater
public boolean isTouchingWater()Returns whether this entity's hitbox is touching water fluid.- Mappings:
Namespace Name Mixin selector named isTouchingWaterLnet/minecraft/entity/Entity;isTouchingWater()Zintermediary method_5799Lnet/minecraft/class_1297;method_5799()Zofficial byLcgk;by()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 isBeingRainedOnLnet/minecraft/entity/Entity;isBeingRainedOn()Zintermediary method_5778Lnet/minecraft/class_1297;method_5778()Zofficial bzLcgk;bz()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 isTouchingWaterOrRainLnet/minecraft/entity/Entity;isTouchingWaterOrRain()Zintermediary method_5721Lnet/minecraft/class_1297;method_5721()Zofficial bALcgk;bA()Z
-
isInFluid
public boolean isInFluid()- Mappings:
Namespace Name Mixin selector named isInFluidLnet/minecraft/entity/Entity;isInFluid()Zintermediary method_52535Lnet/minecraft/class_1297;method_52535()Zofficial bBLcgk;bB()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 isSubmergedInWaterLnet/minecraft/entity/Entity;isSubmergedInWater()Zintermediary method_5869Lnet/minecraft/class_1297;method_5869()Zofficial bCLcgk;bC()Z
-
isPartlyTouchingWater
public boolean isPartlyTouchingWater()Returns whether this entity's hitbox is touching, but not fully submerged in, water.- Returns:
- whether this entity's hitbox is touching, but not fully submerged in, water
- Mappings:
Namespace Name Mixin selector named isPartlyTouchingWaterLnet/minecraft/entity/Entity;isPartlyTouchingWater()Zintermediary method_74016Lnet/minecraft/class_1297;method_74016()Zofficial bDLcgk;bD()Z
-
isAtCloudHeight
public boolean isAtCloudHeight()- Mappings:
Namespace Name Mixin selector named isAtCloudHeightLnet/minecraft/entity/Entity;isAtCloudHeight()Zintermediary method_70668Lnet/minecraft/class_1297;method_70668()Zofficial bELcgk;bE()Z
-
updateSwimming
public void updateSwimming()- Mappings:
Namespace Name Mixin selector named updateSwimmingLnet/minecraft/entity/Entity;updateSwimming()Vintermediary method_5790Lnet/minecraft/class_1297;method_5790()Vofficial bFLcgk;bF()V
-
updateWaterState
protected boolean updateWaterState()- Mappings:
Namespace Name Mixin selector named updateWaterStateLnet/minecraft/entity/Entity;updateWaterState()Zintermediary method_5876Lnet/minecraft/class_1297;method_5876()Zofficial bGLcgk;bG()Z
-
checkWaterState
void checkWaterState()- Mappings:
Namespace Name Mixin selector named checkWaterStateLnet/minecraft/entity/Entity;checkWaterState()Vintermediary method_5713Lnet/minecraft/class_1297;method_5713()Vofficial bHLcgk;bH()V
-
updateSubmergedInWaterState
private void updateSubmergedInWaterState()- Mappings:
Namespace Name Mixin selector named updateSubmergedInWaterStateLnet/minecraft/entity/Entity;updateSubmergedInWaterState()Vintermediary method_5630Lnet/minecraft/class_1297;method_5630()Vofficial uLcgk;u()V
-
onSwimmingStart
protected void onSwimmingStart()- Mappings:
Namespace Name Mixin selector named onSwimmingStartLnet/minecraft/entity/Entity;onSwimmingStart()Vintermediary method_5746Lnet/minecraft/class_1297;method_5746()Vofficial bILcgk;bI()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.2subtracted 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 getLandingBlockStateLnet/minecraft/entity/Entity;getLandingBlockState()Lnet/minecraft/block/BlockState;intermediary method_43261Lnet/minecraft/class_1297;method_43261()Lnet/minecraft/class_2680;official bJLcgk;bJ()Leoh;
-
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-05subtracted 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 getSteppingBlockStateLnet/minecraft/entity/Entity;getSteppingBlockState()Lnet/minecraft/block/BlockState;intermediary method_25936Lnet/minecraft/class_1297;method_25936()Lnet/minecraft/class_2680;official bKLcgk;bK()Leoh;
-
shouldSpawnSprintingParticles
public boolean shouldSpawnSprintingParticles()- Mappings:
Namespace Name Mixin selector named shouldSpawnSprintingParticlesLnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Zintermediary method_27298Lnet/minecraft/class_1297;method_27298()Zofficial bLLcgk;bL()Z
-
spawnSprintingParticles
protected void spawnSprintingParticles()- Mappings:
Namespace Name Mixin selector named spawnSprintingParticlesLnet/minecraft/entity/Entity;spawnSprintingParticles()Vintermediary method_5839Lnet/minecraft/class_1297;method_5839()Vofficial bMLcgk;bM()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 isSubmergedInLnet/minecraft/entity/Entity;isSubmergedIn(Lnet/minecraft/registry/tag/TagKey;)Zintermediary method_5777Lnet/minecraft/class_1297;method_5777(Lnet/minecraft/class_6862;)Zofficial aLcgk;a(Lbef;)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 isInLavaLnet/minecraft/entity/Entity;isInLava()Zintermediary method_5771Lnet/minecraft/class_1297;method_5771()Zofficial bNLcgk;bN()Z
-
updateVelocity
Updates the entity's velocity to add a vector in the direction of the entity's yaw whose absolute value ismovementInputnormalized and multiplied byspeed.This is usually called inside overridden
LivingEntity.travel(net.minecraft.util.math.Vec3d)if the entity is touching water; seeFishEntityfor an example.- Mappings:
Namespace Name Mixin selector named updateVelocityLnet/minecraft/entity/Entity;updateVelocity(FLnet/minecraft/util/math/Vec3d;)Vintermediary method_5724Lnet/minecraft/class_1297;method_5724(FLnet/minecraft/class_243;)Vofficial aLcgk;a(FLftm;)V
-
movementInputToVelocity
Returns a vector with the horizontal direction beingyawdegrees and the absolute value beingmovementInputnormalized and multiplied byspeed.- Returns:
- a vector with the horizontal direction being
yawdegrees and the absolute value beingmovementInputnormalized and multiplied byspeed - Mappings:
Namespace Name Mixin selector named movementInputToVelocityLnet/minecraft/entity/Entity;movementInputToVelocity(Lnet/minecraft/util/math/Vec3d;FF)Lnet/minecraft/util/math/Vec3d;intermediary method_18795Lnet/minecraft/class_1297;method_18795(Lnet/minecraft/class_243;FF)Lnet/minecraft/class_243;official aLcgk;a(Lftm;FF)Lftm;
-
getBrightnessAtEyes
Deprecated.- Mappings:
Namespace Name Mixin selector named getBrightnessAtEyesLnet/minecraft/entity/Entity;getBrightnessAtEyes()Fintermediary method_5718Lnet/minecraft/class_1297;method_5718()Fofficial bOLcgk;bO()F
-
updatePositionAndAngles
public void updatePositionAndAngles(double x, double y, double z, float yaw, float pitch) - Mappings:
Namespace Name Mixin selector named updatePositionAndAnglesLnet/minecraft/entity/Entity;updatePositionAndAngles(DDDFF)Vintermediary method_5641Lnet/minecraft/class_1297;method_5641(DDDFF)Vofficial aLcgk;a(DDDFF)V
-
setAngles
public void setAngles(float yaw, float pitch) - Mappings:
Namespace Name Mixin selector named setAnglesLnet/minecraft/entity/Entity;setAngles(FF)Vintermediary method_60608Lnet/minecraft/class_1297;method_60608(FF)Vofficial bLcgk;b(FF)V
-
updatePosition
public void updatePosition(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named updatePositionLnet/minecraft/entity/Entity;updatePosition(DDD)Vintermediary method_30634Lnet/minecraft/class_1297;method_30634(DDD)Vofficial gLcgk;g(DDD)V
-
refreshPositionAfterTeleport
- Mappings:
Namespace Name Mixin selector named refreshPositionAfterTeleportLnet/minecraft/entity/Entity;refreshPositionAfterTeleport(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_29495Lnet/minecraft/class_1297;method_29495(Lnet/minecraft/class_243;)Vofficial fLcgk;f(Lftm;)V
-
refreshPositionAfterTeleport
public void refreshPositionAfterTeleport(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named refreshPositionAfterTeleportLnet/minecraft/entity/Entity;refreshPositionAfterTeleport(DDD)Vintermediary method_24203Lnet/minecraft/class_1297;method_24203(DDD)Vofficial dLcgk;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 refreshPositionAndAnglesLnet/minecraft/entity/Entity;refreshPositionAndAngles(Lnet/minecraft/util/math/BlockPos;FF)Vintermediary method_5725Lnet/minecraft/class_1297;method_5725(Lnet/minecraft/class_2338;FF)Vofficial aLcgk;a(Lis;FF)V
-
refreshPositionAndAngles
- Mappings:
Namespace Name Mixin selector named refreshPositionAndAnglesLnet/minecraft/entity/Entity;refreshPositionAndAngles(Lnet/minecraft/util/math/Vec3d;FF)Vintermediary method_60949Lnet/minecraft/class_1297;method_60949(Lnet/minecraft/class_243;FF)Vofficial bLcgk;b(Lftm;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 refreshPositionAndAnglesLnet/minecraft/entity/Entity;refreshPositionAndAngles(DDDFF)Vintermediary method_5808Lnet/minecraft/class_1297;method_5808(DDDFF)Vofficial bLcgk;b(DDDFF)V
-
resetPosition
public final void resetPosition()- Mappings:
Namespace Name Mixin selector named resetPositionLnet/minecraft/entity/Entity;resetPosition()Vintermediary method_22862Lnet/minecraft/class_1297;method_22862()Vofficial bPLcgk;bP()V
-
setLastPositionAndAngles
- Mappings:
Namespace Name Mixin selector named setLastPositionAndAnglesLnet/minecraft/entity/Entity;setLastPositionAndAngles(Lnet/minecraft/util/math/Vec3d;FF)Vintermediary method_63615Lnet/minecraft/class_1297;method_63615(Lnet/minecraft/class_243;FF)Vofficial cLcgk;c(Lftm;FF)V
-
updateLastPosition
protected void updateLastPosition()- Mappings:
Namespace Name Mixin selector named updateLastPositionLnet/minecraft/entity/Entity;updateLastPosition()Vintermediary method_63613Lnet/minecraft/class_1297;method_63613()Vofficial bQLcgk;bQ()V
-
updateLastAngles
public void updateLastAngles()- Mappings:
Namespace Name Mixin selector named updateLastAnglesLnet/minecraft/entity/Entity;updateLastAngles()Vintermediary method_63614Lnet/minecraft/class_1297;method_63614()Vofficial bRLcgk;bR()V
-
setLastPosition
- Mappings:
Namespace Name Mixin selector named setLastPositionLnet/minecraft/entity/Entity;setLastPosition(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_63618Lnet/minecraft/class_1297;method_63618(Lnet/minecraft/class_243;)Vofficial mLcgk;m(Lftm;)V
-
setLastAngles
private void setLastAngles(float lastYaw, float lastPitch) - Mappings:
Namespace Name Mixin selector named setLastAnglesLnet/minecraft/entity/Entity;setLastAngles(FF)Vintermediary method_63617Lnet/minecraft/class_1297;method_63617(FF)Vofficial fLcgk;f(FF)V
-
getLastRenderPos
- Mappings:
Namespace Name Mixin selector named getLastRenderPosLnet/minecraft/entity/Entity;getLastRenderPos()Lnet/minecraft/util/math/Vec3d;intermediary method_61411Lnet/minecraft/class_1297;method_61411()Lnet/minecraft/class_243;official bSLcgk;bS()Lftm;
-
distanceTo
Returns the distance between this entity andentity.- Returns:
- the distance between this entity and
entity - Mappings:
Namespace Name Mixin selector named distanceToLnet/minecraft/entity/Entity;distanceTo(Lnet/minecraft/entity/Entity;)Fintermediary method_5739Lnet/minecraft/class_1297;method_5739(Lnet/minecraft/class_1297;)Fofficial fLcgk;f(Lcgk;)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 squaredDistanceToLnet/minecraft/entity/Entity;squaredDistanceTo(DDD)Dintermediary method_5649Lnet/minecraft/class_1297;method_5649(DDD)Dofficial hLcgk;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 squaredDistanceToLnet/minecraft/entity/Entity;squaredDistanceTo(Lnet/minecraft/entity/Entity;)Dintermediary method_5858Lnet/minecraft/class_1297;method_5858(Lnet/minecraft/class_1297;)Dofficial gLcgk;g(Lcgk;)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 squaredDistanceToLnet/minecraft/entity/Entity;squaredDistanceTo(Lnet/minecraft/util/math/Vec3d;)Dintermediary method_5707Lnet/minecraft/class_1297;method_5707(Lnet/minecraft/class_243;)Dofficial gLcgk;g(Lftm;)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 onPlayerCollisionLnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_5694Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)Vofficial a_Lcgk;a_(Lddm;)V
-
pushAwayFrom
- Mappings:
Namespace Name Mixin selector named pushAwayFromLnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)Vintermediary method_5697Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)Vofficial hLcgk;h(Lcgk;)V
-
addVelocity
- Mappings:
Namespace Name Mixin selector named addVelocityLnet/minecraft/entity/Entity;addVelocity(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_60491Lnet/minecraft/class_1297;method_60491(Lnet/minecraft/class_243;)Vofficial hLcgk;h(Lftm;)V
-
addVelocity
public void addVelocity(double deltaX, double deltaY, double deltaZ) - Mappings:
Namespace Name Mixin selector named addVelocityLnet/minecraft/entity/Entity;addVelocity(DDD)Vintermediary method_5762Lnet/minecraft/class_1297;method_5762(DDD)Vofficial iLcgk;i(DDD)V
-
scheduleVelocityUpdate
protected void scheduleVelocityUpdate()- Mappings:
Namespace Name Mixin selector named scheduleVelocityUpdateLnet/minecraft/entity/Entity;scheduleVelocityUpdate()Vintermediary method_5785Lnet/minecraft/class_1297;method_5785()Vofficial bTLcgk;bT()V
-
serverDamage
Deprecated.- Mappings:
Namespace Name Mixin selector named serverDamageLnet/minecraft/entity/Entity;serverDamage(Lnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_64419Lnet/minecraft/class_1297;method_64419(Lnet/minecraft/class_1282;F)Vofficial aLcgk;a(Lcex;F)V
-
sidedDamage
Deprecated.- Mappings:
Namespace Name Mixin selector named sidedDamageLnet/minecraft/entity/Entity;sidedDamage(Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_64420Lnet/minecraft/class_1297;method_64420(Lnet/minecraft/class_1282;F)Zofficial bLcgk;b(Lcex;F)Z
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas 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
ItemEntityalso 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 damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_64397Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Zofficial aLcgk;a(Laxf;Lcex;F)Z
-
clientDamage
- Mappings:
Namespace Name Mixin selector named clientDamageLnet/minecraft/entity/Entity;clientDamage(Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;)Zofficial bLcgk;b(Lcex;)Z
-
getRotationVec
- Mappings:
Namespace Name Mixin selector named getRotationVecLnet/minecraft/entity/Entity;getRotationVec(F)Lnet/minecraft/util/math/Vec3d;intermediary method_5828Lnet/minecraft/class_1297;method_5828(F)Lnet/minecraft/class_243;official hLcgk;h(F)Lftm;
-
getFacing
- Mappings:
Namespace Name Mixin selector named getFacingLnet/minecraft/entity/Entity;getFacing()Lnet/minecraft/util/math/Direction;intermediary method_58149Lnet/minecraft/class_1297;method_58149()Lnet/minecraft/class_2350;official bULcgk;bU()Liz;
-
getPitch
public float getPitch(float tickProgress) - Mappings:
Namespace Name Mixin selector named getPitchLnet/minecraft/entity/Entity;getPitch(F)Fintermediary method_5695Lnet/minecraft/class_1297;method_5695(F)Fofficial iLcgk;i(F)F
-
getYaw
public float getYaw(float tickProgress) - Mappings:
Namespace Name Mixin selector named getYawLnet/minecraft/entity/Entity;getYaw(F)Fintermediary method_5705Lnet/minecraft/class_1297;method_5705(F)Fofficial jLcgk;j(F)F
-
getLerpedPitch
public float getLerpedPitch(float tickProgress) - Mappings:
Namespace Name Mixin selector named getLerpedPitchLnet/minecraft/entity/Entity;getLerpedPitch(F)Fintermediary method_61414Lnet/minecraft/class_1297;method_61414(F)Fofficial kLcgk;k(F)F
-
getLerpedYaw
public float getLerpedYaw(float tickProgress) - Mappings:
Namespace Name Mixin selector named getLerpedYawLnet/minecraft/entity/Entity;getLerpedYaw(F)Fintermediary method_61415Lnet/minecraft/class_1297;method_61415(F)Fofficial lLcgk;l(F)F
-
getRotationVector
- Mappings:
Namespace Name Mixin selector named getRotationVectorLnet/minecraft/entity/Entity;getRotationVector(FF)Lnet/minecraft/util/math/Vec3d;intermediary method_5631Lnet/minecraft/class_1297;method_5631(FF)Lnet/minecraft/class_243;official cLcgk;c(FF)Lftm;
-
getOppositeRotationVector
- Mappings:
Namespace Name Mixin selector named getOppositeRotationVectorLnet/minecraft/entity/Entity;getOppositeRotationVector(F)Lnet/minecraft/util/math/Vec3d;intermediary method_18864Lnet/minecraft/class_1297;method_18864(F)Lnet/minecraft/class_243;official mLcgk;m(F)Lftm;
-
getOppositeRotationVector
- Mappings:
Namespace Name Mixin selector named getOppositeRotationVectorLnet/minecraft/entity/Entity;getOppositeRotationVector(FF)Lnet/minecraft/util/math/Vec3d;intermediary method_18863Lnet/minecraft/class_1297;method_18863(FF)Lnet/minecraft/class_243;official dLcgk;d(FF)Lftm;
-
getEyePos
Returns the position of the eye.- Returns:
- the position of the eye
- See Also:
- Mappings:
Namespace Name Mixin selector named getEyePosLnet/minecraft/entity/Entity;getEyePos()Lnet/minecraft/util/math/Vec3d;intermediary method_33571Lnet/minecraft/class_1297;method_33571()Lnet/minecraft/class_243;official bVLcgk;bV()Lftm;
-
getCameraPosVec
- Mappings:
Namespace Name Mixin selector named getCameraPosVecLnet/minecraft/entity/Entity;getCameraPosVec(F)Lnet/minecraft/util/math/Vec3d;intermediary method_5836Lnet/minecraft/class_1297;method_5836(F)Lnet/minecraft/class_243;official nLcgk;n(F)Lftm;
-
getClientCameraPosVec
- Mappings:
Namespace Name Mixin selector named getClientCameraPosVecLnet/minecraft/entity/Entity;getClientCameraPosVec(F)Lnet/minecraft/util/math/Vec3d;intermediary method_31166Lnet/minecraft/class_1297;method_31166(F)Lnet/minecraft/class_243;official oLcgk;o(F)Lftm;
-
getLerpedPos
- Mappings:
Namespace Name Mixin selector named getLerpedPosLnet/minecraft/entity/Entity;getLerpedPos(F)Lnet/minecraft/util/math/Vec3d;intermediary method_30950Lnet/minecraft/class_1297;method_30950(F)Lnet/minecraft/class_243;official pLcgk;p(F)Lftm;
-
raycast
- Mappings:
Namespace Name Mixin selector named raycastLnet/minecraft/entity/Entity;raycast(DFZ)Lnet/minecraft/util/hit/HitResult;intermediary method_5745Lnet/minecraft/class_1297;method_5745(DFZ)Lnet/minecraft/class_239;official aLcgk;a(DFZ)Lftk;
-
canBeHitByProjectile
public boolean canBeHitByProjectile()- Mappings:
Namespace Name Mixin selector named canBeHitByProjectileLnet/minecraft/entity/Entity;canBeHitByProjectile()Zintermediary method_49108Lnet/minecraft/class_1297;method_49108()Zofficial bWLcgk;bW()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 canHitLnet/minecraft/entity/Entity;canHit()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Zofficial bXLcgk;bX()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 isPushableLnet/minecraft/entity/Entity;isPushable()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Zofficial bYLcgk;bY()Z
-
updateKilledAdvancementCriterion
- Mappings:
Namespace Name Mixin selector named updateKilledAdvancementCriterionLnet/minecraft/entity/Entity;updateKilledAdvancementCriterion(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_5716Lnet/minecraft/class_1297;method_5716(Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)Vofficial aLcgk;a(Lcgk;Lcex;)V
-
shouldRender
public boolean shouldRender(double cameraX, double cameraY, double cameraZ) - Mappings:
Namespace Name Mixin selector named shouldRenderLnet/minecraft/entity/Entity;shouldRender(DDD)Zintermediary method_5727Lnet/minecraft/class_1297;method_5727(DDD)Zofficial jLcgk;j(DDD)Z
-
shouldRender
public boolean shouldRender(double distance) - Mappings:
Namespace Name Mixin selector named shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Zintermediary method_5640Lnet/minecraft/class_1297;method_5640(D)Zofficial aLcgk;a(D)Z
-
saveSelfData
- Mappings:
Namespace Name Mixin selector named saveSelfDataLnet/minecraft/entity/Entity;saveSelfData(Lnet/minecraft/storage/WriteView;)Zintermediary method_5786Lnet/minecraft/class_1297;method_5786(Lnet/minecraft/class_11372;)Zofficial bLcgk;b(Lfns;)Z
-
saveData
- Mappings:
Namespace Name Mixin selector named saveDataLnet/minecraft/entity/Entity;saveData(Lnet/minecraft/storage/WriteView;)Zintermediary method_5662Lnet/minecraft/class_1297;method_5662(Lnet/minecraft/class_11372;)Zofficial cLcgk;c(Lfns;)Z
-
writeData
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/entity/Entity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5647Lnet/minecraft/class_1297;method_5647(Lnet/minecraft/class_11372;)Vofficial dLcgk;d(Lfns;)V
-
readData
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/entity/Entity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5651Lnet/minecraft/class_1297;method_5651(Lnet/minecraft/class_11368;)Vofficial dLcgk;d(Lfnq;)V
-
shouldSetPositionOnLoad
protected boolean shouldSetPositionOnLoad()- Mappings:
Namespace Name Mixin selector named shouldSetPositionOnLoadLnet/minecraft/entity/Entity;shouldSetPositionOnLoad()Zintermediary method_5638Lnet/minecraft/class_1297;method_5638()Zofficial bZLcgk;bZ()Z
-
getSavedEntityId
- Mappings:
Namespace Name Mixin selector named getSavedEntityIdLnet/minecraft/entity/Entity;getSavedEntityId()Ljava/lang/String;intermediary method_5653Lnet/minecraft/class_1297;method_5653()Ljava/lang/String;official caLcgk;ca()Ljava/lang/String;
-
readCustomData
- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcgk;a(Lfnq;)V
-
writeCustomData
- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcgk;a(Lfns;)V
-
dropItem
Drops oneitemat the entity's position.- Returns:
- the spawned item entity, or
nullif called on the client - See Also:
- Mappings:
Namespace Name Mixin selector named dropItemLnet/minecraft/entity/Entity;dropItem(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/entity/ItemEntity;intermediary method_5706Lnet/minecraft/class_1297;method_5706(Lnet/minecraft/class_3218;Lnet/minecraft/class_1935;)Lnet/minecraft/class_1542;official aLcgk;a(Laxf;Ldwn;)Lczl;
-
dropStack
Dropsstackat the entity's position.- Returns:
- the spawned item entity, or
nullif the stack is empty or if called on the client - See Also:
- Mappings:
Namespace Name Mixin selector named dropStackLnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/ItemEntity;intermediary method_5775Lnet/minecraft/class_1297;method_5775(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1542;official aLcgk;a(Laxf;Ldlt;)Lczl;
-
dropStack
- Mappings:
Namespace Name Mixin selector named dropStackLnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/entity/ItemEntity;intermediary method_71764Lnet/minecraft/class_1297;method_71764(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;Lnet/minecraft/class_243;)Lnet/minecraft/class_1542;official aLcgk;a(Laxf;Ldlt;Lftm;)Lczl;
-
dropStack
Dropsstackat the entity's position with the given Y offset.- Returns:
- the spawned item entity, or
nullif the stack is empty or if called on the client - See Also:
- Mappings:
Namespace Name Mixin selector named dropStackLnet/minecraft/entity/Entity;dropStack(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/ItemEntity;intermediary method_5699Lnet/minecraft/class_1297;method_5699(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1542;official aLcgk;a(Laxf;Ldlt;F)Lczl;
-
isAlive
public boolean isAlive()Returns whether the entity is alive.For non-
LivingEntity, this is the same as negatingisRemoved().LivingEntitychecks the entity's health in addition to the removal.- Returns:
- whether the entity is alive
- Mappings:
Namespace Name Mixin selector named isAliveLnet/minecraft/entity/Entity;isAlive()Zintermediary method_5805Lnet/minecraft/class_1297;method_5805()Zofficial cbLcgk;cb()Z
-
isInsideWall
public boolean isInsideWall()Returns whether the entity is in a wall and should suffocate.This returns
falseifnoClipistrue; otherwise, this returnstrueif 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 isInsideWallLnet/minecraft/entity/Entity;isInsideWall()Zintermediary method_5757Lnet/minecraft/class_1297;method_5757()Zofficial ccLcgk;cc()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 interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLcgk;a(Lddm;Lcdb;)Lcdc;
-
snipAllHeldLeashes
- Mappings:
Namespace Name Mixin selector named snipAllHeldLeashesLnet/minecraft/entity/Entity;snipAllHeldLeashes(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_70984Lnet/minecraft/class_1297;method_70984(Lnet/minecraft/class_1657;)Zofficial cLcgk;c(Lddm;)Z
-
detachAllHeldLeashes
- Mappings:
Namespace Name Mixin selector named detachAllHeldLeashesLnet/minecraft/entity/Entity;detachAllHeldLeashes(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_70988Lnet/minecraft/class_1297;method_70988(Lnet/minecraft/class_1657;)Zofficial dLcgk;d(Lddm;)Z
-
shearEquipment
- Mappings:
Namespace Name Mixin selector named shearEquipmentLnet/minecraft/entity/Entity;shearEquipment(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/mob/MobEntity;)Zintermediary method_71765Lnet/minecraft/class_1297;method_71765(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_1308;)Zofficial aLcgk;a(Lddm;Lcdb;Ldlt;Lchn;)Z
-
collidesWith
Returns whether this entity cannot occupy the same space withother.This returns
falseifotheris connected through vehicles.- Returns:
- whether this entity cannot occupy the same space with
other - See Also:
- Mappings:
Namespace Name Mixin selector named collidesWithLnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Zintermediary method_30949Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Zofficial iLcgk;i(Lcgk;)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.BoatEntityandShulkerEntityhas this behavior.- Returns:
- whether other entities cannot occupy the same space with this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named isCollidableLnet/minecraft/entity/Entity;isCollidable(Lnet/minecraft/entity/Entity;)Zintermediary method_30948Lnet/minecraft/class_1297;method_30948(Lnet/minecraft/class_1297;)Zofficial jLcgk;j(Lcgk;)Z
-
tickRiding
public void tickRiding()- Mappings:
Namespace Name Mixin selector named tickRidingLnet/minecraft/entity/Entity;tickRiding()Vintermediary method_5842Lnet/minecraft/class_1297;method_5842()Vofficial tLcgk;t()V
-
updatePassengerPosition
- Mappings:
Namespace Name Mixin selector named updatePassengerPositionLnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;)Vintermediary method_24201Lnet/minecraft/class_1297;method_24201(Lnet/minecraft/class_1297;)Vofficial kLcgk;k(Lcgk;)V
-
updatePassengerPosition
- Mappings:
Namespace Name Mixin selector named updatePassengerPositionLnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)Vintermediary method_5865Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)Vofficial aLcgk;a(Lcgk;Lcgk$b;)V
-
onPassengerLookAround
- Mappings:
Namespace Name Mixin selector named onPassengerLookAroundLnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)Vintermediary method_5644Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)Vofficial lLcgk;l(Lcgk;)V
-
getVehicleAttachmentPos
- Mappings:
Namespace Name Mixin selector named getVehicleAttachmentPosLnet/minecraft/entity/Entity;getVehicleAttachmentPos(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;intermediary method_55668Lnet/minecraft/class_1297;method_55668(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;official mLcgk;m(Lcgk;)Lftm;
-
getPassengerRidingPos
- Mappings:
Namespace Name Mixin selector named getPassengerRidingPosLnet/minecraft/entity/Entity;getPassengerRidingPos(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;intermediary method_52538Lnet/minecraft/class_1297;method_52538(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;official nLcgk;n(Lcgk;)Lftm;
-
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPosLnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;intermediary method_52533Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;official aLcgk;a(Lcgk;Lcgn;F)Lftm;
-
getPassengerAttachmentPos
protected static Vec3d getPassengerAttachmentPos(Entity vehicle, Entity passenger, EntityAttachments attachments) - Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPosLnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityAttachments;)Lnet/minecraft/util/math/Vec3d;intermediary method_55665Lnet/minecraft/class_1297;method_55665(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_9066;)Lnet/minecraft/class_243;official aLcgk;a(Lcgk;Lcgk;Lcgm;)Lftm;
-
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 startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;)Zintermediary method_5804Lnet/minecraft/class_1297;method_5804(Lnet/minecraft/class_1297;)Zofficial oLcgk;o(Lcgk;)Z
-
isLiving
public boolean isLiving()- Mappings:
Namespace Name Mixin selector named isLivingLnet/minecraft/entity/Entity;isLiving()Zintermediary method_5709Lnet/minecraft/class_1297;method_5709()Zofficial cdLcgk;cd()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
forceistrue. 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 startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;ZZ)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;ZZ)Zofficial aLcgk;a(Lcgk;ZZ)Z
-
canStartRiding
Returns whether this entity can rideentity.Returning
falsecauses the entity to be unable to ride other entities. For example,WitherEntityoverrides this to returnfalse, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passingtrueto.invalid reference
#startRiding(Entity, boolean)This is the opposite of
canAddPassenger(net.minecraft.entity.Entity).- Returns:
- whether this entity can ride
entity - See Also:
- Mappings:
Namespace Name Mixin selector named canStartRidingLnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Zintermediary method_5860Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Zofficial pLcgk;p(Lcgk;)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 removeAllPassengersLnet/minecraft/entity/Entity;removeAllPassengers()Vintermediary method_5772Lnet/minecraft/class_1297;method_5772()Vofficial ceLcgk;ce()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 dismountVehicleLnet/minecraft/entity/Entity;dismountVehicle()Vintermediary method_29239Lnet/minecraft/class_1297;method_29239()Vofficial adLcgk;ad()V
-
stopRiding
public void stopRiding()Stops riding the vehicle if present.For example, if
playeris riding on a horse,player.stopRiding()will dismount that player from the horse.- See Also:
- Mappings:
Namespace Name Mixin selector named stopRidingLnet/minecraft/entity/Entity;stopRiding()Vintermediary method_5848Lnet/minecraft/class_1297;method_5848()Vofficial cfLcgk;cf()V
-
addPassenger
Addspassengeras 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 addPassengerLnet/minecraft/entity/Entity;addPassenger(Lnet/minecraft/entity/Entity;)Vintermediary method_5627Lnet/minecraft/class_1297;method_5627(Lnet/minecraft/class_1297;)Vofficial qLcgk;q(Lcgk;)V
-
removePassenger
Removespassengerfrom 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 removePassengerLnet/minecraft/entity/Entity;removePassenger(Lnet/minecraft/entity/Entity;)Vintermediary method_5793Lnet/minecraft/class_1297;method_5793(Lnet/minecraft/class_1297;)Vofficial rLcgk;r(Lcgk;)V
-
canAddPassenger
Returns whetherentitycan ride this entity.Returning
falsecauses other entities to be unable to ride this entity. For example,BoatEntityuses 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
entitycan ride this entity - See Also:
- Mappings:
Namespace Name Mixin selector named canAddPassengerLnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Zintermediary method_5818Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Zofficial sLcgk;s(Lcgk;)Z
-
couldAcceptPassenger
protected boolean couldAcceptPassenger()Returnstrueif this entity supports passengers in general.- Returns:
trueif this entity supports passengers in general- Mappings:
Namespace Name Mixin selector named couldAcceptPassengerLnet/minecraft/entity/Entity;couldAcceptPassenger()Zintermediary method_48921Lnet/minecraft/class_1297;method_48921()Zofficial cgLcgk;cg()Z
-
isInterpolating
public final boolean isInterpolating()- Mappings:
Namespace Name Mixin selector named isInterpolatingLnet/minecraft/entity/Entity;isInterpolating()Zintermediary method_66245Lnet/minecraft/class_1297;method_66245()Zofficial chLcgk;ch()Z
-
updateTrackedPositionAndAngles
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(Lnet/minecraft/util/math/Vec3d;FF)Vintermediary method_66246Lnet/minecraft/class_1297;method_66246(Lnet/minecraft/class_243;FF)Vofficial dLcgk;d(Lftm;FF)V
-
updateTrackedAngles
public final void updateTrackedAngles(float float2, float float3) - Mappings:
Namespace Name Mixin selector named updateTrackedAnglesLnet/minecraft/entity/Entity;updateTrackedAngles(FF)Vintermediary method_73094Lnet/minecraft/class_1297;method_73094(FF)Vofficial eLcgk;e(FF)V
-
updateTrackedPosition
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionLnet/minecraft/entity/Entity;updateTrackedPosition(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_73095Lnet/minecraft/class_1297;method_73095(Lnet/minecraft/class_243;)Vofficial iLcgk;i(Lftm;)V
-
updateTrackedPositionAndAngles
public final void updateTrackedPositionAndAngles(Optional<Vec3d> optional, Optional<Float> optional2, Optional<Float> optional3) - Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Vintermediary method_73092Lnet/minecraft/class_1297;method_73092(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Vofficial aLcgk;a(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
getInterpolator
- Mappings:
Namespace Name Mixin selector named getInterpolatorLnet/minecraft/entity/Entity;getInterpolator()Lnet/minecraft/entity/PositionInterpolator;intermediary method_66233Lnet/minecraft/class_1297;method_66233()Lnet/minecraft/class_10584;official l_Lcgk;l_()Lchf;
-
updateTrackedHeadRotation
public void updateTrackedHeadRotation(float yaw, int interpolationSteps) - Mappings:
Namespace Name Mixin selector named updateTrackedHeadRotationLnet/minecraft/entity/Entity;updateTrackedHeadRotation(FI)Vintermediary method_5683Lnet/minecraft/class_1297;method_5683(FI)Vofficial aLcgk;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:
ExplosiveProjectileEntityoverrides this method to return1.0f, which expands the ghast fireball's effective hitbox.- Mappings:
Namespace Name Mixin selector named getTargetingMarginLnet/minecraft/entity/Entity;getTargetingMargin()Fintermediary method_5871Lnet/minecraft/class_1297;method_5871()Fofficial ciLcgk;ci()F
-
getRotationVector
- Mappings:
Namespace Name Mixin selector named getRotationVectorLnet/minecraft/entity/Entity;getRotationVector()Lnet/minecraft/util/math/Vec3d;intermediary method_5720Lnet/minecraft/class_1297;method_5720()Lnet/minecraft/class_243;official cjLcgk;cj()Lftm;
-
getHeadRotationVector
- Mappings:
Namespace Name Mixin selector named getHeadRotationVectorLnet/minecraft/entity/Entity;getHeadRotationVector()Lnet/minecraft/util/math/Vec3d;intermediary method_75117Lnet/minecraft/class_1297;method_75117()Lnet/minecraft/class_243;official ckLcgk;ck()Lftm;
-
getHandPosOffset
Returns the offset of the hand that holdsitem.This returns
Vec3d.ZEROif 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 getHandPosOffsetLnet/minecraft/entity/Entity;getHandPosOffset(Lnet/minecraft/item/Item;)Lnet/minecraft/util/math/Vec3d;intermediary method_40123Lnet/minecraft/class_1297;method_40123(Lnet/minecraft/class_1792;)Lnet/minecraft/class_243;official aLcgk;a(Ldlp;)Lftm;
-
getRotationClient
- Mappings:
Namespace Name Mixin selector named getRotationClientLnet/minecraft/entity/Entity;getRotationClient()Lnet/minecraft/util/math/Vec2f;intermediary method_5802Lnet/minecraft/class_1297;method_5802()Lnet/minecraft/class_241;official clLcgk;cl()Lftl;
-
getRotationVecClient
- Mappings:
Namespace Name Mixin selector named getRotationVecClientLnet/minecraft/entity/Entity;getRotationVecClient()Lnet/minecraft/util/math/Vec3d;intermediary method_5663Lnet/minecraft/class_1297;method_5663()Lnet/minecraft/class_243;official cmLcgk;cm()Lftm;
-
tryUsePortal
- Mappings:
Namespace Name Mixin selector named tryUsePortalLnet/minecraft/entity/Entity;tryUsePortal(Lnet/minecraft/block/Portal;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_60697Lnet/minecraft/class_1297;method_60697(Lnet/minecraft/class_9797;Lnet/minecraft/class_2338;)Vofficial aLcgk;a(Lefr;Lis;)V
-
tickPortalTeleportation
protected void tickPortalTeleportation()- Mappings:
Namespace Name Mixin selector named tickPortalTeleportationLnet/minecraft/entity/Entity;tickPortalTeleportation()Vintermediary method_60698Lnet/minecraft/class_1297;method_60698()Vofficial cnLcgk;cn()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 getDefaultPortalCooldownLnet/minecraft/entity/Entity;getDefaultPortalCooldown()Iintermediary method_5806Lnet/minecraft/class_1297;method_5806()Iofficial coLcgk;co()I
-
setVelocityClient
- Mappings:
Namespace Name Mixin selector named setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5750Lnet/minecraft/class_1297;method_5750(Lnet/minecraft/class_243;)Vofficial jLcgk;j(Lftm;)V
-
onDamaged
- Mappings:
Namespace Name Mixin selector named onDamagedLnet/minecraft/entity/Entity;onDamaged(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_48922Lnet/minecraft/class_1297;method_48922(Lnet/minecraft/class_1282;)Vofficial cLcgk;c(Lcex;)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 handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLcgk;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 animateDamageLnet/minecraft/entity/Entity;animateDamage(F)Vintermediary method_5879Lnet/minecraft/class_1297;method_5879(F)Vofficial qLcgk;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 isOnFireLnet/minecraft/entity/Entity;isOnFire()Zintermediary method_5809Lnet/minecraft/class_1297;method_5809()Zofficial cpLcgk;cp()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 hasVehicleLnet/minecraft/entity/Entity;hasVehicle()Zintermediary method_5765Lnet/minecraft/class_1297;method_5765()Zofficial cqLcgk;cq()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 hasPassengersLnet/minecraft/entity/Entity;hasPassengers()Zintermediary method_5782Lnet/minecraft/class_1297;method_5782()Zofficial crLcgk;cr()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 shouldDismountUnderwaterLnet/minecraft/entity/Entity;shouldDismountUnderwater()Zintermediary method_49693Lnet/minecraft/class_1297;method_49693()Zofficial csLcgk;cs()Z
-
shouldControlVehicles
public boolean shouldControlVehicles()- Mappings:
Namespace Name Mixin selector named shouldControlVehiclesLnet/minecraft/entity/Entity;shouldControlVehicles()Zintermediary method_52534Lnet/minecraft/class_1297;method_52534()Zofficial ctLcgk;ct()Z
-
setSneaking
public void setSneaking(boolean sneaking) Sets whether the entity is sneaking.- See Also:
- Mappings:
Namespace Name Mixin selector named setSneakingLnet/minecraft/entity/Entity;setSneaking(Z)Vintermediary method_5660Lnet/minecraft/class_1297;method_5660(Z)Vofficial hLcgk;h(Z)V
-
isSneaking
public boolean isSneaking()Returns whether the entity is sneaking.This only returns
trueif 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 isSneakingLnet/minecraft/entity/Entity;isSneaking()Zintermediary method_5715Lnet/minecraft/class_1297;method_5715()Zofficial cuLcgk;cu()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 bypassesSteppingEffectsLnet/minecraft/entity/Entity;bypassesSteppingEffects()Zintermediary method_21749Lnet/minecraft/class_1297;method_21749()Zofficial cvLcgk;cv()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 bypassesLandingEffectsLnet/minecraft/entity/Entity;bypassesLandingEffects()Zintermediary method_21750Lnet/minecraft/class_1297;method_21750()Zofficial cwLcgk;cw()Z
-
isSneaky
public boolean isSneaky()- Mappings:
Namespace Name Mixin selector named isSneakyLnet/minecraft/entity/Entity;isSneaky()Zintermediary method_21751Lnet/minecraft/class_1297;method_21751()Zofficial cxLcgk;cx()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 returnsfalsefor 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 isDescendingLnet/minecraft/entity/Entity;isDescending()Zintermediary method_21752Lnet/minecraft/class_1297;method_21752()Zofficial cyLcgk;cy()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 isInSneakingPoseLnet/minecraft/entity/Entity;isInSneakingPose()Zintermediary method_18276Lnet/minecraft/class_1297;method_18276()Zofficial czLcgk;cz()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 isSprintingLnet/minecraft/entity/Entity;isSprinting()Zintermediary method_5624Lnet/minecraft/class_1297;method_5624()Zofficial cALcgk;cA()Z
-
setSprinting
public void setSprinting(boolean sprinting) Sets whether the entity is sprinting.- See Also:
- Mappings:
Namespace Name Mixin selector named setSprintingLnet/minecraft/entity/Entity;setSprinting(Z)Vintermediary method_5728Lnet/minecraft/class_1297;method_5728(Z)Vofficial iLcgk;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 isSwimmingLnet/minecraft/entity/Entity;isSwimming()Zintermediary method_5681Lnet/minecraft/class_1297;method_5681()Zofficial cBLcgk;cB()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 isInSwimmingPoseLnet/minecraft/entity/Entity;isInSwimmingPose()Zintermediary method_20232Lnet/minecraft/class_1297;method_20232()Zofficial cCLcgk;cC()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 isCrawlingLnet/minecraft/entity/Entity;isCrawling()Zintermediary method_20448Lnet/minecraft/class_1297;method_20448()Zofficial cDLcgk;cD()Z
-
setSwimming
public void setSwimming(boolean swimming) Sets whether the entity is swimming.- See Also:
- Mappings:
Namespace Name Mixin selector named setSwimmingLnet/minecraft/entity/Entity;setSwimming(Z)Vintermediary method_5796Lnet/minecraft/class_1297;method_5796(Z)Vofficial jLcgk;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 isGlowingLocalLnet/minecraft/entity/Entity;isGlowingLocal()Zintermediary method_36361Lnet/minecraft/class_1297;method_36361()Zofficial cELcgk;cE()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 setGlowingLnet/minecraft/entity/Entity;setGlowing(Z)Vintermediary method_5834Lnet/minecraft/class_1297;method_5834(Z)Vofficial kLcgk;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 isGlowingLnet/minecraft/entity/Entity;isGlowing()Zintermediary method_5851Lnet/minecraft/class_1297;method_5851()Zofficial cFLcgk;cF()Z
-
isInvisible
public boolean isInvisible()Returns whether the entity is invisible to everyone.Invisibility status effect and
ArmorStandEntity'sInvisibleNBT key can cause an entity to be invisible.- Returns:
- whether the entity is invisible to everyone
- See Also:
- Mappings:
Namespace Name Mixin selector named isInvisibleLnet/minecraft/entity/Entity;isInvisible()Zintermediary method_5767Lnet/minecraft/class_1297;method_5767()Zofficial cGLcgk;cG()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 isInvisibleToLnet/minecraft/entity/Entity;isInvisibleTo(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_5756Lnet/minecraft/class_1297;method_5756(Lnet/minecraft/class_1657;)Zofficial eLcgk;e(Lddm;)Z
-
isOnRail
public boolean isOnRail()- Mappings:
Namespace Name Mixin selector named isOnRailLnet/minecraft/entity/Entity;isOnRail()Zintermediary method_52172Lnet/minecraft/class_1297;method_52172()Zofficial cHLcgk;cH()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
EntityGameEventHandlerin 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 updateEventHandlerLnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)Vintermediary method_42147Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)Vofficial aLcgk;a(Ljava/util/function/BiConsumer;)V
-
getScoreboardTeam
Returns the scoreboard team the entity belongs to, ornullif there is none.- Returns:
- the scoreboard team the entity belongs to, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getScoreboardTeamLnet/minecraft/entity/Entity;getScoreboardTeam()Lnet/minecraft/scoreboard/Team;intermediary method_5781Lnet/minecraft/class_1297;method_5781()Lnet/minecraft/class_268;official cILcgk;cI()Lfum;
-
isTeammate
Returns whether this entity andotherare in the same team.This returns
falseif this entity is not in any team.- Returns:
- whether this entity and
otherare in the same team - Mappings:
Namespace Name Mixin selector named isTeammateLnet/minecraft/entity/Entity;isTeammate(Lnet/minecraft/entity/Entity;)Zintermediary method_5722Lnet/minecraft/class_1297;method_5722(Lnet/minecraft/class_1297;)Zofficial tLcgk;t(Lcgk;)Z
-
isInSameTeam
- Mappings:
Namespace Name Mixin selector named isInSameTeamLnet/minecraft/entity/Entity;isInSameTeam(Lnet/minecraft/entity/Entity;)Zintermediary method_61416Lnet/minecraft/class_1297;method_61416(Lnet/minecraft/class_1297;)Zofficial uLcgk;u(Lcgk;)Z
-
isTeamPlayer
Returns whether this entity is inteam.This returns
falseif this entity is not in any team.- Returns:
- whether this entity is in
team - Mappings:
Namespace Name Mixin selector named isTeamPlayerLnet/minecraft/entity/Entity;isTeamPlayer(Lnet/minecraft/scoreboard/AbstractTeam;)Zintermediary method_5645Lnet/minecraft/class_1297;method_5645(Lnet/minecraft/class_270;)Zofficial aLcgk;a(Lfut;)Z
-
setInvisible
public void setInvisible(boolean invisible) Sets whether the entity is invisible to everyone.Invisibility status effect and
ArmorStandEntity'sInvisibleNBT key can cause an entity to be invisible.- See Also:
- Mappings:
Namespace Name Mixin selector named setInvisibleLnet/minecraft/entity/Entity;setInvisible(Z)Vintermediary method_5648Lnet/minecraft/class_1297;method_5648(Z)Vofficial lLcgk;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 getFlagLnet/minecraft/entity/Entity;getFlag(I)Zintermediary method_5795Lnet/minecraft/class_1297;method_5795(I)Zofficial iLcgk;i(I)Z
-
setFlag
protected void setFlag(int index, boolean value) Sets the entity flag with indexflagtovalue.Entity flag is used to track whether the entity is sneaking, sprinting, invisible, etc.
- Mappings:
Namespace Name Mixin selector named setFlagLnet/minecraft/entity/Entity;setFlag(IZ)Vintermediary method_5729Lnet/minecraft/class_1297;method_5729(IZ)Vofficial bLcgk;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.
DolphinEntityhas 4800 ticks or 4 minutes;AxolotlEntityhas 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 getMaxAirLnet/minecraft/entity/Entity;getMaxAir()Iintermediary method_5748Lnet/minecraft/class_1297;method_5748()Iofficial cJLcgk;cJ()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 to0and the entity takes a drowning damage.- Returns:
- the air left for the entity, in ticks
- See Also:
- API Note:
WaterCreatureEntityreuses 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 getAirLnet/minecraft/entity/Entity;getAir()Iintermediary method_5669Lnet/minecraft/class_1297;method_5669()Iofficial cKLcgk;cK()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 to0and the entity takes a drowning damage.- See Also:
- API Note:
WaterCreatureEntityreuses 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 setAirLnet/minecraft/entity/Entity;setAir(I)Vintermediary method_5855Lnet/minecraft/class_1297;method_5855(I)Vofficial jLcgk;j(I)V
-
defrost
public void defrost()- Mappings:
Namespace Name Mixin selector named defrostLnet/minecraft/entity/Entity;defrost()Vintermediary method_67635Lnet/minecraft/class_1297;method_67635()Vofficial cLLcgk;cL()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 getFrozenTicksLnet/minecraft/entity/Entity;getFrozenTicks()Iintermediary method_32312Lnet/minecraft/class_1297;method_32312()Iofficial cMLcgk;cM()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 setFrozenTicksLnet/minecraft/entity/Entity;setFrozenTicks(I)Vintermediary method_32317Lnet/minecraft/class_1297;method_32317(I)Vofficial kLcgk;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 getFreezingScaleLnet/minecraft/entity/Entity;getFreezingScale()Fintermediary method_32313Lnet/minecraft/class_1297;method_32313()Fofficial cNLcgk;cN()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 isFrozenLnet/minecraft/entity/Entity;isFrozen()Zintermediary method_32314Lnet/minecraft/class_1297;method_32314()Zofficial cOLcgk;cO()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 getMinFreezeDamageTicksLnet/minecraft/entity/Entity;getMinFreezeDamageTicks()Iintermediary method_32315Lnet/minecraft/class_1297;method_32315()Iofficial cPLcgk;cP()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 onStruckByLightningLnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)Vintermediary method_5800Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)Vofficial aLcgk;a(Laxf;Lchk;)V
-
onBubbleColumnSurfaceCollision
Called when the entity collides with a bubble column with an air above.This applies the bubble column velocity by default.
BoatEntityuses this to spawn splash particles.- Parameters:
drag- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurfaceCollisionLnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(ZLnet/minecraft/util/math/BlockPos;)Vintermediary method_5700Lnet/minecraft/class_1297;method_5700(ZLnet/minecraft/class_2338;)Vofficial aLcgk;a(ZLis;)V
-
applyBubbleColumnSurfaceEffects
- Mappings:
Namespace Name Mixin selector named applyBubbleColumnSurfaceEffectsLnet/minecraft/entity/Entity;applyBubbleColumnSurfaceEffects(Lnet/minecraft/entity/Entity;ZLnet/minecraft/util/math/BlockPos;)Vintermediary method_67123Lnet/minecraft/class_1297;method_67123(Lnet/minecraft/class_1297;ZLnet/minecraft/class_2338;)Vofficial aLcgk;a(Lcgk;ZLis;)V
-
spawnBubbleColumnParticles
- Mappings:
Namespace Name Mixin selector named spawnBubbleColumnParticlesLnet/minecraft/entity/Entity;spawnBubbleColumnParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_66250Lnet/minecraft/class_1297;method_66250(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial aLcgk;a(Ldwo;Lis;)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 onBubbleColumnCollisionLnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)Vintermediary method_5764Lnet/minecraft/class_1297;method_5764(Z)Vofficial mLcgk;m(Z)V
-
applyBubbleColumnEffects
- Mappings:
Namespace Name Mixin selector named applyBubbleColumnEffectsLnet/minecraft/entity/Entity;applyBubbleColumnEffects(Lnet/minecraft/entity/Entity;Z)Vintermediary method_67124Lnet/minecraft/class_1297;method_67124(Lnet/minecraft/class_1297;Z)Vofficial aLcgk;a(Lcgk;Z)V
-
onKilledOther
Called when this entity killsother.- Returns:
- whether the entity died (and not converted to another entity)
- API Note:
ZombieEntityoverrides this to convert the killed villager to a zombie villager.- Mappings:
Namespace Name Mixin selector named onKilledOtherLnet/minecraft/entity/Entity;onKilledOther(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5874Lnet/minecraft/class_1297;method_5874(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1282;)Zofficial aLcgk;a(Laxf;Lchl;Lcex;)Z
-
limitFallDistance
public void limitFallDistance()- Mappings:
Namespace Name Mixin selector named limitFallDistanceLnet/minecraft/entity/Entity;limitFallDistance()Vintermediary method_70983Lnet/minecraft/class_1297;method_70983()Vofficial cQLcgk;cQ()V
-
onLanding
public void onLanding()Called when the entity lands on a block.- Mappings:
Namespace Name Mixin selector named onLandingLnet/minecraft/entity/Entity;onLanding()Vintermediary method_38785Lnet/minecraft/class_1297;method_38785()Vofficial lLcgk;l()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
ItemEntityandExperienceOrbEntity. - Mappings:
Namespace Name Mixin selector named pushOutOfBlocksLnet/minecraft/entity/Entity;pushOutOfBlocks(DDD)Vintermediary method_5632Lnet/minecraft/class_1297;method_5632(DDD)Vofficial kLcgk;k(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, boolean). This is used by cobwebs, sweet berries, and powder snow. - Mappings:
Namespace Name Mixin selector named slowMovementLnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5844Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)Vofficial aLcgk;a(Leoh;Lftm;)V
-
removeClickEvents
- Mappings:
Namespace Name Mixin selector named removeClickEventsLnet/minecraft/entity/Entity;removeClickEvents(Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;intermediary method_5856Lnet/minecraft/class_1297;method_5856(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;official aLcgk;a(Lyh;)Lyh;
-
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:
getNamein interfaceNameable- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;intermediary method_5477Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;official apLcdg;ap()Lyh;
-
getDefaultName
Returns the default name of the entity.- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultNameLnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;intermediary method_23315Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;official cRLcgk;cR()Lyh;
-
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
trueforpart.isPartOf(dragon).- Returns:
- whether this entity is part of
entity - Mappings:
Namespace Name Mixin selector named isPartOfLnet/minecraft/entity/Entity;isPartOf(Lnet/minecraft/entity/Entity;)Zintermediary method_5779Lnet/minecraft/class_1297;method_5779(Lnet/minecraft/class_1297;)Zofficial vLcgk;v(Lcgk;)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 getHeadYawLnet/minecraft/entity/Entity;getHeadYaw()Fintermediary method_5791Lnet/minecraft/class_1297;method_5791()Fofficial cSLcgk;cS()F
-
setHeadYaw
public void setHeadYaw(float headYaw) Sets the head yaw of this entity.- See Also:
- Mappings:
Namespace Name Mixin selector named setHeadYawLnet/minecraft/entity/Entity;setHeadYaw(F)Vintermediary method_5847Lnet/minecraft/class_1297;method_5847(F)Vofficial rLcgk;r(F)V
-
setBodyYaw
public void setBodyYaw(float bodyYaw) Sets the body yaw of this entity.- See Also:
- Mappings:
Namespace Name Mixin selector named setBodyYawLnet/minecraft/entity/Entity;setBodyYaw(F)Vintermediary method_5636Lnet/minecraft/class_1297;method_5636(F)Vofficial sLcgk;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
ItemEntityandExperienceOrbEntity) 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 isAttackableLnet/minecraft/entity/Entity;isAttackable()Zintermediary method_5732Lnet/minecraft/class_1297;method_5732()Zofficial cTLcgk;cT()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,
ArmorStandEntitychecks whether the player can modify blocks at the entity's position. - Mappings:
Namespace Name Mixin selector named handleAttackLnet/minecraft/entity/Entity;handleAttack(Lnet/minecraft/entity/Entity;)Zintermediary method_5698Lnet/minecraft/class_1297;method_5698(Lnet/minecraft/class_1297;)Zofficial wLcgk;w(Lcgk;)Z
-
toString
-
isAlwaysInvulnerableTo
- Mappings:
Namespace Name Mixin selector named isAlwaysInvulnerableToLnet/minecraft/entity/Entity;isAlwaysInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_64421Lnet/minecraft/class_1297;method_64421(Lnet/minecraft/class_1282;)Zofficial dLcgk;d(Lcex;)Z
-
isInvulnerable
public boolean isInvulnerable()Returns whether the entity is invulnerable.This is saved on the
InvulnerableNBT key.- Returns:
- whether the entity is invulnerable
- See Also:
- Implementation Note:
- Invulnerable entities are immune from all damages except
DamageTypes.OUT_OF_WORLDand damages by creative mode players by default. - Mappings:
Namespace Name Mixin selector named isInvulnerableLnet/minecraft/entity/Entity;isInvulnerable()Zintermediary method_5655Lnet/minecraft/class_1297;method_5655()Zofficial cULcgk;cU()Z
-
setInvulnerable
public void setInvulnerable(boolean invulnerable) Sets whether the entity is invulnerable.This is saved on the
InvulnerableNBT key.- See Also:
- Implementation Note:
- Invulnerable entities are immune from all damages except
DamageTypes.OUT_OF_WORLDand damages by creative mode players by default. - Mappings:
Namespace Name Mixin selector named setInvulnerableLnet/minecraft/entity/Entity;setInvulnerable(Z)Vintermediary method_5684Lnet/minecraft/class_1297;method_5684(Z)Vofficial nLcgk;n(Z)V
-
copyPositionAndRotation
Sets the entity's position and rotation the same asentity.- See Also:
- Mappings:
Namespace Name Mixin selector named copyPositionAndRotationLnet/minecraft/entity/Entity;copyPositionAndRotation(Lnet/minecraft/entity/Entity;)Vintermediary method_5719Lnet/minecraft/class_1297;method_5719(Lnet/minecraft/class_1297;)Vofficial xLcgk;x(Lcgk;)V
-
copyFrom
Copies serializable data and nether portal data fromoriginal.- See Also:
- Mappings:
Namespace Name Mixin selector named copyFromLnet/minecraft/entity/Entity;copyFrom(Lnet/minecraft/entity/Entity;)Vintermediary method_5878Lnet/minecraft/class_1297;method_5878(Lnet/minecraft/class_1297;)Vofficial yLcgk;y(Lcgk;)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 teleportToLnet/minecraft/entity/Entity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;intermediary method_5731Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;official bLcgk;b(Lfmb;)Lcgk;
-
teleportSameDimension
- Mappings:
Namespace Name Mixin selector named teleportSameDimensionLnet/minecraft/entity/Entity;teleportSameDimension(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;intermediary method_64611Lnet/minecraft/class_1297;method_64611(Lnet/minecraft/class_3218;Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;official aLcgk;a(Laxf;Lfmb;)Lcgk;
-
teleportCrossDimension
private @Nullable Entity teleportCrossDimension(ServerWorld from, ServerWorld to, TeleportTarget teleportTarget) - Mappings:
Namespace Name Mixin selector named teleportCrossDimensionLnet/minecraft/entity/Entity;teleportCrossDimension(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;intermediary method_64614Lnet/minecraft/class_1297;method_64614(Lnet/minecraft/class_3218;Lnet/minecraft/class_3218;Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;official aLcgk;a(Laxf;Laxf;Lfmb;)Lcgk;
-
teleportSpectatingPlayers
- Mappings:
Namespace Name Mixin selector named teleportSpectatingPlayersLnet/minecraft/entity/Entity;teleportSpectatingPlayers(Lnet/minecraft/world/TeleportTarget;Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_70666Lnet/minecraft/class_1297;method_70666(Lnet/minecraft/class_5454;Lnet/minecraft/class_3218;)Vofficial aLcgk;a(Lfmb;Laxf;)V
-
getPassengerTeleportTarget
- Mappings:
Namespace Name Mixin selector named getPassengerTeleportTargetLnet/minecraft/entity/Entity;getPassengerTeleportTarget(Lnet/minecraft/world/TeleportTarget;Lnet/minecraft/entity/Entity;)Lnet/minecraft/world/TeleportTarget;intermediary method_64613Lnet/minecraft/class_1297;method_64613(Lnet/minecraft/class_5454;Lnet/minecraft/class_1297;)Lnet/minecraft/class_5454;official aLcgk;a(Lfmb;Lcgk;)Lfmb;
-
sendTeleportPacket
- Mappings:
Namespace Name Mixin selector named sendTeleportPacketLnet/minecraft/entity/Entity;sendTeleportPacket(Lnet/minecraft/world/TeleportTarget;)Vintermediary method_64612Lnet/minecraft/class_1297;method_64612(Lnet/minecraft/class_5454;)Vofficial aLcgk;a(Lfmb;)V
-
setPosition
- Mappings:
Namespace Name Mixin selector named setPositionLnet/minecraft/entity/Entity;setPosition(Lnet/minecraft/entity/EntityPosition;Ljava/util/Set;)Vintermediary method_61412Lnet/minecraft/class_1297;method_61412(Lnet/minecraft/class_10182;Ljava/util/Set;)Vofficial aLcgk;a(Lchy;Ljava/util/Set;)V
-
setPosition
- Mappings:
Namespace Name Mixin selector named setPositionLnet/minecraft/entity/Entity;setPosition(Lnet/minecraft/entity/EntityPosition;Lnet/minecraft/entity/EntityPosition;Ljava/util/Set;)Vintermediary method_74862Lnet/minecraft/class_1297;method_74862(Lnet/minecraft/class_10182;Lnet/minecraft/class_10182;Ljava/util/Set;)Vofficial aLcgk;a(Lchy;Lchy;Ljava/util/Set;)V
-
rotate
public void rotate(float yaw, boolean relativeYaw, float pitch, boolean relativePitch) - Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/entity/Entity;rotate(FZFZ)Vintermediary method_64578Lnet/minecraft/class_1297;method_64578(FZFZ)Vofficial aLcgk;a(FZFZ)V
-
addPortalChunkTicketAt
- Mappings:
Namespace Name Mixin selector named addPortalChunkTicketAtLnet/minecraft/entity/Entity;addPortalChunkTicketAt(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_60950Lnet/minecraft/class_1297;method_60950(Lnet/minecraft/class_2338;)Vofficial fLcgk;f(Lis;)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 ofto zero.invalid reference
equipped stacks
- See Also:
- Mappings:
Namespace Name Mixin selector named removeFromDimensionLnet/minecraft/entity/Entity;removeFromDimension()Vintermediary method_30076Lnet/minecraft/class_1297;method_30076()Vofficial cVLcgk;cV()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 positionInPortalLnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;intermediary method_30633Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;official aLcgk;a(Liz$a;Lber$a;)Lftm;
-
canUsePortals
public boolean canUsePortals(boolean allowVehicles) Returns whether the entity can use nether portals and end portals.EnderDragonEntity,WitherEntity, andFishingBobberEntitycannot use portals.- Returns:
- whether the entity can use nether portals and end portals
- Mappings:
Namespace Name Mixin selector named canUsePortalsLnet/minecraft/entity/Entity;canUsePortals(Z)Zintermediary method_5822Lnet/minecraft/class_1297;method_5822(Z)Zofficial oLcgk;o(Z)Z
-
canTeleportBetween
- Mappings:
Namespace Name Mixin selector named canTeleportBetweenLnet/minecraft/entity/Entity;canTeleportBetween(Lnet/minecraft/world/World;Lnet/minecraft/world/World;)Zintermediary method_61113Lnet/minecraft/class_1297;method_61113(Lnet/minecraft/class_1937;Lnet/minecraft/class_1937;)Zofficial aLcgk;a(Ldwo;Ldwo;)Z
-
getEffectiveExplosionResistance
public float getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockStatefor an explosion caused by this entity.- Returns:
- the blast resistance of
blockStatefor an explosion caused by this entity - See Also:
- API Note:
WitherSkullEntityoverrides this to implement the "charged/blue skull" behavior.- Mappings:
Namespace Name Mixin selector named getEffectiveExplosionResistanceLnet/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)Fintermediary method_5774Lnet/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)Fofficial aLcgk;a(Ldwi;Ldvt;Lis;Leoh;Lflb;F)F
-
canExplosionDestroyBlock
public boolean canExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower) Returns whetherexplosionfrom this entity can destroystate.- Returns:
- whether
explosionfrom this entity can destroystate - See Also:
- API Note:
- This is used by
TntMinecartEntityto prevent the rail from being destroyed by explosion. - Mappings:
Namespace Name Mixin selector named canExplosionDestroyBlockLnet/minecraft/entity/Entity;canExplosionDestroyBlock(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;F)Zintermediary method_5853Lnet/minecraft/class_1297;method_5853(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)Zofficial aLcgk;a(Ldwi;Ldvt;Lis;Leoh;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 getSafeFallDistanceLnet/minecraft/entity/Entity;getSafeFallDistance()Iintermediary method_5850Lnet/minecraft/class_1297;method_5850()Iofficial cWLcgk;cW()I
-
canAvoidTraps
public boolean canAvoidTraps()Returns whether the entity cannot trigger pressure plates or tripwires.BatEntityis 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 canAvoidTrapsLnet/minecraft/entity/Entity;canAvoidTraps()Zintermediary method_5696Lnet/minecraft/class_1297;method_5696()Zofficial m_Lcgk;m_()Z
-
populateCrashReport
Populates the crash report section to include the entity's information.- Mappings:
Namespace Name Mixin selector named populateCrashReportLnet/minecraft/entity/Entity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)Vintermediary method_5819Lnet/minecraft/class_1297;method_5819(Lnet/minecraft/class_129;)Vofficial aLcgk;a(Ln;)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 doesRenderOnFireLnet/minecraft/entity/Entity;doesRenderOnFire()Zintermediary method_5862Lnet/minecraft/class_1297;method_5862()Zofficial cXLcgk;cX()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 setUuidLnet/minecraft/entity/Entity;setUuid(Ljava/util/UUID;)Vintermediary method_5826Lnet/minecraft/class_1297;method_5826(Ljava/util/UUID;)Vofficial aLcgk;a(Ljava/util/UUID;)V
-
getUuid
- Specified by:
getUuidin interfaceUniquelyIdentifiable- Mappings:
Namespace Name Mixin selector named getUuidLnet/minecraft/world/entity/UniquelyIdentifiable;getUuid()Ljava/util/UUID;intermediary method_5667Lnet/minecraft/class_10599;method_5667()Ljava/util/UUID;official cYLetd;cY()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 getUuidAsStringLnet/minecraft/entity/Entity;getUuidAsString()Ljava/lang/String;intermediary method_5845Lnet/minecraft/class_1297;method_5845()Ljava/lang/String;official cZLcgk;cZ()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:
getNameForScoreboardin interfaceScoreHolder- Returns:
- the name uniquely identifying the score holder
- See Also:
- Mappings:
Namespace Name Mixin selector named getNameForScoreboardLnet/minecraft/scoreboard/ScoreHolder;getNameForScoreboard()Ljava/lang/String;intermediary method_5820Lnet/minecraft/class_9015;method_5820()Ljava/lang/String;official daLfuq;da()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 isPushedByFluidsLnet/minecraft/entity/Entity;isPushedByFluids()Zintermediary method_5675Lnet/minecraft/class_1297;method_5675()Zofficial dbLcgk;db()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 getRenderDistanceMultiplierLnet/minecraft/entity/Entity;getRenderDistanceMultiplier()Dintermediary method_5824Lnet/minecraft/class_1297;method_5824()Dofficial dcLcgk;dc()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 setRenderDistanceMultiplierLnet/minecraft/entity/Entity;setRenderDistanceMultiplier(D)Vintermediary method_5840Lnet/minecraft/class_1297;method_5840(D)Vofficial cLcgk;c(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:
getDisplayNamein interfaceNameable- Specified by:
getDisplayNamein interfaceScoreHolder- Returns:
- the display name of this object
- Mappings:
Namespace Name Mixin selector named getDisplayNameLnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;intermediary method_5476Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;official R_Lcdg;R_()Lyh;
-
setCustomName
Sets the custom name of the entity toname(ornullto remove the custom name).- Mappings:
Namespace Name Mixin selector named setCustomNameLnet/minecraft/entity/Entity;setCustomName(Lnet/minecraft/text/Text;)Vintermediary method_5665Lnet/minecraft/class_1297;method_5665(Lnet/minecraft/class_2561;)Vofficial bLcgk;b(Lyh;)V
-
getCustomName
Returns the custom name of this object, ornullif there is none.- Specified by:
getCustomNamein interfaceNameable- Returns:
- the custom name of this object, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getCustomNameLnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;intermediary method_5797Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;official asLcdg;as()Lyh;
-
hasCustomName
public boolean hasCustomName()Returns whether this object has a custom name.- Specified by:
hasCustomNamein interfaceNameable- Returns:
- whether this object has a custom name
- Mappings:
Namespace Name Mixin selector named hasCustomNameLnet/minecraft/util/Nameable;hasCustomName()Zintermediary method_16914Lnet/minecraft/class_1275;method_16914()Zofficial i_Lcdg;i_()Z
-
setCustomNameVisible
public void setCustomNameVisible(boolean visible) Sets whether the custom name should be shown.This is stored on
CustomNameVisibleNBT key.- See Also:
- Mappings:
Namespace Name Mixin selector named setCustomNameVisibleLnet/minecraft/entity/Entity;setCustomNameVisible(Z)Vintermediary method_5880Lnet/minecraft/class_1297;method_5880(Z)Vofficial pLcgk;p(Z)V
-
isCustomNameVisible
public boolean isCustomNameVisible()Returns whether the custom name should be shown.This is stored on
CustomNameVisibleNBT key.- Returns:
- whether the custom name should be shown
- See Also:
- Mappings:
Namespace Name Mixin selector named isCustomNameVisibleLnet/minecraft/entity/Entity;isCustomNameVisible()Zintermediary method_5807Lnet/minecraft/class_1297;method_5807()Zofficial ddLcgk;dd()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. Ifworlddiffers from the current world, it copies the entity and discards the current one.- See Also:
- Mappings:
Namespace Name Mixin selector named teleportLnet/minecraft/entity/Entity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FFZ)Zintermediary method_48105Lnet/minecraft/class_1297;method_48105(Lnet/minecraft/class_3218;DDDLjava/util/Set;FFZ)Zofficial aLcgk;a(Laxf;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 requestTeleportAndDismountLnet/minecraft/entity/Entity;requestTeleportAndDismount(DDD)Vintermediary method_33567Lnet/minecraft/class_1297;method_33567(DDD)Vofficial lLcgk;l(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 requestTeleportLnet/minecraft/entity/Entity;requestTeleport(DDD)Vintermediary method_5859Lnet/minecraft/class_1297;method_5859(DDD)Vofficial bLcgk;b(DDD)V
-
teleportPassengers
private void teleportPassengers()- Mappings:
Namespace Name Mixin selector named teleportPassengersLnet/minecraft/entity/Entity;teleportPassengers()Vintermediary method_49792Lnet/minecraft/class_1297;method_49792()Vofficial DLcgk;D()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 requestTeleportOffsetLnet/minecraft/entity/Entity;requestTeleportOffset(DDD)Vintermediary method_45166Lnet/minecraft/class_1297;method_45166(DDD)Vofficial cLcgk;c(DDD)V
-
shouldRenderName
public boolean shouldRenderName()Returns whether to render the name of the entity.This returns
truefor players andisCustomNameVisible()for other entities.- Returns:
- whether to render the name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRenderNameLnet/minecraft/entity/Entity;shouldRenderName()Zintermediary method_5733Lnet/minecraft/class_1297;method_5733()Zofficial deLcgk;de()Z
-
onDataTrackerUpdate
- Specified by:
onDataTrackerUpdatein interfaceDataTracked- Mappings:
Namespace Name Mixin selector named onDataTrackerUpdateLnet/minecraft/entity/data/DataTracked;onDataTrackerUpdate(Ljava/util/List;)Vintermediary method_48850Lnet/minecraft/class_9221;method_48850(Ljava/util/List;)Vofficial aLalz;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:
onTrackedDataSetin interfaceDataTracked- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLalz;a(Lalw;)V
-
reinitDimensions
Deprecated.- Mappings:
Namespace Name Mixin selector named reinitDimensionsLnet/minecraft/entity/Entity;reinitDimensions()Vintermediary method_46396Lnet/minecraft/class_1297;method_46396()Vofficial dfLcgk;df()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 calculateDimensionsLnet/minecraft/entity/Entity;calculateDimensions()Vintermediary method_18382Lnet/minecraft/class_1297;method_18382()Vofficial j_Lcgk;j_()V
-
recalculateDimensions
- Mappings:
Namespace Name Mixin selector named recalculateDimensionsLnet/minecraft/entity/Entity;recalculateDimensions(Lnet/minecraft/entity/EntityDimensions;)Zintermediary method_60490Lnet/minecraft/class_1297;method_60490(Lnet/minecraft/class_4048;)Zofficial aLcgk;a(Lcgn;)Z
-
getHorizontalFacing
- Mappings:
Namespace Name Mixin selector named getHorizontalFacingLnet/minecraft/entity/Entity;getHorizontalFacing()Lnet/minecraft/util/math/Direction;intermediary method_5735Lnet/minecraft/class_1297;method_5735()Lnet/minecraft/class_2350;official dgLcgk;dg()Liz;
-
getMovementDirection
- Mappings:
Namespace Name Mixin selector named getMovementDirectionLnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;intermediary method_5755Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;official dhLcgk;dh()Liz;
-
getHoverEvent
Returns the hover event referencing this entity.- Returns:
- the hover event referencing this entity
- Mappings:
Namespace Name Mixin selector named getHoverEventLnet/minecraft/entity/Entity;getHoverEvent()Lnet/minecraft/text/HoverEvent;intermediary method_5769Lnet/minecraft/class_1297;method_5769()Lnet/minecraft/class_2568;official diLcgk;di()Lyo;
-
canBeSpectated
Returns whetherspectatorcan spectate this entity.Spectator players (other than themselves) cannot be spectated.
- Returns:
- whether
spectatorcan spectate this entity - Mappings:
Namespace Name Mixin selector named canBeSpectatedLnet/minecraft/entity/Entity;canBeSpectated(Lnet/minecraft/server/network/ServerPlayerEntity;)Zintermediary method_5680Lnet/minecraft/class_1297;method_5680(Lnet/minecraft/class_3222;)Zofficial aLcgk;a(Laxg;)Z
-
getBoundingBox
- Specified by:
getBoundingBoxin interfaceEntityLike- Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/minecraft/world/entity/EntityLike;getBoundingBox()Lnet/minecraft/util/math/Box;intermediary method_5829Lnet/minecraft/class_5568;method_5829()Lnet/minecraft/class_238;official djLesp;dj()Lfth;
-
setBoundingBox
- Mappings:
Namespace Name Mixin selector named setBoundingBoxLnet/minecraft/entity/Entity;setBoundingBox(Lnet/minecraft/util/math/Box;)Vintermediary method_5857Lnet/minecraft/class_1297;method_5857(Lnet/minecraft/class_238;)Vofficial aLcgk;a(Lfth;)V
-
getEyeHeight
Returns the eye height forpose.- Returns:
- the eye height for
pose - Mappings:
Namespace Name Mixin selector named getEyeHeightLnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;)Fintermediary method_18381Lnet/minecraft/class_1297;method_18381(Lnet/minecraft/class_4050;)Fofficial eLcgk;e(Lchx;)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 getStandingEyeHeightLnet/minecraft/entity/Entity;getStandingEyeHeight()Fintermediary method_5751Lnet/minecraft/class_1297;method_5751()Fofficial dkLcgk;dk()F
-
getStackReference
- Specified by:
getStackReferencein interfaceStackReferenceGetter- Mappings:
Namespace Name Mixin selector named getStackReferenceLnet/minecraft/inventory/StackReferenceGetter;getStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_32318Lnet/minecraft/class_12260;method_32318(I)Lnet/minecraft/class_5630;official a_Lcid;a_(I)Lcic;
-
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 interactAtLnet/minecraft/entity/Entity;interactAt(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5664Lnet/minecraft/class_1297;method_5664(Lnet/minecraft/class_1657;Lnet/minecraft/class_243;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLcgk;a(Lddm;Lftm;Lcdb;)Lcdc;
-
isImmuneToExplosion
Returns whether the entity is immune from explosion knockback and damage.Invisible
ArmorStandEntityand emerging or diggingWardenEntityare immune from explosions.- Returns:
- whether the entity is immune from explosion knockback and damage
- Mappings:
Namespace Name Mixin selector named isImmuneToExplosionLnet/minecraft/entity/Entity;isImmuneToExplosion(Lnet/minecraft/world/explosion/Explosion;)Zintermediary method_5659Lnet/minecraft/class_1297;method_5659(Lnet/minecraft/class_1927;)Zofficial aLcgk;a(Ldwi;)Z
-
onStartedTrackingBy
Called whenplayerstarts tracking this entity.Entities with boss bars like
WitherEntityshould override this to add the player to the boss bar.- Mappings:
Namespace Name Mixin selector named onStartedTrackingByLnet/minecraft/entity/Entity;onStartedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_5837Lnet/minecraft/class_1297;method_5837(Lnet/minecraft/class_3222;)Vofficial dLcgk;d(Laxg;)V
-
onStoppedTrackingBy
Called whenplayerstops tracking this entity.Entities with boss bars like
WitherEntityshould override this to remove the player from the boss bar.- Mappings:
Namespace Name Mixin selector named onStoppedTrackingByLnet/minecraft/entity/Entity;onStoppedTrackingBy(Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_5742Lnet/minecraft/class_1297;method_5742(Lnet/minecraft/class_3222;)Vofficial eLcgk;e(Laxg;)V
-
applyRotation
Appliesrotationto the entity's yaw.- Mappings:
Namespace Name Mixin selector named applyRotationLnet/minecraft/entity/Entity;applyRotation(Lnet/minecraft/util/BlockRotation;)Fintermediary method_5832Lnet/minecraft/class_1297;method_5832(Lnet/minecraft/class_2470;)Fofficial aLcgk;a(Legm;)F
-
applyMirror
Appliesmirrorto the entity's yaw.- Mappings:
Namespace Name Mixin selector named applyMirrorLnet/minecraft/entity/Entity;applyMirror(Lnet/minecraft/util/BlockMirror;)Fintermediary method_5763Lnet/minecraft/class_1297;method_5763(Lnet/minecraft/class_2415;)Fofficial aLcgk;a(Leev;)F
-
getProjectileDeflection
- Mappings:
Namespace Name Mixin selector named getProjectileDeflectionLnet/minecraft/entity/Entity;getProjectileDeflection(Lnet/minecraft/entity/projectile/ProjectileEntity;)Lnet/minecraft/entity/ProjectileDeflection;intermediary method_56071Lnet/minecraft/class_1297;method_56071(Lnet/minecraft/class_1676;)Lnet/minecraft/class_9109;official aLcgk;a(Ldec;)Lded;
-
getControllingPassenger
Returns the passenger in control of this entity, ornullif 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
nullif there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingPassengerLnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;intermediary method_5642Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;official dlLcgk;dl()Lchl;
-
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 hasControllingPassengerLnet/minecraft/entity/Entity;hasControllingPassenger()Zintermediary method_42148Lnet/minecraft/class_1297;method_42148()Zofficial dmLcgk;dm()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 getPassengerListLnet/minecraft/entity/Entity;getPassengerList()Ljava/util/List;intermediary method_5685Lnet/minecraft/class_1297;method_5685()Ljava/util/List;official dnLcgk;dn()Ljava/util/List;
-
getFirstPassenger
Returns the first passenger of the passenger list, ornullif there is no passengers.Such passenger is usually also the the controlling passenger.
- Returns:
- the first passenger of the passenger list,
or
nullif there is no passengers - See Also:
- Mappings:
Namespace Name Mixin selector named getFirstPassengerLnet/minecraft/entity/Entity;getFirstPassenger()Lnet/minecraft/entity/Entity;intermediary method_31483Lnet/minecraft/class_1297;method_31483()Lnet/minecraft/class_1297;official doLcgk;do()Lcgk;
-
hasPassenger
Returns whetherpassengeris a passenger of this entity.- Returns:
- whether
passengeris a passenger of this entity - See Also:
- Mappings:
Namespace Name Mixin selector named hasPassengerLnet/minecraft/entity/Entity;hasPassenger(Lnet/minecraft/entity/Entity;)Zintermediary method_5626Lnet/minecraft/class_1297;method_5626(Lnet/minecraft/class_1297;)Zofficial zLcgk;z(Lcgk;)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 hasPassengerLnet/minecraft/entity/Entity;hasPassenger(Ljava/util/function/Predicate;)Zintermediary method_5703Lnet/minecraft/class_1297;method_5703(Ljava/util/function/Predicate;)Zofficial aLcgk;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 streamIntoPassengersLnet/minecraft/entity/Entity;streamIntoPassengers()Ljava/util/stream/Stream;intermediary method_31484Lnet/minecraft/class_1297;method_31484()Ljava/util/stream/Stream;official ELcgk;E()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:
streamSelfAndPassengersin interfaceEntityLike- See Also:
- Implementation Note:
- The default implementation is not very efficient.
- Mappings:
Namespace Name Mixin selector named streamSelfAndPassengersLnet/minecraft/world/entity/EntityLike;streamSelfAndPassengers()Ljava/util/stream/Stream;intermediary method_24204Lnet/minecraft/class_5568;method_24204()Ljava/util/stream/Stream;official dpLesp;dp()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:
streamPassengersAndSelfin interfaceEntityLike- See Also:
- Implementation Note:
- The default implementation is very costly.
- Mappings:
Namespace Name Mixin selector named streamPassengersAndSelfLnet/minecraft/world/entity/EntityLike;streamPassengersAndSelf()Ljava/util/stream/Stream;intermediary method_31748Lnet/minecraft/class_5568;method_31748()Ljava/util/stream/Stream;official dqLesp;dq()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 getPassengersDeepLnet/minecraft/entity/Entity;getPassengersDeep()Ljava/lang/Iterable;intermediary method_5736Lnet/minecraft/class_1297;method_5736()Ljava/lang/Iterable;official drLcgk;dr()Ljava/lang/Iterable;
-
getPlayerPassengers
public int getPlayerPassengers()- Mappings:
Namespace Name Mixin selector named getPlayerPassengersLnet/minecraft/entity/Entity;getPlayerPassengers()Iintermediary method_54757Lnet/minecraft/class_1297;method_54757()Iofficial dsLcgk;ds()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 hasPlayerRiderLnet/minecraft/entity/Entity;hasPlayerRider()Zintermediary method_5817Lnet/minecraft/class_1297;method_5817()Zofficial dtLcgk;dt()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 getRootVehicleLnet/minecraft/entity/Entity;getRootVehicle()Lnet/minecraft/entity/Entity;intermediary method_5668Lnet/minecraft/class_1297;method_5668()Lnet/minecraft/class_1297;official duLcgk;du()Lcgk;
-
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 isConnectedThroughVehicleLnet/minecraft/entity/Entity;isConnectedThroughVehicle(Lnet/minecraft/entity/Entity;)Zintermediary method_5794Lnet/minecraft/class_1297;method_5794(Lnet/minecraft/class_1297;)Zofficial ALcgk;A(Lcgk;)Z
-
hasPassengerDeep
Returns whetherpassengeris riding this entity or any of its passengers.- Returns:
- whether
passengeris riding this entity or any of its passengers - See Also:
- Mappings:
Namespace Name Mixin selector named hasPassengerDeepLnet/minecraft/entity/Entity;hasPassengerDeep(Lnet/minecraft/entity/Entity;)Zintermediary method_5821Lnet/minecraft/class_1297;method_5821(Lnet/minecraft/class_1297;)Zofficial BLcgk;B(Lcgk;)Z
-
isLogicalSideForUpdatingMovement
public final boolean isLogicalSideForUpdatingMovement()- Mappings:
Namespace Name Mixin selector named isLogicalSideForUpdatingMovementLnet/minecraft/entity/Entity;isLogicalSideForUpdatingMovement()Zintermediary method_66247Lnet/minecraft/class_1297;method_66247()Zofficial dvLcgk;dv()Z
-
isControlledByMainPlayer
protected boolean isControlledByMainPlayer()- Mappings:
Namespace Name Mixin selector named isControlledByMainPlayerLnet/minecraft/entity/Entity;isControlledByMainPlayer()Zintermediary method_66248Lnet/minecraft/class_1297;method_66248()Zofficial dwLcgk;dw()Z
-
isControlledByPlayer
public boolean isControlledByPlayer()- Mappings:
Namespace Name Mixin selector named isControlledByPlayerLnet/minecraft/entity/Entity;isControlledByPlayer()Zintermediary method_65038Lnet/minecraft/class_1297;method_65038()Zofficial aa_Lcgk;aa_()Z
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Mappings:
Namespace Name Mixin selector named canMoveVoluntarilyLnet/minecraft/entity/Entity;canMoveVoluntarily()Zintermediary method_66249Lnet/minecraft/class_1297;method_66249()Zofficial dxLcgk;dx()Z
-
canActVoluntarily
public boolean canActVoluntarily()- Mappings:
Namespace Name Mixin selector named canActVoluntarilyLnet/minecraft/entity/Entity;canActVoluntarily()Zintermediary method_6034Lnet/minecraft/class_1297;method_6034()Zofficial dyLcgk;dy()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 getPassengerDismountOffsetLnet/minecraft/entity/Entity;getPassengerDismountOffset(DDF)Lnet/minecraft/util/math/Vec3d;intermediary method_24826Lnet/minecraft/class_1297;method_24826(DDF)Lnet/minecraft/class_243;official aLcgk;a(DDF)Lftm;
-
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 updatePassengerForDismountLnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;intermediary method_24829Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;official bLcgk;b(Lchl;)Lftm;
-
getVehicle
Returns the entity this entity rides, ornullif there is none.- Returns:
- the entity this entity rides, or
nullif there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getVehicleLnet/minecraft/entity/Entity;getVehicle()Lnet/minecraft/entity/Entity;intermediary method_5854Lnet/minecraft/class_1297;method_5854()Lnet/minecraft/class_1297;official dzLcgk;dz()Lcgk;
-
getControllingVehicle
Returns the entity this entity rides and controls, ornullif there is none.- Returns:
- the entity this entity rides and controls, or
nullif there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingVehicleLnet/minecraft/entity/Entity;getControllingVehicle()Lnet/minecraft/entity/Entity;intermediary method_49694Lnet/minecraft/class_1297;method_49694()Lnet/minecraft/class_1297;official dALcgk;dA()Lcgk;
-
getPistonBehavior
Returns the behavior of the piston for this entity.This is
PistonBehavior.NORMALby default.AreaEffectCloudEntity,MarkerEntity, and markerArmorStandEntityreturnPistonBehavior.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 getPistonBehaviorLnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;intermediary method_5657Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;official n_Lcgk;n_()Lflg;
-
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 getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;official dBLcgk;dB()Lbdb;
-
getBurningDuration
protected int getBurningDuration()- Mappings:
Namespace Name Mixin selector named getBurningDurationLnet/minecraft/entity/Entity;getBurningDuration()Iintermediary method_5676Lnet/minecraft/class_1297;method_5676()Iofficial dCLcgk;dC()I
-
getCommandSource
Returns a command source which represents this entity.- Returns:
- a command source which represents this entity
- Mappings:
Namespace Name Mixin selector named getCommandSourceLnet/minecraft/entity/Entity;getCommandSource(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_5671Lnet/minecraft/class_1297;method_5671(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;official dLcgk;d(Laxf;)Led;
-
lookAt
Changes this entity's pitch and yaw to look attarget.- Mappings:
Namespace Name Mixin selector named lookAtLnet/minecraft/entity/Entity;lookAt(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5702Lnet/minecraft/class_1297;method_5702(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_243;)Vofficial aLcgk;a(Lep$a;Lftm;)V
-
lerpYaw
public float lerpYaw(float tickProgress) - Mappings:
Namespace Name Mixin selector named lerpYawLnet/minecraft/entity/Entity;lerpYaw(F)Fintermediary method_60951Lnet/minecraft/class_1297;method_60951(F)Fofficial tLcgk;t(F)F
-
updateMovementInFluid
- Mappings:
Namespace Name Mixin selector named updateMovementInFluidLnet/minecraft/entity/Entity;updateMovementInFluid(Lnet/minecraft/registry/tag/TagKey;D)Zintermediary method_5692Lnet/minecraft/class_1297;method_5692(Lnet/minecraft/class_6862;D)Zofficial aLcgk;a(Lbef;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 isRegionUnloadedLnet/minecraft/entity/Entity;isRegionUnloaded()Zintermediary method_33724Lnet/minecraft/class_1297;method_33724()Zofficial dDLcgk;dD()Z
-
getFluidHeight
Returns the height of the fluid influidtag.- Returns:
- the height of the fluid in
fluidtag - Mappings:
Namespace Name Mixin selector named getFluidHeightLnet/minecraft/entity/Entity;getFluidHeight(Lnet/minecraft/registry/tag/TagKey;)Dintermediary method_5861Lnet/minecraft/class_1297;method_5861(Lnet/minecraft/class_6862;)Dofficial bLcgk;b(Lbef;)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.4if its standing eye height is larger than0.4; otherwise it returns0.0for 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 getSwimHeightLnet/minecraft/entity/Entity;getSwimHeight()Dintermediary method_29241Lnet/minecraft/class_1297;method_29241()Dofficial dELcgk;dE()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 getWidthLnet/minecraft/entity/Entity;getWidth()Fintermediary method_17681Lnet/minecraft/class_1297;method_17681()Fofficial dFLcgk;dF()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 getHeightLnet/minecraft/entity/Entity;getHeight()Fintermediary method_17682Lnet/minecraft/class_1297;method_17682()Fofficial dGLcgk;dG()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 createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;intermediary method_18002Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;official aLcgk;a(Laxd;)Laay;
-
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 getDimensionsLnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;intermediary method_18377Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;official aLcgk;a(Lchx;)Lcgn;
-
getAttachments
- Mappings:
Namespace Name Mixin selector named getAttachmentsLnet/minecraft/entity/Entity;getAttachments()Lnet/minecraft/entity/EntityAttachments;intermediary method_56072Lnet/minecraft/class_1297;method_56072()Lnet/minecraft/class_9066;official dHLcgk;dH()Lcgm;
-
getEntityPos
- Specified by:
getEntityPosin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getEntityPosLnet/minecraft/util/HeldItemContext;getEntityPos()Lnet/minecraft/util/math/Vec3d;intermediary method_73189Lnet/minecraft/class_11566;method_73189()Lnet/minecraft/class_243;official dILchh;dI()Lftm;
-
getSyncedPos
Returns the position of the entity synced to clients.This is the same as
except for paintings which return the attachment position.invalid reference
#getPos- Returns:
- the position of the entity synced to clients
- See Also:
- Mappings:
Namespace Name Mixin selector named getSyncedPosLnet/minecraft/entity/Entity;getSyncedPos()Lnet/minecraft/util/math/Vec3d;intermediary method_43390Lnet/minecraft/class_1297;method_43390()Lnet/minecraft/class_243;official dJLcgk;dJ()Lftm;
-
getBlockPos
- Specified by:
getBlockPosin interfaceEntityLike- Mappings:
Namespace Name Mixin selector named getBlockPosLnet/minecraft/world/entity/EntityLike;getBlockPos()Lnet/minecraft/util/math/BlockPos;intermediary method_24515Lnet/minecraft/class_5568;method_24515()Lnet/minecraft/class_2338;official dKLesp;dK()Lis;
-
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 getBlockStateAtPosLnet/minecraft/entity/Entity;getBlockStateAtPos()Lnet/minecraft/block/BlockState;intermediary method_55667Lnet/minecraft/class_1297;method_55667()Lnet/minecraft/class_2680;official dLLcgk;dL()Leoh;
-
getChunkPos
Returns the chunk position of the entity.- Returns:
- the chunk position of the entity
- Mappings:
Namespace Name Mixin selector named getChunkPosLnet/minecraft/entity/Entity;getChunkPos()Lnet/minecraft/util/math/ChunkPos;intermediary method_31476Lnet/minecraft/class_1297;method_31476()Lnet/minecraft/class_1923;official dMLcgk;dM()Ldvu;
-
getVelocity
- Mappings:
Namespace Name Mixin selector named getVelocityLnet/minecraft/entity/Entity;getVelocity()Lnet/minecraft/util/math/Vec3d;intermediary method_18798Lnet/minecraft/class_1297;method_18798()Lnet/minecraft/class_243;official dNLcgk;dN()Lftm;
-
setVelocity
- Mappings:
Namespace Name Mixin selector named setVelocityLnet/minecraft/entity/Entity;setVelocity(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_18799Lnet/minecraft/class_1297;method_18799(Lnet/minecraft/class_243;)Vofficial kLcgk;k(Lftm;)V
-
addVelocityInternal
- Mappings:
Namespace Name Mixin selector named addVelocityInternalLnet/minecraft/entity/Entity;addVelocityInternal(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_45319Lnet/minecraft/class_1297;method_45319(Lnet/minecraft/class_243;)Vofficial lLcgk;l(Lftm;)V
-
setVelocity
public void setVelocity(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named setVelocityLnet/minecraft/entity/Entity;setVelocity(DDD)Vintermediary method_18800Lnet/minecraft/class_1297;method_18800(DDD)Vofficial mLcgk;m(DDD)V
-
getBlockX
public final int getBlockX()- Mappings:
Namespace Name Mixin selector named getBlockXLnet/minecraft/entity/Entity;getBlockX()Iintermediary method_31477Lnet/minecraft/class_1297;method_31477()Iofficial dOLcgk;dO()I
-
getX
public final double getX()- Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/entity/Entity;getX()Dintermediary method_23317Lnet/minecraft/class_1297;method_23317()Dofficial dPLcgk;dP()D
-
getBodyX
public double getBodyX(double widthScale) - Mappings:
Namespace Name Mixin selector named getBodyXLnet/minecraft/entity/Entity;getBodyX(D)Dintermediary method_23316Lnet/minecraft/class_1297;method_23316(D)Dofficial dLcgk;d(D)D
-
getParticleX
public double getParticleX(double widthScale) - Mappings:
Namespace Name Mixin selector named getParticleXLnet/minecraft/entity/Entity;getParticleX(D)Dintermediary method_23322Lnet/minecraft/class_1297;method_23322(D)Dofficial eLcgk;e(D)D
-
getBlockY
public final int getBlockY()- Mappings:
Namespace Name Mixin selector named getBlockYLnet/minecraft/entity/Entity;getBlockY()Iintermediary method_31478Lnet/minecraft/class_1297;method_31478()Iofficial dQLcgk;dQ()I
-
getY
public final double getY()- Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/entity/Entity;getY()Dintermediary method_23318Lnet/minecraft/class_1297;method_23318()Dofficial dRLcgk;dR()D
-
getBodyY
public double getBodyY(double heightScale) - Mappings:
Namespace Name Mixin selector named getBodyYLnet/minecraft/entity/Entity;getBodyY(D)Dintermediary method_23323Lnet/minecraft/class_1297;method_23323(D)Dofficial fLcgk;f(D)D
-
getRandomBodyY
public double getRandomBodyY()- Mappings:
Namespace Name Mixin selector named getRandomBodyYLnet/minecraft/entity/Entity;getRandomBodyY()Dintermediary method_23319Lnet/minecraft/class_1297;method_23319()Dofficial dSLcgk;dS()D
-
getEyeY
public double getEyeY()- Mappings:
Namespace Name Mixin selector named getEyeYLnet/minecraft/entity/Entity;getEyeY()Dintermediary method_23320Lnet/minecraft/class_1297;method_23320()Dofficial dTLcgk;dT()D
-
getBlockZ
public final int getBlockZ()- Mappings:
Namespace Name Mixin selector named getBlockZLnet/minecraft/entity/Entity;getBlockZ()Iintermediary method_31479Lnet/minecraft/class_1297;method_31479()Iofficial dULcgk;dU()I
-
getZ
public final double getZ()- Mappings:
Namespace Name Mixin selector named getZLnet/minecraft/entity/Entity;getZ()Dintermediary method_23321Lnet/minecraft/class_1297;method_23321()Dofficial dVLcgk;dV()D
-
getBodyZ
public double getBodyZ(double widthScale) - Mappings:
Namespace Name Mixin selector named getBodyZLnet/minecraft/entity/Entity;getBodyZ(D)Dintermediary method_23324Lnet/minecraft/class_1297;method_23324(D)Dofficial gLcgk;g(D)D
-
getParticleZ
public double getParticleZ(double widthScale) - Mappings:
Namespace Name Mixin selector named getParticleZLnet/minecraft/entity/Entity;getParticleZ(D)Dintermediary method_23325Lnet/minecraft/class_1297;method_23325(D)Dofficial hLcgk;h(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 setPosLnet/minecraft/entity/Entity;setPos(DDD)Vintermediary method_23327Lnet/minecraft/class_1297;method_23327(DDD)Vofficial nLcgk;n(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 checkDespawnLnet/minecraft/entity/Entity;checkDespawn()Vintermediary method_5982Lnet/minecraft/class_1297;method_5982()Vofficial dWLcgk;dW()V
-
getHeldQuadLeashOffsets
- Mappings:
Namespace Name Mixin selector named getHeldQuadLeashOffsetsLnet/minecraft/entity/Entity;getHeldQuadLeashOffsets()[Lnet/minecraft/util/math/Vec3d;intermediary method_70985Lnet/minecraft/class_1297;method_70985()[Lnet/minecraft/class_243;official dXLcgk;dX()[Lftm;
-
hasQuadLeashAttachmentPoints
public boolean hasQuadLeashAttachmentPoints()- Mappings:
Namespace Name Mixin selector named hasQuadLeashAttachmentPointsLnet/minecraft/entity/Entity;hasQuadLeashAttachmentPoints()Zintermediary method_70986Lnet/minecraft/class_1297;method_70986()Zofficial dYLcgk;dY()Z
-
tickHeldLeash
- Mappings:
Namespace Name Mixin selector named tickHeldLeashLnet/minecraft/entity/Entity;tickHeldLeash(Lnet/minecraft/entity/Leashable;)Vintermediary method_70980Lnet/minecraft/class_1297;method_70980(Lnet/minecraft/class_9817;)Vofficial aLcgk;a(Lchj;)V
-
onHeldLeashUpdate
- Mappings:
Namespace Name Mixin selector named onHeldLeashUpdateLnet/minecraft/entity/Entity;onHeldLeashUpdate(Lnet/minecraft/entity/Leashable;)Vintermediary method_70982Lnet/minecraft/class_1297;method_70982(Lnet/minecraft/class_9817;)Vofficial bLcgk;b(Lchj;)V
-
getLeashPos
Returns the position of the leash this entity holds.This is different from
; this method is called on the entity that holds the leash.invalid reference
#getLeashOffset- Returns:
- the position of the leash this entity holds
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashPosLnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;intermediary method_30951Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;official uLcgk;u(F)Lftm;
-
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 onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vofficial aLcgk;a(Ladc;)V
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornullif 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
MobEntityhandles the spawn eggs.ItemFrameEntityinstead returns the copy of the stack held in the frame.- Returns:
- the stack for creative "pick block" functionality, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;official dZLcgk;dZ()Ldlt;
-
setInPowderSnow
public void setInPowderSnow(boolean inPowderSnow) - Mappings:
Namespace Name Mixin selector named setInPowderSnowLnet/minecraft/entity/Entity;setInPowderSnow(Z)Vintermediary method_32319Lnet/minecraft/class_1297;method_32319(Z)Vofficial qLcgk;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_TYPEStag. In addition to this,LivingEntitycannot be frozen if they are spectator or if they wear an item insideItemTags.FREEZE_IMMUNE_WEARABLEStag. - Mappings:
Namespace Name Mixin selector named canFreezeLnet/minecraft/entity/Entity;canFreeze()Zintermediary method_32316Lnet/minecraft/class_1297;method_32316()Zofficial eaLcgk;ea()Z
-
shouldEscapePowderSnow
public boolean shouldEscapePowderSnow()Returns whether the entity should escape from powder snow.This returns
trueif 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 shouldEscapePowderSnowLnet/minecraft/entity/Entity;shouldEscapePowderSnow()Zintermediary method_40071Lnet/minecraft/class_1297;method_40071()Zofficial ebLcgk;eb()Z
-
getYaw
public float getYaw()- Mappings:
Namespace Name Mixin selector named getYawLnet/minecraft/entity/Entity;getYaw()Fintermediary method_36454Lnet/minecraft/class_1297;method_36454()Fofficial ecLcgk;ec()F
-
getBodyYaw
public float getBodyYaw()- Specified by:
getBodyYawin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getBodyYawLnet/minecraft/util/HeldItemContext;getBodyYaw()Fintermediary method_73188Lnet/minecraft/class_11566;method_73188()Fofficial edLchh;ed()F
-
setYaw
public void setYaw(float yaw) - Mappings:
Namespace Name Mixin selector named setYawLnet/minecraft/entity/Entity;setYaw(F)Vintermediary method_36456Lnet/minecraft/class_1297;method_36456(F)Vofficial vLcgk;v(F)V
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector named getPitchLnet/minecraft/entity/Entity;getPitch()Fintermediary method_36455Lnet/minecraft/class_1297;method_36455()Fofficial eeLcgk;ee()F
-
setPitch
public void setPitch(float pitch) - Mappings:
Namespace Name Mixin selector named setPitchLnet/minecraft/entity/Entity;setPitch(F)Vintermediary method_36457Lnet/minecraft/class_1297;method_36457(F)Vofficial wLcgk;w(F)V
-
canSprintAsVehicle
public boolean canSprintAsVehicle()- Mappings:
Namespace Name Mixin selector named canSprintAsVehicleLnet/minecraft/entity/Entity;canSprintAsVehicle()Zintermediary method_48155Lnet/minecraft/class_1297;method_48155()Zofficial efLcgk;ef()Z
-
getStepHeight
public float getStepHeight()- Mappings:
Namespace Name Mixin selector named getStepHeightLnet/minecraft/entity/Entity;getStepHeight()Fintermediary method_49476Lnet/minecraft/class_1297;method_49476()Fofficial egLcgk;eg()F
-
onExplodedBy
- Mappings:
Namespace Name Mixin selector named onExplodedByLnet/minecraft/entity/Entity;onExplodedBy(Lnet/minecraft/entity/Entity;)Vintermediary method_56918Lnet/minecraft/class_1297;method_56918(Lnet/minecraft/class_1297;)Vofficial aLcgk;a(Lcgk;)V
-
isRemoved
public final boolean isRemoved()- Specified by:
isRemovedin interfaceUniquelyIdentifiable- Mappings:
Namespace Name Mixin selector named isRemovedLnet/minecraft/world/entity/UniquelyIdentifiable;isRemoved()Zintermediary method_31481Lnet/minecraft/class_10599;method_31481()Zofficial ehLetd;eh()Z
-
getRemovalReason
Returns the reason for the entity's removal, ornullif it is not removed.- Returns:
- the reason for the entity's removal, or
nullif it is not removed - Mappings:
Namespace Name Mixin selector named getRemovalReasonLnet/minecraft/entity/Entity;getRemovalReason()Lnet/minecraft/entity/Entity$RemovalReason;intermediary method_35049Lnet/minecraft/class_1297;method_35049()Lnet/minecraft/class_1297$class_5529;official eiLcgk;ei()Lcgk$e;
-
setRemoved
- Specified by:
setRemovedin interfaceEntityLike- Mappings:
Namespace Name Mixin selector named setRemovedLnet/minecraft/world/entity/EntityLike;setRemoved(Lnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_31745Lnet/minecraft/class_5568;method_31745(Lnet/minecraft/class_1297$class_5529;)Vofficial cLesp;c(Lcgk$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 unsetRemovedLnet/minecraft/entity/Entity;unsetRemoved()Vintermediary method_31482Lnet/minecraft/class_1297;method_31482()Vofficial ejLcgk;ej()V
-
setChangeListener
- Specified by:
setChangeListenerin interfaceEntityLike- Mappings:
Namespace Name Mixin selector named setChangeListenerLnet/minecraft/world/entity/EntityLike;setChangeListener(Lnet/minecraft/world/entity/EntityChangeListener;)Vintermediary method_31744Lnet/minecraft/class_5568;method_31744(Lnet/minecraft/class_5569;)Vofficial aLesp;a(Lesq;)V
-
shouldSave
public boolean shouldSave()- Specified by:
shouldSavein interfaceEntityLike- Mappings:
Namespace Name Mixin selector named shouldSaveLnet/minecraft/world/entity/EntityLike;shouldSave()Zintermediary method_31746Lnet/minecraft/class_5568;method_31746()Zofficial ekLesp;ek()Z
-
isPlayer
public boolean isPlayer()- Specified by:
isPlayerin interfaceEntityLike- Mappings:
Namespace Name Mixin selector named isPlayerLnet/minecraft/world/entity/EntityLike;isPlayer()Zintermediary method_31747Lnet/minecraft/class_5568;method_31747()Zofficial elLesp;el()Z
-
canModifyAt
Returns whether the entity can modify the world atpos.This returns
truefor most entities. Players checkto prevent them from modifying entities in the spawn protection or outside the world border.invalid reference
World#canPlayerModifyAtProjectileEntitydelegates it to the owner if the owner is a player; if the owner is a non-player entity, this returns the value of, and ownerless projectiles are always allowed to modify the world.invalid reference
net.minecraft.world.GameRules#DO_MOB_GRIEFING- Returns:
- whether the entity can modify the world at
pos - See Also:
- Mappings:
Namespace Name Mixin selector named canModifyAtLnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_36971Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Zofficial cLcgk;c(Laxf;Lis;)Z
-
isFlyingVehicle
public boolean isFlyingVehicle()- Mappings:
Namespace Name Mixin selector named isFlyingVehicleLnet/minecraft/entity/Entity;isFlyingVehicle()Zintermediary method_70987Lnet/minecraft/class_1297;method_70987()Zofficial emLcgk;em()Z
-
getEntityWorld
- Specified by:
getEntityWorldin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getEntityWorldLnet/minecraft/util/HeldItemContext;getEntityWorld()Lnet/minecraft/world/World;intermediary method_73183Lnet/minecraft/class_11566;method_73183()Lnet/minecraft/class_1937;official aoLchh;ao()Ldwo;
-
setWorld
- Mappings:
Namespace Name Mixin selector named setWorldLnet/minecraft/entity/Entity;setWorld(Lnet/minecraft/world/World;)Vintermediary method_51502Lnet/minecraft/class_1297;method_51502(Lnet/minecraft/class_1937;)Vofficial aLcgk;a(Ldwo;)V
-
getDamageSources
- Mappings:
Namespace Name Mixin selector named getDamageSourcesLnet/minecraft/entity/Entity;getDamageSources()Lnet/minecraft/entity/damage/DamageSources;intermediary method_48923Lnet/minecraft/class_1297;method_48923()Lnet/minecraft/class_8109;official enLcgk;en()Lcey;
-
getRegistryManager
- Mappings:
Namespace Name Mixin selector named getRegistryManagerLnet/minecraft/entity/Entity;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;intermediary method_56673Lnet/minecraft/class_1297;method_56673()Lnet/minecraft/class_5455;official eoLcgk;eo()Ljr;
-
lerpPosAndRotation
protected void lerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch) - Mappings:
Namespace Name Mixin selector named lerpPosAndRotationLnet/minecraft/entity/Entity;lerpPosAndRotation(IDDDDD)Vintermediary method_52532Lnet/minecraft/class_1297;method_52532(IDDDDD)Vofficial aLcgk;a(IDDDDD)V
-
getRandom
- Mappings:
Namespace Name Mixin selector named getRandomLnet/minecraft/entity/Entity;getRandom()Lnet/minecraft/util/math/random/Random;intermediary method_59922Lnet/minecraft/class_1297;method_59922()Lnet/minecraft/class_5819;official epLcgk;ep()Lbgr;
-
getMovement
- Mappings:
Namespace Name Mixin selector named getMovementLnet/minecraft/entity/Entity;getMovement()Lnet/minecraft/util/math/Vec3d;intermediary method_60478Lnet/minecraft/class_1297;method_60478()Lnet/minecraft/class_243;official agLcgk;ag()Lftm;
-
getKineticAttackMovement
- Mappings:
Namespace Name Mixin selector named getKineticAttackMovementLnet/minecraft/entity/Entity;getKineticAttackMovement()Lnet/minecraft/util/math/Vec3d;intermediary method_76333Lnet/minecraft/class_1297;method_76333()Lnet/minecraft/class_243;official ahLcgk;ah()Lftm;
-
getWeaponStack
- Mappings:
Namespace Name Mixin selector named getWeaponStackLnet/minecraft/entity/Entity;getWeaponStack()Lnet/minecraft/item/ItemStack;intermediary method_59958Lnet/minecraft/class_1297;method_59958()Lnet/minecraft/class_1799;official eqLcgk;eq()Ldlt;
-
getLootTableKey
- Mappings:
Namespace Name Mixin selector named getLootTableKeyLnet/minecraft/entity/Entity;getLootTableKey()Ljava/util/Optional;intermediary method_5991Lnet/minecraft/class_1297;method_5991()Ljava/util/Optional;official erLcgk;er()Ljava/util/Optional;
-
copyComponentsFrom
- Mappings:
Namespace Name Mixin selector named copyComponentsFromLnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_66649Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)Vofficial aLcgk;a(Lkd;)V
-
copyComponentsFrom
- Mappings:
Namespace Name Mixin selector named copyComponentsFromLnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/item/ItemStack;)Vintermediary method_66652Lnet/minecraft/class_1297;method_66652(Lnet/minecraft/class_1799;)Vofficial cLcgk;c(Ldlt;)V
-
get
- Specified by:
getin interfaceComponentsAccess- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;intermediary method_58694Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;official aLkd;a(Lkh;)Ljava/lang/Object;
-
castComponentValue
@Contract("_,!null->!null;_,_->_") protected static <T> @Nullable T castComponentValue(ComponentType<T> type, @Nullable Object value) - Mappings:
Namespace Name Mixin selector named castComponentValueLnet/minecraft/entity/Entity;castComponentValue(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Ljava/lang/Object;intermediary method_66651Lnet/minecraft/class_1297;method_66651(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;official cLcgk;c(Lkh;Ljava/lang/Object;)Ljava/lang/Object;
-
setComponent
- Mappings:
Namespace Name Mixin selector named setComponentLnet/minecraft/entity/Entity;setComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Vintermediary method_66653Lnet/minecraft/class_1297;method_66653(Lnet/minecraft/class_9331;Ljava/lang/Object;)Vofficial dLcgk;d(Lkh;Ljava/lang/Object;)V
-
setApplicableComponent
- Mappings:
Namespace Name Mixin selector named setApplicableComponentLnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Zintermediary method_66654Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Zofficial bLcgk;b(Lkh;Ljava/lang/Object;)Z
-
copyComponentFrom
- Mappings:
Namespace Name Mixin selector named copyComponentFromLnet/minecraft/entity/Entity;copyComponentFrom(Lnet/minecraft/component/ComponentsAccess;Lnet/minecraft/component/ComponentType;)Zintermediary method_66650Lnet/minecraft/class_1297;method_66650(Lnet/minecraft/class_9473;Lnet/minecraft/class_9331;)Zofficial aLcgk;a(Lkd;Lkh;)Z
-
getErrorReporterContext
- Mappings:
Namespace Name Mixin selector named getErrorReporterContextLnet/minecraft/entity/Entity;getErrorReporterContext()Lnet/minecraft/util/ErrorReporter$Context;intermediary method_71370Lnet/minecraft/class_1297;method_71370()Lnet/minecraft/class_8942$class_11336;official esLcgk;es()Lbgp$f;
-
registerTracking
- Specified by:
registerTrackingin interfaceDebugTrackable- Mappings:
Namespace Name Mixin selector named registerTrackingLnet/minecraft/world/debug/DebugTrackable;registerTracking(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/debug/DebugTrackable$Tracker;)Vintermediary method_74589Lnet/minecraft/class_12023;method_74589(Lnet/minecraft/class_3218;Lnet/minecraft/class_12023$class_12024;)Vofficial aLbxh;a(Laxf;Lbxh$a;)V
-