net.minecraft.client.player

public class LocalPlayer

extends AbstractClientPlayer

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable

goa
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
h
LOGGER
field_39078
LOGGER
private static final int
cx
POSITION_REMINDER_INTERVAL
field_32671
field_32671
private static final int
cy
WATER_VISION_MAX_TIME
field_32672
field_32672
private static final int
cz
WATER_VISION_QUICK_TIME
field_32673
field_32673
private static final float
cA
WATER_VISION_QUICK_PERCENT
field_32674
field_32674
private static final double
cB
SUFFOCATING_COLLISION_CHECK_SCALE
field_32675
field_32675
private static final double
cC
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
field_36194
MAX_SOFT_COLLISION_RADIANS
public static final float
i
USING_ITEM_SPEED_FACTOR
field_55135
field_55135
public final ClientPacketListener
j
connection
field_3944
networkHandler
private final StatsCounter
cD
stats
field_3928
statHandler
private final ClientRecipeBook
cE
recipeBook
field_3930
recipeBook
private final TickThrottler
cF
dropSpamThrottler
field_54391
itemDropCooldown
private final List<AmbientSoundHandler>
cG
ambientSoundHandlers
field_3933
tickables
private int
cH
permissionLevel
field_3912
clientPermissionLevel
private double
cI
xLast
field_3926
lastX
private double
cJ
yLast
field_3940
lastBaseY
private double
cK
zLast
field_3924
lastZ
private float
cL
yRotLast
field_3941
lastYaw
private float
cM
xRotLast
field_3925
lastPitch
private boolean
cN
lastOnGround
field_3920
lastOnGround
private boolean
cO
lastHorizontalCollision
field_53040
lastHorizontalCollision
private boolean
cP
crouching
field_23093
inSneakingPose
private boolean
cQ
wasShiftKeyDown
field_3936
lastSneaking
private boolean
cR
wasSprinting
field_3919
lastSprinting
private int
cS
positionReminder
field_3923
ticksSinceLastPositionPacketSent
private boolean
cT
flashOnSetHealth
field_3918
healthInitialized
public ClientInput
k
input
field_3913
input
private Input
cU
lastSentInput
field_54156
lastPlayerInput
protected final Minecraft
cp
minecraft
field_3937
client
protected int
cq
sprintTriggerTime
field_3935
ticksLeftToDoubleTapSprint
public float
cr
yBob
field_3932
renderYaw
public float
cs
xBob
field_3916
renderPitch
public float
ct
yBobO
field_3931
lastRenderYaw
public float
cu
xBobO
field_3914
lastRenderPitch
private int
cV
jumpRidingTicks
field_3938
field_3938
private float
cW
jumpRidingScale
field_3922
mountJumpStrength
public float
cv
portalEffectIntensity
field_44911
nauseaIntensity
public float
cw
oPortalEffectIntensity
field_44912
lastNauseaIntensity
private boolean
cX
startedUsingItem
field_3915
usingItem
private InteractionHand
cY
usingItemHand
field_3945
activeHand
private boolean
cZ
handsBusy
field_3942
riding
private boolean
da
autoJumpEnabled
field_3927
autoJumpEnabled
private int
db
autoJumpTime
field_3934
ticksToNextAutoJump
private boolean
dc
wasFallFlying
field_3939
falling
private int
dd
waterVisionTime
field_3917
underwaterVisibilityTicks
private boolean
de
showDeathScreen
field_20663
showsDeathScreen
private boolean
df
doLimitedCrafting
field_46188
limitedCraftingEnabled

Constructor summary

ModifierConstructor
public (Minecraft client, ClientLevel world, ClientPacketListener networkHandler, StatsCounter stats, ClientRecipeBook recipeBook, boolean lastSneaking, boolean lastSprinting)

Method summary

Modifier and TypeMethod
public void
c(float arg0)
heal(float arg0)
method_6025(float arg0)
heal(float arg0)
public boolean
a(bwa arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
public void
ae()
removeVehicle()
method_29239()
dismountVehicle()
public float
i(float arg0)
getViewXRot(float arg0)
method_5695(float arg0)
getPitch(float arg0)
public float
j(float arg0)
getViewYRot(float arg0)
method_5705(float arg0)
getYaw(float arg0)
public void
h()
tick()
method_5773()
tick()
public float
d()
getCurrentMood()
method_26269()
getMoodPercentage()
private void
F()
sendPosition()
method_3136()
sendMovementPackets()
private void
H()
sendShiftKeyState()
method_62165()
sendSneakingPacket()
private void
I()
sendIsSprintingIfNeeded()
method_46742()
sendSprintingPacket()
public boolean
a(boolean arg0)
drop(boolean arg0)
method_7290(boolean arg0)
dropSelectedItem(boolean entireStack)
public void
a(btx arg0)
swing(InteractionHand arg0)
method_6104(class_1268 arg0)
swingHand(Hand arg0)
public void
gf()
respawn()
method_7331()
requestRespawn()
public void
p()
closeContainer()
method_7346()
closeHandledScreen()
public void
e()
clientSideCloseContainer()
method_3137()
closeScreen()
public void
J(float arg0)
hurtTo(float arg0)
method_3138(float arg0)
updateHealth(float health)
public void
x()
onUpdateAbilities()
method_7355()
sendAbilitiesUpdate()
public boolean
gg()
isLocalPlayer()
method_7340()
isMainPlayer()
public boolean
fH()
isSuppressingSlidingDownLadder()
method_21754()
isHoldingOntoLadder()
public boolean
bu()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
protected void
f()
sendRidingJump()
method_3133()
startRidingJump()
public void
i()
sendOpenInventory()
method_3132()
openRidingInventory()
public StatsCounter
l()
getStats()
method_3143()
getStatHandler()
public ClientRecipeBook
m()
getRecipeBook()
method_3130()
getRecipeBook()
public void
a(der arg0)
removeRecipeHighlight(RecipeDisplayId arg0)
method_3141(class_10298 arg0)
onRecipeDisplayed(NetworkRecipeId recipeId)
public int
G()
getPermissionLevel()
method_5691()
getPermissionLevel()
public void
a(int arg0)
setPermissionLevel(int arg0)
method_3147(int arg0)
setClientPermissionLevel(int clientPermissionLevel)
public void
a(ww arg0, boolean arg1)
displayClientMessage(Component arg0, boolean arg1)
method_7353(class_2561 arg0, boolean arg1)
sendMessage(Text arg0, boolean arg1)
private void
c(double arg0, double arg1)
moveTowardsClosestSpace(double arg0, double arg1)
method_30673(double arg0, double arg1)
pushOutOfBlocks(double x, double z)
private boolean
c(iu arg0)
suffocatesAt(BlockPos arg0)
method_30674(class_2338 arg0)
wouldCollideAt(BlockPos pos)
public void
a(float arg0, int arg1, int arg2)
setExperienceValues(float arg0, int arg1, int arg2)
method_3145(float arg0, int arg1, int arg2)
setExperience(float progress, int total, int level)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public void
b(boolean arg0)
setShowDeathScreen(boolean arg0)
method_22420(boolean arg0)
setShowsDeathScreen(boolean showsDeathScreen)
public boolean
n()
shouldShowDeathScreen()
method_22419()
showsDeathScreen()
public void
x(boolean arg0)
setDoLimitedCrafting(boolean arg0)
method_53848(boolean arg0)
setLimitedCraftingEnabled(boolean limitedCraftingEnabled)
public boolean
t()
getDoLimitedCrafting()
method_53847()
isLimitedCraftingEnabled()
public void
a(awk arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
method_5783(class_3414 arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
public void
a(awk arg0, awm arg1, float arg2, float arg3)
playNotifySound(SoundEvent arg0, SoundSource arg1, float arg2, float arg3)
method_17356(class_3414 arg0, class_3419 arg1, float arg2, float arg3)
playSoundToPlayer(SoundEvent arg0, SoundCategory arg1, float arg2, float arg3)
public void
c(btx arg0)
startUsingItem(InteractionHand arg0)
method_6019(class_1268 arg0)
setCurrentHand(Hand arg0)
public boolean
fy()
isUsingItem()
method_6115()
isUsingItem()
public void
fE()
stopUsingItem()
method_6021()
clearActiveItem()
public InteractionHand
fz()
getUsedItemHand()
method_6058()
getActiveHand()
public void
a(akh<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public PlayerRideableJumping
u()
jumpableVehicle()
method_45773()
getJumpingMount()
public float
v()
getJumpRidingScale()
method_3151()
getMountJumpStrength()
public boolean
aa()
isTextFilteringEnabled()
method_33793()
shouldFilterText()
public void
a(dyb arg0, boolean arg1)
openTextEdit(SignBlockEntity arg0, boolean arg1)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
public void
a(dhq arg0)
openMinecartCommandBlock(BaseCommandBlock arg0)
method_7257(class_1918 arg0)
openCommandBlockMinecartScreen(CommandBlockExecutor arg0)
public void
a(dwy arg0)
openCommandBlock(CommandBlockEntity arg0)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
public void
a(dyg arg0)
openStructureBlock(StructureBlockEntity arg0)
method_7303(class_2633 arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
public void
a(dyh arg0)
openTestBlock(TestBlockEntity arg0)
method_66695(class_10637 arg0)
openTestBlockScreen(TestBlockEntity arg0)
public void
a(dyi arg0)
openTestInstanceBlock(TestInstanceBlockEntity arg0)
method_66696(class_10638 arg0)
openTestInstanceBlockScreen(TestInstanceBlockEntity arg0)
public void
a(dxr arg0)
openJigsawBlock(JigsawBlockEntity arg0)
method_16354(class_3751 arg0)
openJigsawScreen(JigsawBlockEntity arg0)
public void
a(cys arg0, btx arg1)
openItemGui(ItemStack arg0, InteractionHand arg1)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack arg0, Hand arg1)
public void
b(bwa arg0)
crit(Entity arg0)
method_7277(class_1297 arg0)
addCritParticles(Entity arg0)
public void
c(bwa arg0)
magicCrit(Entity arg0)
method_7304(class_1297 arg0)
addEnchantedHitParticles(Entity arg0)
public boolean
cd()
isShiftKeyDown()
method_5715()
isSneaking()
public boolean
ci()
isCrouching()
method_18276()
isInSneakingPose()
public boolean
w()
isMovingSlowly()
method_20303()
shouldSlowDown()
public void
fp()
applyInput()
method_66282()
tickMovementInput()
private Vec2
a(fdv arg0)
modifyInput(Vec2 arg0)
method_67270(class_241 arg0)
method_67270(Vec2f arg0)
private static Vec2
b(fdv arg0)
modifyInputSpeedForSquareMovement(Vec2 arg0)
method_67271(class_241 arg0)
method_67271(Vec2f arg0)
private static float
c(fdv arg0)
distanceToUnitSquare(Vec2 arg0)
method_67272(class_241 arg0)
method_67272(Vec2f arg0)
protected boolean
y()
isControlledCamera()
method_3134()
isCamera()
public void
z()
resetPos()
method_33689()
init()
public void
k_()
aiStep()
method_6007()
tickMovement()
private boolean
J()
shouldStopSprinting()
method_65949()
shouldStopSprinting()
private boolean
L()
hasBlindness()
method_65525()
isBlind()
public Portal$Transition
A()
getActivePortalLocalTransition()
method_60886()
getCurrentPortalEffect()
protected void
em()
tickDeath()
method_6108()
updatePostDeath()
private void
y(boolean arg0)
handlePortalTransitionEffect(boolean arg0)
method_60887(boolean arg0)
tickNausea(boolean fromPortalEffect)
public void
r()
rideTick()
method_5842()
tickRiding()
public boolean
B()
isHandsBusy()
method_3144()
isRiding()
public void
a(bxd arg0, fdw arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public boolean
C()
isAutoJumpEnabled()
method_3149()
isAutoJumpEnabled()
public boolean
gP()
shouldRotateWithMinecart()
method_61498()
shouldRotateWithMinecart()
protected void
f(float arg0, float arg1)
updateAutoJump(float arg0, float arg1)
method_3148(float arg0, float arg1)
autoJump(float dx, float dz)
protected boolean
d(fdw arg0)
isHorizontalCollisionMinor(Vec3 arg0)
method_39759(class_243 arg0)
hasCollidedSoftly(Vec3d arg0)
private boolean
N()
canAutoJump()
method_22119()
shouldAutoJump()
private boolean
O()
isMoving()
method_22120()
hasMovementInput()
private boolean
P()
canStartSprinting()
method_48300()
canStartSprinting()
private boolean
a(bwa arg0)
vehicleCanSprint(Entity arg0)
method_48301(class_1297 arg0)
canVehicleSprint(Entity vehicle)
private boolean
Q()
hasEnoughImpulseToStartSprinting()
method_20623()
isWalking()
private boolean
R()
hasEnoughFoodToStartSprinting()
method_46743()
canSprint()
public float
D()
getWaterVision()
method_3140()
getUnderwaterVisibility()
public void
a(dim arg0)
onGameModeChanged(GameType arg0)
method_51889(class_1934 arg0)
onGameModeChanged(GameMode gameMode)
public boolean
bn()
isUnderWater()
method_5869()
isSubmergedInWater()
protected boolean
ga()
updateIsUnderwater()
method_7295()
updateWaterSubmersionState()
public Vec3
v(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
getLeashPos(float arg0)
public void
a(cys arg0, cys arg1, cuu arg2)
updateTutorialInventoryAction(ItemStack arg0, ItemStack arg1, ClickAction arg2)
method_33592(class_1799 arg0, class_1799 arg1, class_5536 arg2)
onPickupSlotClick(ItemStack arg0, ItemStack arg1, ClickType arg2)
public float
dM()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()
public void
h(cys arg0)
handleCreativeModeItemDrop(ItemStack arg0)
method_61499(class_1799 arg0)
dropCreativeStack(ItemStack arg0)
public boolean
gm()
canDropItems()
method_64271()
canDropItems()
public TickThrottler
E()
getDropSpamThrottler()
method_64376()
getItemDropCooldown()