Class ServerPlayerEntity

All Implemented Interfaces:
Attackable, CommandOutput, Nameable, EntityLike

public class ServerPlayerEntity extends PlayerEntity
Mappings:
Namespace Name
official akr
intermediary net/minecraft/class_3222
named net/minecraft/server/network/ServerPlayerEntity
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lakr;b:Lorg/slf4j/Logger;
      intermediary field_13975 Lnet/minecraft/class_3222;field_13975:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/server/network/ServerPlayerEntity;LOGGER:Lorg/slf4j/Logger;
    • field_29769

      private static final int field_29769
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cm Lakr;cm:I
      intermediary field_29769 Lnet/minecraft/class_3222;field_29769:I
      named field_29769 Lnet/minecraft/server/network/ServerPlayerEntity;field_29769:I
    • field_29770

      private static final int field_29770
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cn Lakr;cn:I
      intermediary field_29770 Lnet/minecraft/class_3222;field_29770:I
      named field_29770 Lnet/minecraft/server/network/ServerPlayerEntity;field_29770:I
    • networkHandler

      public ServerPlayNetworkHandler networkHandler
      Mappings:
      Namespace Name Mixin selector
      official c Lakr;c:Lalp;
      intermediary field_13987 Lnet/minecraft/class_3222;field_13987:Lnet/minecraft/class_3244;
      named networkHandler Lnet/minecraft/server/network/ServerPlayerEntity;networkHandler:Lnet/minecraft/server/network/ServerPlayNetworkHandler;
    • server

      public final MinecraftServer server
      Mappings:
      Namespace Name Mixin selector
      official d Lakr;d:Lnet/minecraft/server/MinecraftServer;
      intermediary field_13995 Lnet/minecraft/class_3222;field_13995:Lnet/minecraft/server/MinecraftServer;
      named server Lnet/minecraft/server/network/ServerPlayerEntity;server:Lnet/minecraft/server/MinecraftServer;
    • interactionManager

      public final ServerPlayerInteractionManager interactionManager
      Mappings:
      Namespace Name Mixin selector
      official e Lakr;e:Laks;
      intermediary field_13974 Lnet/minecraft/class_3222;field_13974:Lnet/minecraft/class_3225;
      named interactionManager Lnet/minecraft/server/network/ServerPlayerEntity;interactionManager:Lnet/minecraft/server/network/ServerPlayerInteractionManager;
    • advancementTracker

      private final PlayerAdvancementTracker advancementTracker
      Mappings:
      Namespace Name Mixin selector
      official co Lakr;co:Lafe;
      intermediary field_13970 Lnet/minecraft/class_3222;field_13970:Lnet/minecraft/class_2985;
      named advancementTracker Lnet/minecraft/server/network/ServerPlayerEntity;advancementTracker:Lnet/minecraft/advancement/PlayerAdvancementTracker;
    • statHandler

      private final ServerStatHandler statHandler
      Mappings:
      Namespace Name Mixin selector
      official cp Lakr;cp:Lapj;
      intermediary field_13966 Lnet/minecraft/class_3222;field_13966:Lnet/minecraft/class_3442;
      named statHandler Lnet/minecraft/server/network/ServerPlayerEntity;statHandler:Lnet/minecraft/stat/ServerStatHandler;
    • lastHealthScore

      private float lastHealthScore
      Mappings:
      Namespace Name Mixin selector
      official cq Lakr;cq:F
      intermediary field_13963 Lnet/minecraft/class_3222;field_13963:F
      named lastHealthScore Lnet/minecraft/server/network/ServerPlayerEntity;lastHealthScore:F
    • lastFoodScore

      private int lastFoodScore
      Mappings:
      Namespace Name Mixin selector
      official cr Lakr;cr:I
      intermediary field_13983 Lnet/minecraft/class_3222;field_13983:I
      named lastFoodScore Lnet/minecraft/server/network/ServerPlayerEntity;lastFoodScore:I
    • lastAirScore

      private int lastAirScore
      Mappings:
      Namespace Name Mixin selector
      official cs Lakr;cs:I
      intermediary field_13968 Lnet/minecraft/class_3222;field_13968:I
      named lastAirScore Lnet/minecraft/server/network/ServerPlayerEntity;lastAirScore:I
    • lastArmorScore

      private int lastArmorScore
      Mappings:
      Namespace Name Mixin selector
      official ct Lakr;ct:I
      intermediary field_13982 Lnet/minecraft/class_3222;field_13982:I
      named lastArmorScore Lnet/minecraft/server/network/ServerPlayerEntity;lastArmorScore:I
    • lastLevelScore

      private int lastLevelScore
      Mappings:
      Namespace Name Mixin selector
      official cu Lakr;cu:I
      intermediary field_13965 Lnet/minecraft/class_3222;field_13965:I
      named lastLevelScore Lnet/minecraft/server/network/ServerPlayerEntity;lastLevelScore:I
    • lastExperienceScore

      private int lastExperienceScore
      Mappings:
      Namespace Name Mixin selector
      official cv Lakr;cv:I
      intermediary field_13980 Lnet/minecraft/class_3222;field_13980:I
      named lastExperienceScore Lnet/minecraft/server/network/ServerPlayerEntity;lastExperienceScore:I
    • syncedHealth

      private float syncedHealth
      Mappings:
      Namespace Name Mixin selector
      official cw Lakr;cw:F
      intermediary field_13997 Lnet/minecraft/class_3222;field_13997:F
      named syncedHealth Lnet/minecraft/server/network/ServerPlayerEntity;syncedHealth:F
    • syncedFoodLevel

      private int syncedFoodLevel
      Mappings:
      Namespace Name Mixin selector
      official cx Lakr;cx:I
      intermediary field_13979 Lnet/minecraft/class_3222;field_13979:I
      named syncedFoodLevel Lnet/minecraft/server/network/ServerPlayerEntity;syncedFoodLevel:I
    • syncedSaturationIsZero

      private boolean syncedSaturationIsZero
      Mappings:
      Namespace Name Mixin selector
      official cy Lakr;cy:Z
      intermediary field_13972 Lnet/minecraft/class_3222;field_13972:Z
      named syncedSaturationIsZero Lnet/minecraft/server/network/ServerPlayerEntity;syncedSaturationIsZero:Z
    • syncedExperience

      private int syncedExperience
      Mappings:
      Namespace Name Mixin selector
      official cz Lakr;cz:I
      intermediary field_13978 Lnet/minecraft/class_3222;field_13978:I
      named syncedExperience Lnet/minecraft/server/network/ServerPlayerEntity;syncedExperience:I
    • joinInvulnerabilityTicks

      private int joinInvulnerabilityTicks
      Mappings:
      Namespace Name Mixin selector
      official cA Lakr;cA:I
      intermediary field_13998 Lnet/minecraft/class_3222;field_13998:I
      named joinInvulnerabilityTicks Lnet/minecraft/server/network/ServerPlayerEntity;joinInvulnerabilityTicks:I
    • clientChatVisibility

      private ChatVisibility clientChatVisibility
      Mappings:
      Namespace Name Mixin selector
      official cB Lakr;cB:Lcbs;
      intermediary field_13993 Lnet/minecraft/class_3222;field_13993:Lnet/minecraft/class_1659;
      named clientChatVisibility Lnet/minecraft/server/network/ServerPlayerEntity;clientChatVisibility:Lnet/minecraft/network/message/ChatVisibility;
    • clientChatColorsEnabled

      private boolean clientChatColorsEnabled
      Mappings:
      Namespace Name Mixin selector
      official cC Lakr;cC:Z
      intermediary field_13971 Lnet/minecraft/class_3222;field_13971:Z
      named clientChatColorsEnabled Lnet/minecraft/server/network/ServerPlayerEntity;clientChatColorsEnabled:Z
    • lastActionTime

      private long lastActionTime
      Mappings:
      Namespace Name Mixin selector
      official cD Lakr;cD:J
      intermediary field_13976 Lnet/minecraft/class_3222;field_13976:J
      named lastActionTime Lnet/minecraft/server/network/ServerPlayerEntity;lastActionTime:J
    • cameraEntity

      @Nullable private @Nullable Entity cameraEntity
      Mappings:
      Namespace Name Mixin selector
      official cE Lakr;cE:Lbiq;
      intermediary field_13984 Lnet/minecraft/class_3222;field_13984:Lnet/minecraft/class_1297;
      named cameraEntity Lnet/minecraft/server/network/ServerPlayerEntity;cameraEntity:Lnet/minecraft/entity/Entity;
    • inTeleportationState

      private boolean inTeleportationState
      Mappings:
      Namespace Name Mixin selector
      official cF Lakr;cF:Z
      intermediary field_13985 Lnet/minecraft/class_3222;field_13985:Z
      named inTeleportationState Lnet/minecraft/server/network/ServerPlayerEntity;inTeleportationState:Z
    • seenCredits

      private boolean seenCredits
      Mappings:
      Namespace Name Mixin selector
      official cG Lakr;cG:Z
      intermediary field_13969 Lnet/minecraft/class_3222;field_13969:Z
      named seenCredits Lnet/minecraft/server/network/ServerPlayerEntity;seenCredits:Z
    • recipeBook

      private final ServerRecipeBook recipeBook
      Mappings:
      Namespace Name Mixin selector
      official cH Lakr;cH:Lapi;
      intermediary field_13996 Lnet/minecraft/class_3222;field_13996:Lnet/minecraft/class_3441;
      named recipeBook Lnet/minecraft/server/network/ServerPlayerEntity;recipeBook:Lnet/minecraft/server/network/ServerRecipeBook;
    • levitationStartPos

      @Nullable private @Nullable Vec3d levitationStartPos
      Mappings:
      Namespace Name Mixin selector
      official cI Lakr;cI:Lehn;
      intermediary field_13992 Lnet/minecraft/class_3222;field_13992:Lnet/minecraft/class_243;
      named levitationStartPos Lnet/minecraft/server/network/ServerPlayerEntity;levitationStartPos:Lnet/minecraft/util/math/Vec3d;
    • levitationStartTick

      private int levitationStartTick
      Mappings:
      Namespace Name Mixin selector
      official cJ Lakr;cJ:I
      intermediary field_13973 Lnet/minecraft/class_3222;field_13973:I
      named levitationStartTick Lnet/minecraft/server/network/ServerPlayerEntity;levitationStartTick:I
    • disconnected

      private boolean disconnected
      Mappings:
      Namespace Name Mixin selector
      official cK Lakr;cK:Z
      intermediary field_13964 Lnet/minecraft/class_3222;field_13964:Z
      named disconnected Lnet/minecraft/server/network/ServerPlayerEntity;disconnected:Z
    • viewDistance

      private int viewDistance
      Mappings:
      Namespace Name Mixin selector
      official cL Lakr;cL:I
      intermediary field_44990 Lnet/minecraft/class_3222;field_44990:I
      named viewDistance Lnet/minecraft/server/network/ServerPlayerEntity;viewDistance:I
    • language

      private String language
      Mappings:
      Namespace Name Mixin selector
      official cM Lakr;cM:Ljava/lang/String;
      intermediary field_46156 Lnet/minecraft/class_3222;field_46156:Ljava/lang/String;
      named language Lnet/minecraft/server/network/ServerPlayerEntity;language:Ljava/lang/String;
    • fallStartPos

      @Nullable private @Nullable Vec3d fallStartPos
      Mappings:
      Namespace Name Mixin selector
      official cN Lakr;cN:Lehn;
      intermediary field_35007 Lnet/minecraft/class_3222;field_35007:Lnet/minecraft/class_243;
      named fallStartPos Lnet/minecraft/server/network/ServerPlayerEntity;fallStartPos:Lnet/minecraft/util/math/Vec3d;
    • enteredNetherPos

      @Nullable private @Nullable Vec3d enteredNetherPos
      Mappings:
      Namespace Name Mixin selector
      official cO Lakr;cO:Lehn;
      intermediary field_13994 Lnet/minecraft/class_3222;field_13994:Lnet/minecraft/class_243;
      named enteredNetherPos Lnet/minecraft/server/network/ServerPlayerEntity;enteredNetherPos:Lnet/minecraft/util/math/Vec3d;
    • vehicleInLavaRidingPos

      @Nullable private @Nullable Vec3d vehicleInLavaRidingPos
      Mappings:
      Namespace Name Mixin selector
      official cP Lakr;cP:Lehn;
      intermediary field_35008 Lnet/minecraft/class_3222;field_35008:Lnet/minecraft/class_243;
      named vehicleInLavaRidingPos Lnet/minecraft/server/network/ServerPlayerEntity;vehicleInLavaRidingPos:Lnet/minecraft/util/math/Vec3d;
    • watchedSection

      private ChunkSectionPos watchedSection
      A chunk section position indicating where the player's client is currently watching chunks from. Used referentially for the game to update the chunks watched by this player.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cQ Lakr;cQ:Lhw;
      intermediary field_13990 Lnet/minecraft/class_3222;field_13990:Lnet/minecraft/class_4076;
      named watchedSection Lnet/minecraft/server/network/ServerPlayerEntity;watchedSection:Lnet/minecraft/util/math/ChunkSectionPos;
    • chunkFilter

      private ChunkFilter chunkFilter
      Mappings:
      Namespace Name Mixin selector
      official cR Lakr;cR:Lake;
      intermediary field_44991 Lnet/minecraft/class_3222;field_44991:Lnet/minecraft/class_8603;
      named chunkFilter Lnet/minecraft/server/network/ServerPlayerEntity;chunkFilter:Lnet/minecraft/server/network/ChunkFilter;
    • spawnPointDimension

      private RegistryKey<World> spawnPointDimension
      Mappings:
      Namespace Name Mixin selector
      official cS Lakr;cS:Laev;
      intermediary field_23191 Lnet/minecraft/class_3222;field_23191:Lnet/minecraft/class_5321;
      named spawnPointDimension Lnet/minecraft/server/network/ServerPlayerEntity;spawnPointDimension:Lnet/minecraft/registry/RegistryKey;
    • spawnPointPosition

      @Nullable private @Nullable BlockPos spawnPointPosition
      Mappings:
      Namespace Name Mixin selector
      official cT Lakr;cT:Lgw;
      intermediary field_23192 Lnet/minecraft/class_3222;field_23192:Lnet/minecraft/class_2338;
      named spawnPointPosition Lnet/minecraft/server/network/ServerPlayerEntity;spawnPointPosition:Lnet/minecraft/util/math/BlockPos;
    • spawnForced

      private boolean spawnForced
      Mappings:
      Namespace Name Mixin selector
      official cU Lakr;cU:Z
      intermediary field_23193 Lnet/minecraft/class_3222;field_23193:Z
      named spawnForced Lnet/minecraft/server/network/ServerPlayerEntity;spawnForced:Z
    • spawnAngle

      private float spawnAngle
      Mappings:
      Namespace Name Mixin selector
      official cV Lakr;cV:F
      intermediary field_26353 Lnet/minecraft/class_3222;field_26353:F
      named spawnAngle Lnet/minecraft/server/network/ServerPlayerEntity;spawnAngle:F
    • textStream

      private final TextStream textStream
      Mappings:
      Namespace Name Mixin selector
      official cW Lakr;cW:Lalu;
      intermediary field_26821 Lnet/minecraft/class_3222;field_26821:Lnet/minecraft/class_5513;
      named textStream Lnet/minecraft/server/network/ServerPlayerEntity;textStream:Lnet/minecraft/server/filter/TextStream;
    • filterText

      private boolean filterText
      Mappings:
      Namespace Name Mixin selector
      official cX Lakr;cX:Z
      intermediary field_28860 Lnet/minecraft/class_3222;field_28860:Z
      named filterText Lnet/minecraft/server/network/ServerPlayerEntity;filterText:Z
    • allowServerListing

      private boolean allowServerListing
      Mappings:
      Namespace Name Mixin selector
      official cY Lakr;cY:Z
      intermediary field_35566 Lnet/minecraft/class_3222;field_35566:Z
      named allowServerListing Lnet/minecraft/server/network/ServerPlayerEntity;allowServerListing:Z
    • sculkShriekerWarningManager

      private SculkShriekerWarningManager sculkShriekerWarningManager
      Mappings:
      Namespace Name Mixin selector
      official cZ Lakr;cZ:Lcba;
      intermediary field_39985 Lnet/minecraft/class_3222;field_39985:Lnet/minecraft/class_7262;
      named sculkShriekerWarningManager Lnet/minecraft/server/network/ServerPlayerEntity;sculkShriekerWarningManager:Lnet/minecraft/block/entity/SculkShriekerWarningManager;
    • screenHandlerSyncHandler

      private final ScreenHandlerSyncHandler screenHandlerSyncHandler
      Mappings:
      Namespace Name Mixin selector
      official da Lakr;da:Lcey;
      intermediary field_29180 Lnet/minecraft/class_3222;field_29180:Lnet/minecraft/class_5916;
      named screenHandlerSyncHandler Lnet/minecraft/server/network/ServerPlayerEntity;screenHandlerSyncHandler:Lnet/minecraft/screen/ScreenHandlerSyncHandler;
    • screenHandlerListener

      private final ScreenHandlerListener screenHandlerListener
      Mappings:
      Namespace Name Mixin selector
      official db Lakr;db:Lcex;
      intermediary field_29181 Lnet/minecraft/class_3222;field_29181:Lnet/minecraft/class_1712;
      named screenHandlerListener Lnet/minecraft/server/network/ServerPlayerEntity;screenHandlerListener:Lnet/minecraft/screen/ScreenHandlerListener;
    • session

      Mappings:
      Namespace Name Mixin selector
      official dc Lakr;dc:Lub;
      intermediary field_39986 Lnet/minecraft/class_3222;field_39986:Lnet/minecraft/class_7822;
      named session Lnet/minecraft/server/network/ServerPlayerEntity;session:Lnet/minecraft/network/encryption/PublicPlayerSession;
    • screenHandlerSyncId

      private int screenHandlerSyncId
      Mappings:
      Namespace Name Mixin selector
      official dd Lakr;dd:I
      intermediary field_13986 Lnet/minecraft/class_3222;field_13986:I
      named screenHandlerSyncId Lnet/minecraft/server/network/ServerPlayerEntity;screenHandlerSyncId:I
    • notInAnyWorld

      public boolean notInAnyWorld
      Mappings:
      Namespace Name Mixin selector
      official f Lakr;f:Z
      intermediary field_13989 Lnet/minecraft/class_3222;field_13989:Z
      named notInAnyWorld Lnet/minecraft/server/network/ServerPlayerEntity;notInAnyWorld:Z
  • Constructor Details

    • ServerPlayerEntity

      public ServerPlayerEntity(MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, SyncedClientOptions clientOptions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lakr;<init>(Lnet/minecraft/server/MinecraftServer;Lakq;Lcom/mojang/authlib/GameProfile;Lakf;)V
      intermediary <init> Lnet/minecraft/class_3222;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_3218;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_8791;)V
      named <init> Lnet/minecraft/server/network/ServerPlayerEntity;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/server/world/ServerWorld;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)V
  • Method Details

    • moveToSpawn

      private void moveToSpawn(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official e Lakr;e(Lakq;)V
      intermediary method_14245 Lnet/minecraft/class_3222;method_14245(Lnet/minecraft/class_3218;)V
      named moveToSpawn Lnet/minecraft/server/network/ServerPlayerEntity;moveToSpawn(Lnet/minecraft/server/world/ServerWorld;)V
    • calculateSpawnOffsetMultiplier

      private int calculateSpawnOffsetMultiplier(int horizontalSpawnArea)
      Mappings:
      Namespace Name Mixin selector
      official u Lakr;u(I)I
      intermediary method_14244 Lnet/minecraft/class_3222;method_14244(I)I
      named calculateSpawnOffsetMultiplier Lnet/minecraft/server/network/ServerPlayerEntity;calculateSpawnOffsetMultiplier(I)I
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class PlayerEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lqw;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class PlayerEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbiq;b(Lqw;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • setExperiencePoints

      public void setExperiencePoints(int points)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(I)V
      intermediary method_14228 Lnet/minecraft/class_3222;method_14228(I)V
      named setExperiencePoints Lnet/minecraft/server/network/ServerPlayerEntity;setExperiencePoints(I)V
    • setExperienceLevel

      public void setExperienceLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      official b Lakr;b(I)V
      intermediary method_14252 Lnet/minecraft/class_3222;method_14252(I)V
      named setExperienceLevel Lnet/minecraft/server/network/ServerPlayerEntity;setExperienceLevel(I)V
    • addExperienceLevels

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

      public void applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)
      Overrides:
      applyEnchantmentCosts in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lcjf;I)V
      intermediary method_7286 Lnet/minecraft/class_1657;method_7286(Lnet/minecraft/class_1799;I)V
      named applyEnchantmentCosts Lnet/minecraft/entity/player/PlayerEntity;applyEnchantmentCosts(Lnet/minecraft/item/ItemStack;I)V
    • onScreenHandlerOpened

      private void onScreenHandlerOpened(ScreenHandler screenHandler)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lcel;)V
      intermediary method_14235 Lnet/minecraft/class_3222;method_14235(Lnet/minecraft/class_1703;)V
      named onScreenHandlerOpened Lnet/minecraft/server/network/ServerPlayerEntity;onScreenHandlerOpened(Lnet/minecraft/screen/ScreenHandler;)V
    • onSpawn

      public void onSpawn()
      Mappings:
      Namespace Name Mixin selector
      official h Lakr;h()V
      intermediary method_34225 Lnet/minecraft/class_3222;method_34225()V
      named onSpawn Lnet/minecraft/server/network/ServerPlayerEntity;onSpawn()V
    • enterCombat

      public void enterCombat()
      Overrides:
      enterCombat in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official e_ Lbjg;e_()V
      intermediary method_6000 Lnet/minecraft/class_1309;method_6000()V
      named enterCombat Lnet/minecraft/entity/LivingEntity;enterCombat()V
    • endCombat

      public void endCombat()
      Overrides:
      endCombat in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official f_ Lbjg;f_()V
      intermediary method_6044 Lnet/minecraft/class_1309;method_6044()V
      named endCombat Lnet/minecraft/entity/LivingEntity;endCombat()V
    • onBlockCollision

      protected void onBlockCollision(BlockState state)
      Called when this entity's collision box intersects state.
      Overrides:
      onBlockCollision in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Ldfj;)V
      intermediary method_5622 Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)V
      named onBlockCollision Lnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)V
    • createCooldownManager

      protected ItemCooldownManager createCooldownManager()
      Overrides:
      createCooldownManager in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lcbu;k()Lcjb;
      intermediary method_7265 Lnet/minecraft/class_1657;method_7265()Lnet/minecraft/class_1796;
      named createCooldownManager Lnet/minecraft/entity/player/PlayerEntity;createCooldownManager()Lnet/minecraft/entity/player/ItemCooldownManager;
    • tick

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

      public void playerTick()
      Mappings:
      Namespace Name Mixin selector
      official m Lakr;m()V
      intermediary method_14226 Lnet/minecraft/class_3222;method_14226()V
      named playerTick Lnet/minecraft/server/network/ServerPlayerEntity;playerTick()V
    • onLanding

      public void onLanding()
      Called when the entity lands on a block.
      Overrides:
      onLanding in class Entity
      Mappings:
      Namespace Name Mixin selector
      official n Lbiq;n()V
      intermediary method_38785 Lnet/minecraft/class_1297;method_38785()V
      named onLanding Lnet/minecraft/entity/Entity;onLanding()V
    • tickFallStartPos

      public void tickFallStartPos()
      Mappings:
      Namespace Name Mixin selector
      official o Lakr;o()V
      intermediary method_38786 Lnet/minecraft/class_3222;method_38786()V
      named tickFallStartPos Lnet/minecraft/server/network/ServerPlayerEntity;tickFallStartPos()V
    • tickVehicleInLavaRiding

      public void tickVehicleInLavaRiding()
      Mappings:
      Namespace Name Mixin selector
      official p Lakr;p()V
      intermediary method_38787 Lnet/minecraft/class_3222;method_38787()V
      named tickVehicleInLavaRiding Lnet/minecraft/server/network/ServerPlayerEntity;tickVehicleInLavaRiding()V
    • updateScores

      private void updateScores(ScoreboardCriterion criterion, int score)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Leip;I)V
      intermediary method_14212 Lnet/minecraft/class_3222;method_14212(Lnet/minecraft/class_274;I)V
      named updateScores Lnet/minecraft/server/network/ServerPlayerEntity;updateScores(Lnet/minecraft/scoreboard/ScoreboardCriterion;I)V
    • onDeath

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

      private void forgiveMobAnger()
      Mappings:
      Namespace Name Mixin selector
      official gr Lakr;gr()V
      intermediary method_29779 Lnet/minecraft/class_3222;method_29779()V
      named forgiveMobAnger Lnet/minecraft/server/network/ServerPlayerEntity;forgiveMobAnger()V
    • updateKilledAdvancementCriterion

      public void updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource)
      Overrides:
      updateKilledAdvancementCriterion in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lbiq;ILbho;)V
      intermediary method_5716 Lnet/minecraft/class_1297;method_5716(Lnet/minecraft/class_1297;ILnet/minecraft/class_1282;)V
      named updateKilledAdvancementCriterion Lnet/minecraft/entity/Entity;updateKilledAdvancementCriterion(Lnet/minecraft/entity/Entity;ILnet/minecraft/entity/damage/DamageSource;)V
    • updateScoreboardScore

      private void updateScoreboardScore(String playerName, String team, ScoreboardCriterion[] criterions)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Ljava/lang/String;Ljava/lang/String;[Leip;)V
      intermediary method_14227 Lnet/minecraft/class_3222;method_14227(Ljava/lang/String;Ljava/lang/String;[Lnet/minecraft/class_274;)V
      named updateScoreboardScore Lnet/minecraft/server/network/ServerPlayerEntity;updateScoreboardScore(Ljava/lang/String;Ljava/lang/String;[Lnet/minecraft/scoreboard/ScoreboardCriterion;)V
    • 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 Lbiq;a(Lbho;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
    • shouldDamagePlayer

      public boolean shouldDamagePlayer(PlayerEntity player)
      Overrides:
      shouldDamagePlayer in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lcbu;)Z
      intermediary method_7256 Lnet/minecraft/class_1657;method_7256(Lnet/minecraft/class_1657;)Z
      named shouldDamagePlayer Lnet/minecraft/entity/player/PlayerEntity;shouldDamagePlayer(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • isPvpEnabled

      private boolean isPvpEnabled()
      Mappings:
      Namespace Name Mixin selector
      official gs Lakr;gs()Z
      intermediary method_14230 Lnet/minecraft/class_3222;method_14230()Z
      named isPvpEnabled Lnet/minecraft/server/network/ServerPlayerEntity;isPvpEnabled()Z
    • getTeleportTarget

      @Nullable protected @Nullable TeleportTarget getTeleportTarget(ServerWorld destination)
      Returns a TeleportTarget for the entity based on its current and destination worlds, plus any nether portals that may be present.
      Overrides:
      getTeleportTarget in class Entity
      Returns:
      a TeleportTarget for the entity based on its current and destination worlds, plus any nether portals that may be present
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lakq;)Lebj;
      intermediary method_30329 Lnet/minecraft/class_1297;method_30329(Lnet/minecraft/class_3218;)Lnet/minecraft/class_5454;
      named getTeleportTarget Lnet/minecraft/entity/Entity;getTeleportTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/TeleportTarget;
    • moveToWorld

      @Nullable public @Nullable Entity moveToWorld(ServerWorld destination)
      Moves this entity to another world.

      Note all entities except server player entities are completely recreated at the destination.

      Overrides:
      moveToWorld in class Entity
      Returns:
      the entity in the other world
      Mappings:
      Namespace Name Mixin selector
      official b Lbiq;b(Lakq;)Lbiq;
      intermediary method_5731 Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
      named moveToWorld Lnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
    • createEndSpawnPlatform

      private void createEndSpawnPlatform(ServerWorld world, BlockPos centerPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lakq;Lgw;)V
      intermediary method_30313 Lnet/minecraft/class_3222;method_30313(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
      named createEndSpawnPlatform Lnet/minecraft/server/network/ServerPlayerEntity;createEndSpawnPlatform(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
    • getPortalRect

      protected Optional<BlockLocating.Rectangle> getPortalRect(ServerWorld destWorld, BlockPos destPos, boolean destIsNether, WorldBorder worldBorder)
      Returns the portal rect at destPos.
      Overrides:
      getPortalRect in class Entity
      Returns:
      the portal rect at destPos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lakq;Lgw;ZLdha;)Ljava/util/Optional;
      intermediary method_30330 Lnet/minecraft/class_1297;method_30330(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;ZLnet/minecraft/class_2784;)Ljava/util/Optional;
      named getPortalRect Lnet/minecraft/entity/Entity;getPortalRect(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Ljava/util/Optional;
    • worldChanged

      private void worldChanged(ServerWorld origin)
      Mappings:
      Namespace Name Mixin selector
      official f Lakr;f(Lakq;)V
      intermediary method_18783 Lnet/minecraft/class_3222;method_18783(Lnet/minecraft/class_3218;)V
      named worldChanged Lnet/minecraft/server/network/ServerPlayerEntity;worldChanged(Lnet/minecraft/server/world/ServerWorld;)V
    • canBeSpectated

      public boolean canBeSpectated(ServerPlayerEntity spectator)
      Returns whether spectator can spectate this entity.

      Spectator players (other than themselves) cannot be spectated.

      Overrides:
      canBeSpectated in class Entity
      Returns:
      whether spectator can spectate this entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lakr;)Z
      intermediary method_5680 Lnet/minecraft/class_1297;method_5680(Lnet/minecraft/class_3222;)Z
      named canBeSpectated Lnet/minecraft/entity/Entity;canBeSpectated(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
    • sendPickup

      public void sendPickup(Entity item, int count)
      Overrides:
      sendPickup in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lbiq;I)V
      intermediary method_6103 Lnet/minecraft/class_1309;method_6103(Lnet/minecraft/class_1297;I)V
      named sendPickup Lnet/minecraft/entity/LivingEntity;sendPickup(Lnet/minecraft/entity/Entity;I)V
    • trySleep

      public com.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,Unit> trySleep(BlockPos pos)
      Tries to start sleeping on a block.
      Overrides:
      trySleep in class PlayerEntity
      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
      official a Lcbu;a(Lgw;)Lcom/mojang/datafixers/util/Either;
      intermediary method_7269 Lnet/minecraft/class_1657;method_7269(Lnet/minecraft/class_2338;)Lcom/mojang/datafixers/util/Either;
      named trySleep Lnet/minecraft/entity/player/PlayerEntity;trySleep(Lnet/minecraft/util/math/BlockPos;)Lcom/mojang/datafixers/util/Either;
    • sleep

      public void sleep(BlockPos pos)
      Overrides:
      sleep in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbjg;b(Lgw;)V
      intermediary method_18403 Lnet/minecraft/class_1309;method_18403(Lnet/minecraft/class_2338;)V
      named sleep Lnet/minecraft/entity/LivingEntity;sleep(Lnet/minecraft/util/math/BlockPos;)V
    • isBedTooFarAway

      private boolean isBedTooFarAway(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lgw;Lha;)Z
      intermediary method_26285 Lnet/minecraft/class_3222;method_26285(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
      named isBedTooFarAway Lnet/minecraft/server/network/ServerPlayerEntity;isBedTooFarAway(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • isBedTooFarAway

      private boolean isBedTooFarAway(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official i Lakr;i(Lgw;)Z
      intermediary method_26287 Lnet/minecraft/class_3222;method_26287(Lnet/minecraft/class_2338;)Z
      named isBedTooFarAway Lnet/minecraft/server/network/ServerPlayerEntity;isBedTooFarAway(Lnet/minecraft/util/math/BlockPos;)Z
    • isBedObstructed

      private boolean isBedObstructed(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lakr;b(Lgw;Lha;)Z
      intermediary method_26286 Lnet/minecraft/class_3222;method_26286(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
      named isBedObstructed Lnet/minecraft/server/network/ServerPlayerEntity;isBedObstructed(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • wakeUp

      public void wakeUp(boolean skipSleepTimer, boolean updateSleepingPlayers)
      Wakes this player up.
      Overrides:
      wakeUp in class PlayerEntity
      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
      official a Lcbu;a(ZZ)V
      intermediary method_7358 Lnet/minecraft/class_1657;method_7358(ZZ)V
      named wakeUp Lnet/minecraft/entity/player/PlayerEntity;wakeUp(ZZ)V
    • requestTeleportAndDismount

      public void requestTeleportAndDismount(double destX, double destY, double destZ)
      Requests the entity to teleport to the given position. If the entity is a player, this also dismounts the player.
      Overrides:
      requestTeleportAndDismount in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(DDD)V
      intermediary method_33567 Lnet/minecraft/class_1297;method_33567(DDD)V
      named requestTeleportAndDismount Lnet/minecraft/entity/Entity;requestTeleportAndDismount(DDD)V
    • isInvulnerableTo

      public boolean isInvulnerableTo(DamageSource damageSource)
      Returns whether the entity is invulnerable to damageSource.

      This can be overridden to make the entity invulnerable to some damages, but super.isInvulnerableTo() should be called in this case.

      Overrides:
      isInvulnerableTo in class PlayerEntity
      Returns:
      whether the entity is invulnerable to damageSource
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbiq;b(Lbho;)Z
      intermediary method_5679 Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Z
      named isInvulnerableTo Lnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
    • fall

      protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition)
      Called when the entity falls. Flying mobs should override this to do nothing.
      Overrides:
      fall in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(DZLdfj;Lgw;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
    • applyMovementEffects

      protected void applyMovementEffects(BlockPos pos)
      Overrides:
      applyMovementEffects in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbjg;c(Lgw;)V
      intermediary method_6126 Lnet/minecraft/class_1309;method_6126(Lnet/minecraft/class_2338;)V
      named applyMovementEffects Lnet/minecraft/entity/LivingEntity;applyMovementEffects(Lnet/minecraft/util/math/BlockPos;)V
    • handleFall

      public void handleFall(double xDifference, double yDifference, double zDifference, boolean onGround)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(DDDZ)V
      intermediary method_14207 Lnet/minecraft/class_3222;method_14207(DDDZ)V
      named handleFall Lnet/minecraft/server/network/ServerPlayerEntity;handleFall(DDDZ)V
    • openEditSignScreen

      public void openEditSignScreen(SignBlockEntity sign, boolean front)
      Overrides:
      openEditSignScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lded;Z)V
      intermediary method_7311 Lnet/minecraft/class_1657;method_7311(Lnet/minecraft/class_2625;Z)V
      named openEditSignScreen Lnet/minecraft/entity/player/PlayerEntity;openEditSignScreen(Lnet/minecraft/block/entity/SignBlockEntity;Z)V
    • incrementScreenHandlerSyncId

      private void incrementScreenHandlerSyncId()
      Mappings:
      Namespace Name Mixin selector
      official gt Lakr;gt()V
      intermediary method_14237 Lnet/minecraft/class_3222;method_14237()V
      named incrementScreenHandlerSyncId Lnet/minecraft/server/network/ServerPlayerEntity;incrementScreenHandlerSyncId()V
    • openHandledScreen

      public OptionalInt openHandledScreen(@Nullable @Nullable NamedScreenHandlerFactory factory)
      Overrides:
      openHandledScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lbhb;)Ljava/util/OptionalInt;
      intermediary method_17355 Lnet/minecraft/class_1657;method_17355(Lnet/minecraft/class_3908;)Ljava/util/OptionalInt;
      named openHandledScreen Lnet/minecraft/entity/player/PlayerEntity;openHandledScreen(Lnet/minecraft/screen/NamedScreenHandlerFactory;)Ljava/util/OptionalInt;
    • sendTradeOffers

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

      public void openHorseInventory(AbstractHorseEntity horse, Inventory inventory)
      Overrides:
      openHorseInventory in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lbwq;Lbgr;)V
      intermediary method_7291 Lnet/minecraft/class_1657;method_7291(Lnet/minecraft/class_1496;Lnet/minecraft/class_1263;)V
      named openHorseInventory Lnet/minecraft/entity/player/PlayerEntity;openHorseInventory(Lnet/minecraft/entity/passive/AbstractHorseEntity;Lnet/minecraft/inventory/Inventory;)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 Lcbu;a(Lcjf;Lbgx;)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
    • openCommandBlockScreen

      public void openCommandBlockScreen(CommandBlockBlockEntity commandBlock)
      Overrides:
      openCommandBlockScreen in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lddf;)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
    • closeHandledScreen

      public 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.

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

      public void onHandledScreenClosed()
      Runs closing tasks for the current screen handler and sets it to the PlayerEntity.playerScreenHandler.
      Overrides:
      onHandledScreenClosed in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lcbu;r()V
      intermediary method_14247 Lnet/minecraft/class_1657;method_14247()V
      named onHandledScreenClosed Lnet/minecraft/entity/player/PlayerEntity;onHandledScreenClosed()V
    • updateInput

      public void updateInput(float sidewaysSpeed, float forwardSpeed, boolean jumping, boolean sneaking)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(FFZZ)V
      intermediary method_14218 Lnet/minecraft/class_3222;method_14218(FFZZ)V
      named updateInput Lnet/minecraft/server/network/ServerPlayerEntity;updateInput(FFZZ)V
    • increaseStat

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

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

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

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

      public void unlockRecipes(Identifier[] ids)
      Overrides:
      unlockRecipes in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a([Laew;)V
      intermediary method_7335 Lnet/minecraft/class_1657;method_7335([Lnet/minecraft/class_2960;)V
      named unlockRecipes Lnet/minecraft/entity/player/PlayerEntity;unlockRecipes([Lnet/minecraft/util/Identifier;)V
    • lockRecipes

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

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

      public void onDisconnect()
      Mappings:
      Namespace Name Mixin selector
      official s Lakr;s()V
      intermediary method_14231 Lnet/minecraft/class_3222;method_14231()V
      named onDisconnect Lnet/minecraft/server/network/ServerPlayerEntity;onDisconnect()V
    • isDisconnected

      public boolean isDisconnected()
      Mappings:
      Namespace Name Mixin selector
      official t Lakr;t()Z
      intermediary method_14239 Lnet/minecraft/class_3222;method_14239()Z
      named isDisconnected Lnet/minecraft/server/network/ServerPlayerEntity;isDisconnected()Z
    • markHealthDirty

      public void markHealthDirty()
      Mappings:
      Namespace Name Mixin selector
      official u Lakr;u()V
      intermediary method_14217 Lnet/minecraft/class_3222;method_14217()V
      named markHealthDirty Lnet/minecraft/server/network/ServerPlayerEntity;markHealthDirty()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 Lcbu;a(Ltl;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
    • consumeItem

      protected void consumeItem()
      Overrides:
      consumeItem in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official ad_ Lbjg;ad_()V
      intermediary method_6040 Lnet/minecraft/class_1309;method_6040()V
      named consumeItem Lnet/minecraft/entity/LivingEntity;consumeItem()V
    • lookAt

      public void lookAt(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target)
      Changes this entity's pitch and yaw to look at target.
      Overrides:
      lookAt in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Led$a;Lehn;)V
      intermediary method_5702 Lnet/minecraft/class_1297;method_5702(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_243;)V
      named lookAt Lnet/minecraft/entity/Entity;lookAt(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/util/math/Vec3d;)V
    • lookAtEntity

      public void lookAtEntity(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Led$a;Lbiq;Led$a;)V
      intermediary method_14222 Lnet/minecraft/class_3222;method_14222(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)V
      named lookAtEntity Lnet/minecraft/server/network/ServerPlayerEntity;lookAtEntity(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)V
    • copyFrom

      public void copyFrom(ServerPlayerEntity oldPlayer, boolean alive)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lakr;Z)V
      intermediary method_14203 Lnet/minecraft/class_3222;method_14203(Lnet/minecraft/class_3222;Z)V
      named copyFrom Lnet/minecraft/server/network/ServerPlayerEntity;copyFrom(Lnet/minecraft/server/network/ServerPlayerEntity;Z)V
    • onStatusEffectApplied

      protected void onStatusEffectApplied(StatusEffectInstance effect, @Nullable @Nullable Entity source)
      Overrides:
      onStatusEffectApplied in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lbid;Lbiq;)V
      intermediary method_6020 Lnet/minecraft/class_1309;method_6020(Lnet/minecraft/class_1293;Lnet/minecraft/class_1297;)V
      named onStatusEffectApplied Lnet/minecraft/entity/LivingEntity;onStatusEffectApplied(Lnet/minecraft/entity/effect/StatusEffectInstance;Lnet/minecraft/entity/Entity;)V
    • onStatusEffectUpgraded

      protected void onStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, @Nullable @Nullable Entity source)
      Overrides:
      onStatusEffectUpgraded in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lbid;ZLbiq;)V
      intermediary method_6009 Lnet/minecraft/class_1309;method_6009(Lnet/minecraft/class_1293;ZLnet/minecraft/class_1297;)V
      named onStatusEffectUpgraded Lnet/minecraft/entity/LivingEntity;onStatusEffectUpgraded(Lnet/minecraft/entity/effect/StatusEffectInstance;ZLnet/minecraft/entity/Entity;)V
    • onStatusEffectRemoved

      protected void onStatusEffectRemoved(StatusEffectInstance effect)
      Overrides:
      onStatusEffectRemoved in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lbid;)V
      intermediary method_6129 Lnet/minecraft/class_1309;method_6129(Lnet/minecraft/class_1293;)V
      named onStatusEffectRemoved Lnet/minecraft/entity/LivingEntity;onStatusEffectRemoved(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
    • requestTeleport

      public void requestTeleport(double destX, double destY, double destZ)
      Requests the entity to teleport to the given position.

      For players, this sends the teleport packet. For other entities, this just sets the position of the entity and its passengers.

      Overrides:
      requestTeleport in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbiq;b(DDD)V
      intermediary method_5859 Lnet/minecraft/class_1297;method_5859(DDD)V
      named requestTeleport Lnet/minecraft/entity/Entity;requestTeleport(DDD)V
    • requestTeleportOffset

      public void requestTeleportOffset(double offsetX, double offsetY, double offsetZ)
      Requests the entity to teleport to the current position offset by the given amount.

      For players, this sends the teleport packet. For other entities, this just sets the position of the entity and its passengers.

      Overrides:
      requestTeleportOffset in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbiq;c(DDD)V
      intermediary method_45166 Lnet/minecraft/class_1297;method_45166(DDD)V
      named requestTeleportOffset Lnet/minecraft/entity/Entity;requestTeleportOffset(DDD)V
    • teleport

      public boolean teleport(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch)
      Teleports the entity to the given position. If world differs from the current world, it copies the entity and discards the current one.
      Overrides:
      teleport in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lakq;DDDLjava/util/Set;FF)Z
      intermediary method_48105 Lnet/minecraft/class_1297;method_48105(Lnet/minecraft/class_3218;DDDLjava/util/Set;FF)Z
      named teleport Lnet/minecraft/entity/Entity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FF)Z
    • refreshPositionAfterTeleport

      public void refreshPositionAfterTeleport(double x, double y, double z)
      Overrides:
      refreshPositionAfterTeleport in class Entity
      Mappings:
      Namespace Name Mixin selector
      official d Lbiq;d(DDD)V
      intermediary method_24203 Lnet/minecraft/class_1297;method_24203(DDD)V
      named refreshPositionAfterTeleport Lnet/minecraft/entity/Entity;refreshPositionAfterTeleport(DDD)V
    • addCritParticles

      public void addCritParticles(Entity target)
      Overrides:
      addCritParticles in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lbiq;)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 Lcbu;b(Lbiq;)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
    • sendAbilitiesUpdate

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

      public ServerWorld getServerWorld()
      Mappings:
      Namespace Name Mixin selector
      official x Lakr;x()Lakq;
      intermediary method_51469 Lnet/minecraft/class_3222;method_51469()Lnet/minecraft/class_3218;
      named getServerWorld Lnet/minecraft/server/network/ServerPlayerEntity;getServerWorld()Lnet/minecraft/server/world/ServerWorld;
    • changeGameMode

      public boolean changeGameMode(GameMode gameMode)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lcps;)Z
      intermediary method_7336 Lnet/minecraft/class_3222;method_7336(Lnet/minecraft/class_1934;)Z
      named changeGameMode Lnet/minecraft/server/network/ServerPlayerEntity;changeGameMode(Lnet/minecraft/world/GameMode;)Z
    • isSpectator

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

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

      Specified by:
      isSpectator in class PlayerEntity
      Returns:
      whether the entity is a spectator
      Mappings:
      Namespace Name Mixin selector
      official M_ Lbiq;M_()Z
      intermediary method_7325 Lnet/minecraft/class_1297;method_7325()Z
      named isSpectator Lnet/minecraft/entity/Entity;isSpectator()Z
    • isCreative

      public boolean isCreative()
      Returns whether this player is in creative mode.
      Specified by:
      isCreative in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official f Lcbu;f()Z
      intermediary method_7337 Lnet/minecraft/class_1657;method_7337()Z
      named isCreative Lnet/minecraft/entity/player/PlayerEntity;isCreative()Z
    • 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 Lds;a(Ltl;)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
    • sendMessageToClient

      public void sendMessageToClient(Text message, boolean overlay)
      Mappings:
      Namespace Name Mixin selector
      official b Lakr;b(Ltl;Z)V
      intermediary method_43502 Lnet/minecraft/class_3222;method_43502(Lnet/minecraft/class_2561;Z)V
      named sendMessageToClient Lnet/minecraft/server/network/ServerPlayerEntity;sendMessageToClient(Lnet/minecraft/text/Text;Z)V
    • sendChatMessage

      public void sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params)
      Sends a chat message to the player.

      Chat messages have signatures. It is possible to use a bogus signature - such as SignedMessage.ofUnsigned(java.lang.String) - to send a chat message; however if the signature is invalid (e.g. because the text's content differs from the one sent by the client, or because the passed signature is invalid) the client will show a warning and can discard it depending on the client's options.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Ltz;ZLth$a;)V
      intermediary method_43505 Lnet/minecraft/class_3222;method_43505(Lnet/minecraft/class_7604;ZLnet/minecraft/class_2556$class_7602;)V
      named sendChatMessage Lnet/minecraft/server/network/ServerPlayerEntity;sendChatMessage(Lnet/minecraft/network/message/SentMessage;ZLnet/minecraft/network/message/MessageType$Parameters;)V
    • getIp

      public String getIp()
      Mappings:
      Namespace Name Mixin selector
      official y Lakr;y()Ljava/lang/String;
      intermediary method_14209 Lnet/minecraft/class_3222;method_14209()Ljava/lang/String;
      named getIp Lnet/minecraft/server/network/ServerPlayerEntity;getIp()Ljava/lang/String;
    • setClientOptions

      public void setClientOptions(SyncedClientOptions clientOptions)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lakf;)V
      intermediary method_14213 Lnet/minecraft/class_3222;method_14213(Lnet/minecraft/class_8791;)V
      named setClientOptions Lnet/minecraft/server/network/ServerPlayerEntity;setClientOptions(Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)V
    • getClientOptions

      public SyncedClientOptions getClientOptions()
      Mappings:
      Namespace Name Mixin selector
      official z Lakr;z()Lakf;
      intermediary method_53823 Lnet/minecraft/class_3222;method_53823()Lnet/minecraft/class_8791;
      named getClientOptions Lnet/minecraft/server/network/ServerPlayerEntity;getClientOptions()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
    • areClientChatColorsEnabled

      public boolean areClientChatColorsEnabled()
      Mappings:
      Namespace Name Mixin selector
      official A Lakr;A()Z
      intermediary method_34879 Lnet/minecraft/class_3222;method_34879()Z
      named areClientChatColorsEnabled Lnet/minecraft/server/network/ServerPlayerEntity;areClientChatColorsEnabled()Z
    • getClientChatVisibility

      public ChatVisibility getClientChatVisibility()
      Mappings:
      Namespace Name Mixin selector
      official B Lakr;B()Lcbs;
      intermediary method_14238 Lnet/minecraft/class_3222;method_14238()Lnet/minecraft/class_1659;
      named getClientChatVisibility Lnet/minecraft/server/network/ServerPlayerEntity;getClientChatVisibility()Lnet/minecraft/network/message/ChatVisibility;
    • acceptsMessage

      private boolean acceptsMessage(boolean overlay)
      Mappings:
      Namespace Name Mixin selector
      official v Lakr;v(Z)Z
      intermediary method_44707 Lnet/minecraft/class_3222;method_44707(Z)Z
      named acceptsMessage Lnet/minecraft/server/network/ServerPlayerEntity;acceptsMessage(Z)Z
    • acceptsChatMessage

      private boolean acceptsChatMessage()
      Mappings:
      Namespace Name Mixin selector
      official gu Lakr;gu()Z
      intermediary method_44706 Lnet/minecraft/class_3222;method_44706()Z
      named acceptsChatMessage Lnet/minecraft/server/network/ServerPlayerEntity;acceptsChatMessage()Z
    • getViewDistance

      public int getViewDistance()
      Mappings:
      Namespace Name Mixin selector
      official C Lakr;C()I
      intermediary method_52371 Lnet/minecraft/class_3222;method_52371()I
      named getViewDistance Lnet/minecraft/server/network/ServerPlayerEntity;getViewDistance()I
    • sendServerMetadata

      public void sendServerMetadata(ServerMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Ladz;)V
      intermediary method_43930 Lnet/minecraft/class_3222;method_43930(Lnet/minecraft/class_2926;)V
      named sendServerMetadata Lnet/minecraft/server/network/ServerPlayerEntity;sendServerMetadata(Lnet/minecraft/server/ServerMetadata;)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 D Lbiq;D()I
      intermediary method_5691 Lnet/minecraft/class_1297;method_5691()I
      named getPermissionLevel Lnet/minecraft/entity/Entity;getPermissionLevel()I
    • updateLastActionTime

      public void updateLastActionTime()
      Mappings:
      Namespace Name Mixin selector
      official E Lakr;E()V
      intermediary method_14234 Lnet/minecraft/class_3222;method_14234()V
      named updateLastActionTime Lnet/minecraft/server/network/ServerPlayerEntity;updateLastActionTime()V
    • getStatHandler

      public ServerStatHandler getStatHandler()
      Mappings:
      Namespace Name Mixin selector
      official F Lakr;F()Lapj;
      intermediary method_14248 Lnet/minecraft/class_3222;method_14248()Lnet/minecraft/class_3442;
      named getStatHandler Lnet/minecraft/server/network/ServerPlayerEntity;getStatHandler()Lnet/minecraft/stat/ServerStatHandler;
    • getRecipeBook

      public ServerRecipeBook getRecipeBook()
      Mappings:
      Namespace Name Mixin selector
      official G Lakr;G()Lapi;
      intermediary method_14253 Lnet/minecraft/class_3222;method_14253()Lnet/minecraft/class_3441;
      named getRecipeBook Lnet/minecraft/server/network/ServerPlayerEntity;getRecipeBook()Lnet/minecraft/server/network/ServerRecipeBook;
    • updatePotionVisibility

      protected void updatePotionVisibility()
      Overrides:
      updatePotionVisibility in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official H Lbjg;H()V
      intermediary method_6027 Lnet/minecraft/class_1309;method_6027()V
      named updatePotionVisibility Lnet/minecraft/entity/LivingEntity;updatePotionVisibility()V
    • getCameraEntity

      public Entity getCameraEntity()
      Mappings:
      Namespace Name Mixin selector
      official I Lakr;I()Lbiq;
      intermediary method_14242 Lnet/minecraft/class_3222;method_14242()Lnet/minecraft/class_1297;
      named getCameraEntity Lnet/minecraft/server/network/ServerPlayerEntity;getCameraEntity()Lnet/minecraft/entity/Entity;
    • setCameraEntity

      public void setCameraEntity(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official c Lakr;c(Lbiq;)V
      intermediary method_14224 Lnet/minecraft/class_3222;method_14224(Lnet/minecraft/class_1297;)V
      named setCameraEntity Lnet/minecraft/server/network/ServerPlayerEntity;setCameraEntity(Lnet/minecraft/entity/Entity;)V
    • tickPortalCooldown

      protected void tickPortalCooldown()
      Overrides:
      tickPortalCooldown in class Entity
      Mappings:
      Namespace Name Mixin selector
      official J Lbiq;J()V
      intermediary method_5760 Lnet/minecraft/class_1297;method_5760()V
      named tickPortalCooldown Lnet/minecraft/entity/Entity;tickPortalCooldown()V
    • attack

      public void attack(Entity target)
      Overrides:
      attack in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lcbu;d(Lbiq;)V
      intermediary method_7324 Lnet/minecraft/class_1657;method_7324(Lnet/minecraft/class_1297;)V
      named attack Lnet/minecraft/entity/player/PlayerEntity;attack(Lnet/minecraft/entity/Entity;)V
    • getLastActionTime

      public long getLastActionTime()
      Mappings:
      Namespace Name Mixin selector
      official K Lakr;K()J
      intermediary method_14219 Lnet/minecraft/class_3222;method_14219()J
      named getLastActionTime Lnet/minecraft/server/network/ServerPlayerEntity;getLastActionTime()J
    • getPlayerListName

      @Nullable public @Nullable Text getPlayerListName()
      Mappings:
      Namespace Name Mixin selector
      official L Lakr;L()Ltl;
      intermediary method_14206 Lnet/minecraft/class_3222;method_14206()Lnet/minecraft/class_2561;
      named getPlayerListName Lnet/minecraft/server/network/ServerPlayerEntity;getPlayerListName()Lnet/minecraft/text/Text;
    • swingHand

      public void swingHand(Hand hand)
      Overrides:
      swingHand in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lbgx;)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
    • isInTeleportationState

      public boolean isInTeleportationState()
      Mappings:
      Namespace Name Mixin selector
      official M Lakr;M()Z
      intermediary method_14208 Lnet/minecraft/class_3222;method_14208()Z
      named isInTeleportationState Lnet/minecraft/server/network/ServerPlayerEntity;isInTeleportationState()Z
    • onTeleportationDone

      public void onTeleportationDone()
      Mappings:
      Namespace Name Mixin selector
      official N Lakr;N()V
      intermediary method_14240 Lnet/minecraft/class_3222;method_14240()V
      named onTeleportationDone Lnet/minecraft/server/network/ServerPlayerEntity;onTeleportationDone()V
    • getAdvancementTracker

      public PlayerAdvancementTracker getAdvancementTracker()
      Mappings:
      Namespace Name Mixin selector
      official O Lakr;O()Lafe;
      intermediary method_14236 Lnet/minecraft/class_3222;method_14236()Lnet/minecraft/class_2985;
      named getAdvancementTracker Lnet/minecraft/server/network/ServerPlayerEntity;getAdvancementTracker()Lnet/minecraft/advancement/PlayerAdvancementTracker;
    • teleport

      public void teleport(ServerWorld targetWorld, double x, double y, double z, float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lakq;DDDFF)V
      intermediary method_14251 Lnet/minecraft/class_3222;method_14251(Lnet/minecraft/class_3218;DDDFF)V
      named teleport Lnet/minecraft/server/network/ServerPlayerEntity;teleport(Lnet/minecraft/server/world/ServerWorld;DDDFF)V
    • getSpawnPointPosition

      @Nullable public @Nullable BlockPos getSpawnPointPosition()
      Mappings:
      Namespace Name Mixin selector
      official P Lakr;P()Lgw;
      intermediary method_26280 Lnet/minecraft/class_3222;method_26280()Lnet/minecraft/class_2338;
      named getSpawnPointPosition Lnet/minecraft/server/network/ServerPlayerEntity;getSpawnPointPosition()Lnet/minecraft/util/math/BlockPos;
    • getSpawnAngle

      public float getSpawnAngle()
      Mappings:
      Namespace Name Mixin selector
      official Q Lakr;Q()F
      intermediary method_30631 Lnet/minecraft/class_3222;method_30631()F
      named getSpawnAngle Lnet/minecraft/server/network/ServerPlayerEntity;getSpawnAngle()F
    • getSpawnPointDimension

      public RegistryKey<World> getSpawnPointDimension()
      Mappings:
      Namespace Name Mixin selector
      official R Lakr;R()Laev;
      intermediary method_26281 Lnet/minecraft/class_3222;method_26281()Lnet/minecraft/class_5321;
      named getSpawnPointDimension Lnet/minecraft/server/network/ServerPlayerEntity;getSpawnPointDimension()Lnet/minecraft/registry/RegistryKey;
    • isSpawnForced

      public boolean isSpawnForced()
      Mappings:
      Namespace Name Mixin selector
      official S Lakr;S()Z
      intermediary method_26282 Lnet/minecraft/class_3222;method_26282()Z
      named isSpawnForced Lnet/minecraft/server/network/ServerPlayerEntity;isSpawnForced()Z
    • setSpawnPoint

      public void setSpawnPoint(RegistryKey<World> dimension, @Nullable @Nullable BlockPos pos, float angle, boolean forced, boolean sendMessage)
      Sets the player's spawn point.
      Parameters:
      dimension - the new spawn dimension
      pos - the new spawn point, or null if resetting to the world spawn
      forced - whether the new spawn point is forced
      sendMessage - if true, a game message about the spawn point change will be sent
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Laev;Lgw;FZZ)V
      intermediary method_26284 Lnet/minecraft/class_3222;method_26284(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;FZZ)V
      named setSpawnPoint Lnet/minecraft/server/network/ServerPlayerEntity;setSpawnPoint(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;FZZ)V
    • getWatchedSection

      public ChunkSectionPos getWatchedSection()
      Returns the chunk section position the player's client is currently watching from. This may differ from the chunk section the player is currently in.

      This is only for chunk loading (watching) purpose. This is updated together with entity tracking, but they are separate mechanisms.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official T Lakr;T()Lhw;
      intermediary method_14232 Lnet/minecraft/class_3222;method_14232()Lnet/minecraft/class_4076;
      named getWatchedSection Lnet/minecraft/server/network/ServerPlayerEntity;getWatchedSection()Lnet/minecraft/util/math/ChunkSectionPos;
    • setWatchedSection

      public void setWatchedSection(ChunkSectionPos section)
      Sets the chunk section position the player's client is currently watching from. This is usually called when the player moves to a new chunk section.
      Parameters:
      section - the updated section position
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lhw;)V
      intermediary method_17668 Lnet/minecraft/class_3222;method_17668(Lnet/minecraft/class_4076;)V
      named setWatchedSection Lnet/minecraft/server/network/ServerPlayerEntity;setWatchedSection(Lnet/minecraft/util/math/ChunkSectionPos;)V
    • getChunkFilter

      public ChunkFilter getChunkFilter()
      Mappings:
      Namespace Name Mixin selector
      official U Lakr;U()Lake;
      intermediary method_52372 Lnet/minecraft/class_3222;method_52372()Lnet/minecraft/class_8603;
      named getChunkFilter Lnet/minecraft/server/network/ServerPlayerEntity;getChunkFilter()Lnet/minecraft/server/network/ChunkFilter;
    • setChunkFilter

      public void setChunkFilter(ChunkFilter chunkFilter)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lake;)V
      intermediary method_52373 Lnet/minecraft/class_3222;method_52373(Lnet/minecraft/class_8603;)V
      named setChunkFilter Lnet/minecraft/server/network/ServerPlayerEntity;setChunkFilter(Lnet/minecraft/server/network/ChunkFilter;)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 Lcbu;a(Lapc;Lape;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
    • dropItem

      public ItemEntity dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)
      Overrides:
      dropItem in class PlayerEntity
      Parameters:
      throwRandomly - if true, the item will be thrown in a random direction from the entity regardless of which direction the entity is facing
      Mappings:
      Namespace Name Mixin selector
      official a Lcbu;a(Lcjf;ZZ)Lbyn;
      intermediary method_7329 Lnet/minecraft/class_1657;method_7329(Lnet/minecraft/class_1799;ZZ)Lnet/minecraft/class_1542;
      named dropItem Lnet/minecraft/entity/player/PlayerEntity;dropItem(Lnet/minecraft/item/ItemStack;ZZ)Lnet/minecraft/entity/ItemEntity;
    • getTextStream

      public TextStream getTextStream()
      Mappings:
      Namespace Name Mixin selector
      official V Lakr;V()Lalu;
      intermediary method_31273 Lnet/minecraft/class_3222;method_31273()Lnet/minecraft/class_5513;
      named getTextStream Lnet/minecraft/server/network/ServerPlayerEntity;getTextStream()Lnet/minecraft/server/filter/TextStream;
    • setServerWorld

      public void setServerWorld(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official c Lakr;c(Lakq;)V
      intermediary method_51468 Lnet/minecraft/class_3222;method_51468(Lnet/minecraft/class_3218;)V
      named setServerWorld Lnet/minecraft/server/network/ServerPlayerEntity;setServerWorld(Lnet/minecraft/server/world/ServerWorld;)V
    • gameModeFromNbt

      @Nullable private static @Nullable GameMode gameModeFromNbt(@Nullable @Nullable NbtCompound nbt, String key)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lqw;Ljava/lang/String;)Lcps;
      intermediary method_32745 Lnet/minecraft/class_3222;method_32745(Lnet/minecraft/class_2487;Ljava/lang/String;)Lnet/minecraft/class_1934;
      named gameModeFromNbt Lnet/minecraft/server/network/ServerPlayerEntity;gameModeFromNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Lnet/minecraft/world/GameMode;
    • getServerGameMode

      private GameMode getServerGameMode(@Nullable @Nullable GameMode backupGameMode)
      Returns the server game mode the player should be set to, namely the forced game mode.

      If the forced game mode is not set, returns the backupGameMode if not null, or the server's default game mode otherwise.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lakr;b(Lcps;)Lcps;
      intermediary method_32746 Lnet/minecraft/class_3222;method_32746(Lnet/minecraft/class_1934;)Lnet/minecraft/class_1934;
      named getServerGameMode Lnet/minecraft/server/network/ServerPlayerEntity;getServerGameMode(Lnet/minecraft/world/GameMode;)Lnet/minecraft/world/GameMode;
    • setGameMode

      public void setGameMode(@Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c Lakr;c(Lqw;)V
      intermediary method_32748 Lnet/minecraft/class_3222;method_32748(Lnet/minecraft/class_2487;)V
      named setGameMode Lnet/minecraft/server/network/ServerPlayerEntity;setGameMode(Lnet/minecraft/nbt/NbtCompound;)V
    • writeGameModeNbt

      private void writeGameModeNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official k Lakr;k(Lqw;)V
      intermediary method_32749 Lnet/minecraft/class_3222;method_32749(Lnet/minecraft/class_2487;)V
      named writeGameModeNbt Lnet/minecraft/server/network/ServerPlayerEntity;writeGameModeNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • shouldFilterText

      public boolean shouldFilterText()
      Overrides:
      shouldFilterText in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official W Lcbu;W()Z
      intermediary method_33793 Lnet/minecraft/class_1657;method_33793()Z
      named shouldFilterText Lnet/minecraft/entity/player/PlayerEntity;shouldFilterText()Z
    • shouldFilterMessagesSentTo

      public boolean shouldFilterMessagesSentTo(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official b Lakr;b(Lakr;)Z
      intermediary method_33795 Lnet/minecraft/class_3222;method_33795(Lnet/minecraft/class_3222;)Z
      named shouldFilterMessagesSentTo Lnet/minecraft/server/network/ServerPlayerEntity;shouldFilterMessagesSentTo(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
    • canModifyAt

      public boolean canModifyAt(World world, BlockPos pos)
      Returns whether the entity can modify the world at pos.

      This returns true for most entities. Players check World.canPlayerModifyAt(net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.BlockPos) to prevent them from modifying entities in the spawn protection or outside the world border. ProjectileEntity delegates it to the owner if the owner is a player; if the owner is a non-player entity, this returns the value of GameRules.DO_MOB_GRIEFING, and ownerless projectiles are always allowed to modify the world.

      Overrides:
      canModifyAt in class Entity
      Returns:
      whether the entity can modify the world at pos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbiq;a(Lcpv;Lgw;)Z
      intermediary method_36971 Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
      named canModifyAt Lnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • tickItemStackUsage

      protected void tickItemStackUsage(ItemStack stack)
      Overrides:
      tickItemStackUsage in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lcjf;)V
      intermediary method_37119 Lnet/minecraft/class_1309;method_37119(Lnet/minecraft/class_1799;)V
      named tickItemStackUsage Lnet/minecraft/entity/LivingEntity;tickItemStackUsage(Lnet/minecraft/item/ItemStack;)V
    • dropSelectedItem

      public boolean dropSelectedItem(boolean entireStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Z)Z
      intermediary method_37413 Lnet/minecraft/class_3222;method_37413(Z)Z
      named dropSelectedItem Lnet/minecraft/server/network/ServerPlayerEntity;dropSelectedItem(Z)Z
    • allowsServerListing

      public boolean allowsServerListing()
      Mappings:
      Namespace Name Mixin selector
      official X Lakr;X()Z
      intermediary method_39426 Lnet/minecraft/class_3222;method_39426()Z
      named allowsServerListing Lnet/minecraft/server/network/ServerPlayerEntity;allowsServerListing()Z
    • getSculkShriekerWarningManager

      public Optional<SculkShriekerWarningManager> getSculkShriekerWarningManager()
      Overrides:
      getSculkShriekerWarningManager in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official Y Lcbu;Y()Ljava/util/Optional;
      intermediary method_42272 Lnet/minecraft/class_1657;method_42272()Ljava/util/Optional;
      named getSculkShriekerWarningManager Lnet/minecraft/entity/player/PlayerEntity;getSculkShriekerWarningManager()Ljava/util/Optional;
    • triggerItemPickedUpByEntityCriteria

      public void triggerItemPickedUpByEntityCriteria(ItemEntity item)
      Called to trigger advancement criteria when an entity picks up an item thrown by a player.
      Overrides:
      triggerItemPickedUpByEntityCriteria in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(Lbyn;)V
      intermediary method_29499 Lnet/minecraft/class_1309;method_29499(Lnet/minecraft/class_1542;)V
      named triggerItemPickedUpByEntityCriteria Lnet/minecraft/entity/LivingEntity;triggerItemPickedUpByEntityCriteria(Lnet/minecraft/entity/ItemEntity;)V
    • setSession

      public void setSession(PublicPlayerSession session)
      Mappings:
      Namespace Name Mixin selector
      official a Lakr;a(Lub;)V
      intermediary method_46364 Lnet/minecraft/class_3222;method_46364(Lnet/minecraft/class_7822;)V
      named setSession Lnet/minecraft/server/network/ServerPlayerEntity;setSession(Lnet/minecraft/network/encryption/PublicPlayerSession;)V
    • getSession

      Mappings:
      Namespace Name Mixin selector
      official Z Lakr;Z()Lub;
      intermediary method_45163 Lnet/minecraft/class_3222;method_45163()Lnet/minecraft/class_7822;
      named getSession Lnet/minecraft/server/network/ServerPlayerEntity;getSession()Lnet/minecraft/network/encryption/PublicPlayerSession;
    • tiltScreen

      public void tiltScreen(double deltaX, double deltaZ)
      Overrides:
      tiltScreen in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbjg;a(DD)V
      intermediary method_48761 Lnet/minecraft/class_1309;method_48761(DD)V
      named tiltScreen Lnet/minecraft/entity/LivingEntity;tiltScreen(DD)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 Lbiq;a(Lbiq;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
    • stopRiding

      public void stopRiding()
      Stops riding the vehicle if present.

      For example, if player is riding on a horse, player.stopRiding() will dismount that player from the horse.

      Overrides:
      stopRiding in class LivingEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official aa Lbiq;aa()V
      intermediary method_5848 Lnet/minecraft/class_1297;method_5848()V
      named stopRiding Lnet/minecraft/entity/Entity;stopRiding()V
    • createCommonPlayerSpawnInfo

      public CommonPlayerSpawnInfo createCommonPlayerSpawnInfo(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official d Lakr;d(Lakq;)Laaz;
      intermediary method_52374 Lnet/minecraft/class_3222;method_52374(Lnet/minecraft/class_3218;)Lnet/minecraft/class_8589;
      named createCommonPlayerSpawnInfo Lnet/minecraft/server/network/ServerPlayerEntity;createCommonPlayerSpawnInfo(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/network/packet/s2c/play/CommonPlayerSpawnInfo;