net.minecraft.client.player

public class LocalPlayer

extends AbstractClientPlayer

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable

gkx
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
cK
POSITION_REMINDER_INTERVAL
field_32671
field_32671
private static final int
cL
WATER_VISION_MAX_TIME
field_32672
field_32672
private static final int
cM
WATER_VISION_QUICK_TIME
field_32673
field_32673
private static final float
cN
WATER_VISION_QUICK_PERCENT
field_32674
field_32674
private static final double
cO
SUFFOCATING_COLLISION_CHECK_SCALE
field_32675
field_32675
private static final double
cP
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
cQ
stats
field_3928
statHandler
private final ClientRecipeBook
cR
recipeBook
field_3930
recipeBook
private final TickThrottler
cS
dropSpamThrottler
field_54391
itemDropCooldown
private final List<AmbientSoundHandler>
cT
ambientSoundHandlers
field_3933
tickables
private int
cU
permissionLevel
field_3912
clientPermissionLevel
private double
cV
xLast
field_3926
lastX
private double
cW
yLast
field_3940
lastBaseY
private double
cX
zLast
field_3924
lastZ
private float
cY
yRotLast
field_3941
lastYaw
private float
cZ
xRotLast
field_3925
lastPitch
private boolean
da
lastOnGround
field_3920
lastOnGround
private boolean
db
lastHorizontalCollision
field_53040
lastHorizontalCollision
private boolean
dc
crouching
field_23093
inSneakingPose
private boolean
dd
wasShiftKeyDown
field_3936
lastSneaking
private boolean
de
wasSprinting
field_3919
lastSprinting
private int
df
positionReminder
field_3923
ticksSinceLastPositionPacketSent
private boolean
dg
flashOnSetHealth
field_3918
healthInitialized
public ClientInput
k
input
field_3913
input
private Input
dh
lastSentInput
field_54156
lastPlayerInput
protected final Minecraft
cC
minecraft
field_3937
client
protected int
cD
sprintTriggerTime
field_3935
ticksLeftToDoubleTapSprint
public float
cE
yBob
field_3932
renderYaw
public float
cF
xBob
field_3916
renderPitch
public float
cG
yBobO
field_3931
lastRenderYaw
public float
cH
xBobO
field_3914
lastRenderPitch
private int
di
jumpRidingTicks
field_3938
field_3938
private float
dj
jumpRidingScale
field_3922
mountJumpStrength
public float
cI
spinningEffectIntensity
field_44911
nauseaIntensity
public float
cJ
oSpinningEffectIntensity
field_44912
prevNauseaIntensity
private boolean
dk
startedUsingItem
field_3915
usingItem
private InteractionHand
dl
usingItemHand
field_3945
activeHand
private boolean
dm
handsBusy
field_3942
riding
private boolean
dn
autoJumpEnabled
field_3927
autoJumpEnabled
private int
do
autoJumpTime
field_3934
ticksToNextAutoJump
private boolean
dp
wasFallFlying
field_3939
falling
private int
dq
waterVisionTime
field_3917
underwaterVisibilityTicks
private boolean
dr
showDeathScreen
field_20663
showsDeathScreen
private boolean
ds
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(bum arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
public void
bQ()
removeVehicle()
method_29239()
dismountVehicle()
public float
h(float arg0)
getViewXRot(float arg0)
method_5695(float arg0)
getPitch(float arg0)
public float
i(float arg0)
getViewYRot(float arg0)
method_5705(float arg0)
getYaw(float arg0)
public void
h()
tick()
method_5773()
tick()
public float
e()
getCurrentMood()
method_26269()
getMoodPercentage()
private void
I()
sendPosition()
method_3136()
sendMovementPackets()
private void
J()
sendShiftKeyState()
method_62165()
sendSneakingPacket()
private void
L()
sendIsSprintingIfNeeded()
method_46742()
sendSprintingPacket()
public boolean
a(boolean arg0)
drop(boolean arg0)
method_7290(boolean arg0)
dropSelectedItem(boolean entireStack)
public void
a(bsk arg0)
swing(InteractionHand arg0)
method_6104(class_1268 arg0)
swingHand(Hand arg0)
public void
gg()
respawn()
method_7331()
requestRespawn()
public void
p()
closeContainer()
method_7346()
closeHandledScreen()
public void
f()
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
c()
isLocalPlayer()
method_7340()
isMainPlayer()
public boolean
fI()
isSuppressingSlidingDownLadder()
method_21754()
isHoldingOntoLadder()
public boolean
bv()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
protected void
i()
sendRidingJump()
method_3133()
startRidingJump()
public void
l()
sendOpenInventory()
method_3132()
openRidingInventory()
public StatsCounter
m()
getStats()
method_3143()
getStatHandler()
public ClientRecipeBook
n()
getRecipeBook()
method_3130()
getRecipeBook()
public void
a(dcm 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(wp 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(ji 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
t()
shouldShowDeathScreen()
method_22419()
showsDeathScreen()
public void
y(boolean arg0)
setDoLimitedCrafting(boolean arg0)
method_53848(boolean arg0)
setLimitedCraftingEnabled(boolean limitedCraftingEnabled)
public boolean
u()
getDoLimitedCrafting()
method_53847()
isLimitedCraftingEnabled()
public void
a(avz 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(avz arg0, awb 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 boolean
dj()
isEffectiveAi()
method_6034()
canMoveVoluntarily()
public void
c(bsk arg0)
startUsingItem(InteractionHand arg0)
method_6019(class_1268 arg0)
setCurrentHand(Hand arg0)
public boolean
fz()
isUsingItem()
method_6115()
isUsingItem()
public void
fF()
stopUsingItem()
method_6021()
clearActiveItem()
public InteractionHand
fA()
getUsedItemHand()
method_6058()
getActiveHand()
public void
a(ajy<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public PlayerRideableJumping
v()
jumpableVehicle()
method_45773()
getJumpingMount()
public float
y()
getJumpRidingScale()
method_3151()
getMountJumpStrength()
public boolean
aa()
isTextFilteringEnabled()
method_33793()
shouldFilterText()
public void
a(dvn arg0, boolean arg1)
openTextEdit(SignBlockEntity arg0, boolean arg1)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
public void
a(dfj arg0)
openMinecartCommandBlock(BaseCommandBlock arg0)
method_7257(class_1918 arg0)
openCommandBlockMinecartScreen(CommandBlockExecutor arg0)
public void
a(duk arg0)
openCommandBlock(CommandBlockEntity arg0)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
public void
a(dvs arg0)
openStructureBlock(StructureBlockEntity arg0)
method_7303(class_2633 arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
public void
a(dvd arg0)
openJigsawBlock(JigsawBlockEntity arg0)
method_16354(class_3751 arg0)
openJigsawScreen(JigsawBlockEntity arg0)
public void
a(cwq arg0, bsk arg1)
openItemGui(ItemStack arg0, InteractionHand arg1)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack arg0, Hand arg1)
public void
b(bum arg0)
crit(Entity arg0)
method_7277(class_1297 arg0)
addCritParticles(Entity arg0)
public void
c(bum 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
z()
isMovingSlowly()
method_20303()
shouldSlowDown()
public void
fu()
serverAiStep()
method_6023()
tickNewAi()
protected boolean
A()
isControlledCamera()
method_3134()
isCamera()
public void
B()
resetPos()
method_33689()
init()
public void
d_()
aiStep()
method_6007()
tickMovement()
private boolean
N()
shouldStopSprinting()
method_65949()
shouldStopSprinting()
private boolean
O()
isRidingCamel()
method_65813()
isRidingCamel()
private boolean
P()
hasBlindness()
method_65525()
isBlind()
public Portal$Transition
C()
getActivePortalLocalTransition()
method_60886()
getCurrentPortalEffect()
protected void
el()
tickDeath()
method_6108()
updatePostDeath()
private void
z(boolean arg0)
handleConfusionTransitionEffect(boolean arg0)
method_60887(boolean arg0)
tickNausea(boolean fromPortalEffect)
public void
r()
rideTick()
method_5842()
tickRiding()
public boolean
D()
isHandsBusy()
method_3144()
isRiding()
public MobEffectInstance
d(jr<btp> arg0)
removeEffectNoUpdate(Holder<MobEffect> arg0)
method_6111(class_6880<class_1291> arg0)
removeStatusEffectInternal(RegistryEntry<StatusEffect> arg0)
public void
a(bvm arg0, fbb arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
public boolean
E()
isAutoJumpEnabled()
method_3149()
isAutoJumpEnabled()
public boolean
gQ()
shouldRotateWithMinecart()
method_61498()
shouldRotateWithMinecart()
protected void
h(float arg0, float arg1)
updateAutoJump(float arg0, float arg1)
method_3148(float arg0, float arg1)
autoJump(float dx, float dz)
protected boolean
d(fbb arg0)
isHorizontalCollisionMinor(Vec3 arg0)
method_39759(class_243 arg0)
hasCollidedSoftly(Vec3d arg0)
private boolean
Q()
canAutoJump()
method_22119()
shouldAutoJump()
private boolean
R()
isMoving()
method_22120()
hasMovementInput()
private boolean
S()
canStartSprinting()
method_48300()
canStartSprinting()
private boolean
a(bum arg0)
vehicleCanSprint(Entity arg0)
method_48301(class_1297 arg0)
canVehicleSprint(Entity vehicle)
private boolean
T()
hasEnoughImpulseToStartSprinting()
method_20623()
isWalking()
private boolean
U()
hasEnoughFoodToStartSprinting()
method_46743()
canSprint()
public float
F()
getWaterVision()
method_3140()
getUnderwaterVisibility()
public void
a(dgg arg0)
onGameModeChanged(GameType arg0)
method_51889(class_1934 arg0)
onGameModeChanged(GameMode gameMode)
public boolean
bo()
isUnderWater()
method_5869()
isSubmergedInWater()
protected boolean
gb()
updateIsUnderwater()
method_7295()
updateWaterSubmersionState()
public Vec3
u(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
getLeashPos(float arg0)
public void
a(cwq arg0, cwq arg1, csn 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
g(cwq arg0)
handleCreativeModeItemDrop(ItemStack arg0)
method_61499(class_1799 arg0)
dropCreativeStack(ItemStack arg0)
public boolean
gl()
canDropItems()
method_64271()
canDropItems()
public TickThrottler
H()
getDropSpamThrottler()
method_64376()
getItemDropCooldown()