Class PlayerEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Direct Known Subclasses:
AbstractClientPlayerEntity
,ServerPlayerEntity
- Mappings:
Namespace Name named net/minecraft/entity/player/PlayerEntity
intermediary net/minecraft/class_1657
official cml
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
A reason why a player cannot start sleeping.Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason, Entity.TeleportTargetSupplier
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PlayerAbilities
protected int
private static final TrackedData
<Float> double
double
double
protected float
static final float
static final Arm
protected int
protected EnderChestInventory
int
int
float
static final int
static final int
static final int
static final int
static final float
static final float
static final float
static final int
static final float
static final float
static final int
static final int
protected final float
private final com.mojang.authlib.GameProfile
protected HungerManager
boolean
(package private) final PlayerInventory
protected boolean
private final ItemCooldownManager
private int
protected static final TrackedData
<NbtCompound> private static final Logger
protected static final TrackedData
<Byte> protected static final TrackedData
<Byte> final PlayerScreenHandler
private static final Map
<EntityPose, EntityDimensions> double
double
double
float
private boolean
protected static final TrackedData
<NbtCompound> private static final TrackedData
<Integer> private ItemStack
private long
private int
static final EntityDimensions
float
int
static final Vec3d
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorDescriptionPlayerEntity
(World world, BlockPos pos, float yaw, com.mojang.authlib.GameProfile gameProfile) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCritParticles
(Entity target) void
addEnchantedHitParticles
(Entity target) void
addExhaustion
(float exhaustion) void
addExperience
(int experience) void
addExperienceLevels
(int levels) void
addScore
(int score) boolean
addShoulderEntity
(NbtCompound entityNbt) private MutableText
addTellClickEvent
(MutableText component) protected Vec3d
adjustMovementForSneaking
(Vec3d movement, MovementType type) void
animateDamage
(float yaw) Called on the client to animate the entity's damage (the wobble).protected void
applyDamage
(DamageSource source, float amount) void
applyEnchantmentCosts
(ItemStack enchantedItem, int experienceLevels) void
protected void
attackLivingEntity
(LivingEntity target) boolean
protected boolean
canChangeIntoPose
(EntityPose pose) boolean
canConsume
(boolean ignoreHunger) boolean
boolean
boolean
canHarvest
(BlockState state) Determines whether the player is able to harvest drops from the specified block state.boolean
canInteractWithBlockAt
(BlockPos pos, double additionalRange) Returns whether the player can interact with block atpos
.boolean
canInteractWithEntity
(Entity entity, double additionalRange) Returns whether the player can interact withentity
.boolean
canInteractWithEntityIn
(Box box, double additionalRange) Returns whether the player can interact with entity whose bounding box isbox
.boolean
boolean
canPlaceOn
(BlockPos pos, Direction facing, ItemStack stack) boolean
Returns whether this player has been sleeping long enough to count towards resetting the time of day and weather of the server.boolean
boolean
boolean
canUseSlot
(EquipmentSlot slot) boolean
void
protected boolean
protected void
Closes the currently open handled screen.private void
collideWithEntity
(Entity entity) protected ItemCooldownManager
boolean
damage
(DamageSource source, float amount) Applies a damage to this entity.protected void
damageArmor
(DamageSource source, float amount) protected void
damageHelmet
(DamageSource source, float amount) protected void
damageShield
(float amount) void
void
Dismounts the vehicle if present.protected boolean
doesNotSuffocate
(BlockPos pos) protected void
protected void
private void
dropShoulderEntity
(NbtCompound entityNbt) eatFood
(World world, ItemStack stack, FoodComponent foodComponent) void
equipStack
(EquipmentSlot slot, ItemStack stack) float
float
getAttackCooldownProgress
(float baseTime) float
getBaseDimensions
(EntityPose pose) float
getBlockBreakingSpeed
(BlockState block) double
protected int
protected float
getDamageAgainst
(Entity target, float baseDamage, DamageSource damageSource) float
protected SoundEvent
int
Returns the entity's default portal cooldown.Returns the display name of this object.int
double
com.mojang.authlib.GameProfile
protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) getLeashPos
(float delta) Returns the position of the leash this entity holds.float
getLuck()
int
Returns how long entities can be inside the nether portal without teleporting, in ticks.protected float
Returns the maximum rotation of the head relative to the body in degrees.protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.float
getName()
Returns the name of this object.Returns the name uniquely identifying the score holder.int
protected float
getPoses()
getProjectileType
(ItemStack stack) int
getScore()
int
Returns the sound category for sounds from this entity.protected SoundEvent
getStackReference
(int mappedIndex) Obtains a stack reference to be modified.protected SoundEvent
protected float
private ItemStack
protected int
Called when this entity is killed and returns the amount of experience to drop.boolean
giveItemStack
(ItemStack stack) boolean
handleFallDamage
(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.boolean
void
increaseStat
(Stat<?> stat, int amount) void
increaseStat
(Identifier stat, int amount) void
incrementStat
(Stat<?> stat) void
incrementStat
(Identifier stat) protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected boolean
isArmorSlot
(EquipmentSlot slot) boolean
isBlockBreakingRestricted
(World world, BlockPos pos, GameMode gameMode) abstract boolean
Returns whether this player is in creative mode.boolean
protected boolean
boolean
boolean
isInvulnerableTo
(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource
.boolean
boolean
isPartVisible
(PlayerModelPart modelPart) boolean
isPlayer()
boolean
Returns whether the entity is pushed by fluids.abstract boolean
Returns whether the entity is a spectator.boolean
Returns whether the entity is swimming.boolean
void
jump()
int
lockRecipes
(Collection<RecipeEntry<?>> recipes) private boolean
method_30263
(float float2) private boolean
method_59818
(double double2, double double3, float float2) void
onDeath
(DamageSource damageSource) protected void
Runs closing tasks for the current screen handler and sets it to theplayerScreenHandler
.boolean
onKilledOther
(ServerWorld world, LivingEntity other) Called when this entity killsother
.void
onPickupSlotClick
(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot action
in a screen handler.void
onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) protected void
void
openCommandBlockMinecartScreen
(CommandBlockExecutor commandBlockExecutor) void
openCommandBlockScreen
(CommandBlockBlockEntity commandBlock) void
openEditSignScreen
(SignBlockEntity sign, boolean front) void
openHorseInventory
(AbstractHorseEntity horse, Inventory inventory) void
openJigsawScreen
(JigsawBlockEntity jigsaw) void
openStructureBlockScreen
(StructureBlockBlockEntity structureBlock) void
playSound
(SoundEvent sound, float volume, float pitch) void
playSoundToPlayer
(SoundEvent sound, SoundCategory category, float volume, float pitch) Playssound
to this player only.protected void
playStepSound
(BlockPos pos, BlockState state) void
Reads custom data fromnbt
.void
remove
(Entity.RemovalReason reason) Removes the entity.void
void
void
void
void
sendMessage
(Text message, boolean overlay) Adds a message to this player's HUD.void
sendTradeOffers
(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) protected void
setAbsorptionAmountUnclamped
(float absorptionAmount) void
setFireTicks
(int fireTicks) Sets the entity on fire forticks
ticks.void
setLastDeathPos
(Optional<GlobalPos> lastDeathPos) void
setMainArm
(Arm arm) void
setReducedDebugInfo
(boolean reducedDebugInfo) void
setScore
(int score) protected void
setShoulderEntityLeft
(NbtCompound entityNbt) protected void
setShoulderEntityRight
(NbtCompound entityNbt) protected boolean
Returns if this entity may always drop experience, skipping any other checks.boolean
boolean
boolean
shouldDamagePlayer
(PlayerEntity player) protected boolean
boolean
boolean
Returns whether to render the name of the entity.boolean
boolean
void
slowMovement
(BlockState state, Vec3d multiplier) CallsEntity.onLanding()
and slows this entity.void
void
void
protected void
takeShieldHit
(LivingEntity attacker) void
tick()
Ticks this entity.void
protected void
void
void
Allows you to do certain speed and velocity calculations.com.mojang.datafixers.util.Either
<PlayerEntity.SleepFailureReason, Unit> Tries to start sleeping on a block.int
unlockRecipes
(Collection<RecipeEntry<?>> recipes) void
unlockRecipes
(List<Identifier> recipes) private void
protected void
private void
updateShoulderEntity
(@Nullable NbtCompound entityNbt) void
private void
protected boolean
void
Called when the player uses (defaults to right click) a writable or written book item.void
useRiptide
(int riptideTicks, float riptideAttackDamage, ItemStack stack) protected void
void
wakeUp()
Wakes this entity up.void
wakeUp
(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, baseTick, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTarget, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageEquipment, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropEquipment, dropLoot, dropXp, endCombat, enterCombat, fall, getActiveHand, getActiveItem, getActiveStatusEffects, getAllArmorItems, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getLootTable, getLootTableSeed, getMainHandStack, getMaxAbsorption, getMaxHealth, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPassengerRidingPos, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVisibilityBoundingBox, getXpToDrop, getYaw, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTarget, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, lerpHeadYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onSpawnPacket, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playHurtSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldDropLoot, shouldDropXp, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swimUpward, swingHand, swingHand, takeKnockback, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiptide, tickStatusEffects, tiltScreen, triggerItemPickedUpByEntityCriteria, tryAttack, tryEatFood, turnHead, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canMoveVoluntarily, canStartRiding, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerNearestTo, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/player/PlayerEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_38197
Lnet/minecraft/class_1657;field_38197:Lorg/slf4j/Logger;
official b
Lcml;b:Lorg/slf4j/Logger;
-
DEFAULT_MAIN_ARM
- Mappings:
Namespace Name Mixin selector named DEFAULT_MAIN_ARM
Lnet/minecraft/entity/player/PlayerEntity;DEFAULT_MAIN_ARM:Lnet/minecraft/util/Arm;
intermediary field_46174
Lnet/minecraft/class_1657;field_46174:Lnet/minecraft/class_1306;
official bI
Lcml;bI:Lbsw;
-
field_46175
public static final int field_46175- See Also:
- Mappings:
Namespace Name Mixin selector named field_46175
Lnet/minecraft/entity/player/PlayerEntity;field_46175:I
intermediary field_46175
Lnet/minecraft/class_1657;field_46175:I
official bJ
Lcml;bJ:I
-
field_30644
public static final int field_30644- See Also:
- Mappings:
Namespace Name Mixin selector named field_30644
Lnet/minecraft/entity/player/PlayerEntity;field_30644:I
intermediary field_30644
Lnet/minecraft/class_1657;field_30644:I
official bK
Lcml;bK:I
-
field_30645
public static final int field_30645- See Also:
- Mappings:
Namespace Name Mixin selector named field_30645
Lnet/minecraft/entity/player/PlayerEntity;field_30645:I
intermediary field_30645
Lnet/minecraft/class_1657;field_30645:I
official bL
Lcml;bL:I
-
field_30646
public static final int field_30646- See Also:
- Mappings:
Namespace Name Mixin selector named field_30646
Lnet/minecraft/entity/player/PlayerEntity;field_30646:I
intermediary field_30646
Lnet/minecraft/class_1657;field_30646:I
official bM
Lcml;bM:I
-
field_30647
public static final int field_30647- See Also:
- Mappings:
Namespace Name Mixin selector named field_30647
Lnet/minecraft/entity/player/PlayerEntity;field_30647:I
intermediary field_30647
Lnet/minecraft/class_1657;field_30647:I
official bN
Lcml;bN:I
-
field_49734
public static final int field_49734- See Also:
- Mappings:
Namespace Name Mixin selector named field_49734
Lnet/minecraft/entity/player/PlayerEntity;field_49734:I
intermediary field_49734
Lnet/minecraft/class_1657;field_49734:I
official bO
Lcml;bO:I
-
field_49735
public static final int field_49735- See Also:
- Mappings:
Namespace Name Mixin selector named field_49735
Lnet/minecraft/entity/player/PlayerEntity;field_49735:I
intermediary field_49735
Lnet/minecraft/class_1657;field_49735:I
official bP
Lcml;bP:I
-
field_47819
public static final float field_47819- See Also:
- Mappings:
Namespace Name Mixin selector named field_47819
Lnet/minecraft/entity/player/PlayerEntity;field_47819:F
intermediary field_47819
Lnet/minecraft/class_1657;field_47819:F
official bQ
Lcml;bQ:F
-
field_47820
public static final float field_47820- See Also:
- Mappings:
Namespace Name Mixin selector named field_47820
Lnet/minecraft/entity/player/PlayerEntity;field_47820:F
intermediary field_47820
Lnet/minecraft/class_1657;field_47820:F
official bR
Lcml;bR:F
-
field_30648
public static final float field_30648- See Also:
- Mappings:
Namespace Name Mixin selector named field_30648
Lnet/minecraft/entity/player/PlayerEntity;field_30648:F
intermediary field_30648
Lnet/minecraft/class_1657;field_30648:F
official bS
Lcml;bS:F
-
field_30649
public static final float field_30649- See Also:
- Mappings:
Namespace Name Mixin selector named field_30649
Lnet/minecraft/entity/player/PlayerEntity;field_30649:F
intermediary field_30649
Lnet/minecraft/class_1657;field_30649:F
official bT
Lcml;bT:F
-
field_30650
public static final float field_30650- See Also:
- Mappings:
Namespace Name Mixin selector named field_30650
Lnet/minecraft/entity/player/PlayerEntity;field_30650:F
intermediary field_30650
Lnet/minecraft/class_1657;field_30650:F
official bU
Lcml;bU:F
-
DEFAULT_EYE_HEIGHT
public static final float DEFAULT_EYE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_EYE_HEIGHT
Lnet/minecraft/entity/player/PlayerEntity;DEFAULT_EYE_HEIGHT:F
intermediary field_30651
Lnet/minecraft/class_1657;field_30651:F
official bV
Lcml;bV:F
-
VEHICLE_ATTACHMENT_POS
- Mappings:
Namespace Name Mixin selector named VEHICLE_ATTACHMENT_POS
Lnet/minecraft/entity/player/PlayerEntity;VEHICLE_ATTACHMENT_POS:Lnet/minecraft/util/math/Vec3d;
intermediary field_47821
Lnet/minecraft/class_1657;field_47821:Lnet/minecraft/class_243;
official bW
Lcml;bW:Lewh;
-
STANDING_DIMENSIONS
- Mappings:
Namespace Name Mixin selector named STANDING_DIMENSIONS
Lnet/minecraft/entity/player/PlayerEntity;STANDING_DIMENSIONS:Lnet/minecraft/entity/EntityDimensions;
intermediary field_18135
Lnet/minecraft/class_1657;field_18135:Lnet/minecraft/class_4048;
official bX
Lcml;bX:Lbsk;
-
POSE_DIMENSIONS
- Mappings:
Namespace Name Mixin selector named POSE_DIMENSIONS
Lnet/minecraft/entity/player/PlayerEntity;POSE_DIMENSIONS:Ljava/util/Map;
intermediary field_18134
Lnet/minecraft/class_1657;field_18134:Ljava/util/Map;
official c
Lcml;c:Ljava/util/Map;
-
ABSORPTION_AMOUNT
- Mappings:
Namespace Name Mixin selector named ABSORPTION_AMOUNT
Lnet/minecraft/entity/player/PlayerEntity;ABSORPTION_AMOUNT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7491
Lnet/minecraft/class_1657;field_7491:Lnet/minecraft/class_2940;
official d
Lcml;d:Lajp;
-
SCORE
- Mappings:
Namespace Name Mixin selector named SCORE
Lnet/minecraft/entity/player/PlayerEntity;SCORE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7511
Lnet/minecraft/class_1657;field_7511:Lnet/minecraft/class_2940;
official e
Lcml;e:Lajp;
-
PLAYER_MODEL_PARTS
- Mappings:
Namespace Name Mixin selector named PLAYER_MODEL_PARTS
Lnet/minecraft/entity/player/PlayerEntity;PLAYER_MODEL_PARTS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7518
Lnet/minecraft/class_1657;field_7518:Lnet/minecraft/class_2940;
official bY
Lcml;bY:Lajp;
-
MAIN_ARM
- Mappings:
Namespace Name Mixin selector named MAIN_ARM
Lnet/minecraft/entity/player/PlayerEntity;MAIN_ARM:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7488
Lnet/minecraft/class_1657;field_7488:Lnet/minecraft/class_2940;
official bZ
Lcml;bZ:Lajp;
-
LEFT_SHOULDER_ENTITY
- Mappings:
Namespace Name Mixin selector named LEFT_SHOULDER_ENTITY
Lnet/minecraft/entity/player/PlayerEntity;LEFT_SHOULDER_ENTITY:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7496
Lnet/minecraft/class_1657;field_7496:Lnet/minecraft/class_2940;
official ca
Lcml;ca:Lajp;
-
RIGHT_SHOULDER_ENTITY
- Mappings:
Namespace Name Mixin selector named RIGHT_SHOULDER_ENTITY
Lnet/minecraft/entity/player/PlayerEntity;RIGHT_SHOULDER_ENTITY:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7506
Lnet/minecraft/class_1657;field_7506:Lnet/minecraft/class_2940;
official cb
Lcml;cb:Lajp;
-
shoulderEntityAddedTime
private long shoulderEntityAddedTime- Mappings:
Namespace Name Mixin selector named shoulderEntityAddedTime
Lnet/minecraft/entity/player/PlayerEntity;shoulderEntityAddedTime:J
intermediary field_19428
Lnet/minecraft/class_1657;field_19428:J
official f
Lcml;f:J
-
inventory
- Mappings:
Namespace Name Mixin selector named inventory
Lnet/minecraft/entity/player/PlayerEntity;inventory:Lnet/minecraft/entity/player/PlayerInventory;
intermediary field_7514
Lnet/minecraft/class_1657;field_7514:Lnet/minecraft/class_1661;
official g
Lcml;g:Lcmk;
-
enderChestInventory
- Mappings:
Namespace Name Mixin selector named enderChestInventory
Lnet/minecraft/entity/player/PlayerEntity;enderChestInventory:Lnet/minecraft/inventory/EnderChestInventory;
intermediary field_7486
Lnet/minecraft/class_1657;field_7486:Lnet/minecraft/class_1730;
official cc
Lcml;cc:Lcqv;
-
playerScreenHandler
- Mappings:
Namespace Name Mixin selector named playerScreenHandler
Lnet/minecraft/entity/player/PlayerEntity;playerScreenHandler:Lnet/minecraft/screen/PlayerScreenHandler;
intermediary field_7498
Lnet/minecraft/class_1657;field_7498:Lnet/minecraft/class_1723;
official cd
Lcml;cd:Lcqk;
-
currentScreenHandler
- Mappings:
Namespace Name Mixin selector named currentScreenHandler
Lnet/minecraft/entity/player/PlayerEntity;currentScreenHandler:Lnet/minecraft/screen/ScreenHandler;
intermediary field_7512
Lnet/minecraft/class_1657;field_7512:Lnet/minecraft/class_1703;
official ce
Lcml;ce:Lcpi;
-
hungerManager
- Mappings:
Namespace Name Mixin selector named hungerManager
Lnet/minecraft/entity/player/PlayerEntity;hungerManager:Lnet/minecraft/entity/player/HungerManager;
intermediary field_7493
Lnet/minecraft/class_1657;field_7493:Lnet/minecraft/class_1702;
official cf
Lcml;cf:Lcpe;
-
abilityResyncCountdown
protected int abilityResyncCountdown- Mappings:
Namespace Name Mixin selector named abilityResyncCountdown
Lnet/minecraft/entity/player/PlayerEntity;abilityResyncCountdown:I
intermediary field_7489
Lnet/minecraft/class_1657;field_7489:I
official cg
Lcml;cg:I
-
prevStrideDistance
public float prevStrideDistance- Mappings:
Namespace Name Mixin selector named prevStrideDistance
Lnet/minecraft/entity/player/PlayerEntity;prevStrideDistance:F
intermediary field_7505
Lnet/minecraft/class_1657;field_7505:F
official ch
Lcml;ch:F
-
strideDistance
public float strideDistance- Mappings:
Namespace Name Mixin selector named strideDistance
Lnet/minecraft/entity/player/PlayerEntity;strideDistance:F
intermediary field_7483
Lnet/minecraft/class_1657;field_7483:F
official ci
Lcml;ci:F
-
experiencePickUpDelay
public int experiencePickUpDelay- Mappings:
Namespace Name Mixin selector named experiencePickUpDelay
Lnet/minecraft/entity/player/PlayerEntity;experiencePickUpDelay:I
intermediary field_7504
Lnet/minecraft/class_1657;field_7504:I
official cj
Lcml;cj:I
-
prevCapeX
public double prevCapeX- Mappings:
Namespace Name Mixin selector named prevCapeX
Lnet/minecraft/entity/player/PlayerEntity;prevCapeX:D
intermediary field_7524
Lnet/minecraft/class_1657;field_7524:D
official ck
Lcml;ck:D
-
prevCapeY
public double prevCapeY- Mappings:
Namespace Name Mixin selector named prevCapeY
Lnet/minecraft/entity/player/PlayerEntity;prevCapeY:D
intermediary field_7502
Lnet/minecraft/class_1657;field_7502:D
official cl
Lcml;cl:D
-
prevCapeZ
public double prevCapeZ- Mappings:
Namespace Name Mixin selector named prevCapeZ
Lnet/minecraft/entity/player/PlayerEntity;prevCapeZ:D
intermediary field_7522
Lnet/minecraft/class_1657;field_7522:D
official cm
Lcml;cm:D
-
capeX
public double capeX- Mappings:
Namespace Name Mixin selector named capeX
Lnet/minecraft/entity/player/PlayerEntity;capeX:D
intermediary field_7500
Lnet/minecraft/class_1657;field_7500:D
official cn
Lcml;cn:D
-
capeY
public double capeY- Mappings:
Namespace Name Mixin selector named capeY
Lnet/minecraft/entity/player/PlayerEntity;capeY:D
intermediary field_7521
Lnet/minecraft/class_1657;field_7521:D
official co
Lcml;co:D
-
capeZ
public double capeZ- Mappings:
Namespace Name Mixin selector named capeZ
Lnet/minecraft/entity/player/PlayerEntity;capeZ:D
intermediary field_7499
Lnet/minecraft/class_1657;field_7499:D
official cp
Lcml;cp:D
-
sleepTimer
private int sleepTimer- Mappings:
Namespace Name Mixin selector named sleepTimer
Lnet/minecraft/entity/player/PlayerEntity;sleepTimer:I
intermediary field_7487
Lnet/minecraft/class_1657;field_7487:I
official h
Lcml;h:I
-
isSubmergedInWater
protected boolean isSubmergedInWater- Mappings:
Namespace Name Mixin selector named isSubmergedInWater
Lnet/minecraft/entity/player/PlayerEntity;isSubmergedInWater:Z
intermediary field_7490
Lnet/minecraft/class_1657;field_7490:Z
official cq
Lcml;cq:Z
-
abilities
- Mappings:
Namespace Name Mixin selector named abilities
Lnet/minecraft/entity/player/PlayerEntity;abilities:Lnet/minecraft/entity/player/PlayerAbilities;
intermediary field_7503
Lnet/minecraft/class_1657;field_7503:Lnet/minecraft/class_1656;
official cC
Lcml;cC:Lcmi;
-
experienceLevel
public int experienceLevel- Mappings:
Namespace Name Mixin selector named experienceLevel
Lnet/minecraft/entity/player/PlayerEntity;experienceLevel:I
intermediary field_7520
Lnet/minecraft/class_1657;field_7520:I
official cr
Lcml;cr:I
-
totalExperience
public int totalExperience- Mappings:
Namespace Name Mixin selector named totalExperience
Lnet/minecraft/entity/player/PlayerEntity;totalExperience:I
intermediary field_7495
Lnet/minecraft/class_1657;field_7495:I
official cs
Lcml;cs:I
-
experienceProgress
public float experienceProgress- Mappings:
Namespace Name Mixin selector named experienceProgress
Lnet/minecraft/entity/player/PlayerEntity;experienceProgress:F
intermediary field_7510
Lnet/minecraft/class_1657;field_7510:F
official ct
Lcml;ct:F
-
enchantmentTableSeed
protected int enchantmentTableSeed- Mappings:
Namespace Name Mixin selector named enchantmentTableSeed
Lnet/minecraft/entity/player/PlayerEntity;enchantmentTableSeed:I
intermediary field_7494
Lnet/minecraft/class_1657;field_7494:I
official cu
Lcml;cu:I
-
field_7509
protected final float field_7509- See Also:
- Mappings:
Namespace Name Mixin selector named field_7509
Lnet/minecraft/entity/player/PlayerEntity;field_7509:F
intermediary field_7509
Lnet/minecraft/class_1657;field_7509:F
official cv
Lcml;cv:F
-
lastPlayedLevelUpSoundTime
private int lastPlayedLevelUpSoundTime- Mappings:
Namespace Name Mixin selector named lastPlayedLevelUpSoundTime
Lnet/minecraft/entity/player/PlayerEntity;lastPlayedLevelUpSoundTime:I
intermediary field_7508
Lnet/minecraft/class_1657;field_7508:I
official cD
Lcml;cD:I
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfile- Mappings:
Namespace Name Mixin selector named gameProfile
Lnet/minecraft/entity/player/PlayerEntity;gameProfile:Lcom/mojang/authlib/GameProfile;
intermediary field_7507
Lnet/minecraft/class_1657;field_7507:Lcom/mojang/authlib/GameProfile;
official cE
Lcml;cE:Lcom/mojang/authlib/GameProfile;
-
reducedDebugInfo
private boolean reducedDebugInfo- Mappings:
Namespace Name Mixin selector named reducedDebugInfo
Lnet/minecraft/entity/player/PlayerEntity;reducedDebugInfo:Z
intermediary field_7523
Lnet/minecraft/class_1657;field_7523:Z
official cF
Lcml;cF:Z
-
selectedItem
- Mappings:
Namespace Name Mixin selector named selectedItem
Lnet/minecraft/entity/player/PlayerEntity;selectedItem:Lnet/minecraft/item/ItemStack;
intermediary field_7525
Lnet/minecraft/class_1657;field_7525:Lnet/minecraft/class_1799;
official cG
Lcml;cG:Lcud;
-
itemCooldownManager
- Mappings:
Namespace Name Mixin selector named itemCooldownManager
Lnet/minecraft/entity/player/PlayerEntity;itemCooldownManager:Lnet/minecraft/entity/player/ItemCooldownManager;
intermediary field_7484
Lnet/minecraft/class_1657;field_7484:Lnet/minecraft/class_1796;
official cH
Lcml;cH:Lctz;
-
lastDeathPos
- Mappings:
Namespace Name Mixin selector named lastDeathPos
Lnet/minecraft/entity/player/PlayerEntity;lastDeathPos:Ljava/util/Optional;
intermediary field_39445
Lnet/minecraft/class_1657;field_39445:Ljava/util/Optional;
official cI
Lcml;cI:Ljava/util/Optional;
-
fishHook
- Mappings:
Namespace Name Mixin selector named fishHook
Lnet/minecraft/entity/player/PlayerEntity;fishHook:Lnet/minecraft/entity/projectile/FishingBobberEntity;
intermediary field_7513
Lnet/minecraft/class_1657;field_7513:Lnet/minecraft/class_1536;
official cw
Lcml;cw:Lcmz;
-
damageTiltYaw
protected float damageTiltYaw- Mappings:
Namespace Name Mixin selector named damageTiltYaw
Lnet/minecraft/entity/player/PlayerEntity;damageTiltYaw:F
intermediary field_41765
Lnet/minecraft/class_1657;field_41765:F
official cx
Lcml;cx:F
-
currentExplosionImpactPos
- Mappings:
Namespace Name Mixin selector named currentExplosionImpactPos
Lnet/minecraft/entity/player/PlayerEntity;currentExplosionImpactPos:Lnet/minecraft/util/math/Vec3d;
intermediary field_49989
Lnet/minecraft/class_1657;field_49989:Lnet/minecraft/class_243;
official cy
Lcml;cy:Lewh;
-
explodedBy
- Mappings:
Namespace Name Mixin selector named explodedBy
Lnet/minecraft/entity/player/PlayerEntity;explodedBy:Lnet/minecraft/entity/Entity;
intermediary field_49990
Lnet/minecraft/class_1657;field_49990:Lnet/minecraft/class_1297;
official cz
Lcml;cz:Lbsh;
-
ignoreFallDamageFromCurrentExplosion
public boolean ignoreFallDamageFromCurrentExplosion- Mappings:
Namespace Name Mixin selector named ignoreFallDamageFromCurrentExplosion
Lnet/minecraft/entity/player/PlayerEntity;ignoreFallDamageFromCurrentExplosion:Z
intermediary field_49991
Lnet/minecraft/class_1657;field_49991:Z
official cA
Lcml;cA:Z
-
-
Constructor Details
-
PlayerEntity
public PlayerEntity(World world, BlockPos pos, float yaw, com.mojang.authlib.GameProfile gameProfile) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/player/PlayerEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;FLcom/mojang/authlib/GameProfile;)V
intermediary <init>
Lnet/minecraft/class_1657;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;FLcom/mojang/authlib/GameProfile;)V
official <init>
Lcml;<init>(Ldcg;Lja;FLcom/mojang/authlib/GameProfile;)V
-
-
Method Details
-
isBlockBreakingRestricted
- Mappings:
Namespace Name Mixin selector named isBlockBreakingRestricted
Lnet/minecraft/entity/player/PlayerEntity;isBlockBreakingRestricted(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/GameMode;)Z
intermediary method_21701
Lnet/minecraft/class_1657;method_21701(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1934;)Z
official a
Lcml;a(Ldcg;Lja;Ldcd;)Z
-
createPlayerAttributes
- Mappings:
Namespace Name Mixin selector named createPlayerAttributes
Lnet/minecraft/entity/player/PlayerEntity;createPlayerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
intermediary method_26956
Lnet/minecraft/class_1657;method_26956()Lnet/minecraft/class_5132$class_5133;
official fO
Lcml;fO()Lbuj$a;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classLivingEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbsh;a(Lajt$a;)V
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classLivingEntity
- 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
LivingEntity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official l
Lbsh;l()V
-
getMaxRelativeHeadRotation
protected float getMaxRelativeHeadRotation()Returns the maximum rotation of the head relative to the body in degrees.- Overrides:
getMaxRelativeHeadRotation
in classLivingEntity
- Returns:
- the maximum rotation of the head relative to the body in degrees
- Mappings:
Namespace Name Mixin selector named getMaxRelativeHeadRotation
Lnet/minecraft/entity/LivingEntity;getMaxRelativeHeadRotation()F
intermediary method_53964
Lnet/minecraft/class_1309;method_53964()F
official fm
Lbtc;fm()F
-
shouldCancelInteraction
public boolean shouldCancelInteraction()- Mappings:
Namespace Name Mixin selector named shouldCancelInteraction
Lnet/minecraft/entity/player/PlayerEntity;shouldCancelInteraction()Z
intermediary method_21823
Lnet/minecraft/class_1657;method_21823()Z
official fP
Lcml;fP()Z
-
shouldDismount
protected boolean shouldDismount()- Mappings:
Namespace Name Mixin selector named shouldDismount
Lnet/minecraft/entity/player/PlayerEntity;shouldDismount()Z
intermediary method_21824
Lnet/minecraft/class_1657;method_21824()Z
official fQ
Lcml;fQ()Z
-
clipAtLedge
protected boolean clipAtLedge()- Mappings:
Namespace Name Mixin selector named clipAtLedge
Lnet/minecraft/entity/player/PlayerEntity;clipAtLedge()Z
intermediary method_21825
Lnet/minecraft/class_1657;method_21825()Z
official fR
Lcml;fR()Z
-
updateWaterSubmersionState
protected boolean updateWaterSubmersionState()- Mappings:
Namespace Name Mixin selector named updateWaterSubmersionState
Lnet/minecraft/entity/player/PlayerEntity;updateWaterSubmersionState()Z
intermediary method_7295
Lnet/minecraft/class_1657;method_7295()Z
official fS
Lcml;fS()Z
-
updateTurtleHelmet
private void updateTurtleHelmet()- Mappings:
Namespace Name Mixin selector named updateTurtleHelmet
Lnet/minecraft/entity/player/PlayerEntity;updateTurtleHelmet()V
intermediary method_7330
Lnet/minecraft/class_1657;method_7330()V
official v
Lcml;v()V
-
createCooldownManager
- Mappings:
Namespace Name Mixin selector named createCooldownManager
Lnet/minecraft/entity/player/PlayerEntity;createCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
intermediary method_7265
Lnet/minecraft/class_1657;method_7265()Lnet/minecraft/class_1796;
official k
Lcml;k()Lctz;
-
updateCapeAngles
private void updateCapeAngles()- Mappings:
Namespace Name Mixin selector named updateCapeAngles
Lnet/minecraft/entity/player/PlayerEntity;updateCapeAngles()V
intermediary method_7313
Lnet/minecraft/class_1657;method_7313()V
official x
Lcml;x()V
-
updatePose
protected void updatePose()- Mappings:
Namespace Name Mixin selector named updatePose
Lnet/minecraft/entity/player/PlayerEntity;updatePose()V
intermediary method_7318
Lnet/minecraft/class_1657;method_7318()V
official fT
Lcml;fT()V
-
canChangeIntoPose
- Mappings:
Namespace Name Mixin selector named canChangeIntoPose
Lnet/minecraft/entity/player/PlayerEntity;canChangeIntoPose(Lnet/minecraft/entity/EntityPose;)Z
intermediary method_52558
Lnet/minecraft/class_1657;method_52558(Lnet/minecraft/class_4050;)Z
official h
Lcml;h(Lbto;)Z
-
getMaxNetherPortalTime
public int getMaxNetherPortalTime()Returns how long entities can be inside the nether portal without teleporting, in ticks.- Overrides:
getMaxNetherPortalTime
in classEntity
- Returns:
- how long entities can be inside the nether portal without teleporting, in ticks
- Mappings:
Namespace Name Mixin selector named getMaxNetherPortalTime
Lnet/minecraft/entity/Entity;getMaxNetherPortalTime()I
intermediary method_5741
Lnet/minecraft/class_1297;method_5741()I
official aB
Lbsh;aB()I
-
getSwimSound
- Overrides:
getSwimSound
in classEntity
- Mappings:
Namespace Name Mixin selector named getSwimSound
Lnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5737
Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;
official aR
Lbsh;aR()Lavg;
-
getSplashSound
- Overrides:
getSplashSound
in classEntity
- Mappings:
Namespace Name Mixin selector named getSplashSound
Lnet/minecraft/entity/Entity;getSplashSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5625
Lnet/minecraft/class_1297;method_5625()Lnet/minecraft/class_3414;
official aS
Lbsh;aS()Lavg;
-
getHighSpeedSplashSound
- Overrides:
getHighSpeedSplashSound
in classEntity
- Mappings:
Namespace Name Mixin selector named getHighSpeedSplashSound
Lnet/minecraft/entity/Entity;getHighSpeedSplashSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5672
Lnet/minecraft/class_1297;method_5672()Lnet/minecraft/class_3414;
official aT
Lbsh;aT()Lavg;
-
getDefaultPortalCooldown
public int getDefaultPortalCooldown()Returns the entity's default portal cooldown.This is 300 ticks by default, or 10 ticks for players.
- Overrides:
getDefaultPortalCooldown
in classEntity
- Returns:
- the entity's default portal cooldown
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultPortalCooldown
Lnet/minecraft/entity/Entity;getDefaultPortalCooldown()I
intermediary method_5806
Lnet/minecraft/class_1297;method_5806()I
official bR
Lbsh;bR()I
-
playSound
-
playSoundToPlayer
Playssound
to this player only.Use
playSound(SoundEvent, float, float)
to play sound that can be heard by nearby players. Unlike that method, this method should be called on only one side (i.e. either the server or the client, alone).- Mappings:
Namespace Name Mixin selector named playSoundToPlayer
Lnet/minecraft/entity/player/PlayerEntity;playSoundToPlayer(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
intermediary method_17356
Lnet/minecraft/class_1657;method_17356(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
official a
Lcml;a(Lavg;Lavi;FF)V
-
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
.- Overrides:
getSoundCategory
in classEntity
- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategory
Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
intermediary method_5634
Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
official dg
Lbsh;dg()Lavi;
-
getBurningDuration
protected int getBurningDuration()- Overrides:
getBurningDuration
in classEntity
- Mappings:
Namespace Name Mixin selector named getBurningDuration
Lnet/minecraft/entity/Entity;getBurningDuration()I
intermediary method_5676
Lnet/minecraft/class_1297;method_5676()I
official dh
Lbsh;dh()I
-
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.- Overrides:
handleStatus
in classLivingEntity
- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte)
. - Mappings:
Namespace Name Mixin selector named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
official b
Lbsh;b(B)V
-
closeHandledScreen
protected void closeHandledScreen()Closes the currently open handled screen.This method can be called on either logical side, and it will synchronize the closing automatically to the other.
- Mappings:
Namespace Name Mixin selector named closeHandledScreen
Lnet/minecraft/entity/player/PlayerEntity;closeHandledScreen()V
intermediary method_7346
Lnet/minecraft/class_1657;method_7346()V
official s
Lcml;s()V
-
onHandledScreenClosed
protected void onHandledScreenClosed()Runs closing tasks for the current screen handler and sets it to theplayerScreenHandler
.- Mappings:
Namespace Name Mixin selector named onHandledScreenClosed
Lnet/minecraft/entity/player/PlayerEntity;onHandledScreenClosed()V
intermediary method_14247
Lnet/minecraft/class_1657;method_14247()V
official t
Lcml;t()V
-
tickRiding
public void tickRiding()- Overrides:
tickRiding
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickRiding
Lnet/minecraft/entity/Entity;tickRiding()V
intermediary method_5842
Lnet/minecraft/class_1297;method_5842()V
official u
Lbsh;u()V
-
tickNewAi
protected void tickNewAi()- Overrides:
tickNewAi
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickNewAi
Lnet/minecraft/entity/LivingEntity;tickNewAi()V
intermediary method_6023
Lnet/minecraft/class_1309;method_6023()V
official fo
Lbtc;fo()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovement
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named tickMovement
Lnet/minecraft/entity/LivingEntity;tickMovement()V
intermediary method_6007
Lnet/minecraft/class_1309;method_6007()V
official m_
Lbtc;m_()V
-
updateShoulderEntity
- Mappings:
Namespace Name Mixin selector named updateShoulderEntity
Lnet/minecraft/entity/player/PlayerEntity;updateShoulderEntity(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_7267
Lnet/minecraft/class_1657;method_7267(Lnet/minecraft/class_2487;)V
official c
Lcml;c(Ltx;)V
-
collideWithEntity
- Mappings:
Namespace Name Mixin selector named collideWithEntity
Lnet/minecraft/entity/player/PlayerEntity;collideWithEntity(Lnet/minecraft/entity/Entity;)V
intermediary method_7341
Lnet/minecraft/class_1657;method_7341(Lnet/minecraft/class_1297;)V
official d
Lcml;d(Lbsh;)V
-
getScore
public int getScore()- Mappings:
Namespace Name Mixin selector named getScore
Lnet/minecraft/entity/player/PlayerEntity;getScore()I
intermediary method_7272
Lnet/minecraft/class_1657;method_7272()I
official fU
Lcml;fU()I
-
setScore
public void setScore(int score) - Mappings:
Namespace Name Mixin selector named setScore
Lnet/minecraft/entity/player/PlayerEntity;setScore(I)V
intermediary method_7320
Lnet/minecraft/class_1657;method_7320(I)V
official r
Lcml;r(I)V
-
addScore
public void addScore(int score) - Mappings:
Namespace Name Mixin selector named addScore
Lnet/minecraft/entity/player/PlayerEntity;addScore(I)V
intermediary method_7285
Lnet/minecraft/class_1657;method_7285(I)V
official s
Lcml;s(I)V
-
useRiptide
- Mappings:
Namespace Name Mixin selector named useRiptide
Lnet/minecraft/entity/player/PlayerEntity;useRiptide(IFLnet/minecraft/item/ItemStack;)V
intermediary method_40126
Lnet/minecraft/class_1657;method_40126(IFLnet/minecraft/class_1799;)V
official a
Lcml;a(IFLcud;)V
-
getWeaponStack
- Mappings:
Namespace Name Mixin selector named getWeaponStack
Lnet/minecraft/entity/player/PlayerEntity;getWeaponStack()Lnet/minecraft/item/ItemStack;
intermediary method_59952
Lnet/minecraft/class_1657;method_59952()Lnet/minecraft/class_1799;
official A
Lcml;A()Lcud;
-
onDeath
- Overrides:
onDeath
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named onDeath
Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
intermediary method_6078
Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
official a
Lbtc;a(Lbra;)V
-
dropInventory
protected void dropInventory()- Overrides:
dropInventory
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named dropInventory
Lnet/minecraft/entity/LivingEntity;dropInventory()V
intermediary method_16078
Lnet/minecraft/class_1309;method_16078()V
official eB
Lbtc;eB()V
-
vanishCursedItems
protected void vanishCursedItems()- Mappings:
Namespace Name Mixin selector named vanishCursedItems
Lnet/minecraft/entity/player/PlayerEntity;vanishCursedItems()V
intermediary method_7293
Lnet/minecraft/class_1657;method_7293()V
official fV
Lcml;fV()V
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official d
Lbtc;d(Lbra;)Lavg;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official n_
Lbtc;n_()Lavg;
-
dropItem
- Mappings:
Namespace Name Mixin selector named dropItem
Lnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/entity/ItemEntity;
intermediary method_7328
Lnet/minecraft/class_1657;method_7328(Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1542;
official a
Lcml;a(Lcud;Z)Lciv;
-
dropItem
@Nullable public @Nullable ItemEntity dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership) - Parameters:
throwRandomly
- if true, the item will be thrown in a random direction from the entity regardless of which direction the entity is facing- Mappings:
Namespace Name Mixin selector named dropItem
Lnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;ZZ)Lnet/minecraft/entity/ItemEntity;
intermediary method_7329
Lnet/minecraft/class_1657;method_7329(Lnet/minecraft/class_1799;ZZ)Lnet/minecraft/class_1542;
official a
Lcml;a(Lcud;ZZ)Lciv;
-
getBlockBreakingSpeed
- Mappings:
Namespace Name Mixin selector named getBlockBreakingSpeed
Lnet/minecraft/entity/player/PlayerEntity;getBlockBreakingSpeed(Lnet/minecraft/block/BlockState;)F
intermediary method_7351
Lnet/minecraft/class_1657;method_7351(Lnet/minecraft/class_2680;)F
official c
Lcml;c(Ldsl;)F
-
canHarvest
Determines whether the player is able to harvest drops from the specified block state. If a block requires a special tool, it will check whether the held item is effective for that block, otherwise it returnstrue
.- See Also:
- Mappings:
Namespace Name Mixin selector named canHarvest
Lnet/minecraft/entity/player/PlayerEntity;canHarvest(Lnet/minecraft/block/BlockState;)Z
intermediary method_7305
Lnet/minecraft/class_1657;method_7305(Lnet/minecraft/class_2680;)Z
official d
Lcml;d(Ldsl;)Z
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbsh;a(Ltx;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbsh;b(Ltx;)V
-
isInvulnerableTo
Returns whether the entity is invulnerable todamageSource
.This can be overridden to make the entity invulnerable to some damages, but
super.isInvulnerableTo()
should be called in this case.- Overrides:
isInvulnerableTo
in classLivingEntity
- Returns:
- whether the entity is invulnerable to
damageSource
- See Also:
- Implementation Note:
- Entity is invulnerable to all damages if it is removed, and is invulnerable to all damages except
DamageTypes.OUT_OF_WORLD
or damages from creative mode players if the entity is invulnerable. This also checksEntity.isFireImmune()
. - Mappings:
Namespace Name Mixin selector named isInvulnerableTo
Lnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5679
Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Z
official b
Lbsh;b(Lbra;)Z
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntity
also have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity
, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
isInvulnerableTo(net.minecraft.entity.damage.DamageSource)
and return early.- Overrides:
damage
in classLivingEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
intermediary method_5643
Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
official a
Lbsh;a(Lbra;F)Z
-
takeShieldHit
- Overrides:
takeShieldHit
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named takeShieldHit
Lnet/minecraft/entity/LivingEntity;takeShieldHit(Lnet/minecraft/entity/LivingEntity;)V
intermediary method_6090
Lnet/minecraft/class_1309;method_6090(Lnet/minecraft/class_1309;)V
official d
Lbtc;d(Lbtc;)V
-
canTakeDamage
public boolean canTakeDamage()- Overrides:
canTakeDamage
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canTakeDamage
Lnet/minecraft/entity/LivingEntity;canTakeDamage()Z
intermediary method_33190
Lnet/minecraft/class_1309;method_33190()Z
official er
Lbtc;er()Z
-
shouldDamagePlayer
- Mappings:
Namespace Name Mixin selector named shouldDamagePlayer
Lnet/minecraft/entity/player/PlayerEntity;shouldDamagePlayer(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_7256
Lnet/minecraft/class_1657;method_7256(Lnet/minecraft/class_1657;)Z
official a
Lcml;a(Lcml;)Z
-
damageArmor
- Overrides:
damageArmor
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named damageArmor
Lnet/minecraft/entity/LivingEntity;damageArmor(Lnet/minecraft/entity/damage/DamageSource;F)V
intermediary method_6105
Lnet/minecraft/class_1309;method_6105(Lnet/minecraft/class_1282;F)V
official b
Lbtc;b(Lbra;F)V
-
damageHelmet
- Overrides:
damageHelmet
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named damageHelmet
Lnet/minecraft/entity/LivingEntity;damageHelmet(Lnet/minecraft/entity/damage/DamageSource;F)V
intermediary method_36977
Lnet/minecraft/class_1309;method_36977(Lnet/minecraft/class_1282;F)V
official c
Lbtc;c(Lbra;F)V
-
damageShield
protected void damageShield(float amount) - Overrides:
damageShield
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named damageShield
Lnet/minecraft/entity/LivingEntity;damageShield(F)V
intermediary method_6056
Lnet/minecraft/class_1309;method_6056(F)V
official w
Lbtc;w(F)V
-
applyDamage
- Overrides:
applyDamage
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named applyDamage
Lnet/minecraft/entity/LivingEntity;applyDamage(Lnet/minecraft/entity/damage/DamageSource;F)V
intermediary method_6074
Lnet/minecraft/class_1309;method_6074(Lnet/minecraft/class_1282;F)V
official f
Lbtc;f(Lbra;F)V
-
shouldFilterText
public boolean shouldFilterText()- Mappings:
Namespace Name Mixin selector named shouldFilterText
Lnet/minecraft/entity/player/PlayerEntity;shouldFilterText()Z
intermediary method_33793
Lnet/minecraft/class_1657;method_33793()Z
official Z
Lcml;Z()Z
-
openEditSignScreen
- Mappings:
Namespace Name Mixin selector named openEditSignScreen
Lnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;Z)V
intermediary method_7311
Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;Z)V
official a
Lcml;a(Ldrb;Z)V
-
openCommandBlockMinecartScreen
- Mappings:
Namespace Name Mixin selector named openCommandBlockMinecartScreen
Lnet/minecraft/entity/player/PlayerEntity;openCommandBlockMinecartScreen(Lnet/minecraft/world/CommandBlockExecutor;)V
intermediary method_7257
Lnet/minecraft/class_1657;method_7257(Lnet/minecraft/class_1918;)V
official a
Lcml;a(Ldbh;)V
-
openCommandBlockScreen
- Mappings:
Namespace Name Mixin selector named openCommandBlockScreen
Lnet/minecraft/entity/player/PlayerEntity;openCommandBlockScreen(Lnet/minecraft/block/entity/CommandBlockBlockEntity;)V
intermediary method_7323
Lnet/minecraft/class_1657;method_7323(Lnet/minecraft/class_2593;)V
official a
Lcml;a(Ldqa;)V
-
openStructureBlockScreen
- Mappings:
Namespace Name Mixin selector named openStructureBlockScreen
Lnet/minecraft/entity/player/PlayerEntity;openStructureBlockScreen(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)V
intermediary method_7303
Lnet/minecraft/class_1657;method_7303(Lnet/minecraft/class_2633;)V
official a
Lcml;a(Ldrg;)V
-
openJigsawScreen
- Mappings:
Namespace Name Mixin selector named openJigsawScreen
Lnet/minecraft/entity/player/PlayerEntity;openJigsawScreen(Lnet/minecraft/block/entity/JigsawBlockEntity;)V
intermediary method_16354
Lnet/minecraft/class_1657;method_16354(Lnet/minecraft/class_3751;)V
official a
Lcml;a(Ldqr;)V
-
openHorseInventory
- Mappings:
Namespace Name Mixin selector named openHorseInventory
Lnet/minecraft/entity/player/PlayerEntity;openHorseInventory(Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/inventory/Inventory;)V
intermediary method_7291
Lnet/minecraft/class_1657;method_7291(Lnet/minecraft/class_1496;Lnet/minecraft/class_1263;)V
official a
Lcml;a(Lcgw;Lbqa;)V
-
openHandledScreen
- Mappings:
Namespace Name Mixin selector named openHandledScreen
Lnet/minecraft/entity/player/PlayerEntity;openHandledScreen(Lnet/minecraft/screen/NamedScreenHandlerFactory;)Ljava/util/OptionalInt;
intermediary method_17355
Lnet/minecraft/class_1657;method_17355(Lnet/minecraft/class_3908;)Ljava/util/OptionalInt;
official a
Lcml;a(Lbql;)Ljava/util/OptionalInt;
-
sendTradeOffers
public void sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) - Mappings:
Namespace Name Mixin selector named sendTradeOffers
Lnet/minecraft/entity/player/PlayerEntity;sendTradeOffers(ILnet/minecraft/village/TradeOfferList;IIZZ)V
intermediary method_17354
Lnet/minecraft/class_1657;method_17354(ILnet/minecraft/class_1916;IIZZ)V
official a
Lcml;a(ILdbf;IIZZ)V
-
useBook
Called when the player uses (defaults to right click) a writable or written book item.This can be called either on the client or the server player. Check
book
for whether this is a written or a writable book.- Parameters:
book
- the bookhand
- the hand holding the book- Implementation Note:
- The writing of a writable book in vanilla is totally controlled by
the client; the server cannot make the client open a book edit screen by
making a server player use a writable book. Only when the client finishes
writing a book it will send a book update C2S packet.
Meanwhile, the reading of a written book is totally controlled and initiated by the server.
- Mappings:
Namespace Name Mixin selector named useBook
Lnet/minecraft/entity/player/PlayerEntity;useBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)V
intermediary method_7315
Lnet/minecraft/class_1657;method_7315(Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)V
official a
Lcml;a(Lcud;Lbqg;)V
-
interact
- Mappings:
Namespace Name Mixin selector named interact
Lnet/minecraft/entity/player/PlayerEntity;interact(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_7287
Lnet/minecraft/class_1657;method_7287(Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official a
Lcml;a(Lbsh;Lbqg;)Lbqh;
-
dismountVehicle
public void dismountVehicle()Dismounts the vehicle if present.For players, will not trigger any networking changes. Use
LivingEntity.stopRiding()
instead.- Overrides:
dismountVehicle
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named dismountVehicle
Lnet/minecraft/entity/Entity;dismountVehicle()V
intermediary method_29239
Lnet/minecraft/class_1297;method_29239()V
official bK
Lbsh;bK()V
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobile
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named isImmobile
Lnet/minecraft/entity/LivingEntity;isImmobile()Z
intermediary method_6062
Lnet/minecraft/class_1309;method_6062()Z
official fe
Lbtc;fe()Z
-
shouldSwimInFluids
public boolean shouldSwimInFluids()- Overrides:
shouldSwimInFluids
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named shouldSwimInFluids
Lnet/minecraft/entity/LivingEntity;shouldSwimInFluids()Z
intermediary method_29920
Lnet/minecraft/class_1309;method_29920()Z
official ee
Lbtc;ee()Z
-
adjustMovementForSneaking
- Overrides:
adjustMovementForSneaking
in classEntity
- Mappings:
Namespace Name Mixin selector named adjustMovementForSneaking
Lnet/minecraft/entity/Entity;adjustMovementForSneaking(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/MovementType;)Lnet/minecraft/util/math/Vec3d;
intermediary method_18796
Lnet/minecraft/class_1297;method_18796(Lnet/minecraft/class_243;Lnet/minecraft/class_1313;)Lnet/minecraft/class_243;
official a
Lbsh;a(Lewh;Lbth;)Lewh;
-
method_30263
private boolean method_30263(float float2) - Mappings:
Namespace Name Mixin selector named method_30263
Lnet/minecraft/entity/player/PlayerEntity;method_30263(F)Z
intermediary method_30263
Lnet/minecraft/class_1657;method_30263(F)Z
official F
Lcml;F(F)Z
-
method_59818
private boolean method_59818(double double2, double double3, float float2) - Mappings:
Namespace Name Mixin selector named method_59818
Lnet/minecraft/entity/player/PlayerEntity;method_59818(DDF)Z
intermediary method_59818
Lnet/minecraft/class_1657;method_59818(DDF)Z
official b
Lcml;b(DDF)Z
-
attack
- Mappings:
Namespace Name Mixin selector named attack
Lnet/minecraft/entity/player/PlayerEntity;attack(Lnet/minecraft/entity/Entity;)V
intermediary method_7324
Lnet/minecraft/class_1657;method_7324(Lnet/minecraft/class_1297;)V
official e
Lcml;e(Lbsh;)V
-
getDamageAgainst
- Mappings:
Namespace Name Mixin selector named getDamageAgainst
Lnet/minecraft/entity/player/PlayerEntity;getDamageAgainst(Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;)F
intermediary method_59903
Lnet/minecraft/class_1657;method_59903(Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;)F
official a
Lcml;a(Lbsh;FLbra;)F
-
attackLivingEntity
- Overrides:
attackLivingEntity
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named attackLivingEntity
Lnet/minecraft/entity/LivingEntity;attackLivingEntity(Lnet/minecraft/entity/LivingEntity;)V
intermediary method_5997
Lnet/minecraft/class_1309;method_5997(Lnet/minecraft/class_1309;)V
official g
Lbtc;g(Lbtc;)V
-
disableShield
public void disableShield()- Mappings:
Namespace Name Mixin selector named disableShield
Lnet/minecraft/entity/player/PlayerEntity;disableShield()V
intermediary method_7284
Lnet/minecraft/class_1657;method_7284()V
official fW
Lcml;fW()V
-
addCritParticles
- Mappings:
Namespace Name Mixin selector named addCritParticles
Lnet/minecraft/entity/player/PlayerEntity;addCritParticles(Lnet/minecraft/entity/Entity;)V
intermediary method_7277
Lnet/minecraft/class_1657;method_7277(Lnet/minecraft/class_1297;)V
official b
Lcml;b(Lbsh;)V
-
addEnchantedHitParticles
- Mappings:
Namespace Name Mixin selector named addEnchantedHitParticles
Lnet/minecraft/entity/player/PlayerEntity;addEnchantedHitParticles(Lnet/minecraft/entity/Entity;)V
intermediary method_7304
Lnet/minecraft/class_1657;method_7304(Lnet/minecraft/class_1297;)V
official c
Lcml;c(Lbsh;)V
-
spawnSweepAttackParticles
public void spawnSweepAttackParticles()- Mappings:
Namespace Name Mixin selector named spawnSweepAttackParticles
Lnet/minecraft/entity/player/PlayerEntity;spawnSweepAttackParticles()V
intermediary method_7263
Lnet/minecraft/class_1657;method_7263()V
official fX
Lcml;fX()V
-
requestRespawn
public void requestRespawn()- Mappings:
Namespace Name Mixin selector named requestRespawn
Lnet/minecraft/entity/player/PlayerEntity;requestRespawn()V
intermediary method_7331
Lnet/minecraft/class_1657;method_7331()V
official fY
Lcml;fY()V
-
remove
Removes the entity.- Overrides:
remove
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_5650
Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
official a
Lbsh;a(Lbsh$d;)V
-
isMainPlayer
public boolean isMainPlayer()- Mappings:
Namespace Name Mixin selector named isMainPlayer
Lnet/minecraft/entity/player/PlayerEntity;isMainPlayer()Z
intermediary method_7340
Lnet/minecraft/class_1657;method_7340()Z
official g
Lcml;g()Z
-
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile()- Mappings:
Namespace Name Mixin selector named getGameProfile
Lnet/minecraft/entity/player/PlayerEntity;getGameProfile()Lcom/mojang/authlib/GameProfile;
intermediary method_7334
Lnet/minecraft/class_1657;method_7334()Lcom/mojang/authlib/GameProfile;
official fZ
Lcml;fZ()Lcom/mojang/authlib/GameProfile;
-
getInventory
- Mappings:
Namespace Name Mixin selector named getInventory
Lnet/minecraft/entity/player/PlayerEntity;getInventory()Lnet/minecraft/entity/player/PlayerInventory;
intermediary method_31548
Lnet/minecraft/class_1657;method_31548()Lnet/minecraft/class_1661;
official ga
Lcml;ga()Lcmk;
-
getAbilities
- Mappings:
Namespace Name Mixin selector named getAbilities
Lnet/minecraft/entity/player/PlayerEntity;getAbilities()Lnet/minecraft/entity/player/PlayerAbilities;
intermediary method_31549
Lnet/minecraft/class_1657;method_31549()Lnet/minecraft/class_1656;
official gb
Lcml;gb()Lcmi;
-
isInCreativeMode
public boolean isInCreativeMode()- Overrides:
isInCreativeMode
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named isInCreativeMode
Lnet/minecraft/entity/LivingEntity;isInCreativeMode()Z
intermediary method_56992
Lnet/minecraft/class_1309;method_56992()Z
official fN
Lbtc;fN()Z
-
onPickupSlotClick
Called when a player performs apickup slot action
in a screen handler.- Parameters:
cursorStack
- the item stack on the player's cursorslotStack
- the item stack in the clicked slotclickType
- the click type (mouse button used)- Implementation Note:
- This is used by the client player to trigger bundle tutorials.
- Mappings:
Namespace Name Mixin selector named onPickupSlotClick
Lnet/minecraft/entity/player/PlayerEntity;onPickupSlotClick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/ClickType;)V
intermediary method_33592
Lnet/minecraft/class_1657;method_33592(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_5536;)V
official a
Lcml;a(Lcud;Lcud;Lcpr;)V
-
shouldCloseHandledScreenOnRespawn
public boolean shouldCloseHandledScreenOnRespawn()- Mappings:
Namespace Name Mixin selector named shouldCloseHandledScreenOnRespawn
Lnet/minecraft/entity/player/PlayerEntity;shouldCloseHandledScreenOnRespawn()Z
intermediary method_45015
Lnet/minecraft/class_1657;method_45015()Z
official gc
Lcml;gc()Z
-
trySleep
public com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> trySleep(BlockPos pos) Tries to start sleeping on a block.- Parameters:
pos
- the position of the bed block- Returns:
- an
Either.Right
if successful, otherwise anEither.Left
containing the failure reason - Mappings:
Namespace Name Mixin selector named trySleep
Lnet/minecraft/entity/player/PlayerEntity;trySleep(Lnet/minecraft/util/math/BlockPos;)Lcom/mojang/datafixers/util/Either;
intermediary method_7269
Lnet/minecraft/class_1657;method_7269(Lnet/minecraft/class_2338;)Lcom/mojang/datafixers/util/Either;
official a
Lcml;a(Lja;)Lcom/mojang/datafixers/util/Either;
-
wakeUp
public void wakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.- Parameters:
skipSleepTimer
- iftrue
, the sleep timer will be set straight to 0 instead of 100updateSleepingPlayers
- iftrue
and called on the logical server, sends sleeping status updates to all players- Mappings:
Namespace Name Mixin selector named wakeUp
Lnet/minecraft/entity/player/PlayerEntity;wakeUp(ZZ)V
intermediary method_7358
Lnet/minecraft/class_1657;method_7358(ZZ)V
official a
Lcml;a(ZZ)V
-
wakeUp
public void wakeUp()Wakes this entity up.- Overrides:
wakeUp
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named wakeUp
Lnet/minecraft/entity/LivingEntity;wakeUp()V
intermediary method_18400
Lnet/minecraft/class_1309;method_18400()V
official fK
Lbtc;fK()V
-
canResetTimeBySleeping
public boolean canResetTimeBySleeping()Returns whether this player has been sleeping long enough to count towards resetting the time of day and weather of the server.- Returns:
- whether this player has been sleeping long enough to count towards resetting the time of day and weather of the server
- Mappings:
Namespace Name Mixin selector named canResetTimeBySleeping
Lnet/minecraft/entity/player/PlayerEntity;canResetTimeBySleeping()Z
intermediary method_7276
Lnet/minecraft/class_1657;method_7276()Z
official gd
Lcml;gd()Z
-
getSleepTimer
public int getSleepTimer()- Mappings:
Namespace Name Mixin selector named getSleepTimer
Lnet/minecraft/entity/player/PlayerEntity;getSleepTimer()I
intermediary method_7297
Lnet/minecraft/class_1657;method_7297()I
official ge
Lcml;ge()I
-
sendMessage
Adds a message to this player's HUD.If it's called on
ServerPlayerEntity
, it sends a message to the client corresponding to this player so that the client can add a message to their HUD. If it's called onClientPlayerEntity
, it just adds a message to their HUD.- Parameters:
message
- the message to add- See Also:
- Mappings:
Namespace Name Mixin selector named sendMessage
Lnet/minecraft/entity/player/PlayerEntity;sendMessage(Lnet/minecraft/text/Text;Z)V
intermediary method_7353
Lnet/minecraft/class_1657;method_7353(Lnet/minecraft/class_2561;Z)V
official a
Lcml;a(Lwu;Z)V
-
incrementStat
- Mappings:
Namespace Name Mixin selector named incrementStat
Lnet/minecraft/entity/player/PlayerEntity;incrementStat(Lnet/minecraft/util/Identifier;)V
intermediary method_7281
Lnet/minecraft/class_1657;method_7281(Lnet/minecraft/class_2960;)V
official a
Lcml;a(Lakk;)V
-
increaseStat
- Mappings:
Namespace Name Mixin selector named increaseStat
Lnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/util/Identifier;I)V
intermediary method_7339
Lnet/minecraft/class_1657;method_7339(Lnet/minecraft/class_2960;I)V
official a
Lcml;a(Lakk;I)V
-
incrementStat
- Mappings:
Namespace Name Mixin selector named incrementStat
Lnet/minecraft/entity/player/PlayerEntity;incrementStat(Lnet/minecraft/stat/Stat;)V
intermediary method_7259
Lnet/minecraft/class_1657;method_7259(Lnet/minecraft/class_3445;)V
official b
Lcml;b(Lavo;)V
-
increaseStat
- Mappings:
Namespace Name Mixin selector named increaseStat
Lnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/stat/Stat;I)V
intermediary method_7342
Lnet/minecraft/class_1657;method_7342(Lnet/minecraft/class_3445;I)V
official a
Lcml;a(Lavo;I)V
-
resetStat
- Mappings:
Namespace Name Mixin selector named resetStat
Lnet/minecraft/entity/player/PlayerEntity;resetStat(Lnet/minecraft/stat/Stat;)V
intermediary method_7266
Lnet/minecraft/class_1657;method_7266(Lnet/minecraft/class_3445;)V
official a
Lcml;a(Lavo;)V
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector named unlockRecipes
Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/Collection;)I
intermediary method_7254
Lnet/minecraft/class_1657;method_7254(Ljava/util/Collection;)I
official a
Lcml;a(Ljava/util/Collection;)I
-
onRecipeCrafted
- Mappings:
Namespace Name Mixin selector named onRecipeCrafted
Lnet/minecraft/entity/player/PlayerEntity;onRecipeCrafted(Lnet/minecraft/recipe/RecipeEntry;Ljava/util/List;)V
intermediary method_51283
Lnet/minecraft/class_1657;method_51283(Lnet/minecraft/class_8786;Ljava/util/List;)V
official a
Lcml;a(Lcyl;Ljava/util/List;)V
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector named unlockRecipes
Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/List;)V
intermediary method_7335
Lnet/minecraft/class_1657;method_7335(Ljava/util/List;)V
official b
Lcml;b(Ljava/util/List;)V
-
lockRecipes
- Mappings:
Namespace Name Mixin selector named lockRecipes
Lnet/minecraft/entity/player/PlayerEntity;lockRecipes(Ljava/util/Collection;)I
intermediary method_7333
Lnet/minecraft/class_1657;method_7333(Ljava/util/Collection;)I
official b
Lcml;b(Ljava/util/Collection;)I
-
jump
public void jump()- Overrides:
jump
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named jump
Lnet/minecraft/entity/LivingEntity;jump()V
intermediary method_6043
Lnet/minecraft/class_1309;method_6043()V
official fh
Lbtc;fh()V
-
travel
Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI.See vanilla examples of custom horse vehicle and flying entities.
- Overrides:
travel
in classLivingEntity
- Parameters:
movementInput
- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector named travel
Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
intermediary method_6091
Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
official a
Lbtc;a(Lewh;)V
-
updateSwimming
public void updateSwimming()- Overrides:
updateSwimming
in classEntity
- Mappings:
Namespace Name Mixin selector named updateSwimming
Lnet/minecraft/entity/Entity;updateSwimming()V
intermediary method_5790
Lnet/minecraft/class_1297;method_5790()V
official bm
Lbsh;bm()V
-
doesNotSuffocate
- Mappings:
Namespace Name Mixin selector named doesNotSuffocate
Lnet/minecraft/entity/player/PlayerEntity;doesNotSuffocate(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_7326
Lnet/minecraft/class_1657;method_7326(Lnet/minecraft/class_2338;)Z
official h
Lcml;h(Lja;)Z
-
getMovementSpeed
public float getMovementSpeed()- Overrides:
getMovementSpeed
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getMovementSpeed
Lnet/minecraft/entity/LivingEntity;getMovementSpeed()F
intermediary method_6029
Lnet/minecraft/class_1309;method_6029()F
official fl
Lbtc;fl()F
-
handleFallDamage
public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource) Called when an entity falls.Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like
TntMinecartEntity
.- Overrides:
handleFallDamage
in classLivingEntity
- Returns:
- whether to play the sound when falling on honey block;
false
for all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamage
Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_5747
Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
official a
Lbsh;a(FFLbra;)Z
-
checkFallFlying
public boolean checkFallFlying()- Mappings:
Namespace Name Mixin selector named checkFallFlying
Lnet/minecraft/entity/player/PlayerEntity;checkFallFlying()Z
intermediary method_23668
Lnet/minecraft/class_1657;method_23668()Z
official gf
Lcml;gf()Z
-
startFallFlying
public void startFallFlying()- Mappings:
Namespace Name Mixin selector named startFallFlying
Lnet/minecraft/entity/player/PlayerEntity;startFallFlying()V
intermediary method_23669
Lnet/minecraft/class_1657;method_23669()V
official gg
Lcml;gg()V
-
stopFallFlying
public void stopFallFlying()- Mappings:
Namespace Name Mixin selector named stopFallFlying
Lnet/minecraft/entity/player/PlayerEntity;stopFallFlying()V
intermediary method_23670
Lnet/minecraft/class_1657;method_23670()V
official gh
Lcml;gh()V
-
onSwimmingStart
protected void onSwimmingStart()- Overrides:
onSwimmingStart
in classEntity
- Mappings:
Namespace Name Mixin selector named onSwimmingStart
Lnet/minecraft/entity/Entity;onSwimmingStart()V
intermediary method_5746
Lnet/minecraft/class_1297;method_5746()V
official bp
Lbsh;bp()V
-
playStepSound
- Overrides:
playStepSound
in classEntity
- Mappings:
Namespace Name Mixin selector named playStepSound
Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_5712
Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official b
Lbsh;b(Lja;Ldsl;)V
-
getFallSounds
- Overrides:
getFallSounds
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getFallSounds
Lnet/minecraft/entity/LivingEntity;getFallSounds()Lnet/minecraft/entity/LivingEntity$FallSounds;
intermediary method_39760
Lnet/minecraft/class_1309;method_39760()Lnet/minecraft/class_1309$class_6823;
official eJ
Lbtc;eJ()Lbtc$a;
-
onKilledOther
Called when this entity killsother
.- Overrides:
onKilledOther
in classEntity
- Returns:
- whether the entity died (and not converted to another entity)
- API Note:
ZombieEntity
overrides this to convert the killed villager to a zombie villager.- Mappings:
Namespace Name Mixin selector named onKilledOther
Lnet/minecraft/entity/Entity;onKilledOther(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_5874
Lnet/minecraft/class_1297;method_5874(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
official a
Lbsh;a(Laqm;Lbtc;)Z
-
slowMovement
CallsEntity.onLanding()
and slows this entity.This means that the entity will avoid taking fall damage.
- Overrides:
slowMovement
in classEntity
- API Note:
- This should be called inside
AbstractBlock.onEntityCollision(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity)
. This is used by cobwebs, sweet berries, and powder snow. - Mappings:
Namespace Name Mixin selector named slowMovement
Lnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)V
intermediary method_5844
Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)V
official a
Lbsh;a(Ldsl;Lewh;)V
-
addExperience
public void addExperience(int experience) - Mappings:
Namespace Name Mixin selector named addExperience
Lnet/minecraft/entity/player/PlayerEntity;addExperience(I)V
intermediary method_7255
Lnet/minecraft/class_1657;method_7255(I)V
official d
Lcml;d(I)V
-
getEnchantmentTableSeed
public int getEnchantmentTableSeed()- Mappings:
Namespace Name Mixin selector named getEnchantmentTableSeed
Lnet/minecraft/entity/player/PlayerEntity;getEnchantmentTableSeed()I
intermediary method_7278
Lnet/minecraft/class_1657;method_7278()I
official gi
Lcml;gi()I
-
applyEnchantmentCosts
- Mappings:
Namespace Name Mixin selector named applyEnchantmentCosts
Lnet/minecraft/entity/player/PlayerEntity;applyEnchantmentCosts(Lnet/minecraft/item/ItemStack;I)V
intermediary method_7286
Lnet/minecraft/class_1657;method_7286(Lnet/minecraft/class_1799;I)V
official a
Lcml;a(Lcud;I)V
-
addExperienceLevels
public void addExperienceLevels(int levels) - Mappings:
Namespace Name Mixin selector named addExperienceLevels
Lnet/minecraft/entity/player/PlayerEntity;addExperienceLevels(I)V
intermediary method_7316
Lnet/minecraft/class_1657;method_7316(I)V
official c
Lcml;c(I)V
-
getNextLevelExperience
public int getNextLevelExperience()- Mappings:
Namespace Name Mixin selector named getNextLevelExperience
Lnet/minecraft/entity/player/PlayerEntity;getNextLevelExperience()I
intermediary method_7349
Lnet/minecraft/class_1657;method_7349()I
official gj
Lcml;gj()I
-
addExhaustion
public void addExhaustion(float exhaustion) - Mappings:
Namespace Name Mixin selector named addExhaustion
Lnet/minecraft/entity/player/PlayerEntity;addExhaustion(F)V
intermediary method_7322
Lnet/minecraft/class_1657;method_7322(F)V
official D
Lcml;D(F)V
-
getSculkShriekerWarningManager
- Mappings:
Namespace Name Mixin selector named getSculkShriekerWarningManager
Lnet/minecraft/entity/player/PlayerEntity;getSculkShriekerWarningManager()Ljava/util/Optional;
intermediary method_42272
Lnet/minecraft/class_1657;method_42272()Ljava/util/Optional;
official ab
Lcml;ab()Ljava/util/Optional;
-
getHungerManager
- Mappings:
Namespace Name Mixin selector named getHungerManager
Lnet/minecraft/entity/player/PlayerEntity;getHungerManager()Lnet/minecraft/entity/player/HungerManager;
intermediary method_7344
Lnet/minecraft/class_1657;method_7344()Lnet/minecraft/class_1702;
official gk
Lcml;gk()Lcpe;
-
canConsume
public boolean canConsume(boolean ignoreHunger) - Mappings:
Namespace Name Mixin selector named canConsume
Lnet/minecraft/entity/player/PlayerEntity;canConsume(Z)Z
intermediary method_7332
Lnet/minecraft/class_1657;method_7332(Z)Z
official u
Lcml;u(Z)Z
-
canFoodHeal
public boolean canFoodHeal()- Mappings:
Namespace Name Mixin selector named canFoodHeal
Lnet/minecraft/entity/player/PlayerEntity;canFoodHeal()Z
intermediary method_7317
Lnet/minecraft/class_1657;method_7317()Z
official gl
Lcml;gl()Z
-
canModifyBlocks
public boolean canModifyBlocks()- Mappings:
Namespace Name Mixin selector named canModifyBlocks
Lnet/minecraft/entity/player/PlayerEntity;canModifyBlocks()Z
intermediary method_7294
Lnet/minecraft/class_1657;method_7294()Z
official gm
Lcml;gm()Z
-
canPlaceOn
- Mappings:
Namespace Name Mixin selector named canPlaceOn
Lnet/minecraft/entity/player/PlayerEntity;canPlaceOn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/item/ItemStack;)Z
intermediary method_7343
Lnet/minecraft/class_1657;method_7343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_1799;)Z
official a
Lcml;a(Lja;Ljf;Lcud;)Z
-
getXpToDrop
protected int getXpToDrop()Called when this entity is killed and returns the amount of experience to drop.- Overrides:
getXpToDrop
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named getXpToDrop
Lnet/minecraft/entity/LivingEntity;getXpToDrop()I
intermediary method_6110
Lnet/minecraft/class_1309;method_6110()I
official ei
Lbtc;ei()I
-
shouldAlwaysDropXp
protected boolean shouldAlwaysDropXp()Returns if this entity may always drop experience, skipping any other checks.- Overrides:
shouldAlwaysDropXp
in classLivingEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldAlwaysDropXp
Lnet/minecraft/entity/LivingEntity;shouldAlwaysDropXp()Z
intermediary method_6071
Lnet/minecraft/class_1309;method_6071()Z
official ej
Lbtc;ej()Z
-
shouldRenderName
public boolean shouldRenderName()Returns whether to render the name of the entity.This returns
true
for players andEntity.isCustomNameVisible()
for other entities.- Overrides:
shouldRenderName
in classLivingEntity
- Returns:
- whether to render the name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRenderName
Lnet/minecraft/entity/Entity;shouldRenderName()Z
intermediary method_5733
Lnet/minecraft/class_1297;method_5733()Z
official cH
Lbsh;cH()Z
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffect
in classEntity
- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffect
Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
official bd
Lbsh;bd()Lbsh$c;
-
sendAbilitiesUpdate
public void sendAbilitiesUpdate()- Mappings:
Namespace Name Mixin selector named sendAbilitiesUpdate
Lnet/minecraft/entity/player/PlayerEntity;sendAbilitiesUpdate()V
intermediary method_7355
Lnet/minecraft/class_1657;method_7355()V
official z
Lcml;z()V
-
getName
Returns the name of this object.This should return the custom name if it exists, otherwise the default name. This should not have styling applied.
- Specified by:
getName
in interfaceNameable
- Overrides:
getName
in classEntity
- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
intermediary method_5477
Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
official ah
Lbqm;ah()Lwu;
-
getEnderChestInventory
- Mappings:
Namespace Name Mixin selector named getEnderChestInventory
Lnet/minecraft/entity/player/PlayerEntity;getEnderChestInventory()Lnet/minecraft/inventory/EnderChestInventory;
intermediary method_7274
Lnet/minecraft/class_1657;method_7274()Lnet/minecraft/class_1730;
official gn
Lcml;gn()Lcqv;
-
getEquippedStack
- Specified by:
getEquippedStack
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getEquippedStack
Lnet/minecraft/entity/LivingEntity;getEquippedStack(Lnet/minecraft/entity/EquipmentSlot;)Lnet/minecraft/item/ItemStack;
intermediary method_6118
Lnet/minecraft/class_1309;method_6118(Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;
official a
Lbtc;a(Lbso;)Lcud;
-
isArmorSlot
- Overrides:
isArmorSlot
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named isArmorSlot
Lnet/minecraft/entity/LivingEntity;isArmorSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_44201
Lnet/minecraft/class_1309;method_44201(Lnet/minecraft/class_1304;)Z
official b
Lbtc;b(Lbso;)Z
-
equipStack
- Specified by:
equipStack
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named equipStack
Lnet/minecraft/entity/LivingEntity;equipStack(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
intermediary method_5673
Lnet/minecraft/class_1309;method_5673(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)V
official a
Lbtc;a(Lbso;Lcud;)V
-
giveItemStack
- Mappings:
Namespace Name Mixin selector named giveItemStack
Lnet/minecraft/entity/player/PlayerEntity;giveItemStack(Lnet/minecraft/item/ItemStack;)Z
intermediary method_7270
Lnet/minecraft/class_1657;method_7270(Lnet/minecraft/class_1799;)Z
official i
Lcml;i(Lcud;)Z
-
getHandItems
- Overrides:
getHandItems
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHandItems
Lnet/minecraft/entity/LivingEntity;getHandItems()Ljava/lang/Iterable;
intermediary method_5877
Lnet/minecraft/class_1309;method_5877()Ljava/lang/Iterable;
official eY
Lbtc;eY()Ljava/lang/Iterable;
-
getArmorItems
- Specified by:
getArmorItems
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getArmorItems
Lnet/minecraft/entity/LivingEntity;getArmorItems()Ljava/lang/Iterable;
intermediary method_5661
Lnet/minecraft/class_1309;method_5661()Ljava/lang/Iterable;
official eX
Lbtc;eX()Ljava/lang/Iterable;
-
canUseSlot
- Overrides:
canUseSlot
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canUseSlot
Lnet/minecraft/entity/LivingEntity;canUseSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
intermediary method_56991
Lnet/minecraft/class_1309;method_56991(Lnet/minecraft/class_1304;)Z
official d
Lbtc;d(Lbso;)Z
-
addShoulderEntity
- Mappings:
Namespace Name Mixin selector named addShoulderEntity
Lnet/minecraft/entity/player/PlayerEntity;addShoulderEntity(Lnet/minecraft/nbt/NbtCompound;)Z
intermediary method_7298
Lnet/minecraft/class_1657;method_7298(Lnet/minecraft/class_2487;)Z
official h
Lcml;h(Ltx;)Z
-
dropShoulderEntities
protected void dropShoulderEntities()- Mappings:
Namespace Name Mixin selector named dropShoulderEntities
Lnet/minecraft/entity/player/PlayerEntity;dropShoulderEntities()V
intermediary method_7262
Lnet/minecraft/class_1657;method_7262()V
official go
Lcml;go()V
-
dropShoulderEntity
- Mappings:
Namespace Name Mixin selector named dropShoulderEntity
Lnet/minecraft/entity/player/PlayerEntity;dropShoulderEntity(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_7296
Lnet/minecraft/class_1657;method_7296(Lnet/minecraft/class_2487;)V
official k
Lcml;k(Ltx;)V
-
isSpectator
public abstract boolean isSpectator()Returns whether the entity is a spectator.This returns
false
unless the entity is a player in spectator game mode.- Overrides:
isSpectator
in classEntity
- Returns:
- whether the entity is a spectator
- Mappings:
Namespace Name Mixin selector named isSpectator
Lnet/minecraft/entity/Entity;isSpectator()Z
intermediary method_7325
Lnet/minecraft/class_1297;method_7325()Z
official N_
Lbsh;N_()Z
-
canBeHitByProjectile
public boolean canBeHitByProjectile()- Overrides:
canBeHitByProjectile
in classEntity
- Mappings:
Namespace Name Mixin selector named canBeHitByProjectile
Lnet/minecraft/entity/Entity;canBeHitByProjectile()Z
intermediary method_49108
Lnet/minecraft/class_1297;method_49108()Z
official bA
Lbsh;bA()Z
-
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.
- Overrides:
isSwimming
in classEntity
- Returns:
- whether the entity is swimming
- See Also:
- Mappings:
Namespace Name Mixin selector named isSwimming
Lnet/minecraft/entity/Entity;isSwimming()Z
intermediary method_5681
Lnet/minecraft/class_1297;method_5681()Z
official ce
Lbsh;ce()Z
-
isCreative
public abstract boolean isCreative()Returns whether this player is in creative mode.- Mappings:
Namespace Name Mixin selector named isCreative
Lnet/minecraft/entity/player/PlayerEntity;isCreative()Z
intermediary method_7337
Lnet/minecraft/class_1657;method_7337()Z
official f
Lcml;f()Z
-
isPushedByFluids
public boolean isPushedByFluids()Returns whether the entity is pushed by fluids.- Overrides:
isPushedByFluids
in classEntity
- Returns:
- whether the entity is pushed by fluids
- API Note:
- Aquatic mobs should override this to return
false
. Players are not pushed by fluids if they can fly (e.g. because of game mode). - Mappings:
Namespace Name Mixin selector named isPushedByFluids
Lnet/minecraft/entity/Entity;isPushedByFluids()Z
intermediary method_5675
Lnet/minecraft/class_1297;method_5675()Z
official cE
Lbsh;cE()Z
-
getScoreboard
- Mappings:
Namespace Name Mixin selector named getScoreboard
Lnet/minecraft/entity/player/PlayerEntity;getScoreboard()Lnet/minecraft/scoreboard/Scoreboard;
intermediary method_7327
Lnet/minecraft/class_1657;method_7327()Lnet/minecraft/class_269;
official gp
Lcml;gp()Lexl;
-
getDisplayName
Returns the display name of this object.By default, this returns the result of
getName()
. The return value can have styling applied.- Specified by:
getDisplayName
in interfaceNameable
- Specified by:
getDisplayName
in interfaceScoreHolder
- Overrides:
getDisplayName
in classEntity
- Returns:
- the display name of this object
- Mappings:
Namespace Name Mixin selector named getDisplayName
Lnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;
intermediary method_5476
Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;
official O_
Lbqm;O_()Lwu;
-
addTellClickEvent
- Mappings:
Namespace Name Mixin selector named addTellClickEvent
Lnet/minecraft/entity/player/PlayerEntity;addTellClickEvent(Lnet/minecraft/text/MutableText;)Lnet/minecraft/text/MutableText;
intermediary method_7299
Lnet/minecraft/class_1657;method_7299(Lnet/minecraft/class_5250;)Lnet/minecraft/class_5250;
official a
Lcml;a(Lxi;)Lxi;
-
getNameForScoreboard
Returns the name uniquely identifying the score holder.Unlike
Entity.getName()
, this is guaranteed to be unique. This is the UUID for all entities except players (which use the player's username).- Specified by:
getNameForScoreboard
in interfaceScoreHolder
- Overrides:
getNameForScoreboard
in classEntity
- Returns:
- the name uniquely identifying the score holder
- See Also:
- Mappings:
Namespace Name Mixin selector named getNameForScoreboard
Lnet/minecraft/scoreboard/ScoreHolder;getNameForScoreboard()Ljava/lang/String;
intermediary method_5820
Lnet/minecraft/class_9015;method_5820()Ljava/lang/String;
official cD
Lexk;cD()Ljava/lang/String;
-
setAbsorptionAmountUnclamped
protected void setAbsorptionAmountUnclamped(float absorptionAmount) - Overrides:
setAbsorptionAmountUnclamped
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named setAbsorptionAmountUnclamped
Lnet/minecraft/entity/LivingEntity;setAbsorptionAmountUnclamped(F)V
intermediary method_52544
Lnet/minecraft/class_1309;method_52544(F)V
official C
Lbtc;C(F)V
-
getAbsorptionAmount
public float getAbsorptionAmount()- Overrides:
getAbsorptionAmount
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getAbsorptionAmount
Lnet/minecraft/entity/LivingEntity;getAbsorptionAmount()F
intermediary method_6067
Lnet/minecraft/class_1309;method_6067()F
official fq
Lbtc;fq()F
-
isPartVisible
- Mappings:
Namespace Name Mixin selector named isPartVisible
Lnet/minecraft/entity/player/PlayerEntity;isPartVisible(Lnet/minecraft/client/render/entity/PlayerModelPart;)Z
intermediary method_7348
Lnet/minecraft/class_1657;method_7348(Lnet/minecraft/class_1664;)Z
official a
Lcml;a(Lcmm;)Z
-
getStackReference
Obtains a stack reference to be modified. Used by commands like/loot
or/item
.- Overrides:
getStackReference
in classLivingEntity
- Parameters:
mappedIndex
- the mapped index as given by the item slot argument- See Also:
- Mappings:
Namespace Name Mixin selector named getStackReference
Lnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;
intermediary method_32318
Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
official a_
Lbsh;a_(I)Lbtu;
-
hasReducedDebugInfo
public boolean hasReducedDebugInfo()- Mappings:
Namespace Name Mixin selector named hasReducedDebugInfo
Lnet/minecraft/entity/player/PlayerEntity;hasReducedDebugInfo()Z
intermediary method_7302
Lnet/minecraft/class_1657;method_7302()Z
official gq
Lcml;gq()Z
-
setReducedDebugInfo
public void setReducedDebugInfo(boolean reducedDebugInfo) - Mappings:
Namespace Name Mixin selector named setReducedDebugInfo
Lnet/minecraft/entity/player/PlayerEntity;setReducedDebugInfo(Z)V
intermediary method_7268
Lnet/minecraft/class_1657;method_7268(Z)V
official v
Lcml;v(Z)V
-
setFireTicks
public void setFireTicks(int fireTicks) Sets the entity on fire forticks
ticks.- Overrides:
setFireTicks
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named setFireTicks
Lnet/minecraft/entity/Entity;setFireTicks(I)V
intermediary method_20803
Lnet/minecraft/class_1297;method_20803(I)V
official h
Lbsh;h(I)V
-
getMainArm
- Specified by:
getMainArm
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getMainArm
Lnet/minecraft/entity/LivingEntity;getMainArm()Lnet/minecraft/util/Arm;
intermediary method_6068
Lnet/minecraft/class_1309;method_6068()Lnet/minecraft/class_1306;
official fs
Lbtc;fs()Lbsw;
-
setMainArm
- Mappings:
Namespace Name Mixin selector named setMainArm
Lnet/minecraft/entity/player/PlayerEntity;setMainArm(Lnet/minecraft/util/Arm;)V
intermediary method_7283
Lnet/minecraft/class_1657;method_7283(Lnet/minecraft/class_1306;)V
official a
Lcml;a(Lbsw;)V
-
getShoulderEntityLeft
- Mappings:
Namespace Name Mixin selector named getShoulderEntityLeft
Lnet/minecraft/entity/player/PlayerEntity;getShoulderEntityLeft()Lnet/minecraft/nbt/NbtCompound;
intermediary method_7356
Lnet/minecraft/class_1657;method_7356()Lnet/minecraft/class_2487;
official gr
Lcml;gr()Ltx;
-
setShoulderEntityLeft
- Mappings:
Namespace Name Mixin selector named setShoulderEntityLeft
Lnet/minecraft/entity/player/PlayerEntity;setShoulderEntityLeft(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_7273
Lnet/minecraft/class_1657;method_7273(Lnet/minecraft/class_2487;)V
official i
Lcml;i(Ltx;)V
-
getShoulderEntityRight
- Mappings:
Namespace Name Mixin selector named getShoulderEntityRight
Lnet/minecraft/entity/player/PlayerEntity;getShoulderEntityRight()Lnet/minecraft/nbt/NbtCompound;
intermediary method_7308
Lnet/minecraft/class_1657;method_7308()Lnet/minecraft/class_2487;
official gs
Lcml;gs()Ltx;
-
setShoulderEntityRight
- Mappings:
Namespace Name Mixin selector named setShoulderEntityRight
Lnet/minecraft/entity/player/PlayerEntity;setShoulderEntityRight(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_7345
Lnet/minecraft/class_1657;method_7345(Lnet/minecraft/class_2487;)V
official j
Lcml;j(Ltx;)V
-
getAttackCooldownProgressPerTick
public float getAttackCooldownProgressPerTick()- Mappings:
Namespace Name Mixin selector named getAttackCooldownProgressPerTick
Lnet/minecraft/entity/player/PlayerEntity;getAttackCooldownProgressPerTick()F
intermediary method_7279
Lnet/minecraft/class_1657;method_7279()F
official gt
Lcml;gt()F
-
getAttackCooldownProgress
public float getAttackCooldownProgress(float baseTime) - Mappings:
Namespace Name Mixin selector named getAttackCooldownProgress
Lnet/minecraft/entity/player/PlayerEntity;getAttackCooldownProgress(F)F
intermediary method_7261
Lnet/minecraft/class_1657;method_7261(F)F
official E
Lcml;E(F)F
-
resetLastAttackedTicks
public void resetLastAttackedTicks()- Mappings:
Namespace Name Mixin selector named resetLastAttackedTicks
Lnet/minecraft/entity/player/PlayerEntity;resetLastAttackedTicks()V
intermediary method_7350
Lnet/minecraft/class_1657;method_7350()V
official gu
Lcml;gu()V
-
getItemCooldownManager
- Mappings:
Namespace Name Mixin selector named getItemCooldownManager
Lnet/minecraft/entity/player/PlayerEntity;getItemCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
intermediary method_7357
Lnet/minecraft/class_1657;method_7357()Lnet/minecraft/class_1796;
official gv
Lcml;gv()Lctz;
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Overrides:
getVelocityMultiplier
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getVelocityMultiplier
Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
intermediary method_23326
Lnet/minecraft/class_1297;method_23326()F
official aP
Lbsh;aP()F
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector named getLuck
Lnet/minecraft/entity/player/PlayerEntity;getLuck()F
intermediary method_7292
Lnet/minecraft/class_1657;method_7292()F
official gw
Lcml;gw()F
-
isCreativeLevelTwoOp
public boolean isCreativeLevelTwoOp()- Mappings:
Namespace Name Mixin selector named isCreativeLevelTwoOp
Lnet/minecraft/entity/player/PlayerEntity;isCreativeLevelTwoOp()Z
intermediary method_7338
Lnet/minecraft/class_1657;method_7338()Z
official gx
Lcml;gx()Z
-
canEquip
- Overrides:
canEquip
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named canEquip
Lnet/minecraft/entity/LivingEntity;canEquip(Lnet/minecraft/item/ItemStack;)Z
intermediary method_18397
Lnet/minecraft/class_1309;method_18397(Lnet/minecraft/class_1799;)Z
official f
Lbtc;f(Lcud;)Z
-
getBaseDimensions
- Overrides:
getBaseDimensions
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getBaseDimensions
Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
intermediary method_55694
Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
official e
Lbtc;e(Lbto;)Lbsk;
-
getPoses
- Overrides:
getPoses
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getPoses
Lnet/minecraft/entity/LivingEntity;getPoses()Lcom/google/common/collect/ImmutableList;
intermediary method_24831
Lnet/minecraft/class_1309;method_24831()Lcom/google/common/collect/ImmutableList;
official fG
Lbtc;fG()Lcom/google/common/collect/ImmutableList;
-
getProjectileType
- Overrides:
getProjectileType
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getProjectileType
Lnet/minecraft/entity/LivingEntity;getProjectileType(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
intermediary method_18808
Lnet/minecraft/class_1309;method_18808(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
official g
Lbtc;g(Lcud;)Lcud;
-
eatFood
- Overrides:
eatFood
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named eatFood
Lnet/minecraft/entity/LivingEntity;eatFood(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/FoodComponent;)Lnet/minecraft/item/ItemStack;
intermediary method_18866
Lnet/minecraft/class_1309;method_18866(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_4174;)Lnet/minecraft/class_1799;
official a
Lbtc;a(Ldcg;Lcud;Lcpf;)Lcud;
-
getLeashPos
Returns the position of the leash this entity holds.This is different from
Entity.getLeashOffset(float)
; this method is called on the entity that holds the leash.- Overrides:
getLeashPos
in classEntity
- Returns:
- the position of the leash this entity holds
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashPos
Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
intermediary method_30951
Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
official r
Lbsh;r(F)Lewh;
-
isPlayer
public boolean isPlayer()- Specified by:
isPlayer
in interfaceEntityLike
- Overrides:
isPlayer
in classEntity
- Mappings:
Namespace Name Mixin selector named isPlayer
Lnet/minecraft/world/entity/EntityLike;isPlayer()Z
intermediary method_31747
Lnet/minecraft/class_5568;method_31747()Z
official dQ
Ldwo;dQ()Z
-
isUsingSpyglass
public boolean isUsingSpyglass()- Mappings:
Namespace Name Mixin selector named isUsingSpyglass
Lnet/minecraft/entity/player/PlayerEntity;isUsingSpyglass()Z
intermediary method_31550
Lnet/minecraft/class_1657;method_31550()Z
official gy
Lcml;gy()Z
-
shouldSave
public boolean shouldSave()- Specified by:
shouldSave
in interfaceEntityLike
- Overrides:
shouldSave
in classEntity
- Mappings:
Namespace Name Mixin selector named shouldSave
Lnet/minecraft/world/entity/EntityLike;shouldSave()Z
intermediary method_31746
Lnet/minecraft/class_5568;method_31746()Z
official dP
Ldwo;dP()Z
-
getLastDeathPos
- Mappings:
Namespace Name Mixin selector named getLastDeathPos
Lnet/minecraft/entity/player/PlayerEntity;getLastDeathPos()Ljava/util/Optional;
intermediary method_43122
Lnet/minecraft/class_1657;method_43122()Ljava/util/Optional;
official gz
Lcml;gz()Ljava/util/Optional;
-
setLastDeathPos
- Mappings:
Namespace Name Mixin selector named setLastDeathPos
Lnet/minecraft/entity/player/PlayerEntity;setLastDeathPos(Ljava/util/Optional;)V
intermediary method_43120
Lnet/minecraft/class_1657;method_43120(Ljava/util/Optional;)V
official a
Lcml;a(Ljava/util/Optional;)V
-
getDamageTiltYaw
public float getDamageTiltYaw()- Overrides:
getDamageTiltYaw
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDamageTiltYaw
Lnet/minecraft/entity/LivingEntity;getDamageTiltYaw()F
intermediary method_48157
Lnet/minecraft/class_1309;method_48157()F
official eG
Lbtc;eG()F
-
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
animateDamage
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named animateDamage
Lnet/minecraft/entity/Entity;animateDamage(F)V
intermediary method_5879
Lnet/minecraft/class_1297;method_5879(F)V
official n
Lbsh;n(F)V
-
canSprintAsVehicle
public boolean canSprintAsVehicle()- Overrides:
canSprintAsVehicle
in classEntity
- Mappings:
Namespace Name Mixin selector named canSprintAsVehicle
Lnet/minecraft/entity/Entity;canSprintAsVehicle()Z
intermediary method_48155
Lnet/minecraft/class_1297;method_48155()Z
official dK
Lbsh;dK()Z
-
getOffGroundSpeed
protected float getOffGroundSpeed()- Overrides:
getOffGroundSpeed
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getOffGroundSpeed
Lnet/minecraft/entity/LivingEntity;getOffGroundSpeed()F
intermediary method_49484
Lnet/minecraft/class_1309;method_49484()F
official fk
Lbtc;fk()F
-
getBlockInteractionRange
public double getBlockInteractionRange()- Mappings:
Namespace Name Mixin selector named getBlockInteractionRange
Lnet/minecraft/entity/player/PlayerEntity;getBlockInteractionRange()D
intermediary method_55754
Lnet/minecraft/class_1657;method_55754()D
official gA
Lcml;gA()D
-
getEntityInteractionRange
public double getEntityInteractionRange()- Mappings:
Namespace Name Mixin selector named getEntityInteractionRange
Lnet/minecraft/entity/player/PlayerEntity;getEntityInteractionRange()D
intermediary method_55755
Lnet/minecraft/class_1657;method_55755()D
official gB
Lcml;gB()D
-
canInteractWithEntity
Returns whether the player can interact withentity
.This returns
false
for removed entities.- Parameters:
additionalRange
- the player's additional interaction range added to the default range- Returns:
- whether the player can interact with
entity
- Mappings:
Namespace Name Mixin selector named canInteractWithEntity
Lnet/minecraft/entity/player/PlayerEntity;canInteractWithEntity(Lnet/minecraft/entity/Entity;D)Z
intermediary method_56094
Lnet/minecraft/class_1657;method_56094(Lnet/minecraft/class_1297;D)Z
official b
Lcml;b(Lbsh;D)Z
-
canInteractWithEntityIn
Returns whether the player can interact with entity whose bounding box isbox
.- Parameters:
additionalRange
- the player's additional interaction range added to the default range- Returns:
- whether the player can interact with entity whose bounding box
is
box
- Mappings:
Namespace Name Mixin selector named canInteractWithEntityIn
Lnet/minecraft/entity/player/PlayerEntity;canInteractWithEntityIn(Lnet/minecraft/util/math/Box;D)Z
intermediary method_56092
Lnet/minecraft/class_1657;method_56092(Lnet/minecraft/class_238;D)Z
official a
Lcml;a(Lewc;D)Z
-
canInteractWithBlockAt
Returns whether the player can interact with block atpos
.- Parameters:
additionalRange
- the player's additional interaction range added to the default range- Returns:
- whether the player can interact with block at
pos
- Mappings:
Namespace Name Mixin selector named canInteractWithBlockAt
Lnet/minecraft/entity/player/PlayerEntity;canInteractWithBlockAt(Lnet/minecraft/util/math/BlockPos;D)Z
intermediary method_56093
Lnet/minecraft/class_1657;method_56093(Lnet/minecraft/class_2338;D)Z
official a
Lcml;a(Lja;D)Z
-
clearCurrentExplosion
public void clearCurrentExplosion()- Mappings:
Namespace Name Mixin selector named clearCurrentExplosion
Lnet/minecraft/entity/player/PlayerEntity;clearCurrentExplosion()V
intermediary method_58396
Lnet/minecraft/class_1657;method_58396()V
official gC
Lcml;gC()V
-