Class PlayerEntity

All Implemented Interfaces:
ComponentsAccess, Attackable, ContainerUser, DataTracked, ScoreHolder, HeldItemContext, Nameable, DebugTrackable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint
Direct Known Subclasses:
AbstractClientPlayerEntity, ServerPlayerEntity

public abstract class PlayerEntity extends PlayerLikeEntity implements ContainerUser
Mappings:
Namespace Name
named net/minecraft/entity/player/PlayerEntity
intermediary net/minecraft/class_1657
official czl
  • Field Details

    • MAX_HEALTH

      public static final int MAX_HEALTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_HEALTH Lnet/minecraft/entity/player/PlayerEntity;MAX_HEALTH:I
      intermediary field_30644 Lnet/minecraft/class_1657;field_30644:I
      official ca Lczl;ca:I
    • SLEEP_DURATION

      public static final int SLEEP_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SLEEP_DURATION Lnet/minecraft/entity/player/PlayerEntity;SLEEP_DURATION:I
      intermediary field_30645 Lnet/minecraft/class_1657;field_30645:I
      official cb Lczl;cb:I
    • WAKE_UP_DURATION

      public static final int WAKE_UP_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WAKE_UP_DURATION Lnet/minecraft/entity/player/PlayerEntity;WAKE_UP_DURATION:I
      intermediary field_30646 Lnet/minecraft/class_1657;field_30646:I
      official cc Lczl;cc:I
    • ENDER_SLOT_OFFSET

      public static final int ENDER_SLOT_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENDER_SLOT_OFFSET Lnet/minecraft/entity/player/PlayerEntity;ENDER_SLOT_OFFSET:I
      intermediary field_30647 Lnet/minecraft/class_1657;field_30647:I
      official cd Lczl;cd:I
    • HELD_ITEM_SLOT_OFFSET

      public static final int HELD_ITEM_SLOT_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HELD_ITEM_SLOT_OFFSET Lnet/minecraft/entity/player/PlayerEntity;HELD_ITEM_SLOT_OFFSET:I
      intermediary field_49734 Lnet/minecraft/class_1657;field_49734:I
      official ce Lczl;ce:I
    • CRAFTING_SLOT_OFFSET

      public static final int CRAFTING_SLOT_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CRAFTING_SLOT_OFFSET Lnet/minecraft/entity/player/PlayerEntity;CRAFTING_SLOT_OFFSET:I
      intermediary field_49735 Lnet/minecraft/class_1657;field_49735:I
      official cf Lczl;cf:I
    • BLOCK_INTERACTION_RANGE

      public static final float BLOCK_INTERACTION_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_INTERACTION_RANGE Lnet/minecraft/entity/player/PlayerEntity;BLOCK_INTERACTION_RANGE:F
      intermediary field_47819 Lnet/minecraft/class_1657;field_47819:F
      official cg Lczl;cg:F
    • ENTITY_INTERACTION_RANGE

      public static final float ENTITY_INTERACTION_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ENTITY_INTERACTION_RANGE Lnet/minecraft/entity/player/PlayerEntity;ENTITY_INTERACTION_RANGE:F
      intermediary field_47820 Lnet/minecraft/class_1657;field_47820:F
      official ch Lczl;ch:F
    • field_52222

      private static final int field_52222
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52222 Lnet/minecraft/entity/player/PlayerEntity;field_52222:I
      intermediary field_52222 Lnet/minecraft/class_1657;field_52222:I
      official a Lczl;a:I
    • ABSORPTION_AMOUNT

      private static final TrackedData<Float> ABSORPTION_AMOUNT
      Mappings:
      Namespace Name Mixin selector
      named ABSORPTION_AMOUNT Lnet/minecraft/entity/player/PlayerEntity;ABSORPTION_AMOUNT:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7491 Lnet/minecraft/class_1657;field_7491:Lnet/minecraft/class_2940;
      official b Lczl;b:Lalm;
    • SCORE

      private static final TrackedData<Integer> SCORE
      Mappings:
      Namespace Name Mixin selector
      named SCORE Lnet/minecraft/entity/player/PlayerEntity;SCORE:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7511 Lnet/minecraft/class_1657;field_7511:Lnet/minecraft/class_2940;
      official c Lczl;c:Lalm;
    • LEFT_SHOULDER_PARROT_VARIANT_ID

      private static final TrackedData<OptionalInt> LEFT_SHOULDER_PARROT_VARIANT_ID
      Mappings:
      Namespace Name Mixin selector
      named LEFT_SHOULDER_PARROT_VARIANT_ID Lnet/minecraft/entity/player/PlayerEntity;LEFT_SHOULDER_PARROT_VARIANT_ID:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_62530 Lnet/minecraft/class_1657;field_62530:Lnet/minecraft/class_2940;
      official d Lczl;d:Lalm;
    • RIGHT_SHOULDER_PARROT_VARIANT_ID

      private static final TrackedData<OptionalInt> RIGHT_SHOULDER_PARROT_VARIANT_ID
      Mappings:
      Namespace Name Mixin selector
      named RIGHT_SHOULDER_PARROT_VARIANT_ID Lnet/minecraft/entity/player/PlayerEntity;RIGHT_SHOULDER_PARROT_VARIANT_ID:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_62531 Lnet/minecraft/class_1657;field_62531:Lnet/minecraft/class_2940;
      official e Lczl;e:Lalm;
    • field_55202

      public static final int field_55202
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_55202 Lnet/minecraft/entity/player/PlayerEntity;field_55202:I
      intermediary field_55202 Lnet/minecraft/class_1657;field_55202:I
      official ci Lczl;ci:I
    • field_57725

      private static final short field_57725
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57725 Lnet/minecraft/entity/player/PlayerEntity;field_57725:S
      intermediary field_57725 Lnet/minecraft/class_1657;field_57725:S
      official f Lczl;f:S
    • field_57726

      private static final float field_57726
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57726 Lnet/minecraft/entity/player/PlayerEntity;field_57726:F
      intermediary field_57726 Lnet/minecraft/class_1657;field_57726:F
      official g Lczl;g:F
    • field_57727

      private static final int field_57727
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57727 Lnet/minecraft/entity/player/PlayerEntity;field_57727:I
      intermediary field_57727 Lnet/minecraft/class_1657;field_57727:I
      official h Lczl;h:I
    • field_57728

      private static final int field_57728
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57728 Lnet/minecraft/entity/player/PlayerEntity;field_57728:I
      intermediary field_57728 Lnet/minecraft/class_1657;field_57728:I
      official i Lczl;i:I
    • field_57729

      private static final int field_57729
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57729 Lnet/minecraft/entity/player/PlayerEntity;field_57729:I
      intermediary field_57729 Lnet/minecraft/class_1657;field_57729:I
      official j Lczl;j:I
    • field_57730

      private static final int field_57730
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57730 Lnet/minecraft/entity/player/PlayerEntity;field_57730:I
      intermediary field_57730 Lnet/minecraft/class_1657;field_57730:I
      official k Lczl;k:I
    • field_57731

      private static final int field_57731
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57731 Lnet/minecraft/entity/player/PlayerEntity;field_57731:I
      intermediary field_57731 Lnet/minecraft/class_1657;field_57731:I
      official cA Lczl;cA:I
    • field_57723

      private static final boolean field_57723
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57723 Lnet/minecraft/entity/player/PlayerEntity;field_57723:Z
      intermediary field_57723 Lnet/minecraft/class_1657;field_57723:Z
      official cB Lczl;cB:Z
    • field_57724

      private static final int field_57724
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_57724 Lnet/minecraft/entity/player/PlayerEntity;field_57724:I
      intermediary field_57724 Lnet/minecraft/class_1657;field_57724:I
      official cC Lczl;cC:I
    • inventory

      final PlayerInventory inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/entity/player/PlayerEntity;inventory:Lnet/minecraft/entity/player/PlayerInventory;
      intermediary field_7514 Lnet/minecraft/class_1657;field_7514:Lnet/minecraft/class_1661;
      official cD Lczl;cD:Lczk;
    • enderChestInventory

      protected EnderChestInventory enderChestInventory
      Mappings:
      Namespace Name Mixin selector
      named enderChestInventory Lnet/minecraft/entity/player/PlayerEntity;enderChestInventory:Lnet/minecraft/inventory/EnderChestInventory;
      intermediary field_7486 Lnet/minecraft/class_1657;field_7486:Lnet/minecraft/class_1730;
      official cj Lczl;cj:Ldeu;
    • playerScreenHandler

      public final PlayerScreenHandler playerScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named playerScreenHandler Lnet/minecraft/entity/player/PlayerEntity;playerScreenHandler:Lnet/minecraft/screen/PlayerScreenHandler;
      intermediary field_7498 Lnet/minecraft/class_1657;field_7498:Lnet/minecraft/class_1723;
      official ck Lczl;ck:Ldej;
    • currentScreenHandler

      public ScreenHandler currentScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named currentScreenHandler Lnet/minecraft/entity/player/PlayerEntity;currentScreenHandler:Lnet/minecraft/screen/ScreenHandler;
      intermediary field_7512 Lnet/minecraft/class_1657;field_7512:Lnet/minecraft/class_1703;
      official cl Lczl;cl:Lddg;
    • hungerManager

      protected HungerManager hungerManager
      Mappings:
      Namespace Name Mixin selector
      named hungerManager Lnet/minecraft/entity/player/PlayerEntity;hungerManager:Lnet/minecraft/entity/player/HungerManager;
      intermediary field_7493 Lnet/minecraft/class_1657;field_7493:Lnet/minecraft/class_1702;
      official cm Lczl;cm:Lddc;
    • abilityResyncCountdown

      protected int abilityResyncCountdown
      Mappings:
      Namespace Name Mixin selector
      named abilityResyncCountdown Lnet/minecraft/entity/player/PlayerEntity;abilityResyncCountdown:I
      intermediary field_7489 Lnet/minecraft/class_1657;field_7489:I
      official cn Lczl;cn:I
    • loaded

      private boolean loaded
      Mappings:
      Namespace Name Mixin selector
      named loaded Lnet/minecraft/entity/player/PlayerEntity;loaded:Z
      intermediary field_55204 Lnet/minecraft/class_1657;field_55204:Z
      official cE Lczl;cE:Z
    • remainingLoadTicks

      protected int remainingLoadTicks
      Mappings:
      Namespace Name Mixin selector
      named remainingLoadTicks Lnet/minecraft/entity/player/PlayerEntity;remainingLoadTicks:I
      intermediary field_55203 Lnet/minecraft/class_1657;field_55203:I
      official co Lczl;co:I
    • experiencePickUpDelay

      public int experiencePickUpDelay
      Mappings:
      Namespace Name Mixin selector
      named experiencePickUpDelay Lnet/minecraft/entity/player/PlayerEntity;experiencePickUpDelay:I
      intermediary field_7504 Lnet/minecraft/class_1657;field_7504:I
      official cp Lczl;cp:I
    • sleepTimer

      private int sleepTimer
      Mappings:
      Namespace Name Mixin selector
      named sleepTimer Lnet/minecraft/entity/player/PlayerEntity;sleepTimer:I
      intermediary field_7487 Lnet/minecraft/class_1657;field_7487:I
      official cF Lczl;cF:I
    • isSubmergedInWater

      protected boolean isSubmergedInWater
      Mappings:
      Namespace Name Mixin selector
      named isSubmergedInWater Lnet/minecraft/entity/player/PlayerEntity;isSubmergedInWater:Z
      intermediary field_7490 Lnet/minecraft/class_1657;field_7490:Z
      official cq Lczl;cq:Z
    • abilities

      private final PlayerAbilities abilities
      Mappings:
      Namespace Name Mixin selector
      named abilities Lnet/minecraft/entity/player/PlayerEntity;abilities:Lnet/minecraft/entity/player/PlayerAbilities;
      intermediary field_7503 Lnet/minecraft/class_1657;field_7503:Lnet/minecraft/class_1656;
      official cG Lczl;cG:Lczh;
    • experienceLevel

      public int experienceLevel
      Mappings:
      Namespace Name Mixin selector
      named experienceLevel Lnet/minecraft/entity/player/PlayerEntity;experienceLevel:I
      intermediary field_7520 Lnet/minecraft/class_1657;field_7520:I
      official cr Lczl;cr:I
    • totalExperience

      public int totalExperience
      Mappings:
      Namespace Name Mixin selector
      named totalExperience Lnet/minecraft/entity/player/PlayerEntity;totalExperience:I
      intermediary field_7495 Lnet/minecraft/class_1657;field_7495:I
      official cs Lczl;cs:I
    • experienceProgress

      public float experienceProgress
      Mappings:
      Namespace Name Mixin selector
      named experienceProgress Lnet/minecraft/entity/player/PlayerEntity;experienceProgress:F
      intermediary field_7510 Lnet/minecraft/class_1657;field_7510:F
      official ct Lczl;ct:F
    • enchantingTableSeed

      protected int enchantingTableSeed
      Mappings:
      Namespace Name Mixin selector
      named enchantingTableSeed Lnet/minecraft/entity/player/PlayerEntity;enchantingTableSeed:I
      intermediary field_7494 Lnet/minecraft/class_1657;field_7494:I
      official cu Lczl;cu:I
    • baseFlySpeed

      protected final float baseFlySpeed
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named baseFlySpeed Lnet/minecraft/entity/player/PlayerEntity;baseFlySpeed:F
      intermediary field_7509 Lnet/minecraft/class_1657;field_7509:F
      official cv Lczl;cv:F
    • lastPlayedLevelUpSoundTime

      private int lastPlayedLevelUpSoundTime
      Mappings:
      Namespace Name Mixin selector
      named lastPlayedLevelUpSoundTime Lnet/minecraft/entity/player/PlayerEntity;lastPlayedLevelUpSoundTime:I
      intermediary field_7508 Lnet/minecraft/class_1657;field_7508:I
      official cH Lczl;cH:I
    • gameProfile

      private final com.mojang.authlib.GameProfile gameProfile
      Mappings:
      Namespace Name Mixin selector
      named gameProfile Lnet/minecraft/entity/player/PlayerEntity;gameProfile:Lcom/mojang/authlib/GameProfile;
      intermediary field_7507 Lnet/minecraft/class_1657;field_7507:Lcom/mojang/authlib/GameProfile;
      official cI Lczl;cI:Lcom/mojang/authlib/GameProfile;
    • reducedDebugInfo

      private boolean reducedDebugInfo
      Mappings:
      Namespace Name Mixin selector
      named reducedDebugInfo Lnet/minecraft/entity/player/PlayerEntity;reducedDebugInfo:Z
      intermediary field_7523 Lnet/minecraft/class_1657;field_7523:Z
      official cJ Lczl;cJ:Z
    • selectedItem

      private ItemStack selectedItem
      Mappings:
      Namespace Name Mixin selector
      named selectedItem Lnet/minecraft/entity/player/PlayerEntity;selectedItem:Lnet/minecraft/item/ItemStack;
      intermediary field_7525 Lnet/minecraft/class_1657;field_7525:Lnet/minecraft/class_1799;
      official cK Lczl;cK:Ldhp;
    • itemCooldownManager

      private final ItemCooldownManager itemCooldownManager
      Mappings:
      Namespace Name Mixin selector
      named itemCooldownManager Lnet/minecraft/entity/player/PlayerEntity;itemCooldownManager:Lnet/minecraft/entity/player/ItemCooldownManager;
      intermediary field_7484 Lnet/minecraft/class_1657;field_7484:Lnet/minecraft/class_1796;
      official cL Lczl;cL:Ldhm;
    • lastDeathPos

      private Optional<GlobalPos> lastDeathPos
      Mappings:
      Namespace Name Mixin selector
      named lastDeathPos Lnet/minecraft/entity/player/PlayerEntity;lastDeathPos:Ljava/util/Optional;
      intermediary field_39445 Lnet/minecraft/class_1657;field_39445:Ljava/util/Optional;
      official cM Lczl;cM:Ljava/util/Optional;
    • fishHook

      Mappings:
      Namespace Name Mixin selector
      named fishHook Lnet/minecraft/entity/player/PlayerEntity;fishHook:Lnet/minecraft/entity/projectile/FishingBobberEntity;
      intermediary field_7513 Lnet/minecraft/class_1657;field_7513:Lnet/minecraft/class_1536;
      official cw Lczl;cw:Ldae;
    • damageTiltYaw

      protected float damageTiltYaw
      Mappings:
      Namespace Name Mixin selector
      named damageTiltYaw Lnet/minecraft/entity/player/PlayerEntity;damageTiltYaw:F
      intermediary field_41765 Lnet/minecraft/class_1657;field_41765:F
      official cx Lczl;cx:F
    • currentExplosionImpactPos

      @Nullable public @Nullable Vec3d currentExplosionImpactPos
      Mappings:
      Namespace Name Mixin selector
      named currentExplosionImpactPos Lnet/minecraft/entity/player/PlayerEntity;currentExplosionImpactPos:Lnet/minecraft/util/math/Vec3d;
      intermediary field_49989 Lnet/minecraft/class_1657;field_49989:Lnet/minecraft/class_243;
      official cy Lczl;cy:Lfoh;
    • explodedBy

      @Nullable public @Nullable Entity explodedBy
      Mappings:
      Namespace Name Mixin selector
      named explodedBy Lnet/minecraft/entity/player/PlayerEntity;explodedBy:Lnet/minecraft/entity/Entity;
      intermediary field_49990 Lnet/minecraft/class_1657;field_49990:Lnet/minecraft/class_1297;
      official cz Lczl;cz:Lcdv;
    • ignoreFallDamageFromCurrentExplosion

      private boolean ignoreFallDamageFromCurrentExplosion
      Mappings:
      Namespace Name Mixin selector
      named ignoreFallDamageFromCurrentExplosion Lnet/minecraft/entity/player/PlayerEntity;ignoreFallDamageFromCurrentExplosion:Z
      intermediary field_49991 Lnet/minecraft/class_1657;field_49991:Z
      official cN Lczl;cN:Z
    • currentExplosionResetGraceTime

      private int currentExplosionResetGraceTime
      Mappings:
      Namespace Name Mixin selector
      named currentExplosionResetGraceTime Lnet/minecraft/entity/player/PlayerEntity;currentExplosionResetGraceTime:I
      intermediary field_52223 Lnet/minecraft/class_1657;field_52223:I
      official cO Lczl;cO:I
  • Constructor Details

    • PlayerEntity

      public PlayerEntity(World world, com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/player/PlayerEntity;<init>(Lnet/minecraft/world/World;Lcom/mojang/authlib/GameProfile;)V
      intermediary <init> Lnet/minecraft/class_1657;<init>(Lnet/minecraft/class_1937;Lcom/mojang/authlib/GameProfile;)V
      official <init> Lczl;<init>(Ldrq;Lcom/mojang/authlib/GameProfile;)V
  • Method Details

    • createEquipment

      protected EntityEquipment createEquipment()
      Overrides:
      createEquipment in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named createEquipment Lnet/minecraft/entity/LivingEntity;createEquipment()Lnet/minecraft/entity/EntityEquipment;
      intermediary method_67518 Lnet/minecraft/class_1309;method_67518()Lnet/minecraft/class_10630;
      official ep Lcew;ep()Lcdz;
    • isBlockBreakingRestricted

      public boolean isBlockBreakingRestricted(World world, BlockPos pos, GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      named isBlockBreakingRestricted Lnet/minecraft/entity/player/PlayerEntity;isBlockBreakingRestricted(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/GameMode;)Z
      intermediary method_21701 Lnet/minecraft/class_1657;method_21701(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1934;)Z
      official a Lczl;a(Ldrq;Lja;Ldrn;)Z
    • createPlayerAttributes

      public static DefaultAttributeContainer.Builder createPlayerAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createPlayerAttributes Lnet/minecraft/entity/player/PlayerEntity;createPlayerAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26956 Lnet/minecraft/class_1657;method_26956()Lnet/minecraft/class_5132$class_5133;
      official go Lczl;go()Lcgb$a;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class PlayerLikeEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lcdv;a(Lalq$a;)V
    • tick

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

      protected float getMaxRelativeHeadRotation()
      Returns the maximum rotation of the head relative to the body in degrees.
      Overrides:
      getMaxRelativeHeadRotation in class LivingEntity
      Returns:
      the maximum rotation of the head relative to the body in degrees
      Mappings:
      Namespace Name Mixin selector
      named getMaxRelativeHeadRotation Lnet/minecraft/entity/LivingEntity;getMaxRelativeHeadRotation()F
      intermediary method_53964 Lnet/minecraft/class_1309;method_53964()F
      official fE Lcew;fE()F
    • shouldCancelInteraction

      public boolean shouldCancelInteraction()
      Mappings:
      Namespace Name Mixin selector
      named shouldCancelInteraction Lnet/minecraft/entity/player/PlayerEntity;shouldCancelInteraction()Z
      intermediary method_21823 Lnet/minecraft/class_1657;method_21823()Z
      official gp Lczl;gp()Z
    • shouldDismount

      protected boolean shouldDismount()
      Mappings:
      Namespace Name Mixin selector
      named shouldDismount Lnet/minecraft/entity/player/PlayerEntity;shouldDismount()Z
      intermediary method_21824 Lnet/minecraft/class_1657;method_21824()Z
      official gq Lczl;gq()Z
    • clipAtLedge

      protected boolean clipAtLedge()
      Mappings:
      Namespace Name Mixin selector
      named clipAtLedge Lnet/minecraft/entity/player/PlayerEntity;clipAtLedge()Z
      intermediary method_21825 Lnet/minecraft/class_1657;method_21825()Z
      official gr Lczl;gr()Z
    • updateWaterSubmersionState

      protected boolean updateWaterSubmersionState()
      Mappings:
      Namespace Name Mixin selector
      named updateWaterSubmersionState Lnet/minecraft/entity/player/PlayerEntity;updateWaterSubmersionState()Z
      intermediary method_7295 Lnet/minecraft/class_1657;method_7295()Z
      official gs Lczl;gs()Z
    • onBubbleColumnSurfaceCollision

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

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

      Overrides:
      onBubbleColumnSurfaceCollision in class Entity
      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      named onBubbleColumnSurfaceCollision Lnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(ZLnet/minecraft/util/math/BlockPos;)V
      intermediary method_5700 Lnet/minecraft/class_1297;method_5700(ZLnet/minecraft/class_2338;)V
      official a Lcdv;a(ZLja;)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:
      onBubbleColumnCollision in class Entity
      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      named onBubbleColumnCollision Lnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)V
      intermediary method_5764 Lnet/minecraft/class_1297;method_5764(Z)V
      official m Lcdv;m(Z)V
    • updateTurtleHelmet

      private void updateTurtleHelmet()
      Mappings:
      Namespace Name Mixin selector
      named updateTurtleHelmet Lnet/minecraft/entity/player/PlayerEntity;updateTurtleHelmet()V
      intermediary method_7330 Lnet/minecraft/class_1657;method_7330()V
      official m Lczl;m()V
    • isEquipped

      private boolean isEquipped(Item item)
      Mappings:
      Namespace Name Mixin selector
      named isEquipped Lnet/minecraft/entity/player/PlayerEntity;isEquipped(Lnet/minecraft/item/Item;)Z
      intermediary method_64179 Lnet/minecraft/class_1657;method_64179(Lnet/minecraft/class_1792;)Z
      official c Lczl;c(Ldhl;)Z
    • createCooldownManager

      protected ItemCooldownManager createCooldownManager()
      Mappings:
      Namespace Name Mixin selector
      named createCooldownManager Lnet/minecraft/entity/player/PlayerEntity;createCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
      intermediary method_7265 Lnet/minecraft/class_1657;method_7265()Lnet/minecraft/class_1796;
      official f Lczl;f()Ldhm;
    • updatePose

      protected void updatePose()
      Mappings:
      Namespace Name Mixin selector
      named updatePose Lnet/minecraft/entity/player/PlayerEntity;updatePose()V
      intermediary method_7318 Lnet/minecraft/class_1657;method_7318()V
      official gt Lczl;gt()V
    • getExpectedPose

      private EntityPose getExpectedPose()
      Mappings:
      Namespace Name Mixin selector
      named getExpectedPose Lnet/minecraft/entity/player/PlayerEntity;getExpectedPose()Lnet/minecraft/entity/EntityPose;
      intermediary method_66325 Lnet/minecraft/class_1657;method_66325()Lnet/minecraft/class_4050;
      official n Lczl;n()Lcfi;
    • canChangeIntoPose

      protected boolean canChangeIntoPose(EntityPose pose)
      Mappings:
      Namespace Name Mixin selector
      named canChangeIntoPose Lnet/minecraft/entity/player/PlayerEntity;canChangeIntoPose(Lnet/minecraft/entity/EntityPose;)Z
      intermediary method_52558 Lnet/minecraft/class_1657;method_52558(Lnet/minecraft/class_4050;)Z
      official h Lczl;h(Lcfi;)Z
    • getSwimSound

      protected SoundEvent getSwimSound()
      Overrides:
      getSwimSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getSwimSound Lnet/minecraft/entity/Entity;getSwimSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5737 Lnet/minecraft/class_1297;method_5737()Lnet/minecraft/class_3414;
      official bg Lcdv;bg()Lbcd;
    • getSplashSound

      protected SoundEvent getSplashSound()
      Overrides:
      getSplashSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getSplashSound Lnet/minecraft/entity/Entity;getSplashSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5625 Lnet/minecraft/class_1297;method_5625()Lnet/minecraft/class_3414;
      official bh Lcdv;bh()Lbcd;
    • getHighSpeedSplashSound

      protected SoundEvent getHighSpeedSplashSound()
      Overrides:
      getHighSpeedSplashSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getHighSpeedSplashSound Lnet/minecraft/entity/Entity;getHighSpeedSplashSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5672 Lnet/minecraft/class_1297;method_5672()Lnet/minecraft/class_3414;
      official bi Lcdv;bi()Lbcd;
    • getDefaultPortalCooldown

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

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

      Overrides:
      getDefaultPortalCooldown in class Entity
      Returns:
      the entity's default portal cooldown
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getDefaultPortalCooldown Lnet/minecraft/entity/Entity;getDefaultPortalCooldown()I
      intermediary method_5806 Lnet/minecraft/class_1297;method_5806()I
      official cj Lcdv;cj()I
    • playSound

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

      public void playSoundToPlayer(SoundEvent sound, SoundCategory category, float volume, float pitch)
      Plays sound to this player only.

      Use playSound(SoundEvent, float, float) to play sound that can be heard by nearby players. Unlike that method, this method should be called on only one side (i.e. either the server or the client, alone).

      Mappings:
      Namespace Name Mixin selector
      named playSoundToPlayer Lnet/minecraft/entity/player/PlayerEntity;playSoundToPlayer(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
      intermediary method_17356 Lnet/minecraft/class_1657;method_17356(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
      official a Lczl;a(Lbcd;Lbcf;FF)V
    • getSoundCategory

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

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

      Overrides:
      getSoundCategory in class Entity
      Returns:
      the sound category for sounds from this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      official dw Lcdv;dw()Lbcf;
    • getBurningDuration

      protected int getBurningDuration()
      Overrides:
      getBurningDuration in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getBurningDuration Lnet/minecraft/entity/Entity;getBurningDuration()I
      intermediary method_5676 Lnet/minecraft/class_1297;method_5676()I
      official dx Lcdv;dx()I
    • handleStatus

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

      protected void closeHandledScreen()
      Closes the currently open handled screen.

      This method can be called on either logical side, and it will synchronize the closing automatically to the other.

      Mappings:
      Namespace Name Mixin selector
      named closeHandledScreen Lnet/minecraft/entity/player/PlayerEntity;closeHandledScreen()V
      intermediary method_7346 Lnet/minecraft/class_1657;method_7346()V
      official r Lczl;r()V
    • onHandledScreenClosed

      protected void onHandledScreenClosed()
      Runs closing tasks for the current screen handler and sets it to the playerScreenHandler.
      Mappings:
      Namespace Name Mixin selector
      named onHandledScreenClosed Lnet/minecraft/entity/player/PlayerEntity;onHandledScreenClosed()V
      intermediary method_14247 Lnet/minecraft/class_1657;method_14247()V
      official s Lczl;s()V
    • tickRiding

      public void tickRiding()
      Overrides:
      tickRiding in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickRiding Lnet/minecraft/entity/Entity;tickRiding()V
      intermediary method_5842 Lnet/minecraft/class_1297;method_5842()V
      official t Lcdv;t()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official e_ Lcew;e_()V
    • tickHunger

      protected void tickHunger()
      Mappings:
      Namespace Name Mixin selector
      named tickHunger Lnet/minecraft/entity/player/PlayerEntity;tickHunger()V
      intermediary method_64400 Lnet/minecraft/class_1657;method_64400()V
      official i Lczl;i()V
    • handleShoulderEntities

      public void handleShoulderEntities()
      Mappings:
      Namespace Name Mixin selector
      named handleShoulderEntities Lnet/minecraft/entity/player/PlayerEntity;handleShoulderEntities()V
      intermediary method_74082 Lnet/minecraft/class_1657;method_74082()V
      official j Lczl;j()V
    • dropShoulderEntities

      protected void dropShoulderEntities()
      Mappings:
      Namespace Name Mixin selector
      named dropShoulderEntities Lnet/minecraft/entity/player/PlayerEntity;dropShoulderEntities()V
      intermediary method_7262 Lnet/minecraft/class_1657;method_7262()V
      official k Lczl;k()V
    • collideWithEntity

      private void collideWithEntity(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named collideWithEntity Lnet/minecraft/entity/player/PlayerEntity;collideWithEntity(Lnet/minecraft/entity/Entity;)V
      intermediary method_7341 Lnet/minecraft/class_1657;method_7341(Lnet/minecraft/class_1297;)V
      official d Lczl;d(Lcdv;)V
    • getScore

      public int getScore()
      Mappings:
      Namespace Name Mixin selector
      named getScore Lnet/minecraft/entity/player/PlayerEntity;getScore()I
      intermediary method_7272 Lnet/minecraft/class_1657;method_7272()I
      official gu Lczl;gu()I
    • setScore

      public void setScore(int score)
      Mappings:
      Namespace Name Mixin selector
      named setScore Lnet/minecraft/entity/player/PlayerEntity;setScore(I)V
      intermediary method_7320 Lnet/minecraft/class_1657;method_7320(I)V
      official q Lczl;q(I)V
    • addScore

      public void addScore(int score)
      Mappings:
      Namespace Name Mixin selector
      named addScore Lnet/minecraft/entity/player/PlayerEntity;addScore(I)V
      intermediary method_7285 Lnet/minecraft/class_1657;method_7285(I)V
      official r Lczl;r(I)V
    • useRiptide

      public void useRiptide(int riptideTicks, float riptideAttackDamage, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named useRiptide Lnet/minecraft/entity/player/PlayerEntity;useRiptide(IFLnet/minecraft/item/ItemStack;)V
      intermediary method_40126 Lnet/minecraft/class_1657;method_40126(IFLnet/minecraft/class_1799;)V
      official a Lczl;a(IFLdhp;)V
    • getWeaponStack

      @NotNull public @NotNull ItemStack getWeaponStack()
      Overrides:
      getWeaponStack in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getWeaponStack Lnet/minecraft/entity/Entity;getWeaponStack()Lnet/minecraft/item/ItemStack;
      intermediary method_59958 Lnet/minecraft/class_1297;method_59958()Lnet/minecraft/class_1799;
      official el Lcdv;el()Ldhp;
    • onDeath

      public void onDeath(DamageSource damageSource)
      Overrides:
      onDeath in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named onDeath Lnet/minecraft/entity/LivingEntity;onDeath(Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_6078 Lnet/minecraft/class_1309;method_6078(Lnet/minecraft/class_1282;)V
      official a Lcew;a(Lcci;)V
    • dropInventory

      protected void dropInventory(ServerWorld world)
      Overrides:
      dropInventory in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named dropInventory Lnet/minecraft/entity/LivingEntity;dropInventory(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_16078 Lnet/minecraft/class_1309;method_16078(Lnet/minecraft/class_3218;)V
      official g Lcew;g(Lawx;)V
    • vanishCursedItems

      protected void vanishCursedItems()
      Mappings:
      Namespace Name Mixin selector
      named vanishCursedItems Lnet/minecraft/entity/player/PlayerEntity;vanishCursedItems()V
      intermediary method_7293 Lnet/minecraft/class_1657;method_7293()V
      official gv Lczl;gv()V
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official e Lcew;e(Lcci;)Lbcd;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official f_ Lcew;f_()Lbcd;
    • dropCreativeStack

      public void dropCreativeStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named dropCreativeStack Lnet/minecraft/entity/player/PlayerEntity;dropCreativeStack(Lnet/minecraft/item/ItemStack;)V
      intermediary method_61499 Lnet/minecraft/class_1657;method_61499(Lnet/minecraft/class_1799;)V
      official g Lczl;g(Ldhp;)V
    • dropItem

      @Nullable public @Nullable ItemEntity dropItem(ItemStack stack, boolean retainOwnership)
      Mappings:
      Namespace Name Mixin selector
      named dropItem Lnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/entity/ItemEntity;
      intermediary method_7328 Lnet/minecraft/class_1657;method_7328(Lnet/minecraft/class_1799;Z)Lnet/minecraft/class_1542;
      official a Lczl;a(Ldhp;Z)Lcvr;
    • getBlockBreakingSpeed

      public float getBlockBreakingSpeed(BlockState block)
      Mappings:
      Namespace Name Mixin selector
      named getBlockBreakingSpeed Lnet/minecraft/entity/player/PlayerEntity;getBlockBreakingSpeed(Lnet/minecraft/block/BlockState;)F
      intermediary method_7351 Lnet/minecraft/class_1657;method_7351(Lnet/minecraft/class_2680;)F
      official c Lczl;c(Lejm;)F
    • canHarvest

      public boolean canHarvest(BlockState state)
      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 returns true.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canHarvest Lnet/minecraft/entity/player/PlayerEntity;canHarvest(Lnet/minecraft/block/BlockState;)Z
      intermediary method_7305 Lnet/minecraft/class_1657;method_7305(Lnet/minecraft/class_2680;)Z
      official d Lczl;d(Lejm;)Z
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lcdv;a(Lfip;)V
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lcdv;a(Lfir;)V
    • isInvulnerableTo

      public boolean isInvulnerableTo(ServerWorld world, DamageSource source)
      Overrides:
      isInvulnerableTo in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isInvulnerableTo Lnet/minecraft/entity/LivingEntity;isInvulnerableTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_5679 Lnet/minecraft/class_1309;method_5679(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)Z
      official a Lcew;a(Lawx;Lcci;)Z
    • damage

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

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

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

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

      Overrides:
      damage in class LivingEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lcdv;a(Lawx;Lcci;F)Z
    • takeShieldHit

      protected void takeShieldHit(ServerWorld world, LivingEntity attacker)
      Overrides:
      takeShieldHit in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named takeShieldHit Lnet/minecraft/entity/LivingEntity;takeShieldHit(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_6090 Lnet/minecraft/class_1309;method_6090(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official a Lcew;a(Lawx;Lcew;)V
    • canTakeDamage

      public boolean canTakeDamage()
      Overrides:
      canTakeDamage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canTakeDamage Lnet/minecraft/entity/LivingEntity;canTakeDamage()Z
      intermediary method_33190 Lnet/minecraft/class_1309;method_33190()Z
      official eN Lcew;eN()Z
    • shouldDamagePlayer

      public boolean shouldDamagePlayer(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named shouldDamagePlayer Lnet/minecraft/entity/player/PlayerEntity;shouldDamagePlayer(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_7256 Lnet/minecraft/class_1657;method_7256(Lnet/minecraft/class_1657;)Z
      official a Lczl;a(Lczl;)Z
    • damageArmor

      protected void damageArmor(DamageSource source, float amount)
      Overrides:
      damageArmor in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named damageArmor Lnet/minecraft/entity/LivingEntity;damageArmor(Lnet/minecraft/entity/damage/DamageSource;F)V
      intermediary method_6105 Lnet/minecraft/class_1309;method_6105(Lnet/minecraft/class_1282;F)V
      official c Lcew;c(Lcci;F)V
    • damageHelmet

      protected void damageHelmet(DamageSource source, float amount)
      Overrides:
      damageHelmet in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named damageHelmet Lnet/minecraft/entity/LivingEntity;damageHelmet(Lnet/minecraft/entity/damage/DamageSource;F)V
      intermediary method_36977 Lnet/minecraft/class_1309;method_36977(Lnet/minecraft/class_1282;F)V
      official d Lcew;d(Lcci;F)V
    • applyDamage

      protected void applyDamage(ServerWorld world, DamageSource source, float amount)
      Overrides:
      applyDamage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named applyDamage Lnet/minecraft/entity/LivingEntity;applyDamage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)V
      intermediary method_6074 Lnet/minecraft/class_1309;method_6074(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)V
      official c Lcew;c(Lawx;Lcci;F)V
    • shouldFilterText

      public boolean shouldFilterText()
      Mappings:
      Namespace Name Mixin selector
      named shouldFilterText Lnet/minecraft/entity/player/PlayerEntity;shouldFilterText()Z
      intermediary method_33793 Lnet/minecraft/class_1657;method_33793()Z
      official Z Lczl;Z()Z
    • openEditSignScreen

      public void openEditSignScreen(SignBlockEntity sign, boolean front)
      Mappings:
      Namespace Name Mixin selector
      named openEditSignScreen Lnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;Z)V
      intermediary method_7311 Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;Z)V
      official a Lczl;a(Lehx;Z)V
    • openCommandBlockMinecartScreen

      public void openCommandBlockMinecartScreen(CommandBlockExecutor commandBlockExecutor)
      Mappings:
      Namespace Name Mixin selector
      named openCommandBlockMinecartScreen Lnet/minecraft/entity/player/PlayerEntity;openCommandBlockMinecartScreen(Lnet/minecraft/world/CommandBlockExecutor;)V
      intermediary method_7257 Lnet/minecraft/class_1657;method_7257(Lnet/minecraft/class_1918;)V
      official a Lczl;a(Ldqp;)V
    • openCommandBlockScreen

      public void openCommandBlockScreen(CommandBlockBlockEntity commandBlock)
      Mappings:
      Namespace Name Mixin selector
      named openCommandBlockScreen Lnet/minecraft/entity/player/PlayerEntity;openCommandBlockScreen(Lnet/minecraft/block/entity/CommandBlockBlockEntity;)V
      intermediary method_7323 Lnet/minecraft/class_1657;method_7323(Lnet/minecraft/class_2593;)V
      official a Lczl;a(Legr;)V
    • openStructureBlockScreen

      public void openStructureBlockScreen(StructureBlockBlockEntity structureBlock)
      Mappings:
      Namespace Name Mixin selector
      named openStructureBlockScreen Lnet/minecraft/entity/player/PlayerEntity;openStructureBlockScreen(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)V
      intermediary method_7303 Lnet/minecraft/class_1657;method_7303(Lnet/minecraft/class_2633;)V
      official a Lczl;a(Leic;)V
    • openTestBlockScreen

      public void openTestBlockScreen(TestBlockEntity testBlock)
      Mappings:
      Namespace Name Mixin selector
      named openTestBlockScreen Lnet/minecraft/entity/player/PlayerEntity;openTestBlockScreen(Lnet/minecraft/block/entity/TestBlockEntity;)V
      intermediary method_66695 Lnet/minecraft/class_1657;method_66695(Lnet/minecraft/class_10637;)V
      official a Lczl;a(Leid;)V
    • openTestInstanceBlockScreen

      public void openTestInstanceBlockScreen(TestInstanceBlockEntity testInstanceBlock)
      Mappings:
      Namespace Name Mixin selector
      named openTestInstanceBlockScreen Lnet/minecraft/entity/player/PlayerEntity;openTestInstanceBlockScreen(Lnet/minecraft/block/entity/TestInstanceBlockEntity;)V
      intermediary method_66696 Lnet/minecraft/class_1657;method_66696(Lnet/minecraft/class_10638;)V
      official a Lczl;a(Leie;)V
    • openJigsawScreen

      public void openJigsawScreen(JigsawBlockEntity jigsaw)
      Mappings:
      Namespace Name Mixin selector
      named openJigsawScreen Lnet/minecraft/entity/player/PlayerEntity;openJigsawScreen(Lnet/minecraft/block/entity/JigsawBlockEntity;)V
      intermediary method_16354 Lnet/minecraft/class_1657;method_16354(Lnet/minecraft/class_3751;)V
      official a Lczl;a(Lehl;)V
    • openHorseInventory

      public void openHorseInventory(AbstractHorseEntity horse, Inventory inventory)
      Mappings:
      Namespace Name Mixin selector
      named openHorseInventory Lnet/minecraft/entity/player/PlayerEntity;openHorseInventory(Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/inventory/Inventory;)V
      intermediary method_7291 Lnet/minecraft/class_1657;method_7291(Lnet/minecraft/class_1496;Lnet/minecraft/class_1263;)V
      official a Lczl;a(Lcth;Lcbj;)V
    • openHandledScreen

      public OptionalInt openHandledScreen(@Nullable @Nullable NamedScreenHandlerFactory factory)
      Mappings:
      Namespace Name Mixin selector
      named openHandledScreen Lnet/minecraft/entity/player/PlayerEntity;openHandledScreen(Lnet/minecraft/screen/NamedScreenHandlerFactory;)Ljava/util/OptionalInt;
      intermediary method_17355 Lnet/minecraft/class_1657;method_17355(Lnet/minecraft/class_3908;)Ljava/util/OptionalInt;
      official a Lczl;a(Lcbt;)Ljava/util/OptionalInt;
    • openDialog

      public void openDialog(RegistryEntry<Dialog> dialog)
      Mappings:
      Namespace Name Mixin selector
      named openDialog Lnet/minecraft/entity/player/PlayerEntity;openDialog(Lnet/minecraft/registry/entry/RegistryEntry;)V
      intermediary method_71753 Lnet/minecraft/class_1657;method_71753(Lnet/minecraft/class_6880;)V
      official b Lczl;b(Ljk;)V
    • sendTradeOffers

      public void sendTradeOffers(int syncId, TradeOfferList offers, int levelProgress, int experience, boolean leveled, boolean refreshable)
      Mappings:
      Namespace Name Mixin selector
      named sendTradeOffers Lnet/minecraft/entity/player/PlayerEntity;sendTradeOffers(ILnet/minecraft/village/TradeOfferList;IIZZ)V
      intermediary method_17354 Lnet/minecraft/class_1657;method_17354(ILnet/minecraft/class_1916;IIZZ)V
      official a Lczl;a(ILdqn;IIZZ)V
    • useBook

      public void useBook(ItemStack book, Hand hand)
      Called when the player uses (defaults to right click) a writable or written book item.

      This can be called either on the client or the server player. Check book for whether this is a written or a writable book.

      Parameters:
      book - the book
      hand - the hand holding the book
      Implementation Note:
      The writing of a writable book in vanilla is totally controlled by the client; the server cannot make the client open a book edit screen by making a server player use a writable book. Only when the client finishes writing a book it will send a book update C2S packet.

      Meanwhile, the reading of a written book is totally controlled and initiated by the server.

      Mappings:
      Namespace Name Mixin selector
      named useBook Lnet/minecraft/entity/player/PlayerEntity;useBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)V
      intermediary method_7315 Lnet/minecraft/class_1657;method_7315(Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)V
      official a Lczl;a(Ldhp;Lcbp;)V
    • interact

      public ActionResult interact(Entity entity, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      named interact Lnet/minecraft/entity/player/PlayerEntity;interact(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_7287 Lnet/minecraft/class_1657;method_7287(Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official a Lczl;a(Lcdv;Lcbp;)Lcbq;
    • dismountVehicle

      public void dismountVehicle()
      Dismounts the vehicle if present.

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

      Overrides:
      dismountVehicle in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named dismountVehicle Lnet/minecraft/entity/Entity;dismountVehicle()V
      intermediary method_29239 Lnet/minecraft/class_1297;method_29239()V
      official ad Lcdv;ad()V
    • isImmobile

      protected boolean isImmobile()
      Overrides:
      isImmobile in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isImmobile Lnet/minecraft/entity/LivingEntity;isImmobile()Z
      intermediary method_6062 Lnet/minecraft/class_1309;method_6062()Z
      official fv Lcew;fv()Z
    • shouldSwimInFluids

      public boolean shouldSwimInFluids()
      Overrides:
      shouldSwimInFluids in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named shouldSwimInFluids Lnet/minecraft/entity/LivingEntity;shouldSwimInFluids()Z
      intermediary method_29920 Lnet/minecraft/class_1309;method_29920()Z
      official eB Lcew;eB()Z
    • adjustMovementForSneaking

      protected Vec3d adjustMovementForSneaking(Vec3d movement, MovementType type)
      Overrides:
      adjustMovementForSneaking in class Entity
      Mappings:
      Namespace Name Mixin selector
      named adjustMovementForSneaking Lnet/minecraft/entity/Entity;adjustMovementForSneaking(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/MovementType;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_18796 Lnet/minecraft/class_1297;method_18796(Lnet/minecraft/class_243;Lnet/minecraft/class_1313;)Lnet/minecraft/class_243;
      official a Lcdv;a(Lfoh;Lcfa;)Lfoh;
    • isStandingOnSurface

      private boolean isStandingOnSurface(float stepHeight)
      Mappings:
      Namespace Name Mixin selector
      named isStandingOnSurface Lnet/minecraft/entity/player/PlayerEntity;isStandingOnSurface(F)Z
      intermediary method_30263 Lnet/minecraft/class_1657;method_30263(F)Z
      official H Lczl;H(F)Z
    • isSpaceAroundPlayerEmpty

      private boolean isSpaceAroundPlayerEmpty(double offsetX, double offsetZ, double stepHeight)
      Mappings:
      Namespace Name Mixin selector
      named isSpaceAroundPlayerEmpty Lnet/minecraft/entity/player/PlayerEntity;isSpaceAroundPlayerEmpty(DDD)Z
      intermediary method_59818 Lnet/minecraft/class_1657;method_59818(DDD)Z
      official p Lczl;p(DDD)Z
    • attack

      public void attack(Entity target)
      Mappings:
      Namespace Name Mixin selector
      named attack Lnet/minecraft/entity/player/PlayerEntity;attack(Lnet/minecraft/entity/Entity;)V
      intermediary method_7324 Lnet/minecraft/class_1657;method_7324(Lnet/minecraft/class_1297;)V
      official e Lczl;e(Lcdv;)V
    • getDamageAgainst

      protected float getDamageAgainst(Entity target, float baseDamage, DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named getDamageAgainst Lnet/minecraft/entity/player/PlayerEntity;getDamageAgainst(Lnet/minecraft/entity/Entity;FLnet/minecraft/entity/damage/DamageSource;)F
      intermediary method_59903 Lnet/minecraft/class_1657;method_59903(Lnet/minecraft/class_1297;FLnet/minecraft/class_1282;)F
      official a Lczl;a(Lcdv;FLcci;)F
    • attackLivingEntity

      protected void attackLivingEntity(LivingEntity target)
      Overrides:
      attackLivingEntity in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named attackLivingEntity Lnet/minecraft/entity/LivingEntity;attackLivingEntity(Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_5997 Lnet/minecraft/class_1309;method_5997(Lnet/minecraft/class_1309;)V
      official f Lcew;f(Lcew;)V
    • addCritParticles

      public void addCritParticles(Entity target)
      Mappings:
      Namespace Name Mixin selector
      named addCritParticles Lnet/minecraft/entity/player/PlayerEntity;addCritParticles(Lnet/minecraft/entity/Entity;)V
      intermediary method_7277 Lnet/minecraft/class_1657;method_7277(Lnet/minecraft/class_1297;)V
      official b Lczl;b(Lcdv;)V
    • addEnchantedHitParticles

      public void addEnchantedHitParticles(Entity target)
      Mappings:
      Namespace Name Mixin selector
      named addEnchantedHitParticles Lnet/minecraft/entity/player/PlayerEntity;addEnchantedHitParticles(Lnet/minecraft/entity/Entity;)V
      intermediary method_7304 Lnet/minecraft/class_1657;method_7304(Lnet/minecraft/class_1297;)V
      official c Lczl;c(Lcdv;)V
    • spawnSweepAttackParticles

      public void spawnSweepAttackParticles()
      Mappings:
      Namespace Name Mixin selector
      named spawnSweepAttackParticles Lnet/minecraft/entity/player/PlayerEntity;spawnSweepAttackParticles()V
      intermediary method_7263 Lnet/minecraft/class_1657;method_7263()V
      official gw Lczl;gw()V
    • requestRespawn

      public void requestRespawn()
      Mappings:
      Namespace Name Mixin selector
      named requestRespawn Lnet/minecraft/entity/player/PlayerEntity;requestRespawn()V
      intermediary method_7331 Lnet/minecraft/class_1657;method_7331()V
      official gx Lczl;gx()V
    • remove

      public void remove(Entity.RemovalReason reason)
      Removes the entity.
      Overrides:
      remove in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
      intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
      official a Lcdv;a(Lcdv$e;)V
    • isControlledByPlayer

      public boolean isControlledByPlayer()
      Overrides:
      isControlledByPlayer in class Entity
      Mappings:
      Namespace Name Mixin selector
      named isControlledByPlayer Lnet/minecraft/entity/Entity;isControlledByPlayer()Z
      intermediary method_65038 Lnet/minecraft/class_1297;method_65038()Z
      official ab_ Lcdv;ab_()Z
    • isControlledByMainPlayer

      protected boolean isControlledByMainPlayer()
      Overrides:
      isControlledByMainPlayer in class Entity
      Mappings:
      Namespace Name Mixin selector
      named isControlledByMainPlayer Lnet/minecraft/entity/Entity;isControlledByMainPlayer()Z
      intermediary method_66248 Lnet/minecraft/class_1297;method_66248()Z
      official dr Lcdv;dr()Z
    • isMainPlayer

      public boolean isMainPlayer()
      Mappings:
      Namespace Name Mixin selector
      named isMainPlayer Lnet/minecraft/entity/player/PlayerEntity;isMainPlayer()Z
      intermediary method_7340 Lnet/minecraft/class_1657;method_7340()Z
      official gy Lczl;gy()Z
    • canMoveVoluntarily

      public boolean canMoveVoluntarily()
      Overrides:
      canMoveVoluntarily in class Entity
      Mappings:
      Namespace Name Mixin selector
      named canMoveVoluntarily Lnet/minecraft/entity/Entity;canMoveVoluntarily()Z
      intermediary method_66249 Lnet/minecraft/class_1297;method_66249()Z
      official ds Lcdv;ds()Z
    • canActVoluntarily

      public boolean canActVoluntarily()
      Overrides:
      canActVoluntarily in class Entity
      Mappings:
      Namespace Name Mixin selector
      named canActVoluntarily Lnet/minecraft/entity/Entity;canActVoluntarily()Z
      intermediary method_6034 Lnet/minecraft/class_1297;method_6034()Z
      official dt Lcdv;dt()Z
    • getGameProfile

      public com.mojang.authlib.GameProfile getGameProfile()
      Mappings:
      Namespace Name Mixin selector
      named getGameProfile Lnet/minecraft/entity/player/PlayerEntity;getGameProfile()Lcom/mojang/authlib/GameProfile;
      intermediary method_7334 Lnet/minecraft/class_1657;method_7334()Lcom/mojang/authlib/GameProfile;
      official gz Lczl;gz()Lcom/mojang/authlib/GameProfile;
    • getPlayerConfigEntry

      public PlayerConfigEntry getPlayerConfigEntry()
      Mappings:
      Namespace Name Mixin selector
      named getPlayerConfigEntry Lnet/minecraft/entity/player/PlayerEntity;getPlayerConfigEntry()Lnet/minecraft/server/PlayerConfigEntry;
      intermediary method_72498 Lnet/minecraft/class_1657;method_72498()Lnet/minecraft/class_11560;
      official gA Lczl;gA()Lbbb;
    • getInventory

      public PlayerInventory getInventory()
      Mappings:
      Namespace Name Mixin selector
      named getInventory Lnet/minecraft/entity/player/PlayerEntity;getInventory()Lnet/minecraft/entity/player/PlayerInventory;
      intermediary method_31548 Lnet/minecraft/class_1657;method_31548()Lnet/minecraft/class_1661;
      official gB Lczl;gB()Lczk;
    • getAbilities

      public PlayerAbilities getAbilities()
      Mappings:
      Namespace Name Mixin selector
      named getAbilities Lnet/minecraft/entity/player/PlayerEntity;getAbilities()Lnet/minecraft/entity/player/PlayerAbilities;
      intermediary method_31549 Lnet/minecraft/class_1657;method_31549()Lnet/minecraft/class_1656;
      official gC Lczl;gC()Lczh;
    • isInCreativeMode

      public boolean isInCreativeMode()
      Overrides:
      isInCreativeMode in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isInCreativeMode Lnet/minecraft/entity/LivingEntity;isInCreativeMode()Z
      intermediary method_56992 Lnet/minecraft/class_1309;method_56992()Z
      official gk Lcew;gk()Z
    • shouldSkipBlockDrops

      public boolean shouldSkipBlockDrops()
      Mappings:
      Namespace Name Mixin selector
      named shouldSkipBlockDrops Lnet/minecraft/entity/player/PlayerEntity;shouldSkipBlockDrops()Z
      intermediary method_66324 Lnet/minecraft/class_1657;method_66324()Z
      official gD Lczl;gD()Z
    • onPickupSlotClick

      public void onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
      Called when a player performs a pickup slot action in a screen handler.
      Parameters:
      cursorStack - the item stack on the player's cursor
      slotStack - the item stack in the clicked slot
      clickType - the click type (mouse button used)
      Implementation Note:
      This is used by the client player to trigger bundle tutorials.
      Mappings:
      Namespace Name Mixin selector
      named onPickupSlotClick Lnet/minecraft/entity/player/PlayerEntity;onPickupSlotClick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/ClickType;)V
      intermediary method_33592 Lnet/minecraft/class_1657;method_33592(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_5536;)V
      official a Lczl;a(Ldhp;Ldhp;Lddq;)V
    • shouldCloseHandledScreenOnRespawn

      public boolean shouldCloseHandledScreenOnRespawn()
      Mappings:
      Namespace Name Mixin selector
      named shouldCloseHandledScreenOnRespawn Lnet/minecraft/entity/player/PlayerEntity;shouldCloseHandledScreenOnRespawn()Z
      intermediary method_45015 Lnet/minecraft/class_1657;method_45015()Z
      official gE Lczl;gE()Z
    • canDropItems

      public boolean canDropItems()
      Mappings:
      Namespace Name Mixin selector
      named canDropItems Lnet/minecraft/entity/player/PlayerEntity;canDropItems()Z
      intermediary method_64271 Lnet/minecraft/class_1657;method_64271()Z
      official gF Lczl;gF()Z
    • trySleep

      public com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> trySleep(BlockPos pos)
      Tries to start sleeping on a block.
      Parameters:
      pos - the position of the bed block
      Returns:
      an Either.Right if successful, otherwise an Either.Left containing the failure reason
      Mappings:
      Namespace Name Mixin selector
      named trySleep Lnet/minecraft/entity/player/PlayerEntity;trySleep(Lnet/minecraft/util/math/BlockPos;)Lcom/mojang/datafixers/util/Either;
      intermediary method_7269 Lnet/minecraft/class_1657;method_7269(Lnet/minecraft/class_2338;)Lcom/mojang/datafixers/util/Either;
      official a Lczl;a(Lja;)Lcom/mojang/datafixers/util/Either;
    • wakeUp

      public void wakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers)
      Wakes this player up.
      Parameters:
      skipSleepTimer - if true, the sleep timer will be set straight to 0 instead of 100
      updateSleepingPlayers - if true and called on the logical server, sends sleeping status updates to all players
      Mappings:
      Namespace Name Mixin selector
      named wakeUp Lnet/minecraft/entity/player/PlayerEntity;wakeUp(ZZ)V
      intermediary method_7358 Lnet/minecraft/class_1657;method_7358(ZZ)V
      official a Lczl;a(ZZ)V
    • wakeUp

      public void wakeUp()
      Wakes this entity up.
      Overrides:
      wakeUp in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named wakeUp Lnet/minecraft/entity/LivingEntity;wakeUp()V
      intermediary method_18400 Lnet/minecraft/class_1309;method_18400()V
      official gh Lcew;gh()V
    • canResetTimeBySleeping

      public boolean canResetTimeBySleeping()
      Returns whether this player has been sleeping long enough to count towards resetting the time of day and weather of the server.
      Returns:
      whether this player has been sleeping long enough to count towards resetting the time of day and weather of the server
      Mappings:
      Namespace Name Mixin selector
      named canResetTimeBySleeping Lnet/minecraft/entity/player/PlayerEntity;canResetTimeBySleeping()Z
      intermediary method_7276 Lnet/minecraft/class_1657;method_7276()Z
      official gG Lczl;gG()Z
    • getSleepTimer

      public int getSleepTimer()
      Mappings:
      Namespace Name Mixin selector
      named getSleepTimer Lnet/minecraft/entity/player/PlayerEntity;getSleepTimer()I
      intermediary method_7297 Lnet/minecraft/class_1657;method_7297()I
      official gH Lczl;gH()I
    • sendMessage

      public void sendMessage(Text message, boolean overlay)
      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 on ClientPlayerEntity, it just adds a message to their HUD.

      Parameters:
      message - the message to add
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named sendMessage Lnet/minecraft/entity/player/PlayerEntity;sendMessage(Lnet/minecraft/text/Text;Z)V
      intermediary method_7353 Lnet/minecraft/class_1657;method_7353(Lnet/minecraft/class_2561;Z)V
      official a Lczl;a(Lxx;Z)V
    • incrementStat

      public void incrementStat(Identifier stat)
      Mappings:
      Namespace Name Mixin selector
      named incrementStat Lnet/minecraft/entity/player/PlayerEntity;incrementStat(Lnet/minecraft/util/Identifier;)V
      intermediary method_7281 Lnet/minecraft/class_1657;method_7281(Lnet/minecraft/class_2960;)V
      official a Lczl;a(Lamj;)V
    • increaseStat

      public void increaseStat(Identifier stat, int amount)
      Mappings:
      Namespace Name Mixin selector
      named increaseStat Lnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/util/Identifier;I)V
      intermediary method_7339 Lnet/minecraft/class_1657;method_7339(Lnet/minecraft/class_2960;I)V
      official a Lczl;a(Lamj;I)V
    • incrementStat

      public void incrementStat(Stat<?> stat)
      Mappings:
      Namespace Name Mixin selector
      named incrementStat Lnet/minecraft/entity/player/PlayerEntity;incrementStat(Lnet/minecraft/stat/Stat;)V
      intermediary method_7259 Lnet/minecraft/class_1657;method_7259(Lnet/minecraft/class_3445;)V
      official b Lczl;b(Lbcl;)V
    • increaseStat

      public void increaseStat(Stat<?> stat, int amount)
      Mappings:
      Namespace Name Mixin selector
      named increaseStat Lnet/minecraft/entity/player/PlayerEntity;increaseStat(Lnet/minecraft/stat/Stat;I)V
      intermediary method_7342 Lnet/minecraft/class_1657;method_7342(Lnet/minecraft/class_3445;I)V
      official a Lczl;a(Lbcl;I)V
    • resetStat

      public void resetStat(Stat<?> stat)
      Mappings:
      Namespace Name Mixin selector
      named resetStat Lnet/minecraft/entity/player/PlayerEntity;resetStat(Lnet/minecraft/stat/Stat;)V
      intermediary method_7266 Lnet/minecraft/class_1657;method_7266(Lnet/minecraft/class_3445;)V
      official a Lczl;a(Lbcl;)V
    • unlockRecipes

      public int unlockRecipes(Collection<RecipeEntry<?>> recipes)
      Mappings:
      Namespace Name Mixin selector
      named unlockRecipes Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/Collection;)I
      intermediary method_7254 Lnet/minecraft/class_1657;method_7254(Ljava/util/Collection;)I
      official a Lczl;a(Ljava/util/Collection;)I
    • onRecipeCrafted

      public void onRecipeCrafted(RecipeEntry<?> recipe, List<ItemStack> ingredients)
      Mappings:
      Namespace Name Mixin selector
      named onRecipeCrafted Lnet/minecraft/entity/player/PlayerEntity;onRecipeCrafted(Lnet/minecraft/recipe/RecipeEntry;Ljava/util/List;)V
      intermediary method_51283 Lnet/minecraft/class_1657;method_51283(Lnet/minecraft/class_8786;Ljava/util/List;)V
      official a Lczl;a(Ldmn;Ljava/util/List;)V
    • unlockRecipes

      public void unlockRecipes(List<RegistryKey<Recipe<?>>> recipes)
      Mappings:
      Namespace Name Mixin selector
      named unlockRecipes Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes(Ljava/util/List;)V
      intermediary method_7335 Lnet/minecraft/class_1657;method_7335(Ljava/util/List;)V
      official b Lczl;b(Ljava/util/List;)V
    • lockRecipes

      public int lockRecipes(Collection<RecipeEntry<?>> recipes)
      Mappings:
      Namespace Name Mixin selector
      named lockRecipes Lnet/minecraft/entity/player/PlayerEntity;lockRecipes(Ljava/util/Collection;)I
      intermediary method_7333 Lnet/minecraft/class_1657;method_7333(Ljava/util/Collection;)I
      official b Lczl;b(Ljava/util/Collection;)I
    • travel

      public void travel(Vec3d movementInput)
      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:
      travel in class LivingEntity
      Parameters:
      movementInput - represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order
      Mappings:
      Namespace Name Mixin selector
      named travel Lnet/minecraft/entity/LivingEntity;travel(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_6091 Lnet/minecraft/class_1309;method_6091(Lnet/minecraft/class_243;)V
      official m Lcew;m(Lfoh;)V
    • canGlide

      protected boolean canGlide()
      Overrides:
      canGlide in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named canGlide Lnet/minecraft/entity/LivingEntity;canGlide()Z
      intermediary method_63628 Lnet/minecraft/class_1309;method_63628()Z
      official fJ Lcew;fJ()Z
    • updateSwimming

      public void updateSwimming()
      Overrides:
      updateSwimming in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updateSwimming Lnet/minecraft/entity/Entity;updateSwimming()V
      intermediary method_5790 Lnet/minecraft/class_1297;method_5790()V
      official bB Lcdv;bB()V
    • doesNotSuffocate

      protected boolean doesNotSuffocate(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named doesNotSuffocate Lnet/minecraft/entity/player/PlayerEntity;doesNotSuffocate(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_7326 Lnet/minecraft/class_1657;method_7326(Lnet/minecraft/class_2338;)Z
      official h Lczl;h(Lja;)Z
    • getMovementSpeed

      public float getMovementSpeed()
      Overrides:
      getMovementSpeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getMovementSpeed Lnet/minecraft/entity/LivingEntity;getMovementSpeed()F
      intermediary method_6029 Lnet/minecraft/class_1309;method_6029()F
      official fD Lcew;fD()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:
      handleFallDamage in class LivingEntity
      Returns:
      whether to play the sound when falling on honey block; false for all entities except horses and llamas
      Mappings:
      Namespace Name Mixin selector
      named handleFallDamage Lnet/minecraft/entity/Entity;handleFallDamage(DFLnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_5747 Lnet/minecraft/class_1297;method_5747(DFLnet/minecraft/class_1282;)Z
      official a Lcdv;a(DFLcci;)Z
    • checkGliding

      public boolean checkGliding()
      Mappings:
      Namespace Name Mixin selector
      named checkGliding Lnet/minecraft/entity/player/PlayerEntity;checkGliding()Z
      intermediary method_23668 Lnet/minecraft/class_1657;method_23668()Z
      official gI Lczl;gI()Z
    • startGliding

      public void startGliding()
      Mappings:
      Namespace Name Mixin selector
      named startGliding Lnet/minecraft/entity/player/PlayerEntity;startGliding()V
      intermediary method_23669 Lnet/minecraft/class_1657;method_23669()V
      official gJ Lczl;gJ()V
    • onSwimmingStart

      protected void onSwimmingStart()
      Overrides:
      onSwimmingStart in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onSwimmingStart Lnet/minecraft/entity/Entity;onSwimmingStart()V
      intermediary method_5746 Lnet/minecraft/class_1297;method_5746()V
      official bE Lcdv;bE()V
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official b Lcdv;b(Lja;Lejm;)V
    • getFallSounds

      public LivingEntity.FallSounds getFallSounds()
      Overrides:
      getFallSounds in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getFallSounds Lnet/minecraft/entity/LivingEntity;getFallSounds()Lnet/minecraft/entity/LivingEntity$FallSounds;
      intermediary method_39760 Lnet/minecraft/class_1309;method_39760()Lnet/minecraft/class_1309$class_6823;
      official fc Lcew;fc()Lcew$a;
    • onKilledOther

      public boolean onKilledOther(ServerWorld world, LivingEntity other, DamageSource damageSource)
      Called when this entity kills other.
      Overrides:
      onKilledOther in class Entity
      Returns:
      whether the entity died (and not converted to another entity)
      API Note:
      ZombieEntity overrides this to convert the killed villager to a zombie villager.
      Mappings:
      Namespace Name Mixin selector
      named onKilledOther Lnet/minecraft/entity/Entity;onKilledOther(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_5874 Lnet/minecraft/class_1297;method_5874(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1282;)Z
      official a Lcdv;a(Lawx;Lcew;Lcci;)Z
    • slowMovement

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

      This means that the entity will avoid taking fall damage.

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

      public void addExperience(int experience)
      Mappings:
      Namespace Name Mixin selector
      named addExperience Lnet/minecraft/entity/player/PlayerEntity;addExperience(I)V
      intermediary method_7255 Lnet/minecraft/class_1657;method_7255(I)V
      official d Lczl;d(I)V
    • getEnchantingTableSeed

      public int getEnchantingTableSeed()
      Mappings:
      Namespace Name Mixin selector
      named getEnchantingTableSeed Lnet/minecraft/entity/player/PlayerEntity;getEnchantingTableSeed()I
      intermediary method_7278 Lnet/minecraft/class_1657;method_7278()I
      official gK Lczl;gK()I
    • applyEnchantmentCosts

      public void applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)
      Mappings:
      Namespace Name Mixin selector
      named applyEnchantmentCosts Lnet/minecraft/entity/player/PlayerEntity;applyEnchantmentCosts(Lnet/minecraft/item/ItemStack;I)V
      intermediary method_7286 Lnet/minecraft/class_1657;method_7286(Lnet/minecraft/class_1799;I)V
      official a Lczl;a(Ldhp;I)V
    • addExperienceLevels

      public void addExperienceLevels(int levels)
      Mappings:
      Namespace Name Mixin selector
      named addExperienceLevels Lnet/minecraft/entity/player/PlayerEntity;addExperienceLevels(I)V
      intermediary method_7316 Lnet/minecraft/class_1657;method_7316(I)V
      official c Lczl;c(I)V
    • getNextLevelExperience

      public int getNextLevelExperience()
      Mappings:
      Namespace Name Mixin selector
      named getNextLevelExperience Lnet/minecraft/entity/player/PlayerEntity;getNextLevelExperience()I
      intermediary method_7349 Lnet/minecraft/class_1657;method_7349()I
      official gL Lczl;gL()I
    • addExhaustion

      public void addExhaustion(float exhaustion)
      Mappings:
      Namespace Name Mixin selector
      named addExhaustion Lnet/minecraft/entity/player/PlayerEntity;addExhaustion(F)V
      intermediary method_7322 Lnet/minecraft/class_1657;method_7322(F)V
      official a Lczl;a(F)V
    • getSculkShriekerWarningManager

      public Optional<SculkShriekerWarningManager> getSculkShriekerWarningManager()
      Mappings:
      Namespace Name Mixin selector
      named getSculkShriekerWarningManager Lnet/minecraft/entity/player/PlayerEntity;getSculkShriekerWarningManager()Ljava/util/Optional;
      intermediary method_42272 Lnet/minecraft/class_1657;method_42272()Ljava/util/Optional;
      official ab Lczl;ab()Ljava/util/Optional;
    • getHungerManager

      public HungerManager getHungerManager()
      Mappings:
      Namespace Name Mixin selector
      named getHungerManager Lnet/minecraft/entity/player/PlayerEntity;getHungerManager()Lnet/minecraft/entity/player/HungerManager;
      intermediary method_7344 Lnet/minecraft/class_1657;method_7344()Lnet/minecraft/class_1702;
      official gM Lczl;gM()Lddc;
    • canConsume

      public boolean canConsume(boolean ignoreHunger)
      Mappings:
      Namespace Name Mixin selector
      named canConsume Lnet/minecraft/entity/player/PlayerEntity;canConsume(Z)Z
      intermediary method_7332 Lnet/minecraft/class_1657;method_7332(Z)Z
      official u Lczl;u(Z)Z
    • canFoodHeal

      public boolean canFoodHeal()
      Mappings:
      Namespace Name Mixin selector
      named canFoodHeal Lnet/minecraft/entity/player/PlayerEntity;canFoodHeal()Z
      intermediary method_7317 Lnet/minecraft/class_1657;method_7317()Z
      official gN Lczl;gN()Z
    • canModifyBlocks

      public boolean canModifyBlocks()
      Mappings:
      Namespace Name Mixin selector
      named canModifyBlocks Lnet/minecraft/entity/player/PlayerEntity;canModifyBlocks()Z
      intermediary method_7294 Lnet/minecraft/class_1657;method_7294()Z
      official gO Lczl;gO()Z
    • canPlaceOn

      public boolean canPlaceOn(BlockPos pos, Direction facing, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canPlaceOn Lnet/minecraft/entity/player/PlayerEntity;canPlaceOn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7343 Lnet/minecraft/class_1657;method_7343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_1799;)Z
      official a Lczl;a(Lja;Ljg;Ldhp;)Z
    • getExperienceToDrop

      protected int getExperienceToDrop(ServerWorld world)
      Called when this entity is killed and returns the amount of experience to drop.
      Overrides:
      getExperienceToDrop in class LivingEntity
      See Also:
      • invalid reference
        #dropXp
      • invalid reference
        #shouldAlwaysDropXp()
      • invalid reference
        #shouldDropXp()
      Mappings:
      Namespace Name Mixin selector
      named getExperienceToDrop Lnet/minecraft/entity/LivingEntity;getExperienceToDrop(Lnet/minecraft/server/world/ServerWorld;)I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_3218;)I
      official f Lcew;f(Lawx;)I
    • shouldAlwaysDropExperience

      protected boolean shouldAlwaysDropExperience()
      Returns if this entity may always drop experience, skipping any other checks.
      Overrides:
      shouldAlwaysDropExperience in class LivingEntity
      See Also:
      • invalid reference
        #dropXp
      • invalid reference
        #getXpToDrop()
      Mappings:
      Namespace Name Mixin selector
      named shouldAlwaysDropExperience Lnet/minecraft/entity/LivingEntity;shouldAlwaysDropExperience()Z
      intermediary method_6071 Lnet/minecraft/class_1309;method_6071()Z
      official eE Lcew;eE()Z
    • shouldRenderName

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

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

      Overrides:
      shouldRenderName in class LivingEntity
      Returns:
      whether to render the name of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named shouldRenderName Lnet/minecraft/entity/Entity;shouldRenderName()Z
      intermediary method_5733 Lnet/minecraft/class_1297;method_5733()Z
      official cZ Lcdv;cZ()Z
    • getMoveEffect

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

      public void sendAbilitiesUpdate()
      Mappings:
      Namespace Name Mixin selector
      named sendAbilitiesUpdate Lnet/minecraft/entity/player/PlayerEntity;sendAbilitiesUpdate()V
      intermediary method_7355 Lnet/minecraft/class_1657;method_7355()V
      official z Lczl;z()V
    • getName

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

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

      Specified by:
      getName in interface Nameable
      Overrides:
      getName in class Entity
      Returns:
      the name of this object
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
      intermediary method_5477 Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
      official ao Lcbu;ao()Lxx;
    • getStringifiedName

      public String getStringifiedName()
      Specified by:
      getStringifiedName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      named getStringifiedName Lnet/minecraft/util/Nameable;getStringifiedName()Ljava/lang/String;
      intermediary method_74861 Lnet/minecraft/class_1275;method_74861()Ljava/lang/String;
      official ap Lcbu;ap()Ljava/lang/String;
    • getEnderChestInventory

      public EnderChestInventory getEnderChestInventory()
      Mappings:
      Namespace Name Mixin selector
      named getEnderChestInventory Lnet/minecraft/entity/player/PlayerEntity;getEnderChestInventory()Lnet/minecraft/inventory/EnderChestInventory;
      intermediary method_7274 Lnet/minecraft/class_1657;method_7274()Lnet/minecraft/class_1730;
      official gP Lczl;gP()Ldeu;
    • isArmorSlot

      protected boolean isArmorSlot(EquipmentSlot slot)
      Overrides:
      isArmorSlot in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isArmorSlot Lnet/minecraft/entity/LivingEntity;isArmorSlot(Lnet/minecraft/entity/EquipmentSlot;)Z
      intermediary method_44201 Lnet/minecraft/class_1309;method_44201(Lnet/minecraft/class_1304;)Z
      official b Lcew;b(Lcef;)Z
    • giveItemStack

      public boolean giveItemStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named giveItemStack Lnet/minecraft/entity/player/PlayerEntity;giveItemStack(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7270 Lnet/minecraft/class_1657;method_7270(Lnet/minecraft/class_1799;)Z
      official h Lczl;h(Ldhp;)Z
    • getGameMode

      @Nullable public abstract @Nullable GameMode getGameMode()
      Mappings:
      Namespace Name Mixin selector
      named getGameMode Lnet/minecraft/entity/player/PlayerEntity;getGameMode()Lnet/minecraft/world/GameMode;
      intermediary method_68876 Lnet/minecraft/class_1657;method_68876()Lnet/minecraft/class_1934;
      official a Lczl;a()Ldrn;
    • isSpectator

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

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

      Overrides:
      isSpectator in class Entity
      Returns:
      whether the entity is a spectator
      Mappings:
      Namespace Name Mixin selector
      named isSpectator Lnet/minecraft/entity/Entity;isSpectator()Z
      intermediary method_7325 Lnet/minecraft/class_1297;method_7325()Z
      official at Lcdv;at()Z
    • canBeHitByProjectile

      public boolean canBeHitByProjectile()
      Overrides:
      canBeHitByProjectile in class Entity
      Mappings:
      Namespace Name Mixin selector
      named canBeHitByProjectile Lnet/minecraft/entity/Entity;canBeHitByProjectile()Z
      intermediary method_49108 Lnet/minecraft/class_1297;method_49108()Z
      official bS Lcdv;bS()Z
    • isSwimming

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

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

      Overrides:
      isSwimming in class Entity
      Returns:
      whether the entity is swimming
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named isSwimming Lnet/minecraft/entity/Entity;isSwimming()Z
      intermediary method_5681 Lnet/minecraft/class_1297;method_5681()Z
      official cw Lcdv;cw()Z
    • isCreative

      public boolean isCreative()
      Mappings:
      Namespace Name Mixin selector
      named isCreative Lnet/minecraft/entity/player/PlayerEntity;isCreative()Z
      intermediary method_68878 Lnet/minecraft/class_1657;method_68878()Z
      official gQ Lczl;gQ()Z
    • isPushedByFluids

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

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

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

      Specified by:
      getDisplayName in interface Nameable
      Specified by:
      getDisplayName in interface ScoreHolder
      Overrides:
      getDisplayName in class Entity
      Returns:
      the display name of this object
      Mappings:
      Namespace Name Mixin selector
      named getDisplayName Lnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;
      intermediary method_5476 Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;
      official S_ Lcbu;S_()Lxx;
    • addTellClickEvent

      private MutableText addTellClickEvent(MutableText component)
      Mappings:
      Namespace Name Mixin selector
      named addTellClickEvent Lnet/minecraft/entity/player/PlayerEntity;addTellClickEvent(Lnet/minecraft/text/MutableText;)Lnet/minecraft/text/MutableText;
      intermediary method_7299 Lnet/minecraft/class_1657;method_7299(Lnet/minecraft/class_5250;)Lnet/minecraft/class_5250;
      official a Lczl;a(Lym;)Lym;
    • getNameForScoreboard

      public String getNameForScoreboard()
      Returns the name uniquely identifying the score holder.

      Unlike Entity.getName(), this is guaranteed to be unique. This is the UUID for all entities except players (which use the player's username).

      Specified by:
      getNameForScoreboard in interface ScoreHolder
      Overrides:
      getNameForScoreboard in class Entity
      Returns:
      the name uniquely identifying the score holder
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getNameForScoreboard Lnet/minecraft/scoreboard/ScoreHolder;getNameForScoreboard()Ljava/lang/String;
      intermediary method_5820 Lnet/minecraft/class_9015;method_5820()Ljava/lang/String;
      official cV Lfpm;cV()Ljava/lang/String;
    • setAbsorptionAmountUnclamped

      protected void setAbsorptionAmountUnclamped(float absorptionAmount)
      Overrides:
      setAbsorptionAmountUnclamped in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named setAbsorptionAmountUnclamped Lnet/minecraft/entity/LivingEntity;setAbsorptionAmountUnclamped(F)V
      intermediary method_52544 Lnet/minecraft/class_1309;method_52544(F)V
      official F Lcew;F(F)V
    • getAbsorptionAmount

      public float getAbsorptionAmount()
      Overrides:
      getAbsorptionAmount in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getAbsorptionAmount Lnet/minecraft/entity/LivingEntity;getAbsorptionAmount()F
      intermediary method_6067 Lnet/minecraft/class_1309;method_6067()F
      official fM Lcew;fM()F
    • getStackReference

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

      public boolean hasReducedDebugInfo()
      Mappings:
      Namespace Name Mixin selector
      named hasReducedDebugInfo Lnet/minecraft/entity/player/PlayerEntity;hasReducedDebugInfo()Z
      intermediary method_7302 Lnet/minecraft/class_1657;method_7302()Z
      official gR Lczl;gR()Z
    • setReducedDebugInfo

      public void setReducedDebugInfo(boolean reducedDebugInfo)
      Mappings:
      Namespace Name Mixin selector
      named setReducedDebugInfo Lnet/minecraft/entity/player/PlayerEntity;setReducedDebugInfo(Z)V
      intermediary method_7268 Lnet/minecraft/class_1657;method_7268(Z)V
      official v Lczl;v(Z)V
    • setFireTicks

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

      protected static Optional<ParrotEntity.Variant> readParrotVariant(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named readParrotVariant Lnet/minecraft/entity/player/PlayerEntity;readParrotVariant(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/Optional;
      intermediary method_74135 Lnet/minecraft/class_1657;method_74135(Lnet/minecraft/class_2487;)Ljava/util/Optional;
      official d Lczl;d(Lup;)Ljava/util/Optional;
    • mapParrotVariant

      protected static OptionalInt mapParrotVariant(Optional<ParrotEntity.Variant> variant)
      Mappings:
      Namespace Name Mixin selector
      named mapParrotVariant Lnet/minecraft/entity/player/PlayerEntity;mapParrotVariant(Ljava/util/Optional;)Ljava/util/OptionalInt;
      intermediary method_74131 Lnet/minecraft/class_1657;method_74131(Ljava/util/Optional;)Ljava/util/OptionalInt;
      official a Lczl;a(Ljava/util/Optional;)Ljava/util/OptionalInt;
    • mapParrotVariantIfPresent

      private static Optional<ParrotEntity.Variant> mapParrotVariantIfPresent(OptionalInt variantIndex)
      Mappings:
      Namespace Name Mixin selector
      named mapParrotVariantIfPresent Lnet/minecraft/entity/player/PlayerEntity;mapParrotVariantIfPresent(Ljava/util/OptionalInt;)Ljava/util/Optional;
      intermediary method_74132 Lnet/minecraft/class_1657;method_74132(Ljava/util/OptionalInt;)Ljava/util/Optional;
      official a Lczl;a(Ljava/util/OptionalInt;)Ljava/util/Optional;
    • setLeftShoulderParrotVariant

      public void setLeftShoulderParrotVariant(Optional<ParrotEntity.Variant> variant)
      Mappings:
      Namespace Name Mixin selector
      named setLeftShoulderParrotVariant Lnet/minecraft/entity/player/PlayerEntity;setLeftShoulderParrotVariant(Ljava/util/Optional;)V
      intermediary method_74133 Lnet/minecraft/class_1657;method_74133(Ljava/util/Optional;)V
      official b Lczl;b(Ljava/util/Optional;)V
    • getLeftShoulderParrotVariant

      public Optional<ParrotEntity.Variant> getLeftShoulderParrotVariant()
      Mappings:
      Namespace Name Mixin selector
      named getLeftShoulderParrotVariant Lnet/minecraft/entity/player/PlayerEntity;getLeftShoulderParrotVariant()Ljava/util/Optional;
      intermediary method_74136 Lnet/minecraft/class_1657;method_74136()Ljava/util/Optional;
      official gS Lczl;gS()Ljava/util/Optional;
    • setRightShoulderParrotVariant

      public void setRightShoulderParrotVariant(Optional<ParrotEntity.Variant> variant)
      Mappings:
      Namespace Name Mixin selector
      named setRightShoulderParrotVariant Lnet/minecraft/entity/player/PlayerEntity;setRightShoulderParrotVariant(Ljava/util/Optional;)V
      intermediary method_74134 Lnet/minecraft/class_1657;method_74134(Ljava/util/Optional;)V
      official c Lczl;c(Ljava/util/Optional;)V
    • getRightShoulderParrotVariant

      public Optional<ParrotEntity.Variant> getRightShoulderParrotVariant()
      Mappings:
      Namespace Name Mixin selector
      named getRightShoulderParrotVariant Lnet/minecraft/entity/player/PlayerEntity;getRightShoulderParrotVariant()Ljava/util/Optional;
      intermediary method_74137 Lnet/minecraft/class_1657;method_74137()Ljava/util/Optional;
      official gT Lczl;gT()Ljava/util/Optional;
    • getAttackCooldownProgressPerTick

      public float getAttackCooldownProgressPerTick()
      Mappings:
      Namespace Name Mixin selector
      named getAttackCooldownProgressPerTick Lnet/minecraft/entity/player/PlayerEntity;getAttackCooldownProgressPerTick()F
      intermediary method_7279 Lnet/minecraft/class_1657;method_7279()F
      official gU Lczl;gU()F
    • getAttackCooldownProgress

      public float getAttackCooldownProgress(float baseTime)
      Mappings:
      Namespace Name Mixin selector
      named getAttackCooldownProgress Lnet/minecraft/entity/player/PlayerEntity;getAttackCooldownProgress(F)F
      intermediary method_7261 Lnet/minecraft/class_1657;method_7261(F)F
      official G Lczl;G(F)F
    • resetLastAttackedTicks

      public void resetLastAttackedTicks()
      Mappings:
      Namespace Name Mixin selector
      named resetLastAttackedTicks Lnet/minecraft/entity/player/PlayerEntity;resetLastAttackedTicks()V
      intermediary method_7350 Lnet/minecraft/class_1657;method_7350()V
      official gV Lczl;gV()V
    • getItemCooldownManager

      public ItemCooldownManager getItemCooldownManager()
      Mappings:
      Namespace Name Mixin selector
      named getItemCooldownManager Lnet/minecraft/entity/player/PlayerEntity;getItemCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
      intermediary method_7357 Lnet/minecraft/class_1657;method_7357()Lnet/minecraft/class_1796;
      official gW Lczl;gW()Ldhm;
    • getVelocityMultiplier

      protected float getVelocityMultiplier()
      Overrides:
      getVelocityMultiplier in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getVelocityMultiplier Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
      intermediary method_23326 Lnet/minecraft/class_1297;method_23326()F
      official be Lcdv;be()F
    • getLuck

      public float getLuck()
      Overrides:
      getLuck in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getLuck Lnet/minecraft/entity/LivingEntity;getLuck()F
      intermediary method_7292 Lnet/minecraft/class_1309;method_7292()F
      official ew Lcew;ew()F
    • isCreativeLevelTwoOp

      public boolean isCreativeLevelTwoOp()
      Mappings:
      Namespace Name Mixin selector
      named isCreativeLevelTwoOp Lnet/minecraft/entity/player/PlayerEntity;isCreativeLevelTwoOp()Z
      intermediary method_7338 Lnet/minecraft/class_1657;method_7338()Z
      official gX Lczl;gX()Z
    • getPermissionLevel

      public int getPermissionLevel()
      Mappings:
      Namespace Name Mixin selector
      named getPermissionLevel Lnet/minecraft/entity/player/PlayerEntity;getPermissionLevel()I
      intermediary method_5691 Lnet/minecraft/class_1657;method_5691()I
      official I Lczl;I()I
    • hasPermissionLevel

      public boolean hasPermissionLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      named hasPermissionLevel Lnet/minecraft/entity/player/PlayerEntity;hasPermissionLevel(I)Z
      intermediary method_64475 Lnet/minecraft/class_1657;method_64475(I)Z
      official s Lczl;s(I)Z
    • getPoses

      public ImmutableList<EntityPose> getPoses()
      Overrides:
      getPoses in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getPoses Lnet/minecraft/entity/LivingEntity;getPoses()Lcom/google/common/collect/ImmutableList;
      intermediary method_24831 Lnet/minecraft/class_1309;method_24831()Lcom/google/common/collect/ImmutableList;
      official gd Lcew;gd()Lcom/google/common/collect/ImmutableList;
    • getProjectileType

      public ItemStack getProjectileType(ItemStack stack)
      Overrides:
      getProjectileType in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getProjectileType Lnet/minecraft/entity/LivingEntity;getProjectileType(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary method_18808 Lnet/minecraft/class_1309;method_18808(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official d Lcew;d(Ldhp;)Ldhp;
    • getLeashPos

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

      This is different from

      invalid reference
      #getLeashOffset
      ; this method is called on the entity that holds the leash.
      Overrides:
      getLeashPos in class Entity
      Returns:
      the position of the leash this entity holds
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getLeashPos Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
      intermediary method_30951 Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
      official u Lcdv;u(F)Lfoh;
    • isPlayer

      public boolean isPlayer()
      Specified by:
      isPlayer in interface EntityLike
      Overrides:
      isPlayer in class Entity
      Mappings:
      Namespace Name Mixin selector
      named isPlayer Lnet/minecraft/world/entity/EntityLike;isPlayer()Z
      intermediary method_31747 Lnet/minecraft/class_5568;method_31747()Z
      official eg Lenv;eg()Z
    • isUsingSpyglass

      public boolean isUsingSpyglass()
      Mappings:
      Namespace Name Mixin selector
      named isUsingSpyglass Lnet/minecraft/entity/player/PlayerEntity;isUsingSpyglass()Z
      intermediary method_31550 Lnet/minecraft/class_1657;method_31550()Z
      official gY Lczl;gY()Z
    • shouldSave

      public boolean shouldSave()
      Specified by:
      shouldSave in interface EntityLike
      Overrides:
      shouldSave in class Entity
      Mappings:
      Namespace Name Mixin selector
      named shouldSave Lnet/minecraft/world/entity/EntityLike;shouldSave()Z
      intermediary method_31746 Lnet/minecraft/class_5568;method_31746()Z
      official ef Lenv;ef()Z
    • getLastDeathPos

      public Optional<GlobalPos> getLastDeathPos()
      Mappings:
      Namespace Name Mixin selector
      named getLastDeathPos Lnet/minecraft/entity/player/PlayerEntity;getLastDeathPos()Ljava/util/Optional;
      intermediary method_43122 Lnet/minecraft/class_1657;method_43122()Ljava/util/Optional;
      official gZ Lczl;gZ()Ljava/util/Optional;
    • setLastDeathPos

      public void setLastDeathPos(Optional<GlobalPos> lastDeathPos)
      Mappings:
      Namespace Name Mixin selector
      named setLastDeathPos Lnet/minecraft/entity/player/PlayerEntity;setLastDeathPos(Ljava/util/Optional;)V
      intermediary method_43120 Lnet/minecraft/class_1657;method_43120(Ljava/util/Optional;)V
      official d Lczl;d(Ljava/util/Optional;)V
    • getDamageTiltYaw

      public float getDamageTiltYaw()
      Overrides:
      getDamageTiltYaw in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDamageTiltYaw Lnet/minecraft/entity/LivingEntity;getDamageTiltYaw()F
      intermediary method_48157 Lnet/minecraft/class_1309;method_48157()F
      official fa Lcew;fa()F
    • animateDamage

      public void animateDamage(float yaw)
      Called on the client to animate the entity's damage (the wobble).
      Overrides:
      animateDamage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named animateDamage Lnet/minecraft/entity/Entity;animateDamage(F)V
      intermediary method_5879 Lnet/minecraft/class_1297;method_5879(F)V
      official q Lcdv;q(F)V
    • hasBlindnessEffect

      public boolean hasBlindnessEffect()
      Mappings:
      Namespace Name Mixin selector
      named hasBlindnessEffect Lnet/minecraft/entity/player/PlayerEntity;hasBlindnessEffect()Z
      intermediary method_74025 Lnet/minecraft/class_1657;method_74025()Z
      official ha Lczl;ha()Z
    • canSprintAsVehicle

      public boolean canSprintAsVehicle()
      Overrides:
      canSprintAsVehicle in class Entity
      Mappings:
      Namespace Name Mixin selector
      named canSprintAsVehicle Lnet/minecraft/entity/Entity;canSprintAsVehicle()Z
      intermediary method_48155 Lnet/minecraft/class_1297;method_48155()Z
      official ea Lcdv;ea()Z
    • getOffGroundSpeed

      protected float getOffGroundSpeed()
      Overrides:
      getOffGroundSpeed in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getOffGroundSpeed Lnet/minecraft/entity/LivingEntity;getOffGroundSpeed()F
      intermediary method_49484 Lnet/minecraft/class_1309;method_49484()F
      official fC Lcew;fC()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 isLoaded Lnet/minecraft/entity/player/PlayerEntity;isLoaded()Z
      intermediary method_65350 Lnet/minecraft/class_1657;method_65350()Z
      official hb Lczl;hb()Z
    • tickLoaded

      public void tickLoaded()
      Mappings:
      Namespace Name Mixin selector
      named tickLoaded Lnet/minecraft/entity/player/PlayerEntity;tickLoaded()V
      intermediary method_65351 Lnet/minecraft/class_1657;method_65351()V
      official hc Lczl;hc()V
    • setLoaded

      public void setLoaded(boolean loaded)
      Mappings:
      Namespace Name Mixin selector
      named setLoaded Lnet/minecraft/entity/player/PlayerEntity;setLoaded(Z)V
      intermediary method_65352 Lnet/minecraft/class_1657;method_65352(Z)V
      official w Lczl;w(Z)V
    • isViewingContainerAt

      public boolean isViewingContainerAt(ViewerCountManager viewerCountManager, BlockPos pos)
      Specified by:
      isViewingContainerAt in interface ContainerUser
      Mappings:
      Namespace Name Mixin selector
      named isViewingContainerAt Lnet/minecraft/entity/ContainerUser;isViewingContainerAt(Lnet/minecraft/block/entity/ViewerCountManager;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_72380 Lnet/minecraft/class_11565;method_72380(Lnet/minecraft/class_5561;Lnet/minecraft/class_2338;)Z
      official a Lcdo;a(Legu;Lja;)Z
    • getContainerInteractionRange

      public double getContainerInteractionRange()
      Specified by:
      getContainerInteractionRange in interface ContainerUser
      Mappings:
      Namespace Name Mixin selector
      named getContainerInteractionRange Lnet/minecraft/entity/ContainerUser;getContainerInteractionRange()D
      intermediary method_72381 Lnet/minecraft/class_11565;method_72381()D
      official aq Lcdo;aq()D
    • getBlockInteractionRange

      public double getBlockInteractionRange()
      Mappings:
      Namespace Name Mixin selector
      named getBlockInteractionRange Lnet/minecraft/entity/player/PlayerEntity;getBlockInteractionRange()D
      intermediary method_55754 Lnet/minecraft/class_1657;method_55754()D
      official hd Lczl;hd()D
    • getEntityInteractionRange

      public double getEntityInteractionRange()
      Mappings:
      Namespace Name Mixin selector
      named getEntityInteractionRange Lnet/minecraft/entity/player/PlayerEntity;getEntityInteractionRange()D
      intermediary method_55755 Lnet/minecraft/class_1657;method_55755()D
      official he Lczl;he()D
    • canInteractWithEntity

      public boolean canInteractWithEntity(Entity entity, double additionalRange)
      Returns whether the player can interact with entity.

      This returns false for removed entities.

      Parameters:
      additionalRange - the player's additional interaction range added to the default range
      Returns:
      whether the player can interact with entity
      Mappings:
      Namespace Name Mixin selector
      named canInteractWithEntity Lnet/minecraft/entity/player/PlayerEntity;canInteractWithEntity(Lnet/minecraft/entity/Entity;D)Z
      intermediary method_56094 Lnet/minecraft/class_1657;method_56094(Lnet/minecraft/class_1297;D)Z
      official b Lczl;b(Lcdv;D)Z
    • canInteractWithEntityIn

      public boolean canInteractWithEntityIn(Box box, double additionalRange)
      Returns whether the player can interact with entity whose bounding box is box.
      Parameters:
      additionalRange - the player's additional interaction range added to the default range
      Returns:
      whether the player can interact with entity whose bounding box is box
      Mappings:
      Namespace Name Mixin selector
      named canInteractWithEntityIn Lnet/minecraft/entity/player/PlayerEntity;canInteractWithEntityIn(Lnet/minecraft/util/math/Box;D)Z
      intermediary method_56092 Lnet/minecraft/class_1657;method_56092(Lnet/minecraft/class_238;D)Z
      official a Lczl;a(Lfoc;D)Z
    • canInteractWithBlockAt

      public boolean canInteractWithBlockAt(BlockPos pos, double additionalRange)
      Returns whether the player can interact with block at pos.
      Parameters:
      additionalRange - the player's additional interaction range added to the default range
      Returns:
      whether the player can interact with block at pos
      Mappings:
      Namespace Name Mixin selector
      named canInteractWithBlockAt Lnet/minecraft/entity/player/PlayerEntity;canInteractWithBlockAt(Lnet/minecraft/util/math/BlockPos;D)Z
      intermediary method_56093 Lnet/minecraft/class_1657;method_56093(Lnet/minecraft/class_2338;D)Z
      official a Lczl;a(Lja;D)Z
    • setIgnoreFallDamageFromCurrentExplosion

      public void setIgnoreFallDamageFromCurrentExplosion(boolean ignoreFallDamageFromCurrentExplosion)
      Mappings:
      Namespace Name Mixin selector
      named setIgnoreFallDamageFromCurrentExplosion Lnet/minecraft/entity/player/PlayerEntity;setIgnoreFallDamageFromCurrentExplosion(Z)V
      intermediary method_60984 Lnet/minecraft/class_1657;method_60984(Z)V
      official x Lczl;x(Z)V
    • shouldIgnoreFallDamageFromCurrentExplosion

      public boolean shouldIgnoreFallDamageFromCurrentExplosion()
      Mappings:
      Namespace Name Mixin selector
      named shouldIgnoreFallDamageFromCurrentExplosion Lnet/minecraft/entity/player/PlayerEntity;shouldIgnoreFallDamageFromCurrentExplosion()Z
      intermediary method_61165 Lnet/minecraft/class_1657;method_61165()Z
      official hf Lczl;hf()Z
    • tryClearCurrentExplosion

      public void tryClearCurrentExplosion()
      Mappings:
      Namespace Name Mixin selector
      named tryClearCurrentExplosion Lnet/minecraft/entity/player/PlayerEntity;tryClearCurrentExplosion()V
      intermediary method_60983 Lnet/minecraft/class_1657;method_60983()V
      official hg Lczl;hg()V
    • clearCurrentExplosion

      public void clearCurrentExplosion()
      Mappings:
      Namespace Name Mixin selector
      named clearCurrentExplosion Lnet/minecraft/entity/player/PlayerEntity;clearCurrentExplosion()V
      intermediary method_58396 Lnet/minecraft/class_1657;method_58396()V
      official hh Lczl;hh()V
    • shouldRotateWithMinecart

      public boolean shouldRotateWithMinecart()
      Mappings:
      Namespace Name Mixin selector
      named shouldRotateWithMinecart Lnet/minecraft/entity/player/PlayerEntity;shouldRotateWithMinecart()Z
      intermediary method_61498 Lnet/minecraft/class_1657;method_61498()Z
      official hi Lczl;hi()Z
    • isClimbing

      public boolean isClimbing()
      Overrides:
      isClimbing in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named isClimbing Lnet/minecraft/entity/LivingEntity;isClimbing()Z
      intermediary method_6101 Lnet/minecraft/class_1309;method_6101()Z
      official fe Lcew;fe()Z
    • asString

      public String asString()
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/entity/player/PlayerEntity;asString()Ljava/lang/String;
      intermediary method_68877 Lnet/minecraft/class_1657;method_68877()Ljava/lang/String;
      official hj Lczl;hj()Ljava/lang/String;