net.minecraft.client.player

public class LocalPlayer

extends AbstractClientPlayer

All mapped superinterfaces:

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

gox
net.minecraft.client.player.LocalPlayer
net.minecraft.class_746
net.minecraft.unmapped.C_jlopmfei
net.minecraft.client.network.ClientPlayerEntity
net.minecraft.client.network.ClientPlayerEntity

Field summary

Modifier and TypeField
public static final org.slf4j.Logger
h
LOGGER
field_39078
f_iuztugfq
LOGGER
LOGGER
private static final int
cy
POSITION_REMINDER_INTERVAL
field_32671
f_mqfjjgge
field_32671
POSITION_REMINDER_INTERVAL
private static final int
cz
WATER_VISION_MAX_TIME
field_32672
f_atzeoass
field_32672
WATER_VISION_MAX_TIME
private static final int
cA
WATER_VISION_QUICK_TIME
field_32673
f_vebkyfkt
field_32673
WATER_VISION_QUICK_TIME
private static final float
cB
WATER_VISION_QUICK_PERCENT
field_32674
f_gsxrispj
field_32674
WATER_VISION_QUICK_PERCENT
private static final double
cC
SUFFOCATING_COLLISION_CHECK_SCALE
field_32675
f_idtbroqj
field_32675
SUFFOCATING_COLLISION_CHECK_SCALE
private static final double
cD
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
field_36194
f_fhhsylxy
MAX_SOFT_COLLISION_RADIANS
MAX_SOFT_COLLISION_RADIANS
public static final float
i
USING_ITEM_SPEED_FACTOR
field_55135
f_cqqhhszk
field_55135
public final ClientPacketListener
j
connection
field_3944
f_syjuhyvi
networkHandler
networkHandler
private final StatsCounter
cE
stats
field_3928
f_bxbatcpa
statHandler
statHandler
private final ClientRecipeBook
cF
recipeBook
field_3930
f_dgnqpmdg
recipeBook
recipeBook
private final TickThrottler
cG
dropSpamThrottler
field_54391
f_qopkbzvg
itemDropCooldown
private final List<AmbientSoundHandler>
cH
ambientSoundHandlers
field_3933
f_ctxbxcto
tickables
tickables
private int
cI
permissionLevel
field_3912
f_fkcgnsmh
clientPermissionLevel
clientPermissionLevel
private double
cJ
xLast
field_3926
f_rtneahro
lastXClient
lastX
private double
cK
yLast
field_3940
f_scgekrvy
lastYClient
private double
cL
zLast
field_3924
f_xryucszr
lastZClient
lastZ
private float
cM
yRotLast
field_3941
f_sauvdttc
lastYawClient
lastYaw
private float
cN
xRotLast
field_3925
f_fkrjflpe
lastPitchClient
lastPitch
private boolean
cO
lastOnGround
field_3920
f_uynrsldw
lastOnGround
lastOnGround
private boolean
cP
lastHorizontalCollision
field_53040
f_rcgfrcgp
lastHorizontalCollision
private boolean
cQ
crouching
field_23093
f_lonrepuj
inSneakingPose
inSneakingPose
private boolean
cR
wasShiftKeyDown
field_3936
f_elhewhfa
lastSneaking
lastSneaking
private boolean
cS
wasSprinting
field_3919
f_iqzqxmpg
lastSprinting
lastSprinting
private int
cT
positionReminder
field_3923
f_zxxybkqq
ticksSinceLastPositionPacketSent
ticksSinceLastPositionPacketSent
private boolean
cU
flashOnSetHealth
field_3918
f_usxefjxe
healthInitialized
healthInitialized
public ClientInput
k
input
field_3913
f_sbnghqwd
input
input
private Input
cV
lastSentInput
field_54156
f_zjxujerh
lastPlayerInput
protected final Minecraft
cq
minecraft
field_3937
f_aufxggqt
client
client
protected int
cr
sprintTriggerTime
field_3935
f_kkjehvrb
ticksLeftToDoubleTapSprint
ticksLeftToDoubleTapSprint
public float
cs
yBob
field_3932
f_rdioexdo
renderYaw
renderYaw
public float
ct
xBob
field_3916
f_fvtymsal
renderPitch
renderPitch
public float
cu
yBobO
field_3931
f_weecdoml
lastRenderYaw
lastRenderYaw
public float
cv
xBobO
field_3914
f_irzjhfpc
lastRenderPitch
lastRenderPitch
private int
cW
jumpRidingTicks
field_3938
f_mxmeeeog
field_3938
jumpRidingTicks
private float
cX
jumpRidingScale
field_3922
f_cscipsrr
mountJumpStrength
mountJumpStrength
public float
cw
portalEffectIntensity
field_44911
f_jfruariu
nauseaIntensity
public float
cx
oPortalEffectIntensity
field_44912
f_ojhxqubk
lastNauseaIntensity
private boolean
cY
startedUsingItem
field_3915
f_rudpemlr
usingItem
usingItem
private InteractionHand
cZ
usingItemHand
field_3945
f_nbhshtxz
activeHand
activeHand
private boolean
da
handsBusy
field_3942
f_bfvigirz
riding
riding
private boolean
db
autoJumpEnabled
field_3927
f_huxwifqq
autoJumpEnabled
autoJumpEnabled
private int
dc
autoJumpTime
field_3934
f_awtfnari
ticksToNextAutoJump
ticksToNextAutojump
private boolean
dd
wasFallFlying
field_3939
f_zkrtgbyu
falling
falling
private int
de
waterVisionTime
field_3917
f_niojzjyv
underwaterVisibilityTicks
underwaterVisibilityTicks
private boolean
df
showDeathScreen
field_20663
f_lnothlou
showsDeathScreen
showsDeathScreen
private boolean
dg
doLimitedCrafting
field_46188
f_elnfyolv
limitedCraftingEnabled
doLimitedCrafting

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)
m_orzhhcmg(float arg0)
heal(float arg0)
heal(float arg0)
public boolean
a(bwf arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
m_hvcwbybh(C_astfners arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
public void
ae()
removeVehicle()
method_29239()
m_gwopyrde()
dismountVehicle()
dismountVehicle()
public float
i(float arg0)
getViewXRot(float arg0)
method_5695(float arg0)
m_rwwlsvsi(float arg0)
getPitch(float arg0)
getPitch(float arg0)
public float
j(float arg0)
getViewYRot(float arg0)
method_5705(float arg0)
m_xoogehdd(float arg0)
getYaw(float arg0)
getYaw(float arg0)
public void
h()
tick()
method_5773()
m_arkgrfeb()
tick()
tick()
public float
d()
getCurrentMood()
method_26269()
m_iaefsihn()
getMoodPercentage()
getMoodPercentage()
private void
F()
sendPosition()
method_3136()
m_rlbaeyze()
sendMovementPackets()
sendMovementPackets()
private void
H()
sendShiftKeyState()
method_62165()
m_qetlsahq()
sendSneakingPacket()
private void
I()
sendIsSprintingIfNeeded()
method_46742()
m_nfwipcth()
sendSprintingPacket()
trySendSprintingPacket()
public boolean
a(boolean arg0)
drop(boolean arg0)
method_7290(boolean arg0)
m_dvxttqkg(boolean arg0)
dropSelectedItem(boolean entireStack)
dropSelectedItem(boolean entireStack)
public void
a(buc arg0)
swing(InteractionHand arg0)
method_6104(class_1268 arg0)
m_xgwxqkgb(C_laxmzoqs arg0)
swingHand(Hand arg0)
swingHand(Hand arg0)
public void
gg()
respawn()
method_7331()
m_srbgfavo()
requestRespawn()
requestRespawn()
public void
p()
closeContainer()
method_7346()
m_enadbzil()
closeHandledScreen()
closeHandledScreen()
public void
e()
clientSideCloseContainer()
method_3137()
m_kdhhfsoy()
closeScreen()
closeScreen()
public void
J(float arg0)
hurtTo(float arg0)
method_3138(float arg0)
m_cyqhtqzg(float arg0)
updateHealth(float health)
updateHealth(float health)
public void
x()
onUpdateAbilities()
method_7355()
m_gvkpkpeh()
sendAbilitiesUpdate()
sendAbilitiesUpdate()
public boolean
gh()
isLocalPlayer()
method_7340()
m_jnzfvwue()
isMainPlayer()
isMainPlayer()
public boolean
fI()
isSuppressingSlidingDownLadder()
method_21754()
m_wmvelibz()
isHoldingOntoLadder()
isHoldingOntoLadder()
public boolean
bu()
canSpawnSprintParticle()
method_27298()
m_chpxygjr()
shouldSpawnSprintingParticles()
shouldSpawnSprintingParticles()
protected void
f()
sendRidingJump()
method_3133()
m_gxezutim()
startRidingJump()
startRidingJump()
public void
i()
sendOpenInventory()
method_3132()
m_lusupfra()
openRidingInventory()
openRidingInventory()
public StatsCounter
l()
getStats()
method_3143()
m_bzkhmdji()
getStatHandler()
getStatHandler()
public ClientRecipeBook
m()
getRecipeBook()
method_3130()
m_ibxwqidi()
getRecipeBook()
getRecipeBook()
public void
a(dfc arg0)
removeRecipeHighlight(RecipeDisplayId arg0)
method_3141(class_10298 arg0)
m_hfpiizip(C_tglmjehp arg0)
onRecipeDisplayed(NetworkRecipeId recipeId)
onRecipeDisplayed(RecipeDisplayId arg0)
public int
G()
getPermissionLevel()
method_5691()
m_arcbriga()
getPermissionLevel()
getPermissionLevel()
public void
a(int arg0)
setPermissionLevel(int arg0)
method_3147(int arg0)
m_spcgxwbg(int arg0)
setClientPermissionLevel(int clientPermissionLevel)
setClientPermissionLevel(int clientPermissionLevel)
public void
a(wy arg0, boolean arg1)
displayClientMessage(Component arg0, boolean arg1)
method_7353(class_2561 arg0, boolean arg1)
m_gozwojpw(C_rdaqiwdt arg0, boolean arg1)
sendMessage(Text 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)
m_qjxxuqlz(double arg0, double arg1)
pushOutOfBlocks(double x, double z)
pushOutOfBlocks(double x, double z)
private boolean
c(iu arg0)
suffocatesAt(BlockPos arg0)
method_30674(class_2338 arg0)
m_hcfpmyto(C_hynzadkk arg0)
wouldCollideAt(BlockPos pos)
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)
m_upzlykxr(float arg0, int arg1, int arg2)
setExperience(float progress, int total, int level)
setExperience(float progress, int total, int level)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
m_kkieextx(byte arg0)
handleStatus(byte arg0)
handleStatus(byte arg0)
public void
b(boolean arg0)
setShowDeathScreen(boolean arg0)
method_22420(boolean arg0)
m_qkbjfhbb(boolean arg0)
setShowsDeathScreen(boolean showsDeathScreen)
setShowsDeathScreen(boolean shouldShow)
public boolean
n()
shouldShowDeathScreen()
method_22419()
m_xzwqqutd()
showsDeathScreen()
showsDeathScreen()
public void
x(boolean arg0)
setDoLimitedCrafting(boolean arg0)
method_53848(boolean arg0)
m_jnifxwux(boolean arg0)
setLimitedCraftingEnabled(boolean limitedCraftingEnabled)
setDoLimitedCrafting(boolean doLimitedCrafting)
public boolean
t()
getDoLimitedCrafting()
method_53847()
m_xpbtyxfw()
isLimitedCraftingEnabled()
shouldDoLimitedCrafting()
public void
a(awm arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
method_5783(class_3414 arg0, float arg1, float arg2)
m_ozexriib(C_avavozay arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
playSound(SoundEvent arg0, float arg1, float arg2)
public void
a(awm arg0, awo 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)
m_cbytqozy(C_avavozay arg0, C_pqzizukq arg1, float arg2, float arg3)
playSoundToPlayer(SoundEvent arg0, SoundCategory arg1, float arg2, float arg3)
playSound(SoundEvent arg0, SoundCategory arg1, float arg2, float arg3)
public void
c(buc arg0)
startUsingItem(InteractionHand arg0)
method_6019(class_1268 arg0)
m_ayeajhdm(C_laxmzoqs arg0)
setCurrentHand(Hand arg0)
tryStartUsing(Hand arg0)
public boolean
fz()
isUsingItem()
method_6115()
m_orzuenpv()
isUsingItem()
isUsingItem()
public void
fF()
stopUsingItem()
method_6021()
m_fqywfcul()
clearActiveItem()
clearActiveItem()
public InteractionHand
fA()
getUsedItemHand()
method_6058()
m_fgldaguj()
getActiveHand()
getActiveHand()
public void
a(akj<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
m_efnedaed(C_rinmcaxy<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public PlayerRideableJumping
u()
jumpableVehicle()
method_45773()
m_kxlksird()
getJumpingMount()
getJumpingMount()
public float
v()
getJumpRidingScale()
method_3151()
m_viqbkvwk()
getMountJumpStrength()
getMountJumpStrength()
public boolean
aa()
isTextFilteringEnabled()
method_33793()
m_xzfoasae()
shouldFilterText()
getFilterText()
public void
a(dyt arg0, boolean arg1)
openTextEdit(SignBlockEntity arg0, boolean arg1)
method_7311(class_2625 arg0, boolean arg1)
m_gdwvdivl(C_axouvzlg arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
public void
a(dib arg0)
openMinecartCommandBlock(BaseCommandBlock arg0)
method_7257(class_1918 arg0)
m_lmevcwqf(C_ufmydvnm arg0)
openCommandBlockMinecartScreen(CommandBlockExecutor arg0)
openCommandBlockMinecartScreen(CommandBlockExecutor arg0)
public void
a(dxq arg0)
openCommandBlock(CommandBlockEntity arg0)
method_7323(class_2593 arg0)
m_yhpkrzzv(C_qpgfeghp arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
public void
a(dyy arg0)
openStructureBlock(StructureBlockEntity arg0)
method_7303(class_2633 arg0)
m_dbuvscbh(C_bfrzytnu arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
public void
a(dyz arg0)
openTestBlock(TestBlockEntity arg0)
method_66695(class_10637 arg0)
m_bwhngseo(C_yxyvgcqr arg0)
openTestBlockScreen(TestBlockEntity arg0)
public void
a(dza arg0)
openTestInstanceBlock(TestInstanceBlockEntity arg0)
method_66696(class_10638 arg0)
m_kgjirvmg(C_ionovaet arg0)
openTestInstanceBlockScreen(TestInstanceBlockEntity arg0)
public void
a(dyj arg0)
openJigsawBlock(JigsawBlockEntity arg0)
method_16354(class_3751 arg0)
m_tjcxwbpg(C_epwegwuj arg0)
openJigsawScreen(JigsawBlockEntity arg0)
openJigsawScreen(JigsawBlockEntity arg0)
public void
a(czd arg0, buc arg1)
openItemGui(ItemStack arg0, InteractionHand arg1)
method_7315(class_1799 arg0, class_1268 arg1)
m_pjxfwdrg(C_sddaxwyk arg0, C_laxmzoqs arg1)
useBook(ItemStack arg0, Hand arg1)
useBook(ItemStack arg0, Hand arg1)
public void
b(bwf arg0)
crit(Entity arg0)
method_7277(class_1297 arg0)
m_yscaqmsb(C_astfners arg0)
addCritParticles(Entity arg0)
addCritParticles(Entity arg0)
public void
c(bwf arg0)
magicCrit(Entity arg0)
method_7304(class_1297 arg0)
m_yoqvnsaz(C_astfners arg0)
addEnchantedHitParticles(Entity arg0)
addEnchantedHitParticles(Entity arg0)
public boolean
cd()
isShiftKeyDown()
method_5715()
m_eyjjblao()
isSneaking()
isSneaking()
public boolean
ci()
isCrouching()
method_18276()
m_oqgpazne()
isInSneakingPose()
isInSneakingPose()
public boolean
w()
isMovingSlowly()
method_20303()
m_cawwfaef()
shouldSlowDown()
shouldSlowDown()
public void
fq()
applyInput()
method_66282()
m_rnhwpyqp()
tickMovementInput()
private Vec2
a(fep arg0)
modifyInput(Vec2 arg0)
method_67270(class_241 arg0)
m_upnfcccr(C_krlwdsom arg0)
applyMovementSpeedFactors(Vec2f input)
private static Vec2
b(fep arg0)
modifyInputSpeedForSquareMovement(Vec2 arg0)
method_67271(class_241 arg0)
m_robsbtzw(C_krlwdsom arg0)
applyDirectionalMovementSpeedFactors(Vec2f vec)
private static float
c(fep arg0)
distanceToUnitSquare(Vec2 arg0)
method_67272(class_241 arg0)
m_qtvifjei(C_krlwdsom arg0)
getDirectionalMovementSpeedMultiplier(Vec2f vec)
protected boolean
y()
isControlledCamera()
method_3134()
m_cxdlzmge()
isCamera()
isCamera()
public void
z()
resetPos()
method_33689()
m_ohhpabab()
init()
init()
public void
k_()
aiStep()
method_6007()
m_alyudxll()
tickMovement()
tickMovement()
private boolean
J()
shouldStopRunSprinting()
method_65949()
m_irnuunup()
shouldStopSprinting()
private boolean
L()
shouldStopSwimSprinting()
method_67472()
m_mmxuxjcb()
shouldStopSwimSprinting()
private boolean
N()
hasBlindness()
method_65525()
m_ulvyuzjg()
isBlind()
public Portal$Transition
A()
getActivePortalLocalTransition()
method_60886()
m_wavkxtkh()
getCurrentPortalEffect()
protected void
en()
tickDeath()
method_6108()
m_ndbwdqzx()
updatePostDeath()
updatePostDeath()
private void
y(boolean arg0)
handlePortalTransitionEffect(boolean arg0)
method_60887(boolean arg0)
m_pclvoaoc(boolean arg0)
tickNausea(boolean fromPortalEffect)
public void
r()
rideTick()
method_5842()
m_qchceppc()
tickRiding()
tickRiding()
public boolean
B()
isHandsBusy()
method_3144()
m_wnyjanfc()
isRiding()
isRiding()
public void
a(bxi arg0, feq arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
m_zcvlfcid(C_eojqvxuw arg0, C_vgpupfxx arg1)
move(MovementType arg0, Vec3d arg1)
move(MovementType arg0, Vec3d arg1)
public boolean
C()
isAutoJumpEnabled()
method_3149()
m_mwnueopu()
isAutoJumpEnabled()
isAutoJumpEnabled()
public boolean
gQ()
shouldRotateWithMinecart()
method_61498()
m_mgdicokk()
shouldRotateWithMinecart()
shouldRotateWithMinecart()
protected void
f(float arg0, float arg1)
updateAutoJump(float arg0, float arg1)
method_3148(float arg0, float arg1)
m_sevuwqfe(float arg0, float arg1)
autoJump(float dx, float dz)
autoJump(float dx, float dz)
protected boolean
d(feq arg0)
isHorizontalCollisionMinor(Vec3 arg0)
method_39759(class_243 arg0)
m_jfqciigr(C_vgpupfxx arg0)
hasCollidedSoftly(Vec3d arg0)
hasCollidedSoftly(Vec3d arg0)
private boolean
O()
canAutoJump()
method_22119()
m_nxuownoi()
shouldAutoJump()
shouldAutoJump()
private boolean
P()
isMoving()
method_22120()
m_xfculten()
hasMovementInput()
hasMovementInput()
private boolean
Q()
canStartSprinting()
method_48300()
m_jwqxefyk()
canStartSprinting()
canStartSprinting()
private boolean
a(bwf arg0)
vehicleCanSprint(Entity arg0)
method_48301(class_1297 arg0)
m_towrjxjq(C_astfners arg0)
canVehicleSprint(Entity vehicle)
canVehicleSprint(Entity entity)
private boolean
R()
hasEnoughFoodToSprint()
method_46743()
m_ctnfzfwp()
canSprint()
public float
D()
getWaterVision()
method_3140()
m_fjkurxla()
getUnderwaterVisibility()
getUnderwaterVisibility()
public void
a(dix arg0)
onGameModeChanged(GameType arg0)
method_51889(class_1934 arg0)
m_syghdsvg(C_lghcpyvl arg0)
onGameModeChanged(GameMode gameMode)
onGameModeChanged(GameMode gameMode)
public boolean
bn()
isUnderWater()
method_5869()
m_bqujtsnz()
isSubmergedInWater()
isSubmergedInWater()
protected boolean
gb()
updateIsUnderwater()
method_7295()
m_veqhacwa()
updateWaterSubmersionState()
updateWaterSubmersionState()
public Vec3
v(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
m_grytvnwh(float arg0)
getLeashPos(float arg0)
getLeashHoldPosition(float arg0)
public void
a(czd arg0, czd arg1, cvf arg2)
updateTutorialInventoryAction(ItemStack arg0, ItemStack arg1, ClickAction arg2)
method_33592(class_1799 arg0, class_1799 arg1, class_5536 arg2)
m_gmsleptb(C_sddaxwyk arg0, C_sddaxwyk arg1, C_qcuteihm arg2)
onPickupSlotClick(ItemStack arg0, ItemStack arg1, ClickType arg2)
onPickupSlotClick(ItemStack arg0, ItemStack arg1, ClickType arg2)
public float
dM()
getVisualRotationYInDegrees()
method_43078()
m_onrjdopp()
getBodyYaw()
getVisualYaw()
public void
g(czd arg0)
handleCreativeModeItemDrop(ItemStack arg0)
method_61499(class_1799 arg0)
m_irikssnm(C_sddaxwyk arg0)
dropCreativeStack(ItemStack arg0)
dropCreativeStack(ItemStack arg0)
public boolean
gn()
canDropItems()
method_64271()
m_hmruvmge()
canDropItems()
canDropItems()
public TickThrottler
E()
getDropSpamThrottler()
method_64376()
m_eovnuked()
getItemDropCooldown()