net.minecraft.client.network

public class ClientPlayerEntity

extends AbstractClientPlayerEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Attackable, ServerWaypoint, Waypoint, ContainerUser, ClientPlayerLikeEntity

net.minecraft.client.player.LocalPlayer
net.minecraft.class_746
net.minecraft.client.network.ClientPlayerEntity

Field summary

Modifier and TypeField
public static final org.slf4j.Logger
LOGGER
field_39078
LOGGER
private static final int
POSITION_REMINDER_INTERVAL
field_32671
field_32671
private static final int
WATER_VISION_MAX_TIME
field_32672
field_32672
private static final int
WATER_VISION_QUICK_TIME
field_32673
field_32673
private static final float
WATER_VISION_QUICK_PERCENT
field_32674
field_32674
private static final double
SUFFOCATING_COLLISION_CHECK_SCALE
field_32675
field_32675
private static final double
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
field_36194
MAX_SOFT_COLLISION_RADIANS
public final ClientPlayNetworkHandler
connection
field_3944
networkHandler
private final StatHandler
stats
field_3928
statHandler
private final ClientRecipeBook
recipeBook
field_3930
recipeBook
private final Cooldown
dropSpamThrottler
field_54391
itemDropCooldown
private final List<ClientPlayerTickable>
ambientSoundHandlers
field_3933
tickables
private PermissionPredicate
permissions
field_63569
permissions
private double
xLast
field_3926
lastXClient
private double
yLast
field_3940
lastYClient
private double
zLast
field_3924
lastZClient
private float
yRotLast
field_3941
lastYawClient
private float
xRotLast
field_3925
lastPitchClient
private boolean
lastOnGround
field_3920
lastOnGround
private boolean
lastHorizontalCollision
field_53040
lastHorizontalCollision
private boolean
crouching
field_23093
inSneakingPose
private boolean
wasSprinting
field_3919
lastSprinting
private int
positionReminder
field_3923
ticksSinceLastPositionPacketSent
private boolean
flashOnSetHealth
field_3918
healthInitialized
public Input
input
field_3913
input
private PlayerInput
lastSentInput
field_54156
lastPlayerInput
protected final MinecraftClient
minecraft
field_3937
client
protected int
sprintTriggerTime
field_3935
ticksLeftToDoubleTapSprint
private static final int
EXPERIENCE_DISPLAY_UNREADY_TO_SET
field_63570
field_63570
private static final int
EXPERIENCE_DISPLAY_READY_TO_SET
field_63571
field_63571
public int
experienceDisplayStartTick
field_59964
experienceBarDisplayStartTime
public float
yBob
field_3932
renderYaw
public float
xBob
field_3916
renderPitch
public float
yBobO
field_3931
lastRenderYaw
public float
xBobO
field_3914
lastRenderPitch
private int
jumpRidingTicks
field_3938
mountJumpTicks
private float
jumpRidingScale
field_3922
mountJumpStrength
public float
portalEffectIntensity
field_44911
nauseaIntensity
public float
oPortalEffectIntensity
field_44912
lastNauseaIntensity
private boolean
startedUsingItem
field_3915
usingItem
private Hand
usingItemHand
field_3945
activeHand
private boolean
handsBusy
field_3942
riding
private boolean
autoJumpEnabled
field_3927
autoJumpEnabled
private int
autoJumpTime
field_3934
ticksToNextAutoJump
private boolean
wasFallFlying
field_3939
falling
private int
waterVisionTime
field_3917
underwaterVisibilityTicks
private boolean
showDeathScreen
field_20663
showsDeathScreen
private boolean
doLimitedCrafting
field_46188
limitedCraftingEnabled

Constructor summary

ModifierConstructor
public (MinecraftClient client, ClientWorld world, ClientPlayNetworkHandler networkHandler, StatHandler stats, ClientRecipeBook recipeBook, PlayerInput lastPlayerInput, boolean lastSprinting)

Method summary

Modifier and TypeMethod
public void
heal(float heal)
method_6025(float arg0)
heal(float arg0)
public boolean
startRiding(Entity entity, boolean force, boolean sendEventAndTriggers)
method_5873(class_1297 arg0, boolean arg1, boolean arg2)
startRiding(Entity arg0, boolean arg1, boolean arg2)
public void
removeVehicle()
method_29239()
dismountVehicle()
public float
getViewXRot(float a)
method_5695(float arg0)
getPitch(float arg0)
public float
getViewYRot(float a)
method_5705(float arg0)
getYaw(float arg0)
public void
tick()
method_5773()
tick()
public float
getCurrentMood()
method_26269()
getMoodPercentage()
private void
sendPosition()
method_3136()
sendMovementPackets()
private void
sendIsSprintingIfNeeded()
method_46742()
sendSprintingPacket()
public boolean
drop(boolean all)
method_7290(boolean arg0)
dropSelectedItem(boolean entireStack)
public void
swing(InteractionHand hand)
method_6104(class_1268 arg0)
swingHand(Hand arg0)
public void
respawn()
method_7331()
requestRespawn()
public void
closeContainer()
method_7346()
closeHandledScreen()
public void
clientSideCloseContainer()
method_3137()
closeScreen()
public void
hurtTo(float newHealth)
method_3138(float arg0)
updateHealth(float health)
public void
onUpdateAbilities()
method_7355()
sendAbilitiesUpdate()
public void
setReducedDebugInfo(boolean reducedDebugInfo)
method_7268(boolean arg0)
setReducedDebugInfo(boolean arg0)
public boolean
isLocalPlayer()
method_7340()
isMainPlayer()
public boolean
isSuppressingSlidingDownLadder()
method_21754()
isHoldingOntoLadder()
public boolean
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
protected void
sendRidingJump()
method_3133()
startRidingJump()
public void
sendOpenInventory()
method_3132()
openRidingInventory()
public StatHandler
getStats()
method_3143()
getStatHandler()
public ClientRecipeBook
getRecipeBook()
method_3130()
getRecipeBook()
public void
removeRecipeHighlight(RecipeDisplayId recipe)
method_3141(class_10298 arg0)
onRecipeDisplayed(NetworkRecipeId recipeId)
public PermissionPredicate
permissions()
method_75004()
getPermissions()
public void
setPermissions(PermissionSet permissions)
method_75411(class_12096 arg0)
setPermissions(PermissionPredicate permissions)
public void
displayClientMessage(Component component, boolean overlayMessage)
method_7353(class_2561 arg0, boolean arg1)
sendMessage(Text arg0, boolean arg1)
private void
moveTowardsClosestSpace(double x, double z)
method_30673(double arg0, double arg1)
pushOutOfBlocks(double x, double z)
private boolean
suffocatesAt(BlockPos pos)
method_30674(class_2338 arg0)
wouldCollideAt(BlockPos pos)
public void
setExperienceValues(float experienceProgress, int totalExp, int experienceLevel)
method_3145(float arg0, int arg1, int arg2)
setExperience(float progress, int total, int level)
private void
setExperienceDisplayStartTickToTickCount()
method_75408()
updateExperienceBarDisplayStartTime()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public void
setShowDeathScreen(boolean show)
method_22420(boolean arg0)
setShowsDeathScreen(boolean showsDeathScreen)
public boolean
shouldShowDeathScreen()
method_22419()
showsDeathScreen()
public void
setDoLimitedCrafting(boolean value)
method_53848(boolean arg0)
setLimitedCraftingEnabled(boolean limitedCraftingEnabled)
public boolean
getDoLimitedCrafting()
method_53847()
isLimitedCraftingEnabled()
public void
playSound(SoundEvent sound, float volume, float pitch)
method_5783(class_3414 arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
public void
startUsingItem(InteractionHand hand)
method_6019(class_1268 arg0)
setCurrentHand(Hand arg0)
public boolean
isUsingItem()
method_6115()
isUsingItem()
private boolean
isSlowDueToUsingItem()
method_75409()
isBlockedFromSprinting()
private float
itemUseSpeedMultiplier()
method_75410()
getActiveItemSpeedMultiplier()
public void
stopUsingItem()
method_6021()
clearActiveItem()
public Hand
getUsedItemHand()
method_6058()
getActiveHand()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public JumpingMount
jumpableVehicle()
method_45773()
getJumpingMount()
public float
getJumpRidingScale()
method_3151()
getMountJumpStrength()
public boolean
isTextFilteringEnabled()
method_33793()
shouldFilterText()
public void
openTextEdit(SignBlockEntity sign, boolean isFrontText)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
public void
openMinecartCommandBlock(MinecartCommandBlock commandBlock)
method_7257(class_1697 arg0)
openCommandBlockMinecartScreen(CommandBlockMinecartEntity arg0)
public void
openCommandBlock(CommandBlockEntity commandBlock)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
public void
openStructureBlock(StructureBlockEntity structureBlock)
method_7303(class_2633 arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
public void
openTestBlock(TestBlockEntity testBlock)
method_66695(class_10637 arg0)
openTestBlockScreen(TestBlockEntity arg0)
public void
openTestInstanceBlock(TestInstanceBlockEntity testInstanceBlock)
method_66696(class_10638 arg0)
openTestInstanceBlockScreen(TestInstanceBlockEntity arg0)
public void
openJigsawBlock(JigsawBlockEntity jigsawBlock)
method_16354(class_3751 arg0)
openJigsawScreen(JigsawBlockEntity arg0)
public void
openDialog(Holder<Dialog> dialog)
method_71753(class_6880<class_11419> arg0)
openDialog(RegistryEntry<Dialog> arg0)
public void
openItemGui(ItemStack itemStack, InteractionHand hand)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack arg0, Hand arg1)
public void
crit(Entity entity)
method_7277(class_1297 arg0)
addCritParticles(Entity arg0)
public void
magicCrit(Entity entity)
method_7304(class_1297 arg0)
addEnchantedHitParticles(Entity arg0)
public boolean
isShiftKeyDown()
method_5715()
isSneaking()
public boolean
isCrouching()
method_18276()
isInSneakingPose()
public boolean
isMovingSlowly()
method_20303()
shouldSlowDown()
public void
applyInput()
method_66282()
tickMovementInput()
private Vec2f
modifyInput(Vec2 input)
method_67270(class_241 arg0)
applyMovementSpeedFactors(Vec2f input)
private static Vec2f
modifyInputSpeedForSquareMovement(Vec2 input)
method_67271(class_241 arg0)
applyDirectionalMovementSpeedFactors(Vec2f vec)
private static float
distanceToUnitSquare(Vec2 direction)
method_67272(class_241 arg0)
getDirectionalMovementSpeedMultiplier(Vec2f vec)
protected boolean
isControlledCamera()
method_3134()
isCamera()
public void
resetPos()
method_33689()
init()
public void
aiStep()
method_6007()
tickMovement()
private boolean
shouldStopRunSprinting()
method_65949()
shouldStopSprinting()
private boolean
shouldStopSwimSprinting()
method_67472()
shouldStopSwimSprinting()
public Portal$Effect
getActivePortalLocalTransition()
method_60886()
getCurrentPortalEffect()
protected void
tickDeath()
method_6108()
updatePostDeath()
private void
handlePortalTransitionEffect(boolean active)
method_60887(boolean arg0)
tickNausea(boolean fromPortalEffect)
public void
rideTick()
method_5842()
tickRiding()
public boolean
isHandsBusy()
method_3144()
isRiding()
public void
move(MoverType moverType, Vec3 delta)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public boolean
isAutoJumpEnabled()
method_3149()
isAutoJumpEnabled()
public boolean
shouldRotateWithMinecart()
method_61498()
shouldRotateWithMinecart()
protected void
updateAutoJump(float xa, float za)
method_3148(float arg0, float arg1)
autoJump(float dx, float dz)
protected boolean
isHorizontalCollisionMinor(Vec3 movement)
method_39759(class_243 arg0)
hasCollidedSoftly(Vec3d arg0)
private boolean
canAutoJump()
method_22119()
shouldAutoJump()
private boolean
isMoving()
method_22120()
hasMovementInput()
private boolean
isSprintingPossible(boolean allowedInShallowWater)
method_74047(boolean arg0)
canSprint(boolean allowTouchingWater)
private boolean
canStartSprinting()
method_48300()
canStartSprinting()
private boolean
vehicleCanSprint(Entity vehicle)
method_48301(class_1297 arg0)
canVehicleSprint(Entity vehicle)
public float
getWaterVision()
method_3140()
getUnderwaterVisibility()
public void
onGameModeChanged(GameType gameType)
method_51889(class_1934 arg0)
onGameModeChanged(GameMode gameMode)
public boolean
isUnderWater()
method_5869()
isSubmergedInWater()
protected boolean
updateIsUnderwater()
method_7295()
updateWaterSubmersionState()
public Vec3d
getRopeHoldPosition(float partialTickTime)
method_30951(float arg0)
getLeashPos(float arg0)
public void
updateTutorialInventoryAction(ItemStack itemCarried, ItemStack itemInSlot, ClickAction clickAction)
method_33592(class_1799 arg0, class_1799 arg1, class_5536 arg2)
onPickupSlotClick(ItemStack arg0, ItemStack arg1, ClickType arg2)
public float
getVisualRotationYInDegrees()
method_73188()
getBodyYaw()
public void
handleCreativeModeItemDrop(ItemStack stack)
method_61499(class_1799 arg0)
dropCreativeStack(ItemStack arg0)
public boolean
canDropItems()
method_64271()
canDropItems()
public Cooldown
getDropSpamThrottler()
method_64376()
getItemDropCooldown()
public PlayerInput
getLastSentInput()
method_71091()
getLastPlayerInput()
public HitResult
raycastHitResult(float a, Entity cameraEntity)
method_76762(float arg0, class_1297 arg1)
getCrosshairTarget(float tickProgress, Entity cameraEntity)
private static HitResult
pick(Entity cameraEntity, double blockInteractionRange, double entityInteractionRange, float partialTicks)
method_76763(class_1297 arg0, double arg1, double arg2, float arg3)
getCrosshairTarget(Entity cameraEntity, double blockInteractionRange, double entityInteractionRange, float tickProgress)
private static HitResult
filterHitResult(HitResult hitResult, Vec3 from, double maxRange)
method_76764(class_239 arg0, class_243 arg1, double arg2)
checkCrosshairTargetRange(HitResult hitResult, Vec3d cameraPos, double range)
private static Stream
lambda$updateAutoJump$0(VoxelShape arg0)
method_3139(class_265 arg0)
method_3139(VoxelShape shape)