Class ClientPlayerEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

@Environment(CLIENT) public class ClientPlayerEntity extends AbstractClientPlayerEntity
Represents the client's own player entity.
Mappings:
Namespace Name
official eyw
intermediary net/minecraft/class_746
named net/minecraft/client/network/ClientPlayerEntity
  • Field Details

    • field_39078

      public static final Logger field_39078
      Mappings:
      Namespace Name Mixin selector
      official f Leyw;f:Lorg/slf4j/Logger;
      intermediary field_39078 Lnet/minecraft/class_746;field_39078:Lorg/slf4j/Logger;
      named field_39078 Lnet/minecraft/client/network/ClientPlayerEntity;field_39078:Lorg/slf4j/Logger;
    • field_32671

      private static final int field_32671
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cz Leyw;cz:I
      intermediary field_32671 Lnet/minecraft/class_746;field_32671:I
      named field_32671 Lnet/minecraft/client/network/ClientPlayerEntity;field_32671:I
    • field_32672

      private static final int field_32672
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cA Leyw;cA:I
      intermediary field_32672 Lnet/minecraft/class_746;field_32672:I
      named field_32672 Lnet/minecraft/client/network/ClientPlayerEntity;field_32672:I
    • field_32673

      private static final int field_32673
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cB Leyw;cB:I
      intermediary field_32673 Lnet/minecraft/class_746;field_32673:I
      named field_32673 Lnet/minecraft/client/network/ClientPlayerEntity;field_32673:I
    • field_32674

      private static final float field_32674
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cC Leyw;cC:F
      intermediary field_32674 Lnet/minecraft/class_746;field_32674:F
      named field_32674 Lnet/minecraft/client/network/ClientPlayerEntity;field_32674:F
    • field_32675

      private static final double field_32675
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cD Leyw;cD:D
      intermediary field_32675 Lnet/minecraft/class_746;field_32675:D
      named field_32675 Lnet/minecraft/client/network/ClientPlayerEntity;field_32675:D
    • MAX_SOFT_COLLISION_RADIANS

      private static final double MAX_SOFT_COLLISION_RADIANS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cE Leyw;cE:D
      intermediary field_36194 Lnet/minecraft/class_746;field_36194:D
      named MAX_SOFT_COLLISION_RADIANS Lnet/minecraft/client/network/ClientPlayerEntity;MAX_SOFT_COLLISION_RADIANS:D
    • field_38337

      private static final float field_38337
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cF Leyw;cF:F
      intermediary field_38337 Lnet/minecraft/class_746;field_38337:F
      named field_38337 Lnet/minecraft/client/network/ClientPlayerEntity;field_38337:F
    • networkHandler

      public final ClientPlayNetworkHandler networkHandler
      Mappings:
      Namespace Name Mixin selector
      official co Leyw;co:Leuw;
      intermediary field_3944 Lnet/minecraft/class_746;field_3944:Lnet/minecraft/class_634;
      named networkHandler Lnet/minecraft/client/network/ClientPlayerEntity;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
    • statHandler

      private final StatHandler statHandler
      Mappings:
      Namespace Name Mixin selector
      official cG Leyw;cG:Lakh;
      intermediary field_3928 Lnet/minecraft/class_746;field_3928:Lnet/minecraft/class_3469;
      named statHandler Lnet/minecraft/client/network/ClientPlayerEntity;statHandler:Lnet/minecraft/stat/StatHandler;
    • recipeBook

      private final ClientRecipeBook recipeBook
      Mappings:
      Namespace Name Mixin selector
      official cH Leyw;cH:Lefh;
      intermediary field_3930 Lnet/minecraft/class_746;field_3930:Lnet/minecraft/class_299;
      named recipeBook Lnet/minecraft/client/network/ClientPlayerEntity;recipeBook:Lnet/minecraft/client/recipebook/ClientRecipeBook;
    • tickables

      private final List<ClientPlayerTickable> tickables
      Mappings:
      Namespace Name Mixin selector
      official cI Leyw;cI:Ljava/util/List;
      intermediary field_3933 Lnet/minecraft/class_746;field_3933:Ljava/util/List;
      named tickables Lnet/minecraft/client/network/ClientPlayerEntity;tickables:Ljava/util/List;
    • clientPermissionLevel

      private int clientPermissionLevel
      Mappings:
      Namespace Name Mixin selector
      official cJ Leyw;cJ:I
      intermediary field_3912 Lnet/minecraft/class_746;field_3912:I
      named clientPermissionLevel Lnet/minecraft/client/network/ClientPlayerEntity;clientPermissionLevel:I
    • lastX

      private double lastX
      Mappings:
      Namespace Name Mixin selector
      official cK Leyw;cK:D
      intermediary field_3926 Lnet/minecraft/class_746;field_3926:D
      named lastX Lnet/minecraft/client/network/ClientPlayerEntity;lastX:D
    • lastBaseY

      private double lastBaseY
      Mappings:
      Namespace Name Mixin selector
      official cL Leyw;cL:D
      intermediary field_3940 Lnet/minecraft/class_746;field_3940:D
      named lastBaseY Lnet/minecraft/client/network/ClientPlayerEntity;lastBaseY:D
    • lastZ

      private double lastZ
      Mappings:
      Namespace Name Mixin selector
      official cM Leyw;cM:D
      intermediary field_3924 Lnet/minecraft/class_746;field_3924:D
      named lastZ Lnet/minecraft/client/network/ClientPlayerEntity;lastZ:D
    • lastYaw

      private float lastYaw
      Mappings:
      Namespace Name Mixin selector
      official cN Leyw;cN:F
      intermediary field_3941 Lnet/minecraft/class_746;field_3941:F
      named lastYaw Lnet/minecraft/client/network/ClientPlayerEntity;lastYaw:F
    • lastPitch

      private float lastPitch
      Mappings:
      Namespace Name Mixin selector
      official cO Leyw;cO:F
      intermediary field_3925 Lnet/minecraft/class_746;field_3925:F
      named lastPitch Lnet/minecraft/client/network/ClientPlayerEntity;lastPitch:F
    • lastOnGround

      private boolean lastOnGround
      Mappings:
      Namespace Name Mixin selector
      official cP Leyw;cP:Z
      intermediary field_3920 Lnet/minecraft/class_746;field_3920:Z
      named lastOnGround Lnet/minecraft/client/network/ClientPlayerEntity;lastOnGround:Z
    • inSneakingPose

      private boolean inSneakingPose
      Mappings:
      Namespace Name Mixin selector
      official cQ Leyw;cQ:Z
      intermediary field_23093 Lnet/minecraft/class_746;field_23093:Z
      named inSneakingPose Lnet/minecraft/client/network/ClientPlayerEntity;inSneakingPose:Z
    • lastSneaking

      private boolean lastSneaking
      Mappings:
      Namespace Name Mixin selector
      official cR Leyw;cR:Z
      intermediary field_3936 Lnet/minecraft/class_746;field_3936:Z
      named lastSneaking Lnet/minecraft/client/network/ClientPlayerEntity;lastSneaking:Z
    • lastSprinting

      private boolean lastSprinting
      Mappings:
      Namespace Name Mixin selector
      official cS Leyw;cS:Z
      intermediary field_3919 Lnet/minecraft/class_746;field_3919:Z
      named lastSprinting Lnet/minecraft/client/network/ClientPlayerEntity;lastSprinting:Z
    • ticksSinceLastPositionPacketSent

      private int ticksSinceLastPositionPacketSent
      Mappings:
      Namespace Name Mixin selector
      official cT Leyw;cT:I
      intermediary field_3923 Lnet/minecraft/class_746;field_3923:I
      named ticksSinceLastPositionPacketSent Lnet/minecraft/client/network/ClientPlayerEntity;ticksSinceLastPositionPacketSent:I
    • healthInitialized

      private boolean healthInitialized
      Mappings:
      Namespace Name Mixin selector
      official cU Leyw;cU:Z
      intermediary field_3918 Lnet/minecraft/class_746;field_3918:Z
      named healthInitialized Lnet/minecraft/client/network/ClientPlayerEntity;healthInitialized:Z
    • serverBrand

      @Nullable private @Nullable String serverBrand
      Mappings:
      Namespace Name Mixin selector
      official cV Leyw;cV:Ljava/lang/String;
      intermediary field_3943 Lnet/minecraft/class_746;field_3943:Ljava/lang/String;
      named serverBrand Lnet/minecraft/client/network/ClientPlayerEntity;serverBrand:Ljava/lang/String;
    • input

      public Input input
      Mappings:
      Namespace Name Mixin selector
      official cp Leyw;cp:Leyu;
      intermediary field_3913 Lnet/minecraft/class_746;field_3913:Lnet/minecraft/class_744;
      named input Lnet/minecraft/client/network/ClientPlayerEntity;input:Lnet/minecraft/client/input/Input;
    • client

      protected final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official cq Leyw;cq:Lefu;
      intermediary field_3937 Lnet/minecraft/class_746;field_3937:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/network/ClientPlayerEntity;client:Lnet/minecraft/client/MinecraftClient;
    • ticksLeftToDoubleTapSprint

      protected int ticksLeftToDoubleTapSprint
      Mappings:
      Namespace Name Mixin selector
      official cr Leyw;cr:I
      intermediary field_3935 Lnet/minecraft/class_746;field_3935:I
      named ticksLeftToDoubleTapSprint Lnet/minecraft/client/network/ClientPlayerEntity;ticksLeftToDoubleTapSprint:I
    • ticksSinceSprintingChanged

      public int ticksSinceSprintingChanged
      Mappings:
      Namespace Name Mixin selector
      official cs Leyw;cs:I
      intermediary field_3921 Lnet/minecraft/class_746;field_3921:I
      named ticksSinceSprintingChanged Lnet/minecraft/client/network/ClientPlayerEntity;ticksSinceSprintingChanged:I
    • renderYaw

      public float renderYaw
      Mappings:
      Namespace Name Mixin selector
      official ct Leyw;ct:F
      intermediary field_3932 Lnet/minecraft/class_746;field_3932:F
      named renderYaw Lnet/minecraft/client/network/ClientPlayerEntity;renderYaw:F
    • renderPitch

      public float renderPitch
      Mappings:
      Namespace Name Mixin selector
      official cu Leyw;cu:F
      intermediary field_3916 Lnet/minecraft/class_746;field_3916:F
      named renderPitch Lnet/minecraft/client/network/ClientPlayerEntity;renderPitch:F
    • lastRenderYaw

      public float lastRenderYaw
      Mappings:
      Namespace Name Mixin selector
      official cv Leyw;cv:F
      intermediary field_3931 Lnet/minecraft/class_746;field_3931:F
      named lastRenderYaw Lnet/minecraft/client/network/ClientPlayerEntity;lastRenderYaw:F
    • lastRenderPitch

      public float lastRenderPitch
      Mappings:
      Namespace Name Mixin selector
      official cw Leyw;cw:F
      intermediary field_3914 Lnet/minecraft/class_746;field_3914:F
      named lastRenderPitch Lnet/minecraft/client/network/ClientPlayerEntity;lastRenderPitch:F
    • field_3938

      private int field_3938
      Mappings:
      Namespace Name Mixin selector
      official cW Leyw;cW:I
      intermediary field_3938 Lnet/minecraft/class_746;field_3938:I
      named field_3938 Lnet/minecraft/client/network/ClientPlayerEntity;field_3938:I
    • mountJumpStrength

      private float mountJumpStrength
      Mappings:
      Namespace Name Mixin selector
      official cX Leyw;cX:F
      intermediary field_3922 Lnet/minecraft/class_746;field_3922:F
      named mountJumpStrength Lnet/minecraft/client/network/ClientPlayerEntity;mountJumpStrength:F
    • nextNauseaStrength

      public float nextNauseaStrength
      Mappings:
      Namespace Name Mixin selector
      official cx Leyw;cx:F
      intermediary field_3929 Lnet/minecraft/class_746;field_3929:F
      named nextNauseaStrength Lnet/minecraft/client/network/ClientPlayerEntity;nextNauseaStrength:F
    • lastNauseaStrength

      public float lastNauseaStrength
      Mappings:
      Namespace Name Mixin selector
      official cy Leyw;cy:F
      intermediary field_3911 Lnet/minecraft/class_746;field_3911:F
      named lastNauseaStrength Lnet/minecraft/client/network/ClientPlayerEntity;lastNauseaStrength:F
    • usingItem

      private boolean usingItem
      Mappings:
      Namespace Name Mixin selector
      official cY Leyw;cY:Z
      intermediary field_3915 Lnet/minecraft/class_746;field_3915:Z
      named usingItem Lnet/minecraft/client/network/ClientPlayerEntity;usingItem:Z
    • activeHand

      @Nullable private @Nullable Hand activeHand
      Mappings:
      Namespace Name Mixin selector
      official cZ Leyw;cZ:Lbai;
      intermediary field_3945 Lnet/minecraft/class_746;field_3945:Lnet/minecraft/class_1268;
      named activeHand Lnet/minecraft/client/network/ClientPlayerEntity;activeHand:Lnet/minecraft/util/Hand;
    • riding

      private boolean riding
      Mappings:
      Namespace Name Mixin selector
      official da Leyw;da:Z
      intermediary field_3942 Lnet/minecraft/class_746;field_3942:Z
      named riding Lnet/minecraft/client/network/ClientPlayerEntity;riding:Z
    • autoJumpEnabled

      private boolean autoJumpEnabled
      Mappings:
      Namespace Name Mixin selector
      official db Leyw;db:Z
      intermediary field_3927 Lnet/minecraft/class_746;field_3927:Z
      named autoJumpEnabled Lnet/minecraft/client/network/ClientPlayerEntity;autoJumpEnabled:Z
    • ticksToNextAutojump

      private int ticksToNextAutojump
      Mappings:
      Namespace Name Mixin selector
      official dc Leyw;dc:I
      intermediary field_3934 Lnet/minecraft/class_746;field_3934:I
      named ticksToNextAutojump Lnet/minecraft/client/network/ClientPlayerEntity;ticksToNextAutojump:I
    • falling

      private boolean falling
      Mappings:
      Namespace Name Mixin selector
      official dd Leyw;dd:Z
      intermediary field_3939 Lnet/minecraft/class_746;field_3939:Z
      named falling Lnet/minecraft/client/network/ClientPlayerEntity;falling:Z
    • underwaterVisibilityTicks

      private int underwaterVisibilityTicks
      Mappings:
      Namespace Name Mixin selector
      official de Leyw;de:I
      intermediary field_3917 Lnet/minecraft/class_746;field_3917:I
      named underwaterVisibilityTicks Lnet/minecraft/client/network/ClientPlayerEntity;underwaterVisibilityTicks:I
    • showsDeathScreen

      private boolean showsDeathScreen
      Mappings:
      Namespace Name Mixin selector
      official df Leyw;df:Z
      intermediary field_20663 Lnet/minecraft/class_746;field_20663:Z
      named showsDeathScreen Lnet/minecraft/client/network/ClientPlayerEntity;showsDeathScreen:Z
  • Constructor Details

    • ClientPlayerEntity

      public ClientPlayerEntity(MinecraftClient client, ClientWorld world, ClientPlayNetworkHandler networkHandler, StatHandler stats, ClientRecipeBook recipeBook, boolean lastSneaking, boolean lastSprinting)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyw;<init>(Lefu;Leuv;Leuw;Lakh;Lefh;ZZ)V
      intermediary <init> Lnet/minecraft/class_746;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_638;Lnet/minecraft/class_634;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;ZZ)V
      named <init> Lnet/minecraft/client/network/ClientPlayerEntity;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/network/ClientPlayNetworkHandler;Lnet/minecraft/stat/StatHandler;Lnet/minecraft/client/recipebook/ClientRecipeBook;ZZ)V
  • Method Details

    • damage

      public boolean damage(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 Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class PlayerEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lbaw;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • heal

      public void heal(float amount)
      Heals this entity by the given amount of half-hearts.

      A dead entity cannot be healed.

      Overrides:
      heal in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbcc;b(F)V
      intermediary method_6025 Lnet/minecraft/class_1309;method_6025(F)V
      named heal Lnet/minecraft/entity/LivingEntity;heal(F)V
    • startRiding

      public boolean startRiding(Entity entity, boolean force)
      Starts riding entity.

      For example, player.startRiding(horse) causes the player to ride a horse; the opposite, horse.startRiding(player), will cause the horse to ride a player.

      This fails when this entity is already riding the entity (or vice versa), or when this entity does not allow riding other entities (or vice versa) unless force is true. If this entity is already riding another entity, it will stop riding that entity first.

      Overrides:
      startRiding in class Entity
      Parameters:
      force - whether to bypass the entity's rideability check
      Returns:
      whether this entity successfully started riding
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lbbn;Z)Z
      intermediary method_5873 Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Z
      named startRiding Lnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
    • dismountVehicle

      public void dismountVehicle()
      Dismounts the vehicle if present.

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

      Overrides:
      dismountVehicle in class PlayerEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bw Lbbn;bw()V
      intermediary method_29239 Lnet/minecraft/class_1297;method_29239()V
      named dismountVehicle Lnet/minecraft/entity/Entity;dismountVehicle()V
    • getPitch

      public float getPitch(float tickDelta)
      Overrides:
      getPitch in class Entity
      Mappings:
      Namespace Name Mixin selector
      official f Lbbn;f(F)F
      intermediary method_5695 Lnet/minecraft/class_1297;method_5695(F)F
      named getPitch Lnet/minecraft/entity/Entity;getPitch(F)F
    • getYaw

      public float getYaw(float tickDelta)
      Overrides:
      getYaw in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official g Lbbn;g(F)F
      intermediary method_5705 Lnet/minecraft/class_1297;method_5705(F)F
      named getYaw Lnet/minecraft/entity/Entity;getYaw(F)F
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class PlayerEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lbbn;k()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • getMoodPercentage

      public float getMoodPercentage()
      Returns the percentage for the biome mood sound for the debug HUD to display.
      Returns:
      the percentage for the biome mood sound for the debug HUD to display
      Mappings:
      Namespace Name Mixin selector
      official r Leyw;r()F
      intermediary method_26269 Lnet/minecraft/class_746;method_26269()F
      named getMoodPercentage Lnet/minecraft/client/network/ClientPlayerEntity;getMoodPercentage()F
    • sendMovementPackets

      private void sendMovementPackets()
      Mappings:
      Namespace Name Mixin selector
      official M Leyw;M()V
      intermediary method_3136 Lnet/minecraft/class_746;method_3136()V
      named sendMovementPackets Lnet/minecraft/client/network/ClientPlayerEntity;sendMovementPackets()V
    • dropSelectedItem

      public boolean dropSelectedItem(boolean entireStack)
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(Z)Z
      intermediary method_7290 Lnet/minecraft/class_746;method_7290(Z)Z
      named dropSelectedItem Lnet/minecraft/client/network/ClientPlayerEntity;dropSelectedItem(Z)Z
    • sendChatMessage

      public void sendChatMessage(String message, @Nullable @Nullable Text preview)
      Sends a chat message with the preview to the server. If the server could not reproduce the preview based on message, the server rejects the message.

      The message will be truncated to at most 256 characters before sending to the server.

      If the message contains an invalid character (see SharedConstants.isValidChar(char)), the server will reject the message and disconnect the client.

      API Note:
      This method is used to send a message typed in the chat screen that has a preview.
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(Ljava/lang/String;Lrq;)V
      intermediary method_44096 Lnet/minecraft/class_746;method_44096(Ljava/lang/String;Lnet/minecraft/class_2561;)V
      named sendChatMessage Lnet/minecraft/client/network/ClientPlayerEntity;sendChatMessage(Ljava/lang/String;Lnet/minecraft/text/Text;)V
    • hasSignedArgument

      public boolean hasSignedArgument(String command)
      Returns whether command contains a signed argument.
      Parameters:
      command - the command (without the leading slash)
      Returns:
      whether command contains a signed argument
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Leyw;d(Ljava/lang/String;)Z
      intermediary method_44970 Lnet/minecraft/class_746;method_44970(Ljava/lang/String;)Z
      named hasSignedArgument Lnet/minecraft/client/network/ClientPlayerEntity;hasSignedArgument(Ljava/lang/String;)Z
    • sendCommand

      public boolean sendCommand(String command)
      Sends an unsigned command to the server. This fails for commands that have signed arguments.
      Parameters:
      command - the command (without the leading slash)
      Returns:
      whether the command was sent successfully
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Leyw;e(Ljava/lang/String;)Z
      intermediary method_44099 Lnet/minecraft/class_746;method_44099(Ljava/lang/String;)Z
      named sendCommand Lnet/minecraft/client/network/ClientPlayerEntity;sendCommand(Ljava/lang/String;)Z
    • sendCommand

      public void sendCommand(String command, @Nullable @Nullable Text preview)
      Signs and sends command to the server.
      Parameters:
      command - the command (without the leading slash)
      Mappings:
      Namespace Name Mixin selector
      official b Leyw;b(Ljava/lang/String;Lrq;)V
      intermediary method_44098 Lnet/minecraft/class_746;method_44098(Ljava/lang/String;Lnet/minecraft/class_2561;)V
      named sendCommand Lnet/minecraft/client/network/ClientPlayerEntity;sendCommand(Ljava/lang/String;Lnet/minecraft/text/Text;)V
    • sendChatMessageInternal

      private void sendChatMessageInternal(String message, @Nullable @Nullable Text preview)
      Mappings:
      Namespace Name Mixin selector
      official c Leyw;c(Ljava/lang/String;Lrq;)V
      intermediary method_44097 Lnet/minecraft/class_746;method_44097(Ljava/lang/String;Lnet/minecraft/class_2561;)V
      named sendChatMessageInternal Lnet/minecraft/client/network/ClientPlayerEntity;sendChatMessageInternal(Ljava/lang/String;Lnet/minecraft/text/Text;)V
    • signChatMessage

      private MessageSignatureData signChatMessage(MessageMetadata metadata, DecoratedContents content, LastSeenMessageList lastSeenMessages)
      Signs the chat message. If the chat message cannot be signed, this will return MessageSignatureData.EMPTY.
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(Lsa;Lri;Lrw;)Lrz;
      intermediary method_43609 Lnet/minecraft/class_746;method_43609(Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7469;
      named signChatMessage Lnet/minecraft/client/network/ClientPlayerEntity;signChatMessage(Lnet/minecraft/network/message/MessageMetadata;Lnet/minecraft/network/message/DecoratedContents;Lnet/minecraft/network/message/LastSeenMessageList;)Lnet/minecraft/network/message/MessageSignatureData;
    • sendCommandInternal

      private void sendCommandInternal(String command, @Nullable @Nullable Text preview)
      Signs and sends command to the server.
      Mappings:
      Namespace Name Mixin selector
      official d Leyw;d(Ljava/lang/String;Lrq;)V
      intermediary method_43787 Lnet/minecraft/class_746;method_43787(Ljava/lang/String;Lnet/minecraft/class_2561;)V
      named sendCommandInternal Lnet/minecraft/client/network/ClientPlayerEntity;sendCommandInternal(Ljava/lang/String;Lnet/minecraft/text/Text;)V
    • signArguments

      private ArgumentSignatureDataMap signArguments(MessageMetadata signer, com.mojang.brigadier.ParseResults<CommandSource> parseResults, @Nullable @Nullable Text preview, LastSeenMessageList lastSeenMessages)
      Signs the command arguments. If the arguments cannot be signed or if there is no arguments to sign, this will return ArgumentSignatureDataMap.EMPTY.
      Parameters:
      preview - the previewed argument value; if supplied, will be used for all signed arguments
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(Lsa;Lcom/mojang/brigadier/ParseResults;Lrq;Lrw;)Ldv;
      intermediary method_43786 Lnet/minecraft/class_746;method_43786(Lnet/minecraft/class_7470;Lcom/mojang/brigadier/ParseResults;Lnet/minecraft/class_2561;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7450;
      named signArguments Lnet/minecraft/client/network/ClientPlayerEntity;signArguments(Lnet/minecraft/network/message/MessageMetadata;Lcom/mojang/brigadier/ParseResults;Lnet/minecraft/text/Text;Lnet/minecraft/network/message/LastSeenMessageList;)Lnet/minecraft/network/message/ArgumentSignatureDataMap;
    • toDecoratedContents

      private DecoratedContents toDecoratedContents(String message, @Nullable @Nullable Text preview)
      Mappings:
      Namespace Name Mixin selector
      official e Leyw;e(Ljava/lang/String;Lrq;)Lri;
      intermediary method_45081 Lnet/minecraft/class_746;method_45081(Ljava/lang/String;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7634;
      named toDecoratedContents Lnet/minecraft/client/network/ClientPlayerEntity;toDecoratedContents(Ljava/lang/String;Lnet/minecraft/text/Text;)Lnet/minecraft/network/message/DecoratedContents;
    • createMessageMetadata

      private MessageMetadata createMessageMetadata()
      Mappings:
      Namespace Name Mixin selector
      official N Leyw;N()Lsa;
      intermediary method_44826 Lnet/minecraft/class_746;method_44826()Lnet/minecraft/class_7470;
      named createMessageMetadata Lnet/minecraft/client/network/ClientPlayerEntity;createMessageMetadata()Lnet/minecraft/network/message/MessageMetadata;
    • swingHand

      public void swingHand(Hand hand)
      Overrides:
      swingHand in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbcc;a(Lbai;)V
      intermediary method_6104 Lnet/minecraft/class_1309;method_6104(Lnet/minecraft/class_1268;)V
      named swingHand Lnet/minecraft/entity/LivingEntity;swingHand(Lnet/minecraft/util/Hand;)V
    • requestRespawn

      public void requestRespawn()
      Overrides:
      requestRespawn in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official fw Lbuc;fw()V
      intermediary method_7331 Lnet/minecraft/class_1657;method_7331()V
      named requestRespawn Lnet/minecraft/entity/player/PlayerEntity;requestRespawn()V
    • applyDamage

      protected void applyDamage(DamageSource source, float amount)
      Overrides:
      applyDamage in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official f Lbcc;f(Lbaw;F)V
      intermediary method_6074 Lnet/minecraft/class_1309;method_6074(Lnet/minecraft/class_1282;F)V
      named applyDamage Lnet/minecraft/entity/LivingEntity;applyDamage(Lnet/minecraft/entity/damage/DamageSource;F)V
    • closeHandledScreen

      public void closeHandledScreen()
      Overrides:
      closeHandledScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lbuc;q()V
      intermediary method_7346 Lnet/minecraft/class_1657;method_7346()V
      named closeHandledScreen Lnet/minecraft/entity/player/PlayerEntity;closeHandledScreen()V
    • closeScreen

      public void closeScreen()
      Mappings:
      Namespace Name Mixin selector
      official s Leyw;s()V
      intermediary method_3137 Lnet/minecraft/class_746;method_3137()V
      named closeScreen Lnet/minecraft/client/network/ClientPlayerEntity;closeScreen()V
    • updateHealth

      public void updateHealth(float health)
      Mappings:
      Namespace Name Mixin selector
      official w Leyw;w(F)V
      intermediary method_3138 Lnet/minecraft/class_746;method_3138(F)V
      named updateHealth Lnet/minecraft/client/network/ClientPlayerEntity;updateHealth(F)V
    • sendAbilitiesUpdate

      public void sendAbilitiesUpdate()
      Overrides:
      sendAbilitiesUpdate in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official w Lbuc;w()V
      intermediary method_7355 Lnet/minecraft/class_1657;method_7355()V
      named sendAbilitiesUpdate Lnet/minecraft/entity/player/PlayerEntity;sendAbilitiesUpdate()V
    • isMainPlayer

      public boolean isMainPlayer()
      Overrides:
      isMainPlayer in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official fx Lbuc;fx()Z
      intermediary method_7340 Lnet/minecraft/class_1657;method_7340()Z
      named isMainPlayer Lnet/minecraft/entity/player/PlayerEntity;isMainPlayer()Z
    • isHoldingOntoLadder

      public boolean isHoldingOntoLadder()
      Overrides:
      isHoldingOntoLadder in class LivingEntity
      Returns:
      true if this entity should not lose height while in a climbing state
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official fb Lbcc;fb()Z
      intermediary method_21754 Lnet/minecraft/class_1309;method_21754()Z
      named isHoldingOntoLadder Lnet/minecraft/entity/LivingEntity;isHoldingOntoLadder()Z
    • shouldSpawnSprintingParticles

      public boolean shouldSpawnSprintingParticles()
      Overrides:
      shouldSpawnSprintingParticles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bd Lbbn;bd()Z
      intermediary method_27298 Lnet/minecraft/class_1297;method_27298()Z
      named shouldSpawnSprintingParticles Lnet/minecraft/entity/Entity;shouldSpawnSprintingParticles()Z
    • shouldDisplaySoulSpeedEffects

      public boolean shouldDisplaySoulSpeedEffects()
      Overrides:
      shouldDisplaySoulSpeedEffects in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official dC Lbcc;dC()Z
      intermediary method_27302 Lnet/minecraft/class_1309;method_27302()Z
      named shouldDisplaySoulSpeedEffects Lnet/minecraft/entity/LivingEntity;shouldDisplaySoulSpeedEffects()Z
    • startRidingJump

      protected void startRidingJump()
      Mappings:
      Namespace Name Mixin selector
      official t Leyw;t()V
      intermediary method_3133 Lnet/minecraft/class_746;method_3133()V
      named startRidingJump Lnet/minecraft/client/network/ClientPlayerEntity;startRidingJump()V
    • openRidingInventory

      public void openRidingInventory()
      Mappings:
      Namespace Name Mixin selector
      official u Leyw;u()V
      intermediary method_3132 Lnet/minecraft/class_746;method_3132()V
      named openRidingInventory Lnet/minecraft/client/network/ClientPlayerEntity;openRidingInventory()V
    • setServerBrand

      public void setServerBrand(@Nullable @Nullable String serverBrand)
      Mappings:
      Namespace Name Mixin selector
      official f Leyw;f(Ljava/lang/String;)V
      intermediary method_3146 Lnet/minecraft/class_746;method_3146(Ljava/lang/String;)V
      named setServerBrand Lnet/minecraft/client/network/ClientPlayerEntity;setServerBrand(Ljava/lang/String;)V
    • getServerBrand

      @Nullable public @Nullable String getServerBrand()
      Mappings:
      Namespace Name Mixin selector
      official x Leyw;x()Ljava/lang/String;
      intermediary method_3135 Lnet/minecraft/class_746;method_3135()Ljava/lang/String;
      named getServerBrand Lnet/minecraft/client/network/ClientPlayerEntity;getServerBrand()Ljava/lang/String;
    • getStatHandler

      public StatHandler getStatHandler()
      Mappings:
      Namespace Name Mixin selector
      official y Leyw;y()Lakh;
      intermediary method_3143 Lnet/minecraft/class_746;method_3143()Lnet/minecraft/class_3469;
      named getStatHandler Lnet/minecraft/client/network/ClientPlayerEntity;getStatHandler()Lnet/minecraft/stat/StatHandler;
    • getRecipeBook

      public ClientRecipeBook getRecipeBook()
      Mappings:
      Namespace Name Mixin selector
      official z Leyw;z()Lefh;
      intermediary method_3130 Lnet/minecraft/class_746;method_3130()Lnet/minecraft/class_299;
      named getRecipeBook Lnet/minecraft/client/network/ClientPlayerEntity;getRecipeBook()Lnet/minecraft/client/recipebook/ClientRecipeBook;
    • onRecipeDisplayed

      public void onRecipeDisplayed(Recipe<?> recipe)
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(Lcdp;)V
      intermediary method_3141 Lnet/minecraft/class_746;method_3141(Lnet/minecraft/class_1860;)V
      named onRecipeDisplayed Lnet/minecraft/client/network/ClientPlayerEntity;onRecipeDisplayed(Lnet/minecraft/recipe/Recipe;)V
    • getPermissionLevel

      protected int getPermissionLevel()
      Returns the permission level of this entity.

      This is 0 for non-players.

      Overrides:
      getPermissionLevel in class Entity
      Returns:
      the permission level of this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official B Lbbn;B()I
      intermediary method_5691 Lnet/minecraft/class_1297;method_5691()I
      named getPermissionLevel Lnet/minecraft/entity/Entity;getPermissionLevel()I
    • setClientPermissionLevel

      public void setClientPermissionLevel(int clientPermissionLevel)
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(I)V
      intermediary method_3147 Lnet/minecraft/class_746;method_3147(I)V
      named setClientPermissionLevel Lnet/minecraft/client/network/ClientPlayerEntity;setClientPermissionLevel(I)V
    • 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.

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

      private void pushOutOfBlocks(double x, double z)
      Mappings:
      Namespace Name Mixin selector
      official b Leyw;b(DD)V
      intermediary method_30673 Lnet/minecraft/class_746;method_30673(DD)V
      named pushOutOfBlocks Lnet/minecraft/client/network/ClientPlayerEntity;pushOutOfBlocks(DD)V
    • wouldCollideAt

      private boolean wouldCollideAt(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official g Leyw;g(Lgt;)Z
      intermediary method_30674 Lnet/minecraft/class_746;method_30674(Lnet/minecraft/class_2338;)Z
      named wouldCollideAt Lnet/minecraft/client/network/ClientPlayerEntity;wouldCollideAt(Lnet/minecraft/util/math/BlockPos;)Z
    • setSprinting

      public void setSprinting(boolean sprinting)
      Sets whether the entity is sprinting.
      Overrides:
      setSprinting in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lbbn;g(Z)V
      intermediary method_5728 Lnet/minecraft/class_1297;method_5728(Z)V
      named setSprinting Lnet/minecraft/entity/Entity;setSprinting(Z)V
    • setExperience

      public void setExperience(float progress, int total, int level)
      Mappings:
      Namespace Name Mixin selector
      official a Leyw;a(FII)V
      intermediary method_3145 Lnet/minecraft/class_746;method_3145(FII)V
      named setExperience Lnet/minecraft/client/network/ClientPlayerEntity;setExperience(FII)V
    • sendMessage

      public void sendMessage(Text message)
      Sends a system message.
      Specified by:
      sendMessage in interface CommandOutput
      Overrides:
      sendMessage in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Ldq;a(Lrq;)V
      intermediary method_43496 Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)V
      named sendMessage Lnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)V
    • handleStatus

      public void handleStatus(byte status)
      Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.
      Overrides:
      handleStatus in class PlayerEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(B)V
      intermediary method_5711 Lnet/minecraft/class_1297;method_5711(B)V
      named handleStatus Lnet/minecraft/entity/Entity;handleStatus(B)V
    • setShowsDeathScreen

      public void setShowsDeathScreen(boolean showsDeathScreen)
      Mappings:
      Namespace Name Mixin selector
      official b Leyw;b(Z)V
      intermediary method_22420 Lnet/minecraft/class_746;method_22420(Z)V
      named setShowsDeathScreen Lnet/minecraft/client/network/ClientPlayerEntity;setShowsDeathScreen(Z)V
    • showsDeathScreen

      public boolean showsDeathScreen()
      Mappings:
      Namespace Name Mixin selector
      official A Leyw;A()Z
      intermediary method_22419 Lnet/minecraft/class_746;method_22419()Z
      named showsDeathScreen Lnet/minecraft/client/network/ClientPlayerEntity;showsDeathScreen()Z
    • 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 PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lajv;FF)V
      intermediary method_5783 Lnet/minecraft/class_1297;method_5783(Lnet/minecraft/class_3414;FF)V
      named playSound Lnet/minecraft/entity/Entity;playSound(Lnet/minecraft/sound/SoundEvent;FF)V
    • playSound

      public void playSound(SoundEvent event, SoundCategory category, float volume, float pitch)
      Overrides:
      playSound in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lajv;Lajx;FF)V
      intermediary method_17356 Lnet/minecraft/class_1657;method_17356(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;FF)V
      named playSound Lnet/minecraft/entity/player/PlayerEntity;playSound(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;FF)V
    • canMoveVoluntarily

      public boolean canMoveVoluntarily()
      Overrides:
      canMoveVoluntarily in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eP Lbcc;eP()Z
      intermediary method_6034 Lnet/minecraft/class_1309;method_6034()Z
      named canMoveVoluntarily Lnet/minecraft/entity/LivingEntity;canMoveVoluntarily()Z
    • setCurrentHand

      public void setCurrentHand(Hand hand)
      Overrides:
      setCurrentHand in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbcc;c(Lbai;)V
      intermediary method_6019 Lnet/minecraft/class_1309;method_6019(Lnet/minecraft/class_1268;)V
      named setCurrentHand Lnet/minecraft/entity/LivingEntity;setCurrentHand(Lnet/minecraft/util/Hand;)V
    • isUsingItem

      public boolean isUsingItem()
      Overrides:
      isUsingItem in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eT Lbcc;eT()Z
      intermediary method_6115 Lnet/minecraft/class_1309;method_6115()Z
      named isUsingItem Lnet/minecraft/entity/LivingEntity;isUsingItem()Z
    • clearActiveItem

      public void clearActiveItem()
      Overrides:
      clearActiveItem in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eZ Lbcc;eZ()V
      intermediary method_6021 Lnet/minecraft/class_1309;method_6021()V
      named clearActiveItem Lnet/minecraft/entity/LivingEntity;clearActiveItem()V
    • getActiveHand

      public Hand getActiveHand()
      Overrides:
      getActiveHand in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eU Lbcc;eU()Lbai;
      intermediary method_6058 Lnet/minecraft/class_1309;method_6058()Lnet/minecraft/class_1268;
      named getActiveHand Lnet/minecraft/entity/LivingEntity;getActiveHand()Lnet/minecraft/util/Hand;
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Overrides:
      onTrackedDataSet in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Laaj;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • hasJumpingMount

      public boolean hasJumpingMount()
      Mappings:
      Namespace Name Mixin selector
      official C Leyw;C()Z
      intermediary method_3131 Lnet/minecraft/class_746;method_3131()Z
      named hasJumpingMount Lnet/minecraft/client/network/ClientPlayerEntity;hasJumpingMount()Z
    • getMountJumpStrength

      public float getMountJumpStrength()
      Mappings:
      Namespace Name Mixin selector
      official D Leyw;D()F
      intermediary method_3151 Lnet/minecraft/class_746;method_3151()F
      named getMountJumpStrength Lnet/minecraft/client/network/ClientPlayerEntity;getMountJumpStrength()F
    • openEditSignScreen

      public void openEditSignScreen(SignBlockEntity sign)
      Overrides:
      openEditSignScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lcuk;)V
      intermediary method_7311 Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;)V
      named openEditSignScreen Lnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;)V
    • openCommandBlockMinecartScreen

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

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

      public void openStructureBlockScreen(StructureBlockBlockEntity structureBlock)
      Overrides:
      openStructureBlockScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lcuo;)V
      intermediary method_7303 Lnet/minecraft/class_1657;method_7303(Lnet/minecraft/class_2633;)V
      named openStructureBlockScreen Lnet/minecraft/entity/player/PlayerEntity;openStructureBlockScreen(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)V
    • openJigsawScreen

      public void openJigsawScreen(JigsawBlockEntity jigsaw)
      Overrides:
      openJigsawScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lcub;)V
      intermediary method_16354 Lnet/minecraft/class_1657;method_16354(Lnet/minecraft/class_3751;)V
      named openJigsawScreen Lnet/minecraft/entity/player/PlayerEntity;openJigsawScreen(Lnet/minecraft/block/entity/JigsawBlockEntity;)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.

      Overrides:
      useBook in class PlayerEntity
      Parameters:
      book - the book
      hand - the hand holding the book
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lcax;Lbai;)V
      intermediary method_7315 Lnet/minecraft/class_1657;method_7315(Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)V
      named useBook Lnet/minecraft/entity/player/PlayerEntity;useBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Hand;)V
    • addCritParticles

      public void addCritParticles(Entity target)
      Overrides:
      addCritParticles in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lbbn;)V
      intermediary method_7277 Lnet/minecraft/class_1657;method_7277(Lnet/minecraft/class_1297;)V
      named addCritParticles Lnet/minecraft/entity/player/PlayerEntity;addCritParticles(Lnet/minecraft/entity/Entity;)V
    • addEnchantedHitParticles

      public void addEnchantedHitParticles(Entity target)
      Overrides:
      addEnchantedHitParticles in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbuc;b(Lbbn;)V
      intermediary method_7304 Lnet/minecraft/class_1657;method_7304(Lnet/minecraft/class_1297;)V
      named addEnchantedHitParticles Lnet/minecraft/entity/player/PlayerEntity;addEnchantedHitParticles(Lnet/minecraft/entity/Entity;)V
    • isSneaking

      public boolean isSneaking()
      Returns whether the entity is sneaking.

      This only returns true if the entity is a player and that player is pressing the Sneak key. See also Entity.isInSneakingPose().

      Overrides:
      isSneaking in class Entity
      Returns:
      whether the entity is sneaking
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official bL Lbbn;bL()Z
      intermediary method_5715 Lnet/minecraft/class_1297;method_5715()Z
      named isSneaking Lnet/minecraft/entity/Entity;isSneaking()Z
    • isInSneakingPose

      public boolean isInSneakingPose()
      Returns whether the entity is in a crouching pose.

      Compared to Entity.isSneaking(), it only makes the entity appear crouching and does not bring other effects of sneaking, such as no less obvious name label rendering, no dismounting while riding, etc.

      This is used by vanilla for non-player entities to crouch, such as for foxes and cats. This is also used when the entity is a player and the player would otherwise collide with blocks (for example, when the player is in a 1.5 blocks tall tunnel).

      Overrides:
      isInSneakingPose in class Entity
      Returns:
      whether the entity is in a crouching pose
      Mappings:
      Namespace Name Mixin selector
      official bQ Lbbn;bQ()Z
      intermediary method_18276 Lnet/minecraft/class_1297;method_18276()Z
      named isInSneakingPose Lnet/minecraft/entity/Entity;isInSneakingPose()Z
    • shouldSlowDown

      public boolean shouldSlowDown()
      Mappings:
      Namespace Name Mixin selector
      official E Leyw;E()Z
      intermediary method_20303 Lnet/minecraft/class_746;method_20303()Z
      named shouldSlowDown Lnet/minecraft/client/network/ClientPlayerEntity;shouldSlowDown()Z
    • tickNewAi

      public void tickNewAi()
      Overrides:
      tickNewAi in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official eM Lbcc;eM()V
      intermediary method_6023 Lnet/minecraft/class_1309;method_6023()V
      named tickNewAi Lnet/minecraft/entity/LivingEntity;tickNewAi()V
    • isCamera

      protected boolean isCamera()
      Mappings:
      Namespace Name Mixin selector
      official G Leyw;G()Z
      intermediary method_3134 Lnet/minecraft/class_746;method_3134()Z
      named isCamera Lnet/minecraft/client/network/ClientPlayerEntity;isCamera()Z
    • init

      public void init()
      Mappings:
      Namespace Name Mixin selector
      official I Leyw;I()V
      intermediary method_33689 Lnet/minecraft/class_746;method_33689()V
      named init Lnet/minecraft/client/network/ClientPlayerEntity;init()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official w_ Lbcc;w_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
    • updatePostDeath

      protected void updatePostDeath()
      Overrides:
      updatePostDeath in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official dL Lbcc;dL()V
      intermediary method_6108 Lnet/minecraft/class_1309;method_6108()V
      named updatePostDeath Lnet/minecraft/entity/LivingEntity;updatePostDeath()V
    • updateNausea

      private void updateNausea()
      Mappings:
      Namespace Name Mixin selector
      official O Leyw;O()V
      intermediary method_18654 Lnet/minecraft/class_746;method_18654()V
      named updateNausea Lnet/minecraft/client/network/ClientPlayerEntity;updateNausea()V
    • tickRiding

      public void tickRiding()
      Overrides:
      tickRiding in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official br Lbbn;br()V
      intermediary method_5842 Lnet/minecraft/class_1297;method_5842()V
      named tickRiding Lnet/minecraft/entity/Entity;tickRiding()V
    • isRiding

      public boolean isRiding()
      Mappings:
      Namespace Name Mixin selector
      official J Leyw;J()Z
      intermediary method_3144 Lnet/minecraft/class_746;method_3144()Z
      named isRiding Lnet/minecraft/client/network/ClientPlayerEntity;isRiding()Z
    • removeStatusEffectInternal

      @Nullable public @Nullable StatusEffectInstance removeStatusEffectInternal(@Nullable @Nullable StatusEffect type)
      Removes a status effect from this entity without calling any listener.

      This method does not perform any cleanup or synchronization operation. Under most circumstances, calling LivingEntity.removeStatusEffect(StatusEffect) is highly preferable.

      Overrides:
      removeStatusEffectInternal in class LivingEntity
      Returns:
      the status effect removed
      Mappings:
      Namespace Name Mixin selector
      official c Lbcc;c(Lbbe;)Lbbg;
      intermediary method_6111 Lnet/minecraft/class_1309;method_6111(Lnet/minecraft/class_1291;)Lnet/minecraft/class_1293;
      named removeStatusEffectInternal Lnet/minecraft/entity/LivingEntity;removeStatusEffectInternal(Lnet/minecraft/entity/effect/StatusEffect;)Lnet/minecraft/entity/effect/StatusEffectInstance;
    • move

      public void move(MovementType movementType, Vec3d movement)
      Overrides:
      move in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lbci;Ldwq;)V
      intermediary method_5784 Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
      named move Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
    • isAutoJumpEnabled

      public boolean isAutoJumpEnabled()
      Mappings:
      Namespace Name Mixin selector
      official K Leyw;K()Z
      intermediary method_3149 Lnet/minecraft/class_746;method_3149()Z
      named isAutoJumpEnabled Lnet/minecraft/client/network/ClientPlayerEntity;isAutoJumpEnabled()Z
    • autoJump

      protected void autoJump(float dx, float dz)
      Mappings:
      Namespace Name Mixin selector
      official f Leyw;f(FF)V
      intermediary method_3148 Lnet/minecraft/class_746;method_3148(FF)V
      named autoJump Lnet/minecraft/client/network/ClientPlayerEntity;autoJump(FF)V
    • hasCollidedSoftly

      protected boolean hasCollidedSoftly(Vec3d adjustedMovement)
      Overrides:
      hasCollidedSoftly in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbbn;b(Ldwq;)Z
      intermediary method_39759 Lnet/minecraft/class_1297;method_39759(Lnet/minecraft/class_243;)Z
      named hasCollidedSoftly Lnet/minecraft/entity/Entity;hasCollidedSoftly(Lnet/minecraft/util/math/Vec3d;)Z
    • shouldAutoJump

      private boolean shouldAutoJump()
      Mappings:
      Namespace Name Mixin selector
      official P Leyw;P()Z
      intermediary method_22119 Lnet/minecraft/class_746;method_22119()Z
      named shouldAutoJump Lnet/minecraft/client/network/ClientPlayerEntity;shouldAutoJump()Z
    • hasMovementInput

      private boolean hasMovementInput()
      Returns whether the player has movement input.
      Returns:
      whether the player has movement input
      Mappings:
      Namespace Name Mixin selector
      official Q Leyw;Q()Z
      intermediary method_22120 Lnet/minecraft/class_746;method_22120()Z
      named hasMovementInput Lnet/minecraft/client/network/ClientPlayerEntity;hasMovementInput()Z
    • isWalking

      private boolean isWalking()
      Mappings:
      Namespace Name Mixin selector
      official R Leyw;R()Z
      intermediary method_20623 Lnet/minecraft/class_746;method_20623()Z
      named isWalking Lnet/minecraft/client/network/ClientPlayerEntity;isWalking()Z
    • getUnderwaterVisibility

      public float getUnderwaterVisibility()
      Returns the color multiplier of vision in water. Visibility in water is reduced when the player just entered water.
      Returns:
      the color multiplier of vision in water
      Mappings:
      Namespace Name Mixin selector
      official L Leyw;L()F
      intermediary method_3140 Lnet/minecraft/class_746;method_3140()F
      named getUnderwaterVisibility Lnet/minecraft/client/network/ClientPlayerEntity;getUnderwaterVisibility()F
    • isSubmergedInWater

      public boolean isSubmergedInWater()
      Returns whether this entity's hitbox is fully submerged in water.
      Overrides:
      isSubmergedInWater in class Entity
      Returns:
      whether this entity's hitbox is fully submerged in water
      Mappings:
      Namespace Name Mixin selector
      official aV Lbbn;aV()Z
      intermediary method_5869 Lnet/minecraft/class_1297;method_5869()Z
      named isSubmergedInWater Lnet/minecraft/entity/Entity;isSubmergedInWater()Z
    • updateWaterSubmersionState

      protected boolean updateWaterSubmersionState()
      Overrides:
      updateWaterSubmersionState in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official fr Lbuc;fr()Z
      intermediary method_7295 Lnet/minecraft/class_1657;method_7295()Z
      named updateWaterSubmersionState Lnet/minecraft/entity/player/PlayerEntity;updateWaterSubmersionState()Z
    • getLeashPos

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

      This is different from Entity.getLeashOffset(); this method is called on the entity that holds the leash.

      Overrides:
      getLeashPos in class PlayerEntity
      Returns:
      the position of the leash this entity holds
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lbbn;n(F)Ldwq;
      intermediary method_30951 Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
      named getLeashPos Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
    • onPickupSlotClick

      public void onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
      Called when a player performs a pickup slot action in a screen handler.
      Overrides:
      onPickupSlotClick in class PlayerEntity
      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)
      Mappings:
      Namespace Name Mixin selector
      official a Lbuc;a(Lcax;Lcax;Lbwu;)V
      intermediary method_33592 Lnet/minecraft/class_1657;method_33592(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Lnet/minecraft/class_5536;)V
      named onPickupSlotClick Lnet/minecraft/entity/player/PlayerEntity;onPickupSlotClick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/ClickType;)V
    • getBodyYaw

      public float getBodyYaw()
      Returns the body yaw of the entity.
      Overrides:
      getBodyYaw in class LivingEntity
      Returns:
      the body yaw of the entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official dr Lbbn;dr()F
      intermediary method_43078 Lnet/minecraft/class_1297;method_43078()F
      named getBodyYaw Lnet/minecraft/entity/Entity;getBodyYaw()F