Class PlayerEntity
- All Implemented Interfaces:
ComponentsAccess,Attackable,ContainerUser,DataTracked,StackReferenceGetter,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable,ServerWaypoint,Waypoint
- Direct Known Subclasses:
AbstractClientPlayerEntity,ServerPlayerEntity
- Mappings:
Namespace Name named net/minecraft/entity/player/PlayerEntityintermediary net/minecraft/class_1657official dcm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA reason why a player cannot start sleeping.Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.OffsetNested classes/interfaces inherited from interface net.minecraft.world.waypoint.ServerWaypoint
ServerWaypoint.AzimuthWaypointTracker, ServerWaypoint.ChebyshevDistanceValidatedTracker, ServerWaypoint.ChunkWaypointTracker, ServerWaypoint.ManhattanDistanceValidatedTracker, ServerWaypoint.PositionalWaypointTracker, ServerWaypoint.WaypointTrackerNested classes/interfaces inherited from interface net.minecraft.world.waypoint.Waypoint
Waypoint.Config -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerAbilitiesprotected intprivate static final TrackedData<Float> protected final floatstatic final floatstatic final intprivate intprotected floatprotected intstatic final intprotected EnderChestInventorystatic final floatintintfloatprivate static final intstatic final intprivate static final booleanprivate static final intprivate static final shortprivate static final floatprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final com.mojang.authlib.GameProfilestatic final intprotected HungerManagerprivate boolean(package private) final PlayerInventoryprotected booleanprivate final ItemCooldownManagerprivate intprivate static final TrackedData<OptionalInt> private booleanstatic final intfinal PlayerScreenHandlerprivate booleanprotected intprivate static final TrackedData<OptionalInt> private static final TrackedData<Integer> private ItemStackstatic final intprivate intintstatic final intFields inherited from class net.minecraft.entity.PlayerLikeEntity
EYE_HEIGHT, MAIN_ARM, MAIN_ARM_ID, MODEL_CUSTOMIZATION, PLAYER_MODE_CUSTOMIZATION_ID, POSE_DIMENSIONS, STANDING_DIMENSIONS, SWIMMING_BOX_HEIGHT, VEHICLE_ATTACHMENTFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, BRAIN_KEY, dead, DEATH_TICKS, DEATH_TIME_KEY, deathTime, despawnCounter, elytraFlightController, equipment, EQUIPMENT_KEY, EQUIPMENT_SLOT_ID, FALL_FLYING_KEY, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, field_63293, field_63294, forwardSpeed, glidingTicks, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, HEALTH_KEY, HURT_BY_TIMESTAMP_KEY, HURT_TIME_KEY, hurtTime, interpolator, itemUseTimeLeft, jumping, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, piercingCooldowns, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, SLEEPING_POS_KEY, stuckArrowTimer, stuckStingerTimer, ticksSinceHandEquipping, ticksSinceLastAttack, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, field_64356, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.waypoint.ServerWaypoint
AZIMUTH_THRESHOLDFields inherited from interface net.minecraft.world.waypoint.Waypoint
DEFAULT_PLAYER_RANGE, DISABLE_TRACKING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAttackParticlesAndSounds(Entity target, boolean criticalHit, boolean sweeping, boolean cooldownPassed, float enchantDamage) voidaddCritParticles(Entity target) voidaddEnchantedHitParticles(Entity target) voidaddExhaustion(float exhaustion) voidaddExperience(int experience) voidaddExperienceLevels(int levels) voidaddScore(int score) private MutableTextaddTellClickEvent(MutableText component) protected Vec3dadjustMovementForSneaking(Vec3d movement, MovementType type) voidanimateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).protected voidapplyDamage(ServerWorld world, DamageSource source, float amount) voidapplyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) asString()voidprotected voidattackLivingEntity(LivingEntity target) voidbooleanbooleanprotected booleancanChangeIntoPose(EntityPose pose) booleancanConsume(boolean ignoreHunger) booleanbooleanprotected booleancanGlide()booleancanHarvest(BlockState state) Determines whether the player is able to harvest drops from the specified block state.booleancanInteractWithBlockAt(BlockPos pos, double additionalRange) Returns whether the player can interact with block atpos.booleancanInteractWithEntity(Entity entity, double additionalRange) Returns whether the player can interact withentity.booleancanInteractWithEntityIn(Box box, double additionalRange) Returns whether the player can interact with entity whose bounding box isbox.booleanbooleanprivate booleancannotAttack(Entity target) booleancanPlaceOn(BlockPos pos, Direction facing, ItemStack stack) booleanReturns whether this player has been sleeping long enough to count towards resetting the time of day and weather of the server.booleanbooleanprivate booleancanUseSweepAttack(boolean cooldownPassed, boolean criticalHit, boolean knockback) booleanvoidprotected booleanprotected voidCloses the currently open handled screen.private voidcollideWithEntity(Entity entity) protected ItemCooldownManagerprotected EntityEquipmentbooleandamage(ServerWorld world, DamageSource source, float amount) Applies a damage to this entity.protected voiddamageArmor(DamageSource source, float amount) protected voiddamageHelmet(DamageSource source, float amount) voidDismounts the vehicle if present.protected booleandoesNotSuffocate(BlockPos pos) private voiddoSweepingAttack(Entity target, float damage, DamageSource damageSource, float cooldownProgress) voiddropCreativeStack(ItemStack stack) protected voiddropInventory(ServerWorld world) @Nullable ItemEntityprotected voidfloatfloatgetAttackCooldownProgress(float baseTime) floatfloatgetBlockBreakingSpeed(BlockState block) doubleprotected intdoubleprotected floatgetDamageAgainst(Entity target, float baseDamage, DamageSource damageSource) private DamageSourcegetDamageSource(ItemStack stack) floatprotected SoundEventintReturns the entity's default portal cooldown.Returns the display name of this object.intdoubleprivate EntityPoseprotected intgetExperienceToDrop(ServerWorld world) Called when this entity is killed and returns the amount of experience to drop.abstract @Nullable GameModecom.mojang.authlib.GameProfilefloatgetHandEquippingProgress(float baseTime) protected SoundEventprotected SoundEventgetHurtSound(DamageSource source) getLeashPos(float tickProgress) Returns the position of the leash this entity holds.floatgetLuck()protected floatReturns the maximum rotation of the head relative to the body in degrees.protected Entity.MoveEffectReturns the possible effect(s) of an entity moving.floatgetName()Returns the name of this object.Returns the name uniquely identifying the score holder.intprotected floatgetPoses()getProjectileType(ItemStack stack) intgetScore()intReturns the sound category for sounds from this entity.floatprotected SoundEvent@Nullable StackReferencegetStackReference(int slot) protected SoundEventprotected floatbooleangiveItemStack(ItemStack stack) private voidhandleAttackDamage(Entity target, float healthBeforeAttack) booleanhandleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.voidvoidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.booleanbooleanvoidincreaseStat(Stat<?> stat, int amount) voidincreaseStat(Identifier stat, int amount) voidincrementStat(Stat<?> stat) voidincrementStat(Identifier stat) protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.protected booleanisArmorSlot(EquipmentSlot slot) booleanisBelowMinimumAttackCharge(ItemStack stack, int baseTime) booleanisBlockBreakingRestricted(World world, BlockPos pos, GameMode gameMode) booleanprotected booleanbooleanbooleanbooleanprivate booleanisCriticalHit(Entity target) private booleanisEquipped(Item item) protected booleanbooleanbooleanisInvulnerableTo(ServerWorld world, DamageSource source) booleanisLoaded()Returns whether the player is considered "loaded", either because the client acknowledged loading or because the 60-tick timer elapsed.booleanbooleanisPlayer()booleanReturns whether the entity is pushed by fluids.private booleanisSpaceAroundPlayerEmpty(double offsetX, double offsetZ, double stepHeight) booleanReturns whether the entity is a spectator.private booleanisStandingOnSurface(float stepHeight) booleanReturns whether the entity is swimming.booleanbooleanisViewingContainerAt(ViewerCountManager viewerCountManager, BlockPos pos) voidknockbackTarget(Entity target, float strength, Vec3d playerTargetVelocity) intlockRecipes(Collection<RecipeEntry<?>> recipes) protected static OptionalIntmapParrotVariant(Optional<ParrotEntity.Variant> variant) private static Optional<ParrotEntity.Variant> mapParrotVariantIfPresent(OptionalInt variantIndex) private voidmethod_76457(SoundEvent soundEvent) protected booleanprivate floatvoidonBubbleColumnCollision(boolean drag) Called when the entity collides with a bubble column without an air above.voidonBubbleColumnSurfaceCollision(boolean drag, BlockPos pos) Called when the entity collides with a bubble column with an air above.voidonDeath(DamageSource damageSource) protected voidRuns closing tasks for the current screen handler and sets it to theplayerScreenHandler.booleanonKilledOther(ServerWorld world, LivingEntity other, DamageSource damageSource) Called when this entity killsother.voidonPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidonRecipeCrafted(RecipeEntry<?> recipe, List<ItemStack> ingredients) protected voidprivate voidonTargetDamaged(Entity target, ItemStack stack, DamageSource damageSource, boolean runEnchantmentEffects) voidvoidopenCommandBlockScreen(CommandBlockBlockEntity commandBlock) voidopenDialog(RegistryEntry<Dialog> dialog) voidopenEditSignScreen(SignBlockEntity sign, boolean front) openHandledScreen(@Nullable NamedScreenHandlerFactory factory) voidopenHorseInventory(AbstractHorseEntity horse, Inventory inventory) voidopenJigsawScreen(JigsawBlockEntity jigsaw) voidopenStructureBlockScreen(StructureBlockBlockEntity structureBlock) voidopenTestBlockScreen(TestBlockEntity testBlock) voidopenTestInstanceBlockScreen(TestInstanceBlockEntity testInstanceBlock) booleanpierce(EquipmentSlot slot, Entity target, float damage, boolean dealDamage, boolean knockback, boolean dismount) voidplaySound(SoundEvent sound, float volume, float pitch) voidplaySoundToPlayer(SoundEvent sound, SoundCategory category, float volume, float pitch) Playssoundto this player only.protected voidplayStepSound(BlockPos pos, BlockState state) protected voidreadCustomData(ReadView view) protected static Optional<ParrotEntity.Variant> voidremove(Entity.RemovalReason reason) Removes the entity.voidvoidvoidvoidvoidsendMessage(Text message, boolean overlay) Adds a message to this player's HUD.voidsendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) protected voidsetAbsorptionAmountUnclamped(float absorptionAmount) voidsetFireTicks(int fireTicks) Sets the entity on fire forticksticks.voidsetIgnoreFallDamageFromCurrentExplosion(boolean ignoreFallDamageFromCurrentExplosion) voidsetLastDeathPos(Optional<GlobalPos> lastDeathPos) voidvoidsetLoaded(boolean loaded) voidsetReducedDebugInfo(boolean reducedDebugInfo) voidvoidsetScore(int score) protected booleanReturns if this entity may always drop experience, skipping any other checks.booleanbooleanbooleanshouldDamagePlayer(PlayerEntity player) protected booleanbooleanbooleanbooleanReturns whether to render the name of the entity.booleanbooleanbooleanbooleanvoidslowMovement(BlockState state, Vec3d multiplier) CallsEntity.onLanding()and slows this entity.voidprotected voidtakeShieldHit(ServerWorld world, LivingEntity attacker) voidtick()Ticks this entity.protected voidvoidvoidvoidvoidAllows you to do certain speed and velocity calculations.voidprivate booleantryDeflect(Entity entity) com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason, Unit> Tries to start sleeping on a block.intunlockRecipes(Collection<RecipeEntry<?>> recipes) voidunlockRecipes(List<RegistryKey<Recipe<?>>> recipes) protected voidvoidprivate voidprotected booleanvoidvoidCalled when the player uses (defaults to right click) a writable or written book item.voiduseRiptide(int riptideTicks, float riptideAttackDamage, ItemStack stack) protected voidvoidwakeUp()Wakes this entity up.voidwakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers) Wakes this player up.protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.PlayerLikeEntity
getBaseDimensions, getMainArm, isModelPartVisible, setMainArmMethods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, applyArmorToDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, baseTick, becomeAngry, beforePacketsSent, canBreatheInWater, canDispenserEquipSlot, canEquip, canEquipFromDispenser, canFreeze, canGlideWith, canHaveStatusEffect, canHit, canPickUpLoot, canSee, canSee, canTarget, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createTracker, damageEquipment, deserializeBrain, disableExperienceDropping, drop, dropEquipment, dropExperience, dropItem, dropLoot, dropLoot, endCombat, enterCombat, equipStack, fall, forEachBrushedItem, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, generateLoot, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEntity, getEquippedStack, getEquipSound, getExperienceToDrop, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLootTableSeed, getMainHandStack, getMaxAbsorption, getMaxHealth, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundVolume, getStackInArm, getStackInHand, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getTimeSinceLastKineticAttack, getWaypointConfig, getWeaponDisableBlockingForSeconds, getYaw, giveOrDropStack, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, hasWaypoint, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isInPiercingCooldown, isInsideWall, isInSwimmingPose, isJumping, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isTravellingInFluid, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, method_76444, modifyAppliedDamage, onAttacking, onDamaged, onEquipStack, onKilledBy, onRemoval, onRemove, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, playAttackSound, playBlockFallSound, playHurtSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldDropExperience, shouldDropLoot, shouldDrown, sleep, spawnItemParticles, startPiercingCooldown, stopGliding, stopRiding, stopUsingItem, swimUpward, swingHand, swingHand, takeKnockback, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickNewAi, tickRiptide, tickStatusEffects, tiltScreen, travelFlying, travelFlying, travelInWater, triggerItemPickedUpByEntityCriteria, tryAttack, turnHead, updateAttribute, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadRotationVector, getHeight, getHeldQuadLeashOffsets, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, method_76333, method_76440, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSoundIfNotSilent, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, registerTracking, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateTrackedAngles, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.entity.ContainerUser
asLivingEntityMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.inventory.StackReferenceGetter
getStackReferences
-
Field Details
-
MAX_HEALTH
public static final int MAX_HEALTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_HEALTHLnet/minecraft/entity/player/PlayerEntity;MAX_HEALTH:Iintermediary field_30644Lnet/minecraft/class_1657;field_30644:Iofficial ccLdcm;cc:I
-
SLEEP_DURATION
public static final int SLEEP_DURATION- See Also:
- Mappings:
Namespace Name Mixin selector named SLEEP_DURATIONLnet/minecraft/entity/player/PlayerEntity;SLEEP_DURATION:Iintermediary field_30645Lnet/minecraft/class_1657;field_30645:Iofficial cdLdcm;cd:I
-
WAKE_UP_DURATION
public static final int WAKE_UP_DURATION- See Also:
- Mappings:
Namespace Name Mixin selector named WAKE_UP_DURATIONLnet/minecraft/entity/player/PlayerEntity;WAKE_UP_DURATION:Iintermediary field_30646Lnet/minecraft/class_1657;field_30646:Iofficial ceLdcm;ce:I
-
ENDER_SLOT_OFFSET
public static final int ENDER_SLOT_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named ENDER_SLOT_OFFSETLnet/minecraft/entity/player/PlayerEntity;ENDER_SLOT_OFFSET:Iintermediary field_30647Lnet/minecraft/class_1657;field_30647:Iofficial cfLdcm;cf:I
-
HELD_ITEM_SLOT_OFFSET
public static final int HELD_ITEM_SLOT_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named HELD_ITEM_SLOT_OFFSETLnet/minecraft/entity/player/PlayerEntity;HELD_ITEM_SLOT_OFFSET:Iintermediary field_49734Lnet/minecraft/class_1657;field_49734:Iofficial cgLdcm;cg:I
-
CRAFTING_SLOT_OFFSET
public static final int CRAFTING_SLOT_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named CRAFTING_SLOT_OFFSETLnet/minecraft/entity/player/PlayerEntity;CRAFTING_SLOT_OFFSET:Iintermediary field_49735Lnet/minecraft/class_1657;field_49735:Iofficial chLdcm;ch:I
-
BLOCK_INTERACTION_RANGE
public static final float BLOCK_INTERACTION_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named BLOCK_INTERACTION_RANGELnet/minecraft/entity/player/PlayerEntity;BLOCK_INTERACTION_RANGE:Fintermediary field_47819Lnet/minecraft/class_1657;field_47819:Fofficial ciLdcm;ci:F
-
ENTITY_INTERACTION_RANGE
public static final float ENTITY_INTERACTION_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named ENTITY_INTERACTION_RANGELnet/minecraft/entity/player/PlayerEntity;ENTITY_INTERACTION_RANGE:Fintermediary field_47820Lnet/minecraft/class_1657;field_47820:Fofficial cjLdcm;cj:F
-
field_52222
private static final int field_52222- See Also:
- Mappings:
Namespace Name Mixin selector named field_52222Lnet/minecraft/entity/player/PlayerEntity;field_52222:Iintermediary field_52222Lnet/minecraft/class_1657;field_52222:Iofficial aLdcm;a:I
-
ABSORPTION_AMOUNT
- Mappings:
Namespace Name Mixin selector named ABSORPTION_AMOUNTLnet/minecraft/entity/player/PlayerEntity;ABSORPTION_AMOUNT:Lnet/minecraft/entity/data/TrackedData;intermediary field_7491Lnet/minecraft/class_1657;field_7491:Lnet/minecraft/class_2940;official bLdcm;b:Lalw;
-
SCORE
- Mappings:
Namespace Name Mixin selector named SCORELnet/minecraft/entity/player/PlayerEntity;SCORE:Lnet/minecraft/entity/data/TrackedData;intermediary field_7511Lnet/minecraft/class_1657;field_7511:Lnet/minecraft/class_2940;official cLdcm;c:Lalw;
-
LEFT_SHOULDER_PARROT_VARIANT_ID
- Mappings:
Namespace Name Mixin selector named LEFT_SHOULDER_PARROT_VARIANT_IDLnet/minecraft/entity/player/PlayerEntity;LEFT_SHOULDER_PARROT_VARIANT_ID:Lnet/minecraft/entity/data/TrackedData;intermediary field_62530Lnet/minecraft/class_1657;field_62530:Lnet/minecraft/class_2940;official dLdcm;d:Lalw;
-
RIGHT_SHOULDER_PARROT_VARIANT_ID
- Mappings:
Namespace Name Mixin selector named RIGHT_SHOULDER_PARROT_VARIANT_IDLnet/minecraft/entity/player/PlayerEntity;RIGHT_SHOULDER_PARROT_VARIANT_ID:Lnet/minecraft/entity/data/TrackedData;intermediary field_62531Lnet/minecraft/class_1657;field_62531:Lnet/minecraft/class_2940;official eLdcm;e:Lalw;
-
field_55202
public static final int field_55202- See Also:
- Mappings:
Namespace Name Mixin selector named field_55202Lnet/minecraft/entity/player/PlayerEntity;field_55202:Iintermediary field_55202Lnet/minecraft/class_1657;field_55202:Iofficial ckLdcm;ck:I
-
field_57725
private static final short field_57725- See Also:
- Mappings:
Namespace Name Mixin selector named field_57725Lnet/minecraft/entity/player/PlayerEntity;field_57725:Sintermediary field_57725Lnet/minecraft/class_1657;field_57725:Sofficial fLdcm;f:S
-
field_57726
private static final float field_57726- See Also:
- Mappings:
Namespace Name Mixin selector named field_57726Lnet/minecraft/entity/player/PlayerEntity;field_57726:Fintermediary field_57726Lnet/minecraft/class_1657;field_57726:Fofficial gLdcm;g:F
-
field_57727
private static final int field_57727- See Also:
- Mappings:
Namespace Name Mixin selector named field_57727Lnet/minecraft/entity/player/PlayerEntity;field_57727:Iintermediary field_57727Lnet/minecraft/class_1657;field_57727:Iofficial hLdcm;h:I
-
field_57728
private static final int field_57728- See Also:
- Mappings:
Namespace Name Mixin selector named field_57728Lnet/minecraft/entity/player/PlayerEntity;field_57728:Iintermediary field_57728Lnet/minecraft/class_1657;field_57728:Iofficial iLdcm;i:I
-
field_57729
private static final int field_57729- See Also:
- Mappings:
Namespace Name Mixin selector named field_57729Lnet/minecraft/entity/player/PlayerEntity;field_57729:Iintermediary field_57729Lnet/minecraft/class_1657;field_57729:Iofficial jLdcm;j:I
-
field_57730
private static final int field_57730- See Also:
- Mappings:
Namespace Name Mixin selector named field_57730Lnet/minecraft/entity/player/PlayerEntity;field_57730:Iintermediary field_57730Lnet/minecraft/class_1657;field_57730:Iofficial kLdcm;k:I
-
field_57731
private static final int field_57731- See Also:
- Mappings:
Namespace Name Mixin selector named field_57731Lnet/minecraft/entity/player/PlayerEntity;field_57731:Iintermediary field_57731Lnet/minecraft/class_1657;field_57731:Iofficial cCLdcm;cC:I
-
field_57723
private static final boolean field_57723- See Also:
- Mappings:
Namespace Name Mixin selector named field_57723Lnet/minecraft/entity/player/PlayerEntity;field_57723:Zintermediary field_57723Lnet/minecraft/class_1657;field_57723:Zofficial cDLdcm;cD:Z
-
field_57724
private static final int field_57724- See Also:
- Mappings:
Namespace Name Mixin selector named field_57724Lnet/minecraft/entity/player/PlayerEntity;field_57724:Iintermediary field_57724Lnet/minecraft/class_1657;field_57724:Iofficial cELdcm;cE:I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/entity/player/PlayerEntity;inventory:Lnet/minecraft/entity/player/PlayerInventory;intermediary field_7514Lnet/minecraft/class_1657;field_7514:Lnet/minecraft/class_1661;official cFLdcm;cF:Ldcl;
-
enderChestInventory
- Mappings:
Namespace Name Mixin selector named enderChestInventoryLnet/minecraft/entity/player/PlayerEntity;enderChestInventory:Lnet/minecraft/inventory/EnderChestInventory;intermediary field_7486Lnet/minecraft/class_1657;field_7486:Lnet/minecraft/class_1730;official clLdcm;cl:Ldhr;
-
playerScreenHandler
- Mappings:
Namespace Name Mixin selector named playerScreenHandlerLnet/minecraft/entity/player/PlayerEntity;playerScreenHandler:Lnet/minecraft/screen/PlayerScreenHandler;intermediary field_7498Lnet/minecraft/class_1657;field_7498:Lnet/minecraft/class_1723;official cmLdcm;cm:Ldhg;
-
currentScreenHandler
- Mappings:
Namespace Name Mixin selector named currentScreenHandlerLnet/minecraft/entity/player/PlayerEntity;currentScreenHandler:Lnet/minecraft/screen/ScreenHandler;intermediary field_7512Lnet/minecraft/class_1657;field_7512:Lnet/minecraft/class_1703;official cnLdcm;cn:Ldgd;
-
hungerManager
- Mappings:
Namespace Name Mixin selector named hungerManagerLnet/minecraft/entity/player/PlayerEntity;hungerManager:Lnet/minecraft/entity/player/HungerManager;intermediary field_7493Lnet/minecraft/class_1657;field_7493:Lnet/minecraft/class_1702;official coLdcm;co:Ldfz;
-
abilityResyncCountdown
protected int abilityResyncCountdown- Mappings:
Namespace Name Mixin selector named abilityResyncCountdownLnet/minecraft/entity/player/PlayerEntity;abilityResyncCountdown:Iintermediary field_7489Lnet/minecraft/class_1657;field_7489:Iofficial cpLdcm;cp:I
-
loaded
private boolean loaded- Mappings:
Namespace Name Mixin selector named loadedLnet/minecraft/entity/player/PlayerEntity;loaded:Zintermediary field_55204Lnet/minecraft/class_1657;field_55204:Zofficial cGLdcm;cG:Z
-
remainingLoadTicks
protected int remainingLoadTicks- Mappings:
Namespace Name Mixin selector named remainingLoadTicksLnet/minecraft/entity/player/PlayerEntity;remainingLoadTicks:Iintermediary field_55203Lnet/minecraft/class_1657;field_55203:Iofficial cqLdcm;cq:I
-
experiencePickUpDelay
public int experiencePickUpDelay- Mappings:
Namespace Name Mixin selector named experiencePickUpDelayLnet/minecraft/entity/player/PlayerEntity;experiencePickUpDelay:Iintermediary field_7504Lnet/minecraft/class_1657;field_7504:Iofficial crLdcm;cr:I
-
sleepTimer
private int sleepTimer- Mappings:
Namespace Name Mixin selector named sleepTimerLnet/minecraft/entity/player/PlayerEntity;sleepTimer:Iintermediary field_7487Lnet/minecraft/class_1657;field_7487:Iofficial cHLdcm;cH:I
-
isSubmergedInWater
protected boolean isSubmergedInWater- Mappings:
Namespace Name Mixin selector named isSubmergedInWaterLnet/minecraft/entity/player/PlayerEntity;isSubmergedInWater:Zintermediary field_7490Lnet/minecraft/class_1657;field_7490:Zofficial csLdcm;cs:Z
-
abilities
- Mappings:
Namespace Name Mixin selector named abilitiesLnet/minecraft/entity/player/PlayerEntity;abilities:Lnet/minecraft/entity/player/PlayerAbilities;intermediary field_7503Lnet/minecraft/class_1657;field_7503:Lnet/minecraft/class_1656;official cILdcm;cI:Ldci;
-
experienceLevel
public int experienceLevel- Mappings:
Namespace Name Mixin selector named experienceLevelLnet/minecraft/entity/player/PlayerEntity;experienceLevel:Iintermediary field_7520Lnet/minecraft/class_1657;field_7520:Iofficial ctLdcm;ct:I
-
totalExperience
public int totalExperience- Mappings:
Namespace Name Mixin selector named totalExperienceLnet/minecraft/entity/player/PlayerEntity;totalExperience:Iintermediary field_7495Lnet/minecraft/class_1657;field_7495:Iofficial cuLdcm;cu:I
-
experienceProgress
public float experienceProgress- Mappings:
Namespace Name Mixin selector named experienceProgressLnet/minecraft/entity/player/PlayerEntity;experienceProgress:Fintermediary field_7510Lnet/minecraft/class_1657;field_7510:Fofficial cvLdcm;cv:F
-
enchantingTableSeed
protected int enchantingTableSeed- Mappings:
Namespace Name Mixin selector named enchantingTableSeedLnet/minecraft/entity/player/PlayerEntity;enchantingTableSeed:Iintermediary field_7494Lnet/minecraft/class_1657;field_7494:Iofficial cwLdcm;cw:I
-
baseFlySpeed
protected final float baseFlySpeed- See Also:
- Mappings:
Namespace Name Mixin selector named baseFlySpeedLnet/minecraft/entity/player/PlayerEntity;baseFlySpeed:Fintermediary field_7509Lnet/minecraft/class_1657;field_7509:Fofficial cxLdcm;cx:F
-
lastPlayedLevelUpSoundTime
private int lastPlayedLevelUpSoundTime- Mappings:
Namespace Name Mixin selector named lastPlayedLevelUpSoundTimeLnet/minecraft/entity/player/PlayerEntity;lastPlayedLevelUpSoundTime:Iintermediary field_7508Lnet/minecraft/class_1657;field_7508:Iofficial cJLdcm;cJ:I
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfile- Mappings:
Namespace Name Mixin selector named gameProfileLnet/minecraft/entity/player/PlayerEntity;gameProfile:Lcom/mojang/authlib/GameProfile;intermediary field_7507Lnet/minecraft/class_1657;field_7507:Lcom/mojang/authlib/GameProfile;official cKLdcm;cK:Lcom/mojang/authlib/GameProfile;
-
reducedDebugInfo
private boolean reducedDebugInfo- Mappings:
Namespace Name Mixin selector named reducedDebugInfoLnet/minecraft/entity/player/PlayerEntity;reducedDebugInfo:Zintermediary field_7523Lnet/minecraft/class_1657;field_7523:Zofficial cLLdcm;cL:Z
-
selectedItem
- Mappings:
Namespace Name Mixin selector named selectedItemLnet/minecraft/entity/player/PlayerEntity;selectedItem:Lnet/minecraft/item/ItemStack;intermediary field_7525Lnet/minecraft/class_1657;field_7525:Lnet/minecraft/class_1799;official cMLdcm;cM:Ldkm;
-
itemCooldownManager
- Mappings:
Namespace Name Mixin selector named itemCooldownManagerLnet/minecraft/entity/player/PlayerEntity;itemCooldownManager:Lnet/minecraft/entity/player/ItemCooldownManager;intermediary field_7484Lnet/minecraft/class_1657;field_7484:Lnet/minecraft/class_1796;official cNLdcm;cN:Ldkj;
-
lastDeathPos
- Mappings:
Namespace Name Mixin selector named lastDeathPosLnet/minecraft/entity/player/PlayerEntity;lastDeathPos:Ljava/util/Optional;intermediary field_39445Lnet/minecraft/class_1657;field_39445:Ljava/util/Optional;official cOLdcm;cO:Ljava/util/Optional;
-
fishHook
- Mappings:
Namespace Name Mixin selector named fishHookLnet/minecraft/entity/player/PlayerEntity;fishHook:Lnet/minecraft/entity/projectile/FishingBobberEntity;intermediary field_7513Lnet/minecraft/class_1657;field_7513:Lnet/minecraft/class_1536;official cyLdcm;cy:Lddf;
-
damageTiltYaw
protected float damageTiltYaw- Mappings:
Namespace Name Mixin selector named damageTiltYawLnet/minecraft/entity/player/PlayerEntity;damageTiltYaw:Fintermediary field_41765Lnet/minecraft/class_1657;field_41765:Fofficial czLdcm;cz:F
-
currentExplosionImpactPos
- Mappings:
Namespace Name Mixin selector named currentExplosionImpactPosLnet/minecraft/entity/player/PlayerEntity;currentExplosionImpactPos:Lnet/minecraft/util/math/Vec3d;intermediary field_49989Lnet/minecraft/class_1657;field_49989:Lnet/minecraft/class_243;official cALdcm;cA:Lfse;
-
explodedBy
- Mappings:
Namespace Name Mixin selector named explodedByLnet/minecraft/entity/player/PlayerEntity;explodedBy:Lnet/minecraft/entity/Entity;intermediary field_49990Lnet/minecraft/class_1657;field_49990:Lnet/minecraft/class_1297;official cBLdcm;cB:Lcgi;
-
ignoreFallDamageFromCurrentExplosion
private boolean ignoreFallDamageFromCurrentExplosion- Mappings:
Namespace Name Mixin selector named ignoreFallDamageFromCurrentExplosionLnet/minecraft/entity/player/PlayerEntity;ignoreFallDamageFromCurrentExplosion:Zintermediary field_49991Lnet/minecraft/class_1657;field_49991:Zofficial cPLdcm;cP:Z
-
currentExplosionResetGraceTime
private int currentExplosionResetGraceTime- Mappings:
Namespace Name Mixin selector named currentExplosionResetGraceTimeLnet/minecraft/entity/player/PlayerEntity;currentExplosionResetGraceTime:Iintermediary field_52223Lnet/minecraft/class_1657;field_52223:Iofficial cQLdcm;cQ:I
-
-
Constructor Details
-
PlayerEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/player/PlayerEntity;<init>(Lnet/minecraft/world/World;Lcom/mojang/authlib/GameProfile;)Vintermediary <init>Lnet/minecraft/class_1657;<init>(Lnet/minecraft/class_1937;Lcom/mojang/authlib/GameProfile;)Vofficial <init>Ldcm;<init>(Ldvg;Lcom/mojang/authlib/GameProfile;)V
-
-
Method Details
-
createEquipment
- Overrides:
createEquipmentin classLivingEntity- Mappings:
Namespace Name Mixin selector named createEquipmentLnet/minecraft/entity/LivingEntity;createEquipment()Lnet/minecraft/entity/EntityEquipment;intermediary method_67518Lnet/minecraft/class_1309;method_67518()Lnet/minecraft/class_10630;official etLchk;et()Lcgm;
-
isBlockBreakingRestricted
- Mappings:
Namespace Name Mixin selector named isBlockBreakingRestrictedLnet/minecraft/entity/player/PlayerEntity;isBlockBreakingRestricted(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/GameMode;)Zintermediary method_21701Lnet/minecraft/class_1657;method_21701(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1934;)Zofficial aLdcm;a(Ldvg;Lis;Ldvd;)Z
-
createPlayerAttributes
- Mappings:
Namespace Name Mixin selector named createPlayerAttributesLnet/minecraft/entity/player/PlayerEntity;createPlayerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_26956Lnet/minecraft/class_1657;method_26956()Lnet/minecraft/class_5132$class_5133;official gwLdcm;gw()Lciq$a;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin classPlayerLikeEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcgi;a(Lama$a;)V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin 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 tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcgi;g()V
-
getMaxRelativeHeadRotation
protected float getMaxRelativeHeadRotation()Returns the maximum rotation of the head relative to the body in degrees.- Overrides:
getMaxRelativeHeadRotationin classLivingEntity- Returns:
- the maximum rotation of the head relative to the body in degrees
- Mappings:
Namespace Name Mixin selector named getMaxRelativeHeadRotationLnet/minecraft/entity/LivingEntity;getMaxRelativeHeadRotation()Fintermediary method_53964Lnet/minecraft/class_1309;method_53964()Fofficial fMLchk;fM()F
-
shouldCancelInteraction
public boolean shouldCancelInteraction()- Mappings:
Namespace Name Mixin selector named shouldCancelInteractionLnet/minecraft/entity/player/PlayerEntity;shouldCancelInteraction()Zintermediary method_21823Lnet/minecraft/class_1657;method_21823()Zofficial gxLdcm;gx()Z
-
shouldDismount
protected boolean shouldDismount()- Mappings:
Namespace Name Mixin selector named shouldDismountLnet/minecraft/entity/player/PlayerEntity;shouldDismount()Zintermediary method_21824Lnet/minecraft/class_1657;method_21824()Zofficial gyLdcm;gy()Z
-
clipAtLedge
protected boolean clipAtLedge()- Mappings:
Namespace Name Mixin selector named clipAtLedgeLnet/minecraft/entity/player/PlayerEntity;clipAtLedge()Zintermediary method_21825Lnet/minecraft/class_1657;method_21825()Zofficial gzLdcm;gz()Z
-
updateWaterSubmersionState
protected boolean updateWaterSubmersionState()- Mappings:
Namespace Name Mixin selector named updateWaterSubmersionStateLnet/minecraft/entity/player/PlayerEntity;updateWaterSubmersionState()Zintermediary method_7295Lnet/minecraft/class_1657;method_7295()Zofficial gALdcm;gA()Z
-
onBubbleColumnSurfaceCollision
Called when the entity collides with a bubble column with an air above.This applies the bubble column velocity by default.
BoatEntityuses this to spawn splash particles.- Overrides:
onBubbleColumnSurfaceCollisionin classEntity- Parameters:
drag- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurfaceCollisionLnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(ZLnet/minecraft/util/math/BlockPos;)Vintermediary method_5700Lnet/minecraft/class_1297;method_5700(ZLnet/minecraft/class_2338;)Vofficial aLcgi;a(ZLis;)V
-
onBubbleColumnCollision
public void onBubbleColumnCollision(boolean drag) Called when the entity collides with a bubble column without an air above.This applies the bubble column velocity by default.
- Overrides:
onBubbleColumnCollisionin classEntity- Parameters:
drag- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnCollisionLnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)Vintermediary method_5764Lnet/minecraft/class_1297;method_5764(Z)Vofficial mLcgi;m(Z)V
-
updateTurtleHelmet
private void updateTurtleHelmet()- Mappings:
Namespace Name Mixin selector named updateTurtleHelmetLnet/minecraft/entity/player/PlayerEntity;updateTurtleHelmet()Vintermediary method_7330Lnet/minecraft/class_1657;method_7330()Vofficial mLdcm;m()V
-
isEquipped
- Mappings:
Namespace Name Mixin selector named isEquippedLnet/minecraft/entity/player/PlayerEntity;isEquipped(Lnet/minecraft/item/Item;)Zintermediary method_64179Lnet/minecraft/class_1657;method_64179(Lnet/minecraft/class_1792;)Zofficial cLdcm;c(Ldki;)Z
-
createCooldownManager
- Mappings:
Namespace Name Mixin selector named createCooldownManagerLnet/minecraft/entity/player/PlayerEntity;createCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;intermediary method_7265Lnet/minecraft/class_1657;method_7265()Lnet/minecraft/class_1796;official fLdcm;f()Ldkj;
-
updatePose
protected void updatePose()- Mappings:
Namespace Name Mixin selector named updatePoseLnet/minecraft/entity/player/PlayerEntity;updatePose()Vintermediary method_7318Lnet/minecraft/class_1657;method_7318()Vofficial gBLdcm;gB()V
-
getExpectedPose
- Mappings:
Namespace Name Mixin selector named getExpectedPoseLnet/minecraft/entity/player/PlayerEntity;getExpectedPose()Lnet/minecraft/entity/EntityPose;intermediary method_66325Lnet/minecraft/class_1657;method_66325()Lnet/minecraft/class_4050;official nLdcm;n()Lchw;
-
canChangeIntoPose
- Mappings:
Namespace Name Mixin selector named canChangeIntoPoseLnet/minecraft/entity/player/PlayerEntity;canChangeIntoPose(Lnet/minecraft/entity/EntityPose;)Zintermediary method_52558Lnet/minecraft/class_1657;method_52558(Lnet/minecraft/class_4050;)Zofficial hLdcm;h(Lchw;)Z
-
getSwimSound
- Overrides:
getSwimSoundin classEntity- Mappings:
Namespace Name Mixin selector named getSwimSoundLnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5737Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;official bjLcgi;bj()Lbcy;
-
getSplashSound
- Overrides:
getSplashSoundin classEntity- Mappings:
Namespace Name Mixin selector named getSplashSoundLnet/minecraft/entity/Entity;getSplashSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5625Lnet/minecraft/class_1297;method_5625()Lnet/minecraft/class_3414;official bkLcgi;bk()Lbcy;
-
getHighSpeedSplashSound
- Overrides:
getHighSpeedSplashSoundin classEntity- Mappings:
Namespace Name Mixin selector named getHighSpeedSplashSoundLnet/minecraft/entity/Entity;getHighSpeedSplashSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5672Lnet/minecraft/class_1297;method_5672()Lnet/minecraft/class_3414;official blLcgi;bl()Lbcy;
-
getDefaultPortalCooldown
public int getDefaultPortalCooldown()Returns the entity's default portal cooldown.This is 300 ticks by default, or 10 ticks for players.
- Overrides:
getDefaultPortalCooldownin classEntity- Returns:
- the entity's default portal cooldown
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultPortalCooldownLnet/minecraft/entity/Entity;getDefaultPortalCooldown()Iintermediary method_5806Lnet/minecraft/class_1297;method_5806()Iofficial cnLcgi;cn()I
-
playSound
-
playSoundToPlayer
Playssoundto 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 playSoundToPlayerLnet/minecraft/entity/player/PlayerEntity;playSoundToPlayer(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)Vintermediary method_17356Lnet/minecraft/class_1657;method_17356(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)Vofficial aLdcm;a(Lbcy;Lbda;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:
getSoundCategoryin classEntity- Returns:
- the sound category for sounds from this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getSoundCategoryLnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;intermediary method_5634Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;official dALcgi;dA()Lbda;
-
getBurningDuration
protected int getBurningDuration()- Overrides:
getBurningDurationin classEntity- Mappings:
Namespace Name Mixin selector named getBurningDurationLnet/minecraft/entity/Entity;getBurningDuration()Iintermediary method_5676Lnet/minecraft/class_1297;method_5676()Iofficial dBLcgi;dB()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:
handleStatusin classLivingEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLcgi;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 closeHandledScreenLnet/minecraft/entity/player/PlayerEntity;closeHandledScreen()Vintermediary method_7346Lnet/minecraft/class_1657;method_7346()Vofficial rLdcm;r()V
-
onHandledScreenClosed
protected void onHandledScreenClosed()Runs closing tasks for the current screen handler and sets it to theplayerScreenHandler.- Mappings:
Namespace Name Mixin selector named onHandledScreenClosedLnet/minecraft/entity/player/PlayerEntity;onHandledScreenClosed()Vintermediary method_14247Lnet/minecraft/class_1657;method_14247()Vofficial sLdcm;s()V
-
tickRiding
public void tickRiding()- Overrides:
tickRidingin classLivingEntity- Mappings:
Namespace Name Mixin selector named tickRidingLnet/minecraft/entity/Entity;tickRiding()Vintermediary method_5842Lnet/minecraft/class_1297;method_5842()Vofficial tLcgi;t()V
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classLivingEntity- Mappings:
Namespace Name Mixin selector named tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()Vintermediary method_6007Lnet/minecraft/class_1309;method_6007()Vofficial d_Lchk;d_()V
-
tickHunger
protected void tickHunger()- Mappings:
Namespace Name Mixin selector named tickHungerLnet/minecraft/entity/player/PlayerEntity;tickHunger()Vintermediary method_64400Lnet/minecraft/class_1657;method_64400()Vofficial iLdcm;i()V
-
handleShoulderEntities
public void handleShoulderEntities()- Mappings:
Namespace Name Mixin selector named handleShoulderEntitiesLnet/minecraft/entity/player/PlayerEntity;handleShoulderEntities()Vintermediary method_74082Lnet/minecraft/class_1657;method_74082()Vofficial jLdcm;j()V
-
dropShoulderEntities
protected void dropShoulderEntities()- Mappings:
Namespace Name Mixin selector named dropShoulderEntitiesLnet/minecraft/entity/player/PlayerEntity;dropShoulderEntities()Vintermediary method_7262Lnet/minecraft/class_1657;method_7262()Vofficial kLdcm;k()V
-
collideWithEntity
- Mappings:
Namespace Name Mixin selector named collideWithEntityLnet/minecraft/entity/player/PlayerEntity;collideWithEntity(Lnet/minecraft/entity/Entity;)Vintermediary method_7341Lnet/minecraft/class_1657;method_7341(Lnet/minecraft/class_1297;)Vofficial dLdcm;d(Lcgi;)V
-
getScore
public int getScore()- Mappings:
Namespace Name Mixin selector named getScoreLnet/minecraft/entity/player/PlayerEntity;getScore()Iintermediary method_7272Lnet/minecraft/class_1657;method_7272()Iofficial gCLdcm;gC()I
-
setScore
public void setScore(int score) - Mappings:
Namespace Name Mixin selector named setScoreLnet/minecraft/entity/player/PlayerEntity;setScore(I)Vintermediary method_7320Lnet/minecraft/class_1657;method_7320(I)Vofficial qLdcm;q(I)V
-
addScore
public void addScore(int score) - Mappings:
Namespace Name Mixin selector named addScoreLnet/minecraft/entity/player/PlayerEntity;addScore(I)Vintermediary method_7285Lnet/minecraft/class_1657;method_7285(I)Vofficial rLdcm;r(I)V
-
useRiptide
- Mappings:
Namespace Name Mixin selector named useRiptideLnet/minecraft/entity/player/PlayerEntity;useRiptide(IFLnet/minecraft/item/ItemStack;)Vintermediary method_40126Lnet/minecraft/class_1657;method_40126(IFLnet/minecraft/class_1799;)Vofficial aLdcm;a(IFLdkm;)V
-
getWeaponStack
- Overrides:
getWeaponStackin classLivingEntity- Mappings:
Namespace Name Mixin selector named getWeaponStackLnet/minecraft/entity/Entity;getWeaponStack()Lnet/minecraft/item/ItemStack;intermediary method_59958Lnet/minecraft/class_1297;method_59958()Lnet/minecraft/class_1799;official epLcgi;ep()Ldkm;
-
onDeath
- Overrides:
onDeathin classLivingEntity- Mappings:
Namespace Name Mixin selector named onDeathLnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_6078Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)Vofficial aLchk;a(Lcev;)V
-
dropInventory
- Overrides:
dropInventoryin classLivingEntity- Mappings:
Namespace Name Mixin selector named dropInventoryLnet/minecraft/entity/LivingEntity;dropInventory(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_16078Lnet/minecraft/class_1309;method_16078(Lnet/minecraft/class_3218;)Vofficial gLchk;g(Laxf;)V
-
vanishCursedItems
protected void vanishCursedItems()- Mappings:
Namespace Name Mixin selector named vanishCursedItemsLnet/minecraft/entity/player/PlayerEntity;vanishCursedItems()Vintermediary method_7293Lnet/minecraft/class_1657;method_7293()Vofficial gDLdcm;gD()V
-
getHurtSound
- Overrides:
getHurtSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;official eLchk;e(Lcev;)Lbcy;
-
getDeathSound
- Overrides:
getDeathSoundin classLivingEntity- Mappings:
Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official e_Lchk;e_()Lbcy;
-
dropCreativeStack
- Mappings:
Namespace Name Mixin selector named dropCreativeStackLnet/minecraft/entity/player/PlayerEntity;dropCreativeStack(Lnet/minecraft/item/ItemStack;)Vintermediary method_61499Lnet/minecraft/class_1657;method_61499(Lnet/minecraft/class_1799;)Vofficial gLdcm;g(Ldkm;)V
-
dropItem
- Mappings:
Namespace Name Mixin selector named dropItemLnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/entity/ItemEntity;intermediary method_7328Lnet/minecraft/class_1657;method_7328(Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1542;official aLdcm;a(Ldkm;Z)Lcyr;
-
getBlockBreakingSpeed
- Mappings:
Namespace Name Mixin selector named getBlockBreakingSpeedLnet/minecraft/entity/player/PlayerEntity;getBlockBreakingSpeed(Lnet/minecraft/block/BlockState;)Fintermediary method_7351Lnet/minecraft/class_1657;method_7351(Lnet/minecraft/class_2680;)Fofficial cLdcm;c(Lemz;)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 canHarvestLnet/minecraft/entity/player/PlayerEntity;canHarvest(Lnet/minecraft/block/BlockState;)Zintermediary method_7305Lnet/minecraft/class_1657;method_7305(Lnet/minecraft/class_2680;)Zofficial dLdcm;d(Lemz;)Z
-
readCustomData
- Overrides:
readCustomDatain classLivingEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcgi;a(Lfmi;)V
-
writeCustomData
- Overrides:
writeCustomDatain classLivingEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcgi;a(Lfmk;)V
-
isInvulnerableTo
- Overrides:
isInvulnerableToin classLivingEntity- Mappings:
Namespace Name Mixin selector named isInvulnerableToLnet/minecraft/entity/LivingEntity;isInvulnerableTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5679Lnet/minecraft/class_1309;method_5679(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)Zofficial aLchk;a(Laxf;Lcev;)Z
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classLivingEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_64397Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Zofficial aLcgi;a(Laxf;Lcev;F)Z
-
takeShieldHit
- Overrides:
takeShieldHitin classLivingEntity- Mappings:
Namespace Name Mixin selector named takeShieldHitLnet/minecraft/entity/LivingEntity;takeShieldHit(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Vintermediary method_6090Lnet/minecraft/class_1309;method_6090(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Vofficial aLchk;a(Laxf;Lchk;)V
-
canTakeDamage
public boolean canTakeDamage()- Overrides:
canTakeDamagein classLivingEntity- Mappings:
Namespace Name Mixin selector named canTakeDamageLnet/minecraft/entity/LivingEntity;canTakeDamage()Zintermediary method_33190Lnet/minecraft/class_1309;method_33190()Zofficial eRLchk;eR()Z
-
shouldDamagePlayer
- Mappings:
Namespace Name Mixin selector named shouldDamagePlayerLnet/minecraft/entity/player/PlayerEntity;shouldDamagePlayer(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_7256Lnet/minecraft/class_1657;method_7256(Lnet/minecraft/class_1657;)Zofficial aLdcm;a(Ldcm;)Z
-
damageArmor
- Overrides:
damageArmorin classLivingEntity- Mappings:
Namespace Name Mixin selector named damageArmorLnet/minecraft/entity/LivingEntity;damageArmor(Lnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_6105Lnet/minecraft/class_1309;method_6105(Lnet/minecraft/class_1282;F)Vofficial cLchk;c(Lcev;F)V
-
damageHelmet
- Overrides:
damageHelmetin classLivingEntity- Mappings:
Namespace Name Mixin selector named damageHelmetLnet/minecraft/entity/LivingEntity;damageHelmet(Lnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_36977Lnet/minecraft/class_1309;method_36977(Lnet/minecraft/class_1282;F)Vofficial dLchk;d(Lcev;F)V
-
applyDamage
- Overrides:
applyDamagein classLivingEntity- Mappings:
Namespace Name Mixin selector named applyDamageLnet/minecraft/entity/LivingEntity;applyDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_6074Lnet/minecraft/class_1309;method_6074(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Vofficial cLchk;c(Laxf;Lcev;F)V
-
shouldFilterText
public boolean shouldFilterText()- Mappings:
Namespace Name Mixin selector named shouldFilterTextLnet/minecraft/entity/player/PlayerEntity;shouldFilterText()Zintermediary method_33793Lnet/minecraft/class_1657;method_33793()Zofficial ZLdcm;Z()Z
-
openEditSignScreen
- Mappings:
Namespace Name Mixin selector named openEditSignScreenLnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;Z)Vintermediary method_7311Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;Z)Vofficial aLdcm;a(Lelk;Z)V
-
openCommandBlockMinecartScreen
- Mappings:
Namespace Name Mixin selector named openCommandBlockMinecartScreenLnet/minecraft/entity/player/PlayerEntity;openCommandBlockMinecartScreen(Lnet/minecraft/entity/vehicle/CommandBlockMinecartEntity;)Vintermediary method_7257Lnet/minecraft/class_1657;method_7257(Lnet/minecraft/class_1697;)Vofficial aLdcm;a(Ldfh;)V
-
openCommandBlockScreen
- Mappings:
Namespace Name Mixin selector named openCommandBlockScreenLnet/minecraft/entity/player/PlayerEntity;openCommandBlockScreen(Lnet/minecraft/block/entity/CommandBlockBlockEntity;)Vintermediary method_7323Lnet/minecraft/class_1657;method_7323(Lnet/minecraft/class_2593;)Vofficial aLdcm;a(Leke;)V
-
openStructureBlockScreen
- Mappings:
Namespace Name Mixin selector named openStructureBlockScreenLnet/minecraft/entity/player/PlayerEntity;openStructureBlockScreen(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Vintermediary method_7303Lnet/minecraft/class_1657;method_7303(Lnet/minecraft/class_2633;)Vofficial aLdcm;a(Lelp;)V
-
openTestBlockScreen
- Mappings:
Namespace Name Mixin selector named openTestBlockScreenLnet/minecraft/entity/player/PlayerEntity;openTestBlockScreen(Lnet/minecraft/block/entity/TestBlockEntity;)Vintermediary method_66695Lnet/minecraft/class_1657;method_66695(Lnet/minecraft/class_10637;)Vofficial aLdcm;a(Lelq;)V
-
openTestInstanceBlockScreen
- Mappings:
Namespace Name Mixin selector named openTestInstanceBlockScreenLnet/minecraft/entity/player/PlayerEntity;openTestInstanceBlockScreen(Lnet/minecraft/block/entity/TestInstanceBlockEntity;)Vintermediary method_66696Lnet/minecraft/class_1657;method_66696(Lnet/minecraft/class_10638;)Vofficial aLdcm;a(Lelr;)V
-
openJigsawScreen
- Mappings:
Namespace Name Mixin selector named openJigsawScreenLnet/minecraft/entity/player/PlayerEntity;openJigsawScreen(Lnet/minecraft/block/entity/JigsawBlockEntity;)Vintermediary method_16354Lnet/minecraft/class_1657;method_16354(Lnet/minecraft/class_3751;)Vofficial aLdcm;a(Leky;)V
-
openHorseInventory
- Mappings:
Namespace Name Mixin selector named openHorseInventoryLnet/minecraft/entity/player/PlayerEntity;openHorseInventory(Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/inventory/Inventory;)Vintermediary method_7291Lnet/minecraft/class_1657;method_7291(Lnet/minecraft/class_1496;Lnet/minecraft/class_1263;)Vofficial aLdcm;a(Lcwb;Lcct;)V
-
openHandledScreen
- Mappings:
Namespace Name Mixin selector named openHandledScreenLnet/minecraft/entity/player/PlayerEntity;openHandledScreen(Lnet/minecraft/screen/NamedScreenHandlerFactory;)Ljava/util/OptionalInt;intermediary method_17355Lnet/minecraft/class_1657;method_17355(Lnet/minecraft/class_3908;)Ljava/util/OptionalInt;official aLdcm;a(Lcdd;)Ljava/util/OptionalInt;
-
openDialog
- Mappings:
Namespace Name Mixin selector named openDialogLnet/minecraft/entity/player/PlayerEntity;openDialog(Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary method_71753Lnet/minecraft/class_1657;method_71753(Lnet/minecraft/class_6880;)Vofficial bLdcm;b(Ljd;)V
-
sendTradeOffers
public void sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable) - Mappings:
Namespace Name Mixin selector named sendTradeOffersLnet/minecraft/entity/player/PlayerEntity;sendTradeOffers(ILnet/minecraft/village/TradeOfferList;IIZZ)Vintermediary method_17354Lnet/minecraft/class_1657;method_17354(ILnet/minecraft/class_1916;IIZZ)Vofficial aLdcm;a(ILdue;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
bookfor 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 useBookLnet/minecraft/entity/player/PlayerEntity;useBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)Vintermediary method_7315Lnet/minecraft/class_1657;method_7315(Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Vofficial aLdcm;a(Ldkm;Lccz;)V
-
interact
- Mappings:
Namespace Name Mixin selector named interactLnet/minecraft/entity/player/PlayerEntity;interact(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_7287Lnet/minecraft/class_1657;method_7287(Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLdcm;a(Lcgi;Lccz;)Lcda;
-
dismountVehicle
public void dismountVehicle()Dismounts the vehicle if present.For players, will not trigger any networking changes. Use
LivingEntity.stopRiding()instead.- Overrides:
dismountVehiclein classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named dismountVehicleLnet/minecraft/entity/Entity;dismountVehicle()Vintermediary method_29239Lnet/minecraft/class_1297;method_29239()Vofficial adLcgi;ad()V
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobilein classLivingEntity- Mappings:
Namespace Name Mixin selector named isImmobileLnet/minecraft/entity/LivingEntity;isImmobile()Zintermediary method_6062Lnet/minecraft/class_1309;method_6062()Zofficial fALchk;fA()Z
-
shouldSwimInFluids
public boolean shouldSwimInFluids()- Overrides:
shouldSwimInFluidsin classLivingEntity- Mappings:
Namespace Name Mixin selector named shouldSwimInFluidsLnet/minecraft/entity/LivingEntity;shouldSwimInFluids()Zintermediary method_29920Lnet/minecraft/class_1309;method_29920()Zofficial eFLchk;eF()Z
-
adjustMovementForSneaking
- Overrides:
adjustMovementForSneakingin classEntity- Mappings:
Namespace Name Mixin selector named adjustMovementForSneakingLnet/minecraft/entity/Entity;adjustMovementForSneaking(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/MovementType;)Lnet/minecraft/util/math/Vec3d;intermediary method_18796Lnet/minecraft/class_1297;method_18796(Lnet/minecraft/class_243;Lnet/minecraft/class_1313;)Lnet/minecraft/class_243;official aLcgi;a(Lfse;Lcho;)Lfse;
-
isStandingOnSurface
private boolean isStandingOnSurface(float stepHeight) - Mappings:
Namespace Name Mixin selector named isStandingOnSurfaceLnet/minecraft/entity/player/PlayerEntity;isStandingOnSurface(F)Zintermediary method_30263Lnet/minecraft/class_1657;method_30263(F)Zofficial KLdcm;K(F)Z
-
isSpaceAroundPlayerEmpty
private boolean isSpaceAroundPlayerEmpty(double offsetX, double offsetZ, double stepHeight) - Mappings:
Namespace Name Mixin selector named isSpaceAroundPlayerEmptyLnet/minecraft/entity/player/PlayerEntity;isSpaceAroundPlayerEmpty(DDD)Zintermediary method_59818Lnet/minecraft/class_1657;method_59818(DDD)Zofficial pLdcm;p(DDD)Z
-
attack
- Mappings:
Namespace Name Mixin selector named attackLnet/minecraft/entity/player/PlayerEntity;attack(Lnet/minecraft/entity/Entity;)Vintermediary method_7324Lnet/minecraft/class_1657;method_7324(Lnet/minecraft/class_1297;)Vofficial eLdcm;e(Lcgi;)V
-
method_76457
- Mappings:
Namespace Name Mixin selector named method_76457Lnet/minecraft/entity/player/PlayerEntity;method_76457(Lnet/minecraft/sound/SoundEvent;)Vintermediary method_76457Lnet/minecraft/class_1657;method_76457(Lnet/minecraft/class_3414;)Vofficial cLdcm;c(Lbcy;)V
-
getDamageSource
- Mappings:
Namespace Name Mixin selector named getDamageSourceLnet/minecraft/entity/player/PlayerEntity;getDamageSource(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/damage/DamageSource;intermediary method_75204Lnet/minecraft/class_1657;method_75204(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1282;official iLdcm;i(Ldkm;)Lcev;
-
cannotAttack
- Mappings:
Namespace Name Mixin selector named cannotAttackLnet/minecraft/entity/player/PlayerEntity;cannotAttack(Lnet/minecraft/entity/Entity;)Zintermediary method_75195Lnet/minecraft/class_1657;method_75195(Lnet/minecraft/class_1297;)Zofficial HLdcm;H(Lcgi;)Z
-
tryDeflect
- Mappings:
Namespace Name Mixin selector named tryDeflectLnet/minecraft/entity/player/PlayerEntity;tryDeflect(Lnet/minecraft/entity/Entity;)Zintermediary method_75196Lnet/minecraft/class_1657;method_75196(Lnet/minecraft/class_1297;)Zofficial ILdcm;I(Lcgi;)Z
-
isCriticalHit
- Mappings:
Namespace Name Mixin selector named isCriticalHitLnet/minecraft/entity/player/PlayerEntity;isCriticalHit(Lnet/minecraft/entity/Entity;)Zintermediary method_75197Lnet/minecraft/class_1657;method_75197(Lnet/minecraft/class_1297;)Zofficial JLdcm;J(Lcgi;)Z
-
canUseSweepAttack
private boolean canUseSweepAttack(boolean cooldownPassed, boolean criticalHit, boolean knockback) - Mappings:
Namespace Name Mixin selector named canUseSweepAttackLnet/minecraft/entity/player/PlayerEntity;canUseSweepAttack(ZZZ)Zintermediary method_75201Lnet/minecraft/class_1657;method_75201(ZZZ)Zofficial aLdcm;a(ZZZ)Z
-
addAttackParticlesAndSounds
private void addAttackParticlesAndSounds(Entity target, boolean criticalHit, boolean sweeping, boolean cooldownPassed, float enchantDamage) - Mappings:
Namespace Name Mixin selector named addAttackParticlesAndSoundsLnet/minecraft/entity/player/PlayerEntity;addAttackParticlesAndSounds(Lnet/minecraft/entity/Entity;ZZZF)Vintermediary method_75200Lnet/minecraft/class_1657;method_75200(Lnet/minecraft/class_1297;ZZZF)Vofficial aLdcm;a(Lcgi;ZZZF)V
-
handleAttackDamage
- Mappings:
Namespace Name Mixin selector named handleAttackDamageLnet/minecraft/entity/player/PlayerEntity;handleAttackDamage(Lnet/minecraft/entity/Entity;F)Vintermediary method_75198Lnet/minecraft/class_1657;method_75198(Lnet/minecraft/class_1297;F)Vofficial aLdcm;a(Lcgi;F)V
-
onTargetDamaged
private void onTargetDamaged(Entity target, ItemStack stack, DamageSource damageSource, boolean runEnchantmentEffects) - Mappings:
Namespace Name Mixin selector named onTargetDamagedLnet/minecraft/entity/player/PlayerEntity;onTargetDamaged(Lnet/minecraft/entity/Entity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/damage/DamageSource;Z)Vintermediary method_75199Lnet/minecraft/class_1657;method_75199(Lnet/minecraft/class_1297;Lnet/minecraft/class_1799;Lnet/minecraft/class_1282;Z)Vofficial aLdcm;a(Lcgi;Ldkm;Lcev;Z)V
-
knockbackTarget
- Overrides:
knockbackTargetin classLivingEntity- Mappings:
Namespace Name Mixin selector named knockbackTargetLnet/minecraft/entity/LivingEntity;knockbackTarget(Lnet/minecraft/entity/Entity;FLnet/minecraft/util/math/Vec3d;)Vintermediary method_75122Lnet/minecraft/class_1309;method_75122(Lnet/minecraft/class_1297;FLnet/minecraft/class_243;)Vofficial aLchk;a(Lcgi;FLfse;)V
-
getSoundPitch
public float getSoundPitch()- Overrides:
getSoundPitchin classLivingEntity- Mappings:
Namespace Name Mixin selector named getSoundPitchLnet/minecraft/entity/LivingEntity;getSoundPitch()Fintermediary method_6017Lnet/minecraft/class_1309;method_6017()Fofficial fzLchk;fz()F
-
doSweepingAttack
private void doSweepingAttack(Entity target, float damage, DamageSource damageSource, float cooldownProgress) - Mappings:
Namespace Name Mixin selector named doSweepingAttackLnet/minecraft/entity/player/PlayerEntity;doSweepingAttack(Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;F)Vintermediary method_7263Lnet/minecraft/class_1657;method_7263(Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;F)Vofficial aLdcm;a(Lcgi;FLcev;F)V
-
getDamageAgainst
- Mappings:
Namespace Name Mixin selector named getDamageAgainstLnet/minecraft/entity/player/PlayerEntity;getDamageAgainst(Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;)Fintermediary method_59903Lnet/minecraft/class_1657;method_59903(Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;)Fofficial aLdcm;a(Lcgi;FLcev;)F
-
attackLivingEntity
- Overrides:
attackLivingEntityin classLivingEntity- Mappings:
Namespace Name Mixin selector named attackLivingEntityLnet/minecraft/entity/LivingEntity;attackLivingEntity(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_5997Lnet/minecraft/class_1309;method_5997(Lnet/minecraft/class_1309;)Vofficial fLchk;f(Lchk;)V
-
addCritParticles
- Mappings:
Namespace Name Mixin selector named addCritParticlesLnet/minecraft/entity/player/PlayerEntity;addCritParticles(Lnet/minecraft/entity/Entity;)Vintermediary method_7277Lnet/minecraft/class_1657;method_7277(Lnet/minecraft/class_1297;)Vofficial bLdcm;b(Lcgi;)V
-
method_76459
private float method_76459()- Mappings:
Namespace Name Mixin selector named method_76459Lnet/minecraft/entity/player/PlayerEntity;method_76459()Fintermediary method_76459Lnet/minecraft/class_1657;method_76459()Fofficial pLdcm;p()F
-
pierce
public boolean pierce(EquipmentSlot slot, Entity target, float damage, boolean dealDamage, boolean knockback, boolean dismount) - Overrides:
piercein classLivingEntity- Mappings:
Namespace Name Mixin selector named pierceLnet/minecraft/entity/LivingEntity;pierce(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/entity/Entity;FZZZ)Zintermediary method_75123Lnet/minecraft/class_1309;method_75123(Lnet/minecraft/class_1304;Lnet/minecraft/class_1297;FZZZ)Zofficial aLchk;a(Lcgt;Lcgi;FZZZ)Z
-
addEnchantedHitParticles
- Mappings:
Namespace Name Mixin selector named addEnchantedHitParticlesLnet/minecraft/entity/player/PlayerEntity;addEnchantedHitParticles(Lnet/minecraft/entity/Entity;)Vintermediary method_7304Lnet/minecraft/class_1657;method_7304(Lnet/minecraft/class_1297;)Vofficial cLdcm;c(Lcgi;)V
-
remove
Removes the entity.- Overrides:
removein classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_5650Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)Vofficial aLcgi;a(Lcgi$e;)V
-
isControlledByPlayer
public boolean isControlledByPlayer()- Overrides:
isControlledByPlayerin classEntity- Mappings:
Namespace Name Mixin selector named isControlledByPlayerLnet/minecraft/entity/Entity;isControlledByPlayer()Zintermediary method_65038Lnet/minecraft/class_1297;method_65038()Zofficial ab_Lcgi;ab_()Z
-
isControlledByMainPlayer
protected boolean isControlledByMainPlayer()- Overrides:
isControlledByMainPlayerin classEntity- Mappings:
Namespace Name Mixin selector named isControlledByMainPlayerLnet/minecraft/entity/Entity;isControlledByMainPlayer()Zintermediary method_66248Lnet/minecraft/class_1297;method_66248()Zofficial dvLcgi;dv()Z
-
isMainPlayer
public boolean isMainPlayer()- Mappings:
Namespace Name Mixin selector named isMainPlayerLnet/minecraft/entity/player/PlayerEntity;isMainPlayer()Zintermediary method_7340Lnet/minecraft/class_1657;method_7340()Zofficial gELdcm;gE()Z
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Overrides:
canMoveVoluntarilyin classEntity- Mappings:
Namespace Name Mixin selector named canMoveVoluntarilyLnet/minecraft/entity/Entity;canMoveVoluntarily()Zintermediary method_66249Lnet/minecraft/class_1297;method_66249()Zofficial dwLcgi;dw()Z
-
canActVoluntarily
public boolean canActVoluntarily()- Overrides:
canActVoluntarilyin classEntity- Mappings:
Namespace Name Mixin selector named canActVoluntarilyLnet/minecraft/entity/Entity;canActVoluntarily()Zintermediary method_6034Lnet/minecraft/class_1297;method_6034()Zofficial dxLcgi;dx()Z
-
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile()- Mappings:
Namespace Name Mixin selector named getGameProfileLnet/minecraft/entity/player/PlayerEntity;getGameProfile()Lcom/mojang/authlib/GameProfile;intermediary method_7334Lnet/minecraft/class_1657;method_7334()Lcom/mojang/authlib/GameProfile;official gFLdcm;gF()Lcom/mojang/authlib/GameProfile;
-
getPlayerConfigEntry
- Mappings:
Namespace Name Mixin selector named getPlayerConfigEntryLnet/minecraft/entity/player/PlayerEntity;getPlayerConfigEntry()Lnet/minecraft/server/PlayerConfigEntry;intermediary method_72498Lnet/minecraft/class_1657;method_72498()Lnet/minecraft/class_11560;official gGLdcm;gG()Lbbw;
-
getInventory
- Mappings:
Namespace Name Mixin selector named getInventoryLnet/minecraft/entity/player/PlayerEntity;getInventory()Lnet/minecraft/entity/player/PlayerInventory;intermediary method_31548Lnet/minecraft/class_1657;method_31548()Lnet/minecraft/class_1661;official gHLdcm;gH()Ldcl;
-
getAbilities
- Mappings:
Namespace Name Mixin selector named getAbilitiesLnet/minecraft/entity/player/PlayerEntity;getAbilities()Lnet/minecraft/entity/player/PlayerAbilities;intermediary method_31549Lnet/minecraft/class_1657;method_31549()Lnet/minecraft/class_1656;official gILdcm;gI()Ldci;
-
isInCreativeMode
public boolean isInCreativeMode()- Overrides:
isInCreativeModein classLivingEntity- Mappings:
Namespace Name Mixin selector named isInCreativeModeLnet/minecraft/entity/LivingEntity;isInCreativeMode()Zintermediary method_56992Lnet/minecraft/class_1309;method_56992()Zofficial gsLchk;gs()Z
-
shouldSkipBlockDrops
public boolean shouldSkipBlockDrops()- Mappings:
Namespace Name Mixin selector named shouldSkipBlockDropsLnet/minecraft/entity/player/PlayerEntity;shouldSkipBlockDrops()Zintermediary method_66324Lnet/minecraft/class_1657;method_66324()Zofficial gJLdcm;gJ()Z
-
onPickupSlotClick
Called when a player performs apickup slot actionin 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 onPickupSlotClickLnet/minecraft/entity/player/PlayerEntity;onPickupSlotClick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/ClickType;)Vintermediary method_33592Lnet/minecraft/class_1657;method_33592(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_5536;)Vofficial aLdcm;a(Ldkm;Ldkm;Ldgn;)V
-
shouldCloseHandledScreenOnRespawn
public boolean shouldCloseHandledScreenOnRespawn()- Mappings:
Namespace Name Mixin selector named shouldCloseHandledScreenOnRespawnLnet/minecraft/entity/player/PlayerEntity;shouldCloseHandledScreenOnRespawn()Zintermediary method_45015Lnet/minecraft/class_1657;method_45015()Zofficial gKLdcm;gK()Z
-
canDropItems
public boolean canDropItems()- Mappings:
Namespace Name Mixin selector named canDropItemsLnet/minecraft/entity/player/PlayerEntity;canDropItems()Zintermediary method_64271Lnet/minecraft/class_1657;method_64271()Zofficial gLLdcm;gL()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.Rightif successful, otherwise anEither.Leftcontaining the failure reason - Mappings:
Namespace Name Mixin selector named trySleepLnet/minecraft/entity/player/PlayerEntity;trySleep(Lnet/minecraft/util/math/BlockPos;)Lcom/mojang/datafixers/util/Either;intermediary method_7269Lnet/minecraft/class_1657;method_7269(Lnet/minecraft/class_2338;)Lcom/mojang/datafixers/util/Either;official aLdcm;a(Lis;)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- iftrueand called on the logical server, sends sleeping status updates to all players- Mappings:
Namespace Name Mixin selector named wakeUpLnet/minecraft/entity/player/PlayerEntity;wakeUp(ZZ)Vintermediary method_7358Lnet/minecraft/class_1657;method_7358(ZZ)Vofficial aLdcm;a(ZZ)V
-
wakeUp
public void wakeUp()Wakes this entity up.- Overrides:
wakeUpin classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named wakeUpLnet/minecraft/entity/LivingEntity;wakeUp()Vintermediary method_18400Lnet/minecraft/class_1309;method_18400()Vofficial gpLchk;gp()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 canResetTimeBySleepingLnet/minecraft/entity/player/PlayerEntity;canResetTimeBySleeping()Zintermediary method_7276Lnet/minecraft/class_1657;method_7276()Zofficial gMLdcm;gM()Z
-
getSleepTimer
public int getSleepTimer()- Mappings:
Namespace Name Mixin selector named getSleepTimerLnet/minecraft/entity/player/PlayerEntity;getSleepTimer()Iintermediary method_7297Lnet/minecraft/class_1657;method_7297()Iofficial gNLdcm;gN()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 sendMessageLnet/minecraft/entity/player/PlayerEntity;sendMessage(Lnet/minecraft/text/Text;Z)Vintermediary method_7353Lnet/minecraft/class_1657;method_7353(Lnet/minecraft/class_2561;Z)Vofficial aLdcm;a(Lyh;Z)V
-
incrementStat
- Mappings:
Namespace Name Mixin selector named incrementStatLnet/minecraft/entity/player/PlayerEntity;incrementStat(Lnet/minecraft/util/Identifier;)Vintermediary method_7281Lnet/minecraft/class_1657;method_7281(Lnet/minecraft/class_2960;)Vofficial aLdcm;a(Lamo;)V
-
increaseStat
- Mappings:
Namespace Name Mixin selector named increaseStatLnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/util/Identifier;I)Vintermediary method_7339Lnet/minecraft/class_1657;method_7339(Lnet/minecraft/class_2960;I)Vofficial aLdcm;a(Lamo;I)V
-
incrementStat
- Mappings:
Namespace Name Mixin selector named incrementStatLnet/minecraft/entity/player/PlayerEntity;incrementStat(Lnet/minecraft/stat/Stat;)Vintermediary method_7259Lnet/minecraft/class_1657;method_7259(Lnet/minecraft/class_3445;)Vofficial bLdcm;b(Lbdg;)V
-
increaseStat
- Mappings:
Namespace Name Mixin selector named increaseStatLnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/stat/Stat;I)Vintermediary method_7342Lnet/minecraft/class_1657;method_7342(Lnet/minecraft/class_3445;I)Vofficial aLdcm;a(Lbdg;I)V
-
resetStat
- Mappings:
Namespace Name Mixin selector named resetStatLnet/minecraft/entity/player/PlayerEntity;resetStat(Lnet/minecraft/stat/Stat;)Vintermediary method_7266Lnet/minecraft/class_1657;method_7266(Lnet/minecraft/class_3445;)Vofficial aLdcm;a(Lbdg;)V
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector named unlockRecipesLnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/Collection;)Iintermediary method_7254Lnet/minecraft/class_1657;method_7254(Ljava/util/Collection;)Iofficial aLdcm;a(Ljava/util/Collection;)I
-
onRecipeCrafted
- Mappings:
Namespace Name Mixin selector named onRecipeCraftedLnet/minecraft/entity/player/PlayerEntity;onRecipeCrafted(Lnet/minecraft/recipe/RecipeEntry;Ljava/util/List;)Vintermediary method_51283Lnet/minecraft/class_1657;method_51283(Lnet/minecraft/class_8786;Ljava/util/List;)Vofficial aLdcm;a(Ldpp;Ljava/util/List;)V
-
unlockRecipes
- Mappings:
Namespace Name Mixin selector named unlockRecipesLnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/List;)Vintermediary method_7335Lnet/minecraft/class_1657;method_7335(Ljava/util/List;)Vofficial bLdcm;b(Ljava/util/List;)V
-
lockRecipes
- Mappings:
Namespace Name Mixin selector named lockRecipesLnet/minecraft/entity/player/PlayerEntity;lockRecipes(Ljava/util/Collection;)Iintermediary method_7333Lnet/minecraft/class_1657;method_7333(Ljava/util/Collection;)Iofficial bLdcm;b(Ljava/util/Collection;)I
-
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
.invalid reference
flying entities
- Overrides:
travelin classLivingEntity- Parameters:
movementInput- represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order- Mappings:
Namespace Name Mixin selector named travelLnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_6091Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)Vofficial mLchk;m(Lfse;)V
-
canGlide
protected boolean canGlide()- Overrides:
canGlidein classLivingEntity- Mappings:
Namespace Name Mixin selector named canGlideLnet/minecraft/entity/LivingEntity;canGlide()Zintermediary method_63628Lnet/minecraft/class_1309;method_63628()Zofficial fRLchk;fR()Z
-
updateSwimming
public void updateSwimming()- Overrides:
updateSwimmingin classEntity- Mappings:
Namespace Name Mixin selector named updateSwimmingLnet/minecraft/entity/Entity;updateSwimming()Vintermediary method_5790Lnet/minecraft/class_1297;method_5790()Vofficial bELcgi;bE()V
-
doesNotSuffocate
- Mappings:
Namespace Name Mixin selector named doesNotSuffocateLnet/minecraft/entity/player/PlayerEntity;doesNotSuffocate(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_7326Lnet/minecraft/class_1657;method_7326(Lnet/minecraft/class_2338;)Zofficial hLdcm;h(Lis;)Z
-
getMovementSpeed
public float getMovementSpeed()- Overrides:
getMovementSpeedin classLivingEntity- Mappings:
Namespace Name Mixin selector named getMovementSpeedLnet/minecraft/entity/LivingEntity;getMovementSpeed()Fintermediary method_6029Lnet/minecraft/class_1309;method_6029()Fofficial fILchk;fI()F
-
handleFallDamage
public boolean handleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource) Called when an entity falls.Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like
TntMinecartEntity.- Overrides:
handleFallDamagein classLivingEntity- Returns:
- whether to play the sound when falling on honey block;
falsefor all entities except horses and llamas - Mappings:
Namespace Name Mixin selector named handleFallDamageLnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5747Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Zofficial aLcgi;a(DFLcev;)Z
-
checkGliding
public boolean checkGliding()- Mappings:
Namespace Name Mixin selector named checkGlidingLnet/minecraft/entity/player/PlayerEntity;checkGliding()Zintermediary method_23668Lnet/minecraft/class_1657;method_23668()Zofficial gOLdcm;gO()Z
-
startGliding
public void startGliding()- Mappings:
Namespace Name Mixin selector named startGlidingLnet/minecraft/entity/player/PlayerEntity;startGliding()Vintermediary method_23669Lnet/minecraft/class_1657;method_23669()Vofficial gPLdcm;gP()V
-
onSwimmingStart
protected void onSwimmingStart()- Overrides:
onSwimmingStartin classEntity- Mappings:
Namespace Name Mixin selector named onSwimmingStartLnet/minecraft/entity/Entity;onSwimmingStart()Vintermediary method_5746Lnet/minecraft/class_1297;method_5746()Vofficial bHLcgi;bH()V
-
playStepSound
- Overrides:
playStepSoundin classEntity- Mappings:
Namespace Name Mixin selector named playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_5712Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial bLcgi;b(Lis;Lemz;)V
-
getFallSounds
- Overrides:
getFallSoundsin classLivingEntity- Mappings:
Namespace Name Mixin selector named getFallSoundsLnet/minecraft/entity/LivingEntity;getFallSounds()Lnet/minecraft/entity/LivingEntity$FallSounds;intermediary method_39760Lnet/minecraft/class_1309;method_39760()Lnet/minecraft/class_1309$class_6823;official fhLchk;fh()Lchk$a;
-
onKilledOther
Called when this entity killsother.- Overrides:
onKilledOtherin classEntity- Returns:
- whether the entity died (and not converted to another entity)
- API Note:
ZombieEntityoverrides this to convert the killed villager to a zombie villager.- Mappings:
Namespace Name Mixin selector named onKilledOtherLnet/minecraft/entity/Entity;onKilledOther(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5874Lnet/minecraft/class_1297;method_5874(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1282;)Zofficial aLcgi;a(Laxf;Lchk;Lcev;)Z
-
slowMovement
CallsEntity.onLanding()and slows this entity.This means that the entity will avoid taking fall damage.
- Overrides:
slowMovementin 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, net.minecraft.entity.EntityCollisionHandler, boolean). This is used by cobwebs, sweet berries, and powder snow. - Mappings:
Namespace Name Mixin selector named slowMovementLnet/minecraft/entity/Entity;slowMovement(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5844Lnet/minecraft/class_1297;method_5844(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)Vofficial aLcgi;a(Lemz;Lfse;)V
-
addExperience
public void addExperience(int experience) - Mappings:
Namespace Name Mixin selector named addExperienceLnet/minecraft/entity/player/PlayerEntity;addExperience(I)Vintermediary method_7255Lnet/minecraft/class_1657;method_7255(I)Vofficial dLdcm;d(I)V
-
getEnchantingTableSeed
public int getEnchantingTableSeed()- Mappings:
Namespace Name Mixin selector named getEnchantingTableSeedLnet/minecraft/entity/player/PlayerEntity;getEnchantingTableSeed()Iintermediary method_7278Lnet/minecraft/class_1657;method_7278()Iofficial gQLdcm;gQ()I
-
applyEnchantmentCosts
- Mappings:
Namespace Name Mixin selector named applyEnchantmentCostsLnet/minecraft/entity/player/PlayerEntity;applyEnchantmentCosts(Lnet/minecraft/item/ItemStack;I)Vintermediary method_7286Lnet/minecraft/class_1657;method_7286(Lnet/minecraft/class_1799;I)Vofficial aLdcm;a(Ldkm;I)V
-
addExperienceLevels
public void addExperienceLevels(int levels) - Mappings:
Namespace Name Mixin selector named addExperienceLevelsLnet/minecraft/entity/player/PlayerEntity;addExperienceLevels(I)Vintermediary method_7316Lnet/minecraft/class_1657;method_7316(I)Vofficial cLdcm;c(I)V
-
getNextLevelExperience
public int getNextLevelExperience()- Mappings:
Namespace Name Mixin selector named getNextLevelExperienceLnet/minecraft/entity/player/PlayerEntity;getNextLevelExperience()Iintermediary method_7349Lnet/minecraft/class_1657;method_7349()Iofficial gRLdcm;gR()I
-
addExhaustion
public void addExhaustion(float exhaustion) - Mappings:
Namespace Name Mixin selector named addExhaustionLnet/minecraft/entity/player/PlayerEntity;addExhaustion(F)Vintermediary method_7322Lnet/minecraft/class_1657;method_7322(F)Vofficial aLdcm;a(F)V
-
useAttackEnchantmentEffects
public void useAttackEnchantmentEffects()- Overrides:
useAttackEnchantmentEffectsin classLivingEntity- Mappings:
Namespace Name Mixin selector named useAttackEnchantmentEffectsLnet/minecraft/entity/LivingEntity;useAttackEnchantmentEffects()Vintermediary method_75125Lnet/minecraft/class_1309;method_75125()Vofficial fgLchk;fg()V
-
method_76458
protected boolean method_76458()- Mappings:
Namespace Name Mixin selector named method_76458Lnet/minecraft/entity/player/PlayerEntity;method_76458()Zintermediary method_76458Lnet/minecraft/class_1657;method_76458()Zofficial gSLdcm;gS()Z
-
getSculkShriekerWarningManager
- Mappings:
Namespace Name Mixin selector named getSculkShriekerWarningManagerLnet/minecraft/entity/player/PlayerEntity;getSculkShriekerWarningManager()Ljava/util/Optional;intermediary method_42272Lnet/minecraft/class_1657;method_42272()Ljava/util/Optional;official abLdcm;ab()Ljava/util/Optional;
-
getHungerManager
- Mappings:
Namespace Name Mixin selector named getHungerManagerLnet/minecraft/entity/player/PlayerEntity;getHungerManager()Lnet/minecraft/entity/player/HungerManager;intermediary method_7344Lnet/minecraft/class_1657;method_7344()Lnet/minecraft/class_1702;official gTLdcm;gT()Ldfz;
-
canConsume
public boolean canConsume(boolean ignoreHunger) - Mappings:
Namespace Name Mixin selector named canConsumeLnet/minecraft/entity/player/PlayerEntity;canConsume(Z)Zintermediary method_7332Lnet/minecraft/class_1657;method_7332(Z)Zofficial uLdcm;u(Z)Z
-
canFoodHeal
public boolean canFoodHeal()- Mappings:
Namespace Name Mixin selector named canFoodHealLnet/minecraft/entity/player/PlayerEntity;canFoodHeal()Zintermediary method_7317Lnet/minecraft/class_1657;method_7317()Zofficial gULdcm;gU()Z
-
canModifyBlocks
public boolean canModifyBlocks()- Mappings:
Namespace Name Mixin selector named canModifyBlocksLnet/minecraft/entity/player/PlayerEntity;canModifyBlocks()Zintermediary method_7294Lnet/minecraft/class_1657;method_7294()Zofficial gVLdcm;gV()Z
-
canPlaceOn
- Mappings:
Namespace Name Mixin selector named canPlaceOnLnet/minecraft/entity/player/PlayerEntity;canPlaceOn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/item/ItemStack;)Zintermediary method_7343Lnet/minecraft/class_1657;method_7343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_1799;)Zofficial aLdcm;a(Lis;Liz;Ldkm;)Z
-
getExperienceToDrop
Called when this entity is killed and returns the amount of experience to drop.- Overrides:
getExperienceToDropin classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named getExperienceToDropLnet/minecraft/entity/LivingEntity;getExperienceToDrop(Lnet/minecraft/server/world/ServerWorld;)Iintermediary method_6110Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)Iofficial fLchk;f(Laxf;)I
-
shouldAlwaysDropExperience
protected boolean shouldAlwaysDropExperience()Returns if this entity may always drop experience, skipping any other checks.- Overrides:
shouldAlwaysDropExperiencein classLivingEntity- See Also:
- Mappings:
Namespace Name Mixin selector named shouldAlwaysDropExperienceLnet/minecraft/entity/LivingEntity;shouldAlwaysDropExperience()Zintermediary method_6071Lnet/minecraft/class_1309;method_6071()Zofficial eILchk;eI()Z
-
shouldRenderName
public boolean shouldRenderName()Returns whether to render the name of the entity.This returns
truefor players andEntity.isCustomNameVisible()for other entities.- Overrides:
shouldRenderNamein classLivingEntity- Returns:
- whether to render the name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named shouldRenderNameLnet/minecraft/entity/Entity;shouldRenderName()Zintermediary method_5733Lnet/minecraft/class_1297;method_5733()Zofficial ddLcgi;dd()Z
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin 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 getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official buLcgi;bu()Lcgi$d;
-
sendAbilitiesUpdate
public void sendAbilitiesUpdate()- Mappings:
Namespace Name Mixin selector named sendAbilitiesUpdateLnet/minecraft/entity/player/PlayerEntity;sendAbilitiesUpdate()Vintermediary method_7355Lnet/minecraft/class_1657;method_7355()Vofficial zLdcm;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:
getNamein interfaceNameable- Overrides:
getNamein classEntity- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;intermediary method_5477Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;official apLcde;ap()Lyh;
-
getStringifiedName
- Specified by:
getStringifiedNamein interfaceNameable- Mappings:
Namespace Name Mixin selector named getStringifiedNameLnet/minecraft/util/Nameable;getStringifiedName()Ljava/lang/String;intermediary method_74861Lnet/minecraft/class_1275;method_74861()Ljava/lang/String;official aqLcde;aq()Ljava/lang/String;
-
getEnderChestInventory
- Mappings:
Namespace Name Mixin selector named getEnderChestInventoryLnet/minecraft/entity/player/PlayerEntity;getEnderChestInventory()Lnet/minecraft/inventory/EnderChestInventory;intermediary method_7274Lnet/minecraft/class_1657;method_7274()Lnet/minecraft/class_1730;official gWLdcm;gW()Ldhr;
-
isArmorSlot
- Overrides:
isArmorSlotin classLivingEntity- Mappings:
Namespace Name Mixin selector named isArmorSlotLnet/minecraft/entity/LivingEntity;isArmorSlot(Lnet/minecraft/entity/EquipmentSlot;)Zintermediary method_44201Lnet/minecraft/class_1309;method_44201(Lnet/minecraft/class_1304;)Zofficial bLchk;b(Lcgt;)Z
-
giveItemStack
- Mappings:
Namespace Name Mixin selector named giveItemStackLnet/minecraft/entity/player/PlayerEntity;giveItemStack(Lnet/minecraft/item/ItemStack;)Zintermediary method_7270Lnet/minecraft/class_1657;method_7270(Lnet/minecraft/class_1799;)Zofficial hLdcm;h(Ldkm;)Z
-
getGameMode
- Mappings:
Namespace Name Mixin selector named getGameModeLnet/minecraft/entity/player/PlayerEntity;getGameMode()Lnet/minecraft/world/GameMode;intermediary method_68876Lnet/minecraft/class_1657;method_68876()Lnet/minecraft/class_1934;official aLdcm;a()Ldvd;
-
isSpectator
public boolean isSpectator()Returns whether the entity is a spectator.This returns
falseunless the entity is a player in spectator game mode.- Overrides:
isSpectatorin classEntity- Returns:
- whether the entity is a spectator
- Mappings:
Namespace Name Mixin selector named isSpectatorLnet/minecraft/entity/Entity;isSpectator()Zintermediary method_7325Lnet/minecraft/class_1297;method_7325()Zofficial auLcgi;au()Z
-
canBeHitByProjectile
public boolean canBeHitByProjectile()- Overrides:
canBeHitByProjectilein classEntity- Mappings:
Namespace Name Mixin selector named canBeHitByProjectileLnet/minecraft/entity/Entity;canBeHitByProjectile()Zintermediary method_49108Lnet/minecraft/class_1297;method_49108()Zofficial bVLcgi;bV()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:
isSwimmingin classEntity- Returns:
- whether the entity is swimming
- See Also:
- Mappings:
Namespace Name Mixin selector named isSwimmingLnet/minecraft/entity/Entity;isSwimming()Zintermediary method_5681Lnet/minecraft/class_1297;method_5681()Zofficial cALcgi;cA()Z
-
isCreative
public boolean isCreative()- Mappings:
Namespace Name Mixin selector named isCreativeLnet/minecraft/entity/player/PlayerEntity;isCreative()Zintermediary method_68878Lnet/minecraft/class_1657;method_68878()Zofficial gXLdcm;gX()Z
-
isPushedByFluids
public boolean isPushedByFluids()Returns whether the entity is pushed by fluids.- Overrides:
isPushedByFluidsin 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 isPushedByFluidsLnet/minecraft/entity/Entity;isPushedByFluids()Zintermediary method_5675Lnet/minecraft/class_1297;method_5675()Zofficial daLcgi;da()Z
-
getDisplayName
Returns the display name of this object.By default, this returns the result of
getName(). The return value can have styling applied.- Specified by:
getDisplayNamein interfaceNameable- Specified by:
getDisplayNamein interfaceScoreHolder- Overrides:
getDisplayNamein classEntity- Returns:
- the display name of this object
- Mappings:
Namespace Name Mixin selector named getDisplayNameLnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;intermediary method_5476Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;official S_Lcde;S_()Lyh;
-
addTellClickEvent
- Mappings:
Namespace Name Mixin selector named addTellClickEventLnet/minecraft/entity/player/PlayerEntity;addTellClickEvent(Lnet/minecraft/text/MutableText;)Lnet/minecraft/text/MutableText;intermediary method_7299Lnet/minecraft/class_1657;method_7299(Lnet/minecraft/class_5250;)Lnet/minecraft/class_5250;official aLdcm;a(Lyw;)Lyw;
-
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:
getNameForScoreboardin interfaceScoreHolder- Overrides:
getNameForScoreboardin classEntity- Returns:
- the name uniquely identifying the score holder
- See Also:
- Mappings:
Namespace Name Mixin selector named getNameForScoreboardLnet/minecraft/scoreboard/ScoreHolder;getNameForScoreboard()Ljava/lang/String;intermediary method_5820Lnet/minecraft/class_9015;method_5820()Ljava/lang/String;official cZLfti;cZ()Ljava/lang/String;
-
setAbsorptionAmountUnclamped
protected void setAbsorptionAmountUnclamped(float absorptionAmount) - Overrides:
setAbsorptionAmountUnclampedin classLivingEntity- Mappings:
Namespace Name Mixin selector named setAbsorptionAmountUnclampedLnet/minecraft/entity/LivingEntity;setAbsorptionAmountUnclamped(F)Vintermediary method_52544Lnet/minecraft/class_1309;method_52544(F)Vofficial GLchk;G(F)V
-
getAbsorptionAmount
public float getAbsorptionAmount()- Overrides:
getAbsorptionAmountin classLivingEntity- Mappings:
Namespace Name Mixin selector named getAbsorptionAmountLnet/minecraft/entity/LivingEntity;getAbsorptionAmount()Fintermediary method_6067Lnet/minecraft/class_1309;method_6067()Fofficial fULchk;fU()F
-
getStackReference
- Specified by:
getStackReferencein interfaceStackReferenceGetter- Overrides:
getStackReferencein classLivingEntity- Mappings:
Namespace Name Mixin selector named getStackReferenceLnet/minecraft/inventory/StackReferenceGetter;getStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_32318Lnet/minecraft/class_12260;method_32318(I)Lnet/minecraft/class_5630;official a_Lcic;a_(I)Lcib;
-
hasReducedDebugInfo
public boolean hasReducedDebugInfo()- Mappings:
Namespace Name Mixin selector named hasReducedDebugInfoLnet/minecraft/entity/player/PlayerEntity;hasReducedDebugInfo()Zintermediary method_7302Lnet/minecraft/class_1657;method_7302()Zofficial gYLdcm;gY()Z
-
setReducedDebugInfo
public void setReducedDebugInfo(boolean reducedDebugInfo) - Mappings:
Namespace Name Mixin selector named setReducedDebugInfoLnet/minecraft/entity/player/PlayerEntity;setReducedDebugInfo(Z)Vintermediary method_7268Lnet/minecraft/class_1657;method_7268(Z)Vofficial vLdcm;v(Z)V
-
setFireTicks
public void setFireTicks(int fireTicks) Sets the entity on fire forticksticks.- Overrides:
setFireTicksin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named setFireTicksLnet/minecraft/entity/Entity;setFireTicks(I)Vintermediary method_20803Lnet/minecraft/class_1297;method_20803(I)Vofficial hLcgi;h(I)V
-
readParrotVariant
- Mappings:
Namespace Name Mixin selector named readParrotVariantLnet/minecraft/entity/player/PlayerEntity;readParrotVariant(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/Optional;intermediary method_74135Lnet/minecraft/class_1657;method_74135(Lnet/minecraft/class_2487;)Ljava/util/Optional;official dLdcm;d(Luz;)Ljava/util/Optional;
-
mapParrotVariant
- Mappings:
Namespace Name Mixin selector named mapParrotVariantLnet/minecraft/entity/player/PlayerEntity;mapParrotVariant(Ljava/util/Optional;)Ljava/util/OptionalInt;intermediary method_74131Lnet/minecraft/class_1657;method_74131(Ljava/util/Optional;)Ljava/util/OptionalInt;official aLdcm;a(Ljava/util/Optional;)Ljava/util/OptionalInt;
-
mapParrotVariantIfPresent
- Mappings:
Namespace Name Mixin selector named mapParrotVariantIfPresentLnet/minecraft/entity/player/PlayerEntity;mapParrotVariantIfPresent(Ljava/util/OptionalInt;)Ljava/util/Optional;intermediary method_74132Lnet/minecraft/class_1657;method_74132(Ljava/util/OptionalInt;)Ljava/util/Optional;official aLdcm;a(Ljava/util/OptionalInt;)Ljava/util/Optional;
-
setLeftShoulderParrotVariant
- Mappings:
Namespace Name Mixin selector named setLeftShoulderParrotVariantLnet/minecraft/entity/player/PlayerEntity;setLeftShoulderParrotVariant(Ljava/util/Optional;)Vintermediary method_74133Lnet/minecraft/class_1657;method_74133(Ljava/util/Optional;)Vofficial bLdcm;b(Ljava/util/Optional;)V
-
getLeftShoulderParrotVariant
- Mappings:
Namespace Name Mixin selector named getLeftShoulderParrotVariantLnet/minecraft/entity/player/PlayerEntity;getLeftShoulderParrotVariant()Ljava/util/Optional;intermediary method_74136Lnet/minecraft/class_1657;method_74136()Ljava/util/Optional;official gZLdcm;gZ()Ljava/util/Optional;
-
setRightShoulderParrotVariant
- Mappings:
Namespace Name Mixin selector named setRightShoulderParrotVariantLnet/minecraft/entity/player/PlayerEntity;setRightShoulderParrotVariant(Ljava/util/Optional;)Vintermediary method_74134Lnet/minecraft/class_1657;method_74134(Ljava/util/Optional;)Vofficial cLdcm;c(Ljava/util/Optional;)V
-
getRightShoulderParrotVariant
- Mappings:
Namespace Name Mixin selector named getRightShoulderParrotVariantLnet/minecraft/entity/player/PlayerEntity;getRightShoulderParrotVariant()Ljava/util/Optional;intermediary method_74137Lnet/minecraft/class_1657;method_74137()Ljava/util/Optional;official haLdcm;ha()Ljava/util/Optional;
-
getAttackCooldownProgressPerTick
public float getAttackCooldownProgressPerTick()- Mappings:
Namespace Name Mixin selector named getAttackCooldownProgressPerTickLnet/minecraft/entity/player/PlayerEntity;getAttackCooldownProgressPerTick()Fintermediary method_7279Lnet/minecraft/class_1657;method_7279()Fofficial hbLdcm;hb()F
-
isBelowMinimumAttackCharge
- Mappings:
Namespace Name Mixin selector named isBelowMinimumAttackChargeLnet/minecraft/entity/player/PlayerEntity;isBelowMinimumAttackCharge(Lnet/minecraft/item/ItemStack;I)Zintermediary method_75202Lnet/minecraft/class_1657;method_75202(Lnet/minecraft/class_1799;I)Zofficial cLdcm;c(Ldkm;I)Z
-
getAttackCooldownProgress
public float getAttackCooldownProgress(float baseTime) - Mappings:
Namespace Name Mixin selector named getAttackCooldownProgressLnet/minecraft/entity/player/PlayerEntity;getAttackCooldownProgress(F)Fintermediary method_7261Lnet/minecraft/class_1657;method_7261(F)Fofficial ILdcm;I(F)F
-
getHandEquippingProgress
public float getHandEquippingProgress(float baseTime) - Mappings:
Namespace Name Mixin selector named getHandEquippingProgressLnet/minecraft/entity/player/PlayerEntity;getHandEquippingProgress(F)Fintermediary method_75194Lnet/minecraft/class_1657;method_75194(F)Fofficial JLdcm;J(F)F
-
resetTicksSince
public void resetTicksSince()- Mappings:
Namespace Name Mixin selector named resetTicksSinceLnet/minecraft/entity/player/PlayerEntity;resetTicksSince()Vintermediary method_7350Lnet/minecraft/class_1657;method_7350()Vofficial hcLdcm;hc()V
-
beforePlayerAttack
public void beforePlayerAttack()- Overrides:
beforePlayerAttackin classLivingEntity- Mappings:
Namespace Name Mixin selector named beforePlayerAttackLnet/minecraft/entity/LivingEntity;beforePlayerAttack()Vintermediary method_75124Lnet/minecraft/class_1309;method_75124()Vofficial fLLchk;fL()V
-
resetTicksSinceLastAttack
public void resetTicksSinceLastAttack()- Mappings:
Namespace Name Mixin selector named resetTicksSinceLastAttackLnet/minecraft/entity/player/PlayerEntity;resetTicksSinceLastAttack()Vintermediary method_75203Lnet/minecraft/class_1657;method_75203()Vofficial hdLdcm;hd()V
-
getItemCooldownManager
- Mappings:
Namespace Name Mixin selector named getItemCooldownManagerLnet/minecraft/entity/player/PlayerEntity;getItemCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;intermediary method_7357Lnet/minecraft/class_1657;method_7357()Lnet/minecraft/class_1796;official heLdcm;he()Ldkj;
-
getVelocityMultiplier
protected float getVelocityMultiplier()- Overrides:
getVelocityMultiplierin classLivingEntity- Mappings:
Namespace Name Mixin selector named getVelocityMultiplierLnet/minecraft/entity/Entity;getVelocityMultiplier()Fintermediary method_23326Lnet/minecraft/class_1297;method_23326()Fofficial bhLcgi;bh()F
-
getLuck
public float getLuck()- Overrides:
getLuckin classLivingEntity- Mappings:
Namespace Name Mixin selector named getLuckLnet/minecraft/entity/LivingEntity;getLuck()Fintermediary method_7292Lnet/minecraft/class_1309;method_7292()Fofficial eALchk;eA()F
-
isCreativeLevelTwoOp
public boolean isCreativeLevelTwoOp()- Mappings:
Namespace Name Mixin selector named isCreativeLevelTwoOpLnet/minecraft/entity/player/PlayerEntity;isCreativeLevelTwoOp()Zintermediary method_7338Lnet/minecraft/class_1657;method_7338()Zofficial hfLdcm;hf()Z
-
getPermissions
- Mappings:
Namespace Name Mixin selector named getPermissionsLnet/minecraft/entity/player/PlayerEntity;getPermissions()Lnet/minecraft/command/permission/PermissionPredicate;intermediary method_75004Lnet/minecraft/class_1657;method_75004()Lnet/minecraft/class_12096;official ILdcm;I()Lbbn;
-
getPoses
- Overrides:
getPosesin classLivingEntity- Mappings:
Namespace Name Mixin selector named getPosesLnet/minecraft/entity/LivingEntity;getPoses()Lcom/google/common/collect/ImmutableList;intermediary method_24831Lnet/minecraft/class_1309;method_24831()Lcom/google/common/collect/ImmutableList;official glLchk;gl()Lcom/google/common/collect/ImmutableList;
-
getProjectileType
- Overrides:
getProjectileTypein classLivingEntity- Mappings:
Namespace Name Mixin selector named getProjectileTypeLnet/minecraft/entity/LivingEntity;getProjectileType(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;intermediary method_18808Lnet/minecraft/class_1309;method_18808(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;official dLchk;d(Ldkm;)Ldkm;
-
getLeashPos
Returns the position of the leash this entity holds.This is different from
; this method is called on the entity that holds the leash.invalid reference
#getLeashOffset- Overrides:
getLeashPosin classEntity- Returns:
- the position of the leash this entity holds
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashPosLnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;intermediary method_30951Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;official uLcgi;u(F)Lfse;
-
isPlayer
public boolean isPlayer()- Specified by:
isPlayerin interfaceEntityLike- Overrides:
isPlayerin classEntity- Mappings:
Namespace Name Mixin selector named isPlayerLnet/minecraft/world/entity/EntityLike;isPlayer()Zintermediary method_31747Lnet/minecraft/class_5568;method_31747()Zofficial ekLerh;ek()Z
-
isUsingSpyglass
public boolean isUsingSpyglass()- Mappings:
Namespace Name Mixin selector named isUsingSpyglassLnet/minecraft/entity/player/PlayerEntity;isUsingSpyglass()Zintermediary method_31550Lnet/minecraft/class_1657;method_31550()Zofficial hgLdcm;hg()Z
-
shouldSave
public boolean shouldSave()- Specified by:
shouldSavein interfaceEntityLike- Overrides:
shouldSavein classEntity- Mappings:
Namespace Name Mixin selector named shouldSaveLnet/minecraft/world/entity/EntityLike;shouldSave()Zintermediary method_31746Lnet/minecraft/class_5568;method_31746()Zofficial ejLerh;ej()Z
-
getLastDeathPos
- Mappings:
Namespace Name Mixin selector named getLastDeathPosLnet/minecraft/entity/player/PlayerEntity;getLastDeathPos()Ljava/util/Optional;intermediary method_43122Lnet/minecraft/class_1657;method_43122()Ljava/util/Optional;official hhLdcm;hh()Ljava/util/Optional;
-
setLastDeathPos
- Mappings:
Namespace Name Mixin selector named setLastDeathPosLnet/minecraft/entity/player/PlayerEntity;setLastDeathPos(Ljava/util/Optional;)Vintermediary method_43120Lnet/minecraft/class_1657;method_43120(Ljava/util/Optional;)Vofficial dLdcm;d(Ljava/util/Optional;)V
-
getDamageTiltYaw
public float getDamageTiltYaw()- Overrides:
getDamageTiltYawin classLivingEntity- Mappings:
Namespace Name Mixin selector named getDamageTiltYawLnet/minecraft/entity/LivingEntity;getDamageTiltYaw()Fintermediary method_48157Lnet/minecraft/class_1309;method_48157()Fofficial feLchk;fe()F
-
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
animateDamagein classLivingEntity- Mappings:
Namespace Name Mixin selector named animateDamageLnet/minecraft/entity/Entity;animateDamage(F)Vintermediary method_5879Lnet/minecraft/class_1297;method_5879(F)Vofficial qLcgi;q(F)V
-
hasBlindnessEffect
public boolean hasBlindnessEffect()- Mappings:
Namespace Name Mixin selector named hasBlindnessEffectLnet/minecraft/entity/player/PlayerEntity;hasBlindnessEffect()Zintermediary method_74025Lnet/minecraft/class_1657;method_74025()Zofficial hiLdcm;hi()Z
-
canSprintAsVehicle
public boolean canSprintAsVehicle()- Overrides:
canSprintAsVehiclein classEntity- Mappings:
Namespace Name Mixin selector named canSprintAsVehicleLnet/minecraft/entity/Entity;canSprintAsVehicle()Zintermediary method_48155Lnet/minecraft/class_1297;method_48155()Zofficial eeLcgi;ee()Z
-
getOffGroundSpeed
protected float getOffGroundSpeed()- Overrides:
getOffGroundSpeedin classLivingEntity- Mappings:
Namespace Name Mixin selector named getOffGroundSpeedLnet/minecraft/entity/LivingEntity;getOffGroundSpeed()Fintermediary method_49484Lnet/minecraft/class_1309;method_49484()Fofficial fHLchk;fH()F
-
isLoaded
public boolean isLoaded()Returns whether the player is considered "loaded", either because the client acknowledged loading or because the 60-tick timer elapsed.If
false, the player is invulnerable and cannot perform most actions.- Returns:
- whether the player is considered "loaded", either because the client acknowledged loading or because the 60-tick timer elapsed
- Mappings:
Namespace Name Mixin selector named isLoadedLnet/minecraft/entity/player/PlayerEntity;isLoaded()Zintermediary method_65350Lnet/minecraft/class_1657;method_65350()Zofficial hjLdcm;hj()Z
-
tickLoaded
public void tickLoaded()- Mappings:
Namespace Name Mixin selector named tickLoadedLnet/minecraft/entity/player/PlayerEntity;tickLoaded()Vintermediary method_65351Lnet/minecraft/class_1657;method_65351()Vofficial hkLdcm;hk()V
-
setLoaded
public void setLoaded(boolean loaded) - Mappings:
Namespace Name Mixin selector named setLoadedLnet/minecraft/entity/player/PlayerEntity;setLoaded(Z)Vintermediary method_65352Lnet/minecraft/class_1657;method_65352(Z)Vofficial wLdcm;w(Z)V
-
isViewingContainerAt
- Specified by:
isViewingContainerAtin interfaceContainerUser- Mappings:
Namespace Name Mixin selector named isViewingContainerAtLnet/minecraft/entity/ContainerUser;isViewingContainerAt(Lnet/minecraft/block/entity/ViewerCountManager;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_72380Lnet/minecraft/class_11565;method_72380(Lnet/minecraft/class_5561;Lnet/minecraft/class_2338;)Zofficial aLcgb;a(Lekh;Lis;)Z
-
getContainerInteractionRange
public double getContainerInteractionRange()- Specified by:
getContainerInteractionRangein interfaceContainerUser- Mappings:
Namespace Name Mixin selector named getContainerInteractionRangeLnet/minecraft/entity/ContainerUser;getContainerInteractionRange()Dintermediary method_72381Lnet/minecraft/class_11565;method_72381()Dofficial arLcgb;ar()D
-
getBlockInteractionRange
public double getBlockInteractionRange()- Mappings:
Namespace Name Mixin selector named getBlockInteractionRangeLnet/minecraft/entity/player/PlayerEntity;getBlockInteractionRange()Dintermediary method_55754Lnet/minecraft/class_1657;method_55754()Dofficial hlLdcm;hl()D
-
getEntityInteractionRange
public double getEntityInteractionRange()- Mappings:
Namespace Name Mixin selector named getEntityInteractionRangeLnet/minecraft/entity/player/PlayerEntity;getEntityInteractionRange()Dintermediary method_55755Lnet/minecraft/class_1657;method_55755()Dofficial hmLdcm;hm()D
-
canInteractWithEntity
Returns whether the player can interact withentity.This returns
falsefor 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 canInteractWithEntityLnet/minecraft/entity/player/PlayerEntity;canInteractWithEntity(Lnet/minecraft/entity/Entity;D)Zintermediary method_56094Lnet/minecraft/class_1657;method_56094(Lnet/minecraft/class_1297;D)Zofficial bLdcm;b(Lcgi;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 canInteractWithEntityInLnet/minecraft/entity/player/PlayerEntity;canInteractWithEntityIn(Lnet/minecraft/util/math/Box;D)Zintermediary method_56092Lnet/minecraft/class_1657;method_56092(Lnet/minecraft/class_238;D)Zofficial aLdcm;a(Lfrz;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 canInteractWithBlockAtLnet/minecraft/entity/player/PlayerEntity;canInteractWithBlockAt(Lnet/minecraft/util/math/BlockPos;D)Zintermediary method_56093Lnet/minecraft/class_1657;method_56093(Lnet/minecraft/class_2338;D)Zofficial aLdcm;a(Lis;D)Z
-
setIgnoreFallDamageFromCurrentExplosion
public void setIgnoreFallDamageFromCurrentExplosion(boolean ignoreFallDamageFromCurrentExplosion) - Mappings:
Namespace Name Mixin selector named setIgnoreFallDamageFromCurrentExplosionLnet/minecraft/entity/player/PlayerEntity;setIgnoreFallDamageFromCurrentExplosion(Z)Vintermediary method_60984Lnet/minecraft/class_1657;method_60984(Z)Vofficial xLdcm;x(Z)V
-
shouldIgnoreFallDamageFromCurrentExplosion
public boolean shouldIgnoreFallDamageFromCurrentExplosion()- Mappings:
Namespace Name Mixin selector named shouldIgnoreFallDamageFromCurrentExplosionLnet/minecraft/entity/player/PlayerEntity;shouldIgnoreFallDamageFromCurrentExplosion()Zintermediary method_61165Lnet/minecraft/class_1657;method_61165()Zofficial hnLdcm;hn()Z
-
tryClearCurrentExplosion
public void tryClearCurrentExplosion()- Mappings:
Namespace Name Mixin selector named tryClearCurrentExplosionLnet/minecraft/entity/player/PlayerEntity;tryClearCurrentExplosion()Vintermediary method_60983Lnet/minecraft/class_1657;method_60983()Vofficial hoLdcm;ho()V
-
clearCurrentExplosion
public void clearCurrentExplosion()- Mappings:
Namespace Name Mixin selector named clearCurrentExplosionLnet/minecraft/entity/player/PlayerEntity;clearCurrentExplosion()Vintermediary method_58396Lnet/minecraft/class_1657;method_58396()Vofficial hpLdcm;hp()V
-
shouldRotateWithMinecart
public boolean shouldRotateWithMinecart()- Mappings:
Namespace Name Mixin selector named shouldRotateWithMinecartLnet/minecraft/entity/player/PlayerEntity;shouldRotateWithMinecart()Zintermediary method_61498Lnet/minecraft/class_1657;method_61498()Zofficial hqLdcm;hq()Z
-
isClimbing
public boolean isClimbing()- Overrides:
isClimbingin classLivingEntity- Mappings:
Namespace Name Mixin selector named isClimbingLnet/minecraft/entity/LivingEntity;isClimbing()Zintermediary method_6101Lnet/minecraft/class_1309;method_6101()Zofficial fjLchk;fj()Z
-
asString
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/entity/player/PlayerEntity;asString()Ljava/lang/String;intermediary method_68877Lnet/minecraft/class_1657;method_68877()Ljava/lang/String;official hrLdcm;hr()Ljava/lang/String;
-