net.minecraft.client.player

public class LocalPlayer

extends AbstractClientPlayer

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable

gkh
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
cI
POSITION_REMINDER_INTERVAL
field_32671
field_32671
private static final int
cJ
WATER_VISION_MAX_TIME
field_32672
field_32672
private static final int
cK
WATER_VISION_QUICK_TIME
field_32673
field_32673
private static final float
cL
WATER_VISION_QUICK_PERCENT
field_32674
field_32674
private static final double
cM
SUFFOCATING_COLLISION_CHECK_SCALE
field_32675
field_32675
private static final double
cN
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
field_36194
MAX_SOFT_COLLISION_RADIANS
public final ClientPacketListener
i
connection
field_3944
networkHandler
private final StatsCounter
cO
stats
field_3928
statHandler
private final ClientRecipeBook
cP
recipeBook
field_3930
recipeBook
private final TickThrottler
cQ
dropSpamThrottler
field_54391
itemDropCooldown
private final List<AmbientSoundHandler>
cR
ambientSoundHandlers
field_3933
tickables
private int
cS
permissionLevel
field_3912
clientPermissionLevel
private double
cT
xLast
field_3926
lastX
private double
cU
yLast
field_3940
lastBaseY
private double
cV
zLast
field_3924
lastZ
private float
cW
yRotLast
field_3941
lastYaw
private float
cX
xRotLast
field_3925
lastPitch
private boolean
cY
lastOnGround
field_3920
lastOnGround
private boolean
cZ
lastHorizontalCollision
field_53040
lastHorizontalCollision
private boolean
da
crouching
field_23093
inSneakingPose
private boolean
db
wasShiftKeyDown
field_3936
lastSneaking
private boolean
dc
wasSprinting
field_3919
lastSprinting
private int
dd
positionReminder
field_3923
ticksSinceLastPositionPacketSent
private boolean
de
flashOnSetHealth
field_3918
healthInitialized
public ClientInput
j
input
field_3913
input
private Input
df
lastSentInput
field_54156
lastPlayerInput
protected final Minecraft
k
minecraft
field_3937
client
protected int
cz
sprintTriggerTime
field_3935
ticksLeftToDoubleTapSprint
public float
cC
yBob
field_3932
renderYaw
public float
cD
xBob
field_3916
renderPitch
public float
cE
yBobO
field_3931
lastRenderYaw
public float
cF
xBobO
field_3914
lastRenderPitch
private int
dg
jumpRidingTicks
field_3938
field_3938
private float
dh
jumpRidingScale
field_3922
mountJumpStrength
public float
cG
spinningEffectIntensity
field_44911
nauseaIntensity
public float
cH
oSpinningEffectIntensity
field_44912
prevNauseaIntensity
private boolean
di
startedUsingItem
field_3915
usingItem
private InteractionHand
dj
usingItemHand
field_3945
activeHand
private boolean
dk
handsBusy
field_3942
riding
private boolean
dl
autoJumpEnabled
field_3927
autoJumpEnabled
private int
dm
autoJumpTime
field_3934
ticksToNextAutoJump
private boolean
dn
wasFallFlying
field_3939
falling
private int
do
waterVisionTime
field_3917
underwaterVisibilityTicks
private boolean
dp
showDeathScreen
field_20663
showsDeathScreen
private boolean
dq
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(bvk 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(bti 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(ddl arg0)
removeRecipeHighlight(RecipeDisplayId arg0)
method_3141(class_10298 arg0)
onRecipeDisplayed(NetworkRecipeId recipeId)
protected int
G()
getPermissionLevel()
method_5691()
getPermissionLevel()
public void
a(int arg0)
setPermissionLevel(int arg0)
method_3147(int arg0)
setClientPermissionLevel(int clientPermissionLevel)
public void
a(xv 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(jh 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
x(boolean arg0)
setDoLimitedCrafting(boolean arg0)
method_53848(boolean arg0)
setLimitedCraftingEnabled(boolean limitedCraftingEnabled)
public boolean
u()
getDoLimitedCrafting()
method_53847()
isLimitedCraftingEnabled()
public void
a(axe 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(axe arg0, axg 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
dk()
isEffectiveAi()
method_6034()
canMoveVoluntarily()
public void
c(bti 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(alc<?> 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(dwk arg0, boolean arg1)
openTextEdit(SignBlockEntity arg0, boolean arg1)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
public void
a(dgi arg0)
openMinecartCommandBlock(BaseCommandBlock arg0)
method_7257(class_1918 arg0)
openCommandBlockMinecartScreen(CommandBlockExecutor arg0)
public void
a(dvh arg0)
openCommandBlock(CommandBlockEntity arg0)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
public void
a(dwp arg0)
openStructureBlock(StructureBlockEntity arg0)
method_7303(class_2633 arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
public void
a(dwa arg0)
openJigsawBlock(JigsawBlockEntity arg0)
method_16354(class_3751 arg0)
openJigsawScreen(JigsawBlockEntity arg0)
public void
a(cxp arg0, bti arg1)
openItemGui(ItemStack arg0, InteractionHand arg1)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack arg0, Hand arg1)
public void
b(bvk arg0)
crit(Entity arg0)
method_7277(class_1297 arg0)
addCritParticles(Entity arg0)
public void
c(bvk 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()
public Portal$Transition
C()
getActivePortalLocalTransition()
method_60886()
getCurrentPortalEffect()
protected void
em()
tickDeath()
method_6108()
updatePostDeath()
private void
y(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(jq<bun> arg0)
removeEffectNoUpdate(Holder<MobEffect> arg0)
method_6111(class_6880<class_1291> arg0)
removeStatusEffectInternal(RegistryEntry<StatusEffect> arg0)
public void
a(bwk arg0, fby 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
gO()
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
c(fby 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(bvk 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
F()
getWaterVision()
method_3140()
getUnderwaterVisibility()
public void
a(dhf 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(cxp arg0, cxp arg1, ctm 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
dN()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()
public void
g(cxp 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()