net.minecraft.client.player

public class LocalPlayer

extends AbstractClientPlayer

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable

geb
net.minecraft.client.player.LocalPlayer
net.minecraft.class_746
net.minecraft.client.network.ClientPlayerEntity
net.minecraft.src.C_4105_

Field summary

Modifier and TypeField
public static final org.slf4j.Logger
g
LOGGER
field_39078
LOGGER
f_234121_
private static final int
cJ
POSITION_REMINDER_INTERVAL
field_32671
field_32671
f_172525_
private static final int
cK
WATER_VISION_MAX_TIME
field_32672
field_32672
f_172526_
private static final int
cL
WATER_VISION_QUICK_TIME
field_32673
field_32673
f_172527_
private static final float
cM
WATER_VISION_QUICK_PERCENT
field_32674
field_32674
f_172528_
private static final double
cN
SUFFOCATING_COLLISION_CHECK_SCALE
field_32675
field_32675
f_172529_
private static final double
cO
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
field_36194
MAX_SOFT_COLLISION_RADIANS
f_197409_
public final ClientPacketListener
h
connection
field_3944
networkHandler
f_108617_
private final StatsCounter
cP
stats
field_3928
statHandler
f_108591_
private final ClientRecipeBook
cQ
recipeBook
field_3930
recipeBook
f_108592_
private final List<AmbientSoundHandler>
cR
ambientSoundHandlers
field_3933
tickables
f_108593_
private int
cS
permissionLevel
field_3912
clientPermissionLevel
f_108594_
private double
cT
xLast
field_3926
lastX
f_108595_
private double
cU
yLast1
field_3940
lastBaseY
f_108596_
private double
cV
zLast
field_3924
lastZ
f_108597_
private float
cW
yRotLast
field_3941
lastYaw
f_108598_
private float
cX
xRotLast
field_3925
lastPitch
f_108599_
private boolean
cY
lastOnGround
field_3920
lastOnGround
f_108600_
private boolean
cZ
crouching
field_23093
inSneakingPose
f_108601_
private boolean
da
wasShiftKeyDown
field_3936
lastSneaking
f_108602_
private boolean
db
wasSprinting
field_3919
lastSprinting
f_108603_
private int
dc
positionReminder
field_3923
ticksSinceLastPositionPacketSent
f_108604_
private boolean
dd
flashOnSetHealth
field_3918
healthInitialized
f_108605_
public Input
cz
input
field_3913
input
f_108618_
protected final Minecraft
cA
minecraft
field_3937
client
f_108619_
protected int
cB
sprintTriggerTime
field_3935
ticksLeftToDoubleTapSprint
f_108583_
public float
cD
yBob
field_3932
renderYaw
f_108585_
public float
cE
xBob
field_3916
renderPitch
f_108586_
public float
cF
yBobO
field_3931
lastRenderYaw
f_108587_
public float
cG
xBobO
field_3914
lastRenderPitch
f_108588_
private int
de
jumpRidingTicks
field_3938
field_3938
f_108607_
private float
df
jumpRidingScale
field_3922
mountJumpStrength
f_108608_
public float
cH
spinningEffectIntensity
field_44911
nauseaIntensity
f_108589_
public float
cI
oSpinningEffectIntensity
field_44912
prevNauseaIntensity
f_108590_
private boolean
dg
startedUsingItem
field_3915
usingItem
f_108609_
private InteractionHand
dh
usingItemHand
field_3945
activeHand
f_108610_
private boolean
di
handsBusy
field_3942
riding
f_108611_
private boolean
dj
autoJumpEnabled
field_3927
autoJumpEnabled
f_108612_
private int
dk
autoJumpTime
field_3934
ticksToNextAutojump
f_108613_
private boolean
dl
wasFallFlying
field_3939
falling
f_108614_
private int
dm
waterVisionTime
field_3917
underwaterVisibilityTicks
f_108615_
private boolean
dn
showDeathScreen
field_20663
showsDeathScreen
f_108616_
private boolean
do
doLimitedCrafting
field_46188
limitedCraftingEnabled
f_290392_

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
a(brk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_108663_, float arg1)
public void
c(float arg0)
heal(float arg0)
method_6025(float arg0)
heal(float arg0)
m_5634_(float arg0)
public boolean
a(bsr arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
m_7998_(C_507_ p_108668_, boolean arg1)
public void
bJ()
removeVehicle()
method_29239()
dismountVehicle()
m_6038_()
public float
h(float arg0)
getViewXRot(float arg0)
method_5695(float arg0)
getPitch(float arg0)
m_5686_(float arg0)
public float
i(float arg0)
getViewYRot(float arg0)
method_5705(float arg0)
getYaw(float arg0)
m_5675_(float arg0)
public void
l()
tick()
method_5773()
tick()
m_8119_()
public float
d()
getCurrentMood()
method_26269()
getMoodPercentage()
m_108762_()
private void
E()
sendPosition()
method_3136()
sendMovementPackets()
m_108640_()
private void
F()
sendIsSprintingIfNeeded()
method_46742()
sendSprintingPacket()
m_254869_()
public boolean
a(boolean arg0)
drop(boolean arg0)
method_7290(boolean arg0)
dropSelectedItem(boolean entireStack)
m_108700_(boolean arg0)
public void
a(bqq arg0)
swing(InteractionHand arg0)
method_6104(class_1268 arg0)
swingHand(Hand arg0)
m_6674_(C_470_ arg0)
public void
fW()
respawn()
method_7331()
requestRespawn()
m_7583_()
protected void
f(brk arg0, float arg1)
actuallyHurt(DamageSource arg0, float arg1)
method_6074(class_1282 arg0, float arg1)
applyDamage(DamageSource arg0, float arg1)
m_6475_(C_489_ p_108730_, float arg1)
public void
s()
closeContainer()
method_7346()
closeHandledScreen()
m_6915_()
public void
e()
clientSideCloseContainer()
method_3137()
closeScreen()
m_108763_()
public void
H(float arg0)
hurtTo(float arg0)
method_3138(float arg0)
updateHealth(float health)
m_108760_(float arg0)
public void
z()
onUpdateAbilities()
method_7355()
sendAbilitiesUpdate()
m_6885_()
public boolean
g()
isLocalPlayer()
method_7340()
isMainPlayer()
m_7578_()
public boolean
fz()
isSuppressingSlidingDownLadder()
method_21754()
isHoldingOntoLadder()
m_5791_()
public boolean
br()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
m_5843_()
protected void
h()
sendRidingJump()
method_3133()
startRidingJump()
m_108765_()
public void
i()
sendOpenInventory()
method_3132()
openRidingInventory()
m_108628_()
public StatsCounter
j()
getStats()
method_3143()
getStatHandler()
m_108630_()
public ClientRecipeBook
m()
getRecipeBook()
method_3130()
getRecipeBook()
m_108631_()
public void
a(czb<?> arg0)
removeRecipeHighlight(RecipeHolder<?> arg0)
method_3141(class_8786<?> arg0)
onRecipeDisplayed(RecipeEntry<?> recipe)
m_108675_(C_290175_<?> arg0)
protected int
G()
getPermissionLevel()
method_5691()
getPermissionLevel()
m_8088_()
public void
a(int arg0)
setPermissionLevel(int arg0)
method_3147(int arg0)
setClientPermissionLevel(int clientPermissionLevel)
m_108648_(int arg0)
public void
a(wz arg0, boolean arg1)
displayClientMessage(Component arg0, boolean arg1)
method_7353(class_2561 arg0, boolean arg1)
sendMessage(Text arg0, boolean arg1)
m_5661_(C_4996_ p_108697_, 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)
m_108704_(double p_108706_, double arg1)
private boolean
c(jd arg0)
suffocatesAt(BlockPos arg0)
method_30674(class_2338 arg0)
wouldCollideAt(BlockPos pos)
m_108746_(C_4675_ arg0)
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)
m_108644_(float p_108646_, int p_108647_, int arg2)
public void
a(wz arg0)
sendSystemMessage(Component arg0)
method_43496(class_2561 arg0)
sendMessage(Text arg0)
m_213846_(C_4996_ arg0)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public void
b(boolean arg0)
setShowDeathScreen(boolean arg0)
method_22420(boolean arg0)
setShowsDeathScreen(boolean showsDeathScreen)
m_108711_(boolean arg0)
public boolean
o()
shouldShowDeathScreen()
method_22419()
showsDeathScreen()
m_108632_()
public void
x(boolean arg0)
setDoLimitedCrafting(boolean arg0)
method_53848(boolean arg0)
setLimitedCraftingEnabled(boolean limitedCraftingEnabled)
m_294300_(boolean arg0)
public boolean
p()
getDoLimitedCrafting()
method_53847()
isLimitedCraftingEnabled()
m_295166_()
public void
a(avo 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)
m_5496_(C_123_ p_108652_, float p_108653_, float arg2)
public void
a(avo arg0, avq 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)
m_6330_(C_123_ p_108656_, C_125_ p_108657_, float p_108658_, float arg3)
public boolean
db()
isEffectiveAi()
method_6034()
canMoveVoluntarily()
m_21515_()
public void
c(bqq arg0)
startUsingItem(InteractionHand arg0)
method_6019(class_1268 arg0)
setCurrentHand(Hand arg0)
m_6672_(C_470_ arg0)
public boolean
fr()
isUsingItem()
method_6115()
isUsingItem()
m_6117_()
public void
fx()
stopUsingItem()
method_6021()
clearActiveItem()
m_5810_()
public InteractionHand
fs()
getUsedItemHand()
method_6058()
getActiveHand()
m_7655_()
public void
a(ajw<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public PlayerRideableJumping
q()
jumpableVehicle()
method_45773()
getJumpingMount()
m_245714_()
public float
v()
getJumpRidingScale()
method_3151()
getMountJumpStrength()
m_108634_()
public boolean
Z()
isTextFilteringEnabled()
method_33793()
shouldFilterText()
m_143387_()
public void
a(drs arg0, boolean arg1)
openTextEdit(SignBlockEntity arg0, boolean arg1)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
m_7739_(C_2024_ p_277980_, boolean arg1)
public void
a(dbx arg0)
openMinecartCommandBlock(BaseCommandBlock arg0)
method_7257(class_1918 arg0)
openCommandBlockMinecartScreen(CommandBlockExecutor arg0)
m_7907_(C_1553_ arg0)
public void
a(dqr arg0)
openCommandBlock(CommandBlockEntity arg0)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
m_7698_(C_1998_ arg0)
public void
a(drx arg0)
openStructureBlock(StructureBlockEntity arg0)
method_7303(class_2633 arg0)
openStructureBlockScreen(StructureBlockBlockEntity arg0)
m_5966_(C_2029_ arg0)
public void
a(dri arg0)
openJigsawBlock(JigsawBlockEntity arg0)
method_16354(class_3751 arg0)
openJigsawScreen(JigsawBlockEntity arg0)
m_7569_(C_2011_ arg0)
public void
a(cuq arg0, bqq arg1)
openItemGui(ItemStack arg0, InteractionHand arg1)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack arg0, Hand arg1)
m_6986_(C_1391_ p_108674_, C_470_ arg1)
public void
b(bsr arg0)
crit(Entity arg0)
method_7277(class_1297 arg0)
addCritParticles(Entity arg0)
m_5704_(C_507_ arg0)
public void
c(bsr arg0)
magicCrit(Entity arg0)
method_7304(class_1297 arg0)
addEnchantedHitParticles(Entity arg0)
m_5700_(C_507_ arg0)
public boolean
bW()
isShiftKeyDown()
method_5715()
isSneaking()
m_6144_()
public boolean
cb()
isCrouching()
method_18276()
isInSneakingPose()
m_6047_()
public boolean
w()
isMovingSlowly()
method_20303()
shouldSlowDown()
m_108635_()
public void
fm()
serverAiStep()
method_6023()
tickNewAi()
m_6140_()
protected boolean
x()
isControlledCamera()
method_3134()
isCamera()
m_108636_()
public void
y()
resetPos()
method_33689()
init()
m_172530_()
public void
m_()
aiStep()
method_6007()
tickMovement()
m_8107_()
public Portal$Transition
A()
getActivePortalLocalTransition()
method_60886()
getCurrentPortalEffect()
m_339624_()
protected void
ed()
tickDeath()
method_6108()
updatePostDeath()
m_6153_()
private void
y(boolean arg0)
handleConfusionTransitionEffect(boolean arg0)
method_60887(boolean arg0)
tickNausea(boolean fromPortalEffect)
m_340509_(boolean arg0)
public void
u()
rideTick()
method_5842()
tickRiding()
m_6083_()
public boolean
B()
isHandsBusy()
method_3144()
isRiding()
m_108637_()
public MobEffectInstance
d(jm<brx> arg0)
removeEffectNoUpdate(Holder<MobEffect> arg0)
method_6111(class_6880<class_1291> arg0)
removeStatusEffectInternal(RegistryEntry<StatusEffect> arg0)
m_6234_(C_203228_<C_496_> arg0)
public void
a(bts arg0, exc arg1)
move(MoverType arg0, Vec3 arg1)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType arg0, Vec3d arg1)
m_6478_(C_531_ p_108671_, C_3046_ arg1)
public boolean
C()
isAutoJumpEnabled()
method_3149()
isAutoJumpEnabled()
m_108638_()
protected void
g(float arg0, float arg1)
updateAutoJump(float arg0, float arg1)
method_3148(float arg0, float arg1)
autoJump(float dx, float dz)
m_108743_(float p_108745_, float arg1)
protected boolean
d(exc arg0)
isHorizontalCollisionMinor(Vec3 arg0)
method_39759(class_243 arg0)
hasCollidedSoftly(Vec3d arg0)
m_196406_(C_3046_ arg0)
private boolean
H()
canAutoJump()
method_22119()
shouldAutoJump()
m_108731_()
private boolean
I()
isMoving()
method_22120()
hasMovementInput()
m_108732_()
private boolean
J()
canStartSprinting()
method_48300()
canStartSprinting()
m_264082_()
private boolean
d(bsr arg0)
vehicleCanSprint(Entity arg0)
method_48301(class_1297 arg0)
canVehicleSprint(Entity vehicle)
m_264231_(C_507_ arg0)
private boolean
L()
hasEnoughImpulseToStartSprinting()
method_20623()
isWalking()
m_108733_()
private boolean
N()
hasEnoughFoodToStartSprinting()
method_46743()
canSprint()
m_255269_()
public float
D()
getWaterVision()
method_3140()
getUnderwaterVisibility()
m_108639_()
public void
a(dct arg0)
onGameModeChanged(GameType arg0)
method_51889(class_1934 arg0)
onGameModeChanged(GameMode gameMode)
m_287171_(C_1593_ arg0)
public boolean
bk()
isUnderWater()
method_5869()
isSubmergedInWater()
m_5842_()
protected boolean
fQ()
updateIsUnderwater()
method_7295()
updateWaterSubmersionState()
m_7602_()
public Vec3
s(float arg0)
getRopeHoldPosition(float arg0)
method_30951(float arg0)
getLeashPos(float arg0)
m_7398_(float arg0)
public void
a(cuq arg0, cuq arg1, cqd 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)
m_141945_(C_1391_ p_172533_, C_1391_ p_172534_, C_141163_ arg2)
public float
dF()
getVisualRotationYInDegrees()
method_43078()
getBodyYaw()
m_213816_()