Package net.minecraft.client.player
Class LocalPlayer
- All Implemented Interfaces:
- CommandSource,- Attackable,- EntityAccess,- Nameable,- ScoreHolder,- IAttachmentHolder,- IEntityExtension,- ILivingEntityExtension,- IPlayerExtension,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.player.PlayerPlayer.BedSleepingProblemNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntityLivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolderAttachmentHolder.AsField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<AmbientSoundHandler>private booleanprivate intfinal ClientPacketListenerprivate booleanprivate static final floatprivate booleanprivate booleanprivate booleanprivate floatprivate intprivate booleanstatic final org.slf4j.Loggerprotected final Minecraftprivate static final doublefloatprivate intprivate static final intprivate intprivate final ClientRecipeBookprivate booleanfloatprotected intprivate booleanprivate final StatsCounterprivate static final doubleprivate InteractionHandprivate booleanprivate booleanprivate booleanprivate static final intprivate static final floatprivate static final intprivate intfloatfloatprivate doubleprivate floatfloatfloatprivate doubleprivate floatprivate doubleFields inherited from class net.minecraft.client.player.AbstractClientPlayerclientLevel, deltaMovementOnPreviousTick, elytraRotX, elytraRotY, elytraRotZFields inherited from class net.minecraft.world.entity.player.Playerbob, containerMenu, CROUCH_BB_HEIGHT, DATA_PLAYER_MAIN_HAND, DATA_PLAYER_MODE_CUSTOMISATION, DATA_SHOULDER_LEFT, DATA_SHOULDER_RIGHT, DEFAULT_EYE_HEIGHT, DEFAULT_MAIN_HAND, DEFAULT_MODEL_CUSTOMIZATION, defaultFlySpeed, enchantmentSeed, ENDER_SLOT_OFFSET, enderChestInventory, experienceLevel, experienceProgress, fishing, foodData, hurtDir, inventoryMenu, jumpTriggerTime, MAX_HEALTH, MAX_NAME_LENGTH, oBob, PERSISTED_NBT_TAG, SLEEP_DURATION, STANDING_DIMENSIONS, SWIMMING_BB_HEIGHT, SWIMMING_BB_WIDTH, takeXpDelay, totalExperience, WAKE_UP_DURATION, wasUnderwater, xCloak, xCloakO, yCloak, yCloakO, zCloak, zCloakOFields inherited from class net.minecraft.world.entity.LivingEntityanimStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.EntityBASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolderATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.commands.CommandSourceNULLFields inherited from interface net.minecraft.world.scores.ScoreHolderWILDCARD, WILDCARD_NAME
- 
Constructor SummaryConstructorsConstructorDescriptionLocalPlayer(Minecraft p_108621_, ClientLevel p_108622_, ClientPacketListener p_108623_, StatsCounter p_108624_, ClientRecipeBook p_108625_, boolean p_108626_, boolean p_108627_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidactuallyHurt(DamageSource p_108729_, float p_108730_) voidaiStep()private booleanbooleanbooleanprivate booleanvoidvoidvoidvoiddisplayClientMessage(Component p_108696_, boolean p_108697_) booleandrop(boolean p_108701_) floatbooleanfloatintgetRopeHoldPosition(float p_108758_) getStats()floatgetViewXRot(float p_108742_) floatgetViewYRot(float p_108753_) floatfloatvoidhandleEntityEvent(byte p_108643_) private voidprivate booleanprivate booleanvoidheal(float p_108708_) booleanhurt(DamageSource p_108662_, float p_108663_) voidhurtTo(float p_108761_) booleanprotected booleanbooleanbooleanbooleanprotected booleanisHorizontalCollisionMinor(Vec3 p_197411_) booleanprivate booleanisMoving()booleanbooleanbooleanbooleanbooleanbooleanvoidvoidprivate voidmoveTowardsClosestSpace(double p_108705_, double p_108706_) voidonGameModeChanged(GameType p_287675_) voidonSyncedDataUpdated(EntityDataAccessor<?> p_108699_) voidvoidopenCommandBlock(CommandBlockEntity p_108680_) voidopenItemGui(ItemStack p_108673_, InteractionHand p_108674_) voidopenJigsawBlock(JigsawBlockEntity p_108682_) voidopenMinecartCommandBlock(BaseCommandBlock p_108678_) voidopenStructureBlock(StructureBlockEntity p_108686_) voidopenTextEdit(SignBlockEntity p_277970_, boolean p_277980_) voidplayNotifySound(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) voidplaySound(SoundEvent p_108651_, float p_108652_, float p_108653_) removeEffectNoUpdate(MobEffect p_108720_) voidremoveRecipeHighlight(RecipeHolder<?> p_300983_) voidvoidresetPos()voidrespawn()voidrideTick()private voidvoidprivate voidprotected voidvoidsendSystemMessage(Component p_234129_) voidvoidsetDoLimitedCrafting(boolean p_302021_) voidsetExperienceValues(float p_108645_, int p_108646_, int p_108647_) voidsetPermissionLevel(int p_108649_) voidsetShowDeathScreen(boolean p_108712_) booleanbooleanstartRiding(Entity p_108667_, boolean p_108668_) voidstartUsingItem(InteractionHand p_108718_) voidprivate booleansuffocatesAt(BlockPos p_108747_) voidswing(InteractionHand p_108660_) voidtick()protected voidprotected voidupdateAutoJump(float p_108744_, float p_108745_) protected booleanvoidupdateTutorialInventoryAction(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) private booleanvehicleCanSprint(Entity p_265184_) Methods inherited from class net.minecraft.client.player.AbstractClientPlayergetDeltaMovementLerped, getFieldOfViewModifier, getPlayerInfo, getSkin, isCreative, isSpectatorMethods inherited from class net.minecraft.world.entity.player.PlayeraddAdditionalSaveData, addItem, animateHurt, attack, awardRecipes, awardRecipesByKey, awardStat, awardStat, awardStat, awardStat, blockActionRestricted, blockUsingShield, canBeHitByProjectile, canBeSeenAsEnemy, canEat, canHarmPlayer, canPlayerFitWithinBlocksAndEntitiesWhen, canSprint, canTakeItem, canUseGameMasterBlocks, causeFallDamage, causeFoodExhaustion, createAttributes, createItemCooldowns, defineSynchedData, destroyVanishingCursedItems, die, disableShield, doAutoAttackOnTouch, doCloseContainer, doesEmitEquipEvent, doWaterSplashEffect, drop, drop, dropEquipment, eat, findRespawnPositionAndUseSpawnBlock, freeAt, getAbilities, getAbsorptionAmount, getArmorSlots, getAttackStrengthScale, getBlockSpeedFactor, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDestroySpeed, getDigSpeed, getDimensionChangingDelay, getDimensions, getDismountPoses, getDisplayName, getEnchantmentSeed, getEnderChestInventory, getExperienceReward, getFallSounds, getFireImmuneTicks, getFlyingSpeed, getFoodData, getForcedPose, getGameProfile, getHandSlots, getHurtDir, getHurtSound, getInventory, getItemBySlot, getLastDeathLocation, getLuck, getMainArm, getMaxHeadRotationRelativeToBody, getMovementEmission, getName, getPickRange, getPortalWaitTime, getPrefixes, getProjectile, getScore, getScoreboard, getScoreboardName, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSlot, getSoundSource, getSpeed, getStandingEyeHeight, getSuffixes, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getWardenSpawnTracker, getXpNeededForNextLevel, giveExperienceLevels, giveExperiencePoints, hasContainerOpen, hasCorrectToolForDrops, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseScore, interactOn, internalSetAbsorptionAmount, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isHurt, isImmobile, isInvulnerableTo, isModelPartShown, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isStayingOnGroundSurface, isSwimming, isValidUsername, jumpFromGround, killedEntity, makeStuckInBlock, maybeBackOffFromEdge, mayBuild, mayUseItemAt, onEnchantmentPerformed, onSoulSpeedBlock, openHorseInventory, openMenu, playStepSound, readAdditionalSaveData, refreshDisplayName, remove, removeEntitiesOnShoulder, resetAttackStrengthTicker, resetRecipes, resetStat, ridingOffset, sendMerchantOffers, setEntityOnShoulder, setForcedPose, setItemSlot, setLastDeathLocation, setMainArm, setReducedDebugInfo, setRemainingFireTicks, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldBeSaved, shouldRemoveSoulSpeed, shouldShowName, startAutoSpinAttack, startFallFlying, startSleepInBed, stopFallFlying, stopSleepInBed, stopSleeping, sweepAttack, travel, triggerRecipeCrafted, tryToStartFallFlying, updatePlayerPose, updateSwimming, wantsToStopRidingMethods inherited from class net.minecraft.world.entity.LivingEntityaddEffect, addEffect, areAllEffectsAmbient, attackable, baseTick, blockedByShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getHitbox, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxHealth, getMobType, getMyRidingOffset, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUseItem, getUseItemRemainingTicks, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, increaseAirSupply, indicateDamage, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isVisuallySwimming, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, playBlockFallSound, playHurtSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectParticles, removeEffectsCuredBy, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, skipDropExperience, spawnSoulSpeedParticle, startSleeping, stopRiding, swing, take, tickEffects, tickHeadTurn, tickRidden, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canCollideWith, canControlVehicle, canRide, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMotionDirection, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRotationVector, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isSilent, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, markHurt, mayInteract, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removeAfterChangingDimensions, removePassenger, removeTag, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, waterSwimSoundMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolderareAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHoldergetData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtensioncanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, sendPairingData, serializeNBT, shouldRiderSitMethods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtensioncanDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluidMethods inherited from interface net.neoforged.neoforge.common.extensions.IPlayerExtensioncanReach, canReach, canReach, getBlockReach, getEntityReach, isCloseEnough, openMenu, openMenuMethods inherited from interface net.minecraft.world.scores.ScoreHoldergetFeedbackDisplayName
- 
Field Details- 
LOGGERpublic static final org.slf4j.Logger LOGGER
- 
POSITION_REMINDER_INTERVALprivate static final int POSITION_REMINDER_INTERVAL- See Also:
 
- 
WATER_VISION_MAX_TIMEprivate static final int WATER_VISION_MAX_TIME- See Also:
 
- 
WATER_VISION_QUICK_TIMEprivate static final int WATER_VISION_QUICK_TIME- See Also:
 
- 
WATER_VISION_QUICK_PERCENTprivate static final float WATER_VISION_QUICK_PERCENT- See Also:
 
- 
SUFFOCATING_COLLISION_CHECK_SCALEprivate static final double SUFFOCATING_COLLISION_CHECK_SCALE- See Also:
 
- 
MINOR_COLLISION_ANGLE_THRESHOLD_RADIANprivate static final double MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN- See Also:
 
- 
DEFAULT_SNEAKING_MOVEMENT_FACTORprivate static final float DEFAULT_SNEAKING_MOVEMENT_FACTOR- See Also:
 
- 
connection
- 
stats
- 
recipeBook
- 
ambientSoundHandlers
- 
permissionLevelprivate int permissionLevel
- 
xLastprivate double xLast
- 
yLast1private double yLast1
- 
zLastprivate double zLast
- 
yRotLastprivate float yRotLast
- 
xRotLastprivate float xRotLast
- 
lastOnGroundprivate boolean lastOnGround
- 
crouchingprivate boolean crouching
- 
wasShiftKeyDownprivate boolean wasShiftKeyDown
- 
wasSprintingprivate boolean wasSprinting
- 
positionReminderprivate int positionReminder
- 
flashOnSetHealthprivate boolean flashOnSetHealth
- 
input
- 
minecraft
- 
sprintTriggerTimeprotected int sprintTriggerTime
- 
yBobpublic float yBob
- 
xBobpublic float xBob
- 
yBobOpublic float yBobO
- 
xBobOpublic float xBobO
- 
jumpRidingTicksprivate int jumpRidingTicks
- 
jumpRidingScaleprivate float jumpRidingScale
- 
spinningEffectIntensitypublic float spinningEffectIntensity
- 
oSpinningEffectIntensitypublic float oSpinningEffectIntensity
- 
startedUsingItemprivate boolean startedUsingItem
- 
usingItemHand
- 
handsBusyprivate boolean handsBusy
- 
autoJumpEnabledprivate boolean autoJumpEnabled
- 
autoJumpTimeprivate int autoJumpTime
- 
wasFallFlyingprivate boolean wasFallFlying
- 
waterVisionTimeprivate int waterVisionTime
- 
showDeathScreenprivate boolean showDeathScreen
- 
doLimitedCraftingprivate boolean doLimitedCrafting
 
- 
- 
Constructor Details- 
LocalPlayerpublic LocalPlayer(Minecraft p_108621_, ClientLevel p_108622_, ClientPacketListener p_108623_, StatsCounter p_108624_, ClientRecipeBook p_108625_, boolean p_108626_, boolean p_108627_) 
 
- 
- 
Method Details- 
hurt
- 
healpublic void heal(float p_108708_) - Overrides:
- healin class- LivingEntity
 
- 
startRiding- Overrides:
- startRidingin class- Entity
 
- 
removeVehiclepublic void removeVehicle()- Overrides:
- removeVehiclein class- Player
 
- 
getViewXRotpublic float getViewXRot(float p_108742_) - Overrides:
- getViewXRotin class- Entity
 
- 
getViewYRotpublic float getViewYRot(float p_108753_) - Overrides:
- getViewYRotin class- LivingEntity
 
- 
tickpublic void tick()- Overrides:
- tickin class- AbstractClientPlayer
 
- 
getCurrentMoodpublic float getCurrentMood()
- 
sendPositionprivate void sendPosition()
- 
sendIsSprintingIfNeededprivate void sendIsSprintingIfNeeded()
- 
droppublic boolean drop(boolean p_108701_) 
- 
swing- Overrides:
- swingin class- LivingEntity
 
- 
respawnpublic void respawn()
- 
actuallyHurt- Overrides:
- actuallyHurtin class- Player
 
- 
closeContainerpublic void closeContainer()- Overrides:
- closeContainerin class- Player
 
- 
clientSideCloseContainerpublic void clientSideCloseContainer()
- 
hurtTopublic void hurtTo(float p_108761_) 
- 
onUpdateAbilitiespublic void onUpdateAbilities()- Overrides:
- onUpdateAbilitiesin class- Player
 
- 
isLocalPlayerpublic boolean isLocalPlayer()- Overrides:
- isLocalPlayerin class- Player
 
- 
isSuppressingSlidingDownLadderpublic boolean isSuppressingSlidingDownLadder()- Overrides:
- isSuppressingSlidingDownLadderin class- LivingEntity
 
- 
canSpawnSprintParticlepublic boolean canSpawnSprintParticle()- Overrides:
- canSpawnSprintParticlein class- Entity
 
- 
canSpawnSoulSpeedParticlepublic boolean canSpawnSoulSpeedParticle()- Overrides:
- canSpawnSoulSpeedParticlein class- LivingEntity
 
- 
sendRidingJumpprotected void sendRidingJump()
- 
sendOpenInventorypublic void sendOpenInventory()
- 
getStats
- 
getRecipeBook
- 
removeRecipeHighlight
- 
getPermissionLevelpublic int getPermissionLevel()- Overrides:
- getPermissionLevelin class- Entity
 
- 
setPermissionLevelpublic void setPermissionLevel(int p_108649_) 
- 
displayClientMessage- Overrides:
- displayClientMessagein class- Player
 
- 
moveTowardsClosestSpaceprivate void moveTowardsClosestSpace(double p_108705_, double p_108706_) 
- 
suffocatesAt
- 
setExperienceValuespublic void setExperienceValues(float p_108645_, int p_108646_, int p_108647_) 
- 
sendSystemMessage- Specified by:
- sendSystemMessagein interface- CommandSource
- Overrides:
- sendSystemMessagein class- Entity
 
- 
handleEntityEventpublic void handleEntityEvent(byte p_108643_) - Overrides:
- handleEntityEventin class- Player
 
- 
setShowDeathScreenpublic void setShowDeathScreen(boolean p_108712_) 
- 
shouldShowDeathScreenpublic boolean shouldShowDeathScreen()
- 
setDoLimitedCraftingpublic void setDoLimitedCrafting(boolean p_302021_) 
- 
getDoLimitedCraftingpublic boolean getDoLimitedCrafting()
- 
playSound
- 
playNotifySoundpublic void playNotifySound(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) - Overrides:
- playNotifySoundin class- Player
 
- 
isEffectiveAipublic boolean isEffectiveAi()- Overrides:
- isEffectiveAiin class- Entity
 
- 
startUsingItem- Overrides:
- startUsingItemin class- LivingEntity
 
- 
isUsingItempublic boolean isUsingItem()- Overrides:
- isUsingItemin class- LivingEntity
 
- 
stopUsingItempublic void stopUsingItem()- Overrides:
- stopUsingItemin class- LivingEntity
 
- 
getUsedItemHand- Overrides:
- getUsedItemHandin class- LivingEntity
 
- 
onSyncedDataUpdated- Overrides:
- onSyncedDataUpdatedin class- LivingEntity
 
- 
jumpableVehicle
- 
getJumpRidingScalepublic float getJumpRidingScale()
- 
isTextFilteringEnabledpublic boolean isTextFilteringEnabled()- Overrides:
- isTextFilteringEnabledin class- Player
 
- 
openTextEdit- Overrides:
- openTextEditin class- Player
 
- 
openMinecartCommandBlock- Overrides:
- openMinecartCommandBlockin class- Player
 
- 
openCommandBlock- Overrides:
- openCommandBlockin class- Player
 
- 
openStructureBlock- Overrides:
- openStructureBlockin class- Player
 
- 
openJigsawBlock- Overrides:
- openJigsawBlockin class- Player
 
- 
openItemGui- Overrides:
- openItemGuiin class- Player
 
- 
crit
- 
magicCrit
- 
isShiftKeyDownpublic boolean isShiftKeyDown()- Overrides:
- isShiftKeyDownin class- Entity
 
- 
isCrouchingpublic boolean isCrouching()- Overrides:
- isCrouchingin class- Entity
 
- 
isMovingSlowlypublic boolean isMovingSlowly()
- 
serverAiSteppublic void serverAiStep()- Overrides:
- serverAiStepin class- Player
 
- 
isControlledCameraprotected boolean isControlledCamera()
- 
resetPospublic void resetPos()
- 
aiSteppublic void aiStep()
- 
tickDeathprotected void tickDeath()- Overrides:
- tickDeathin class- LivingEntity
 
- 
handleNetherPortalClientprivate void handleNetherPortalClient()
- 
rideTickpublic void rideTick()
- 
isHandsBusypublic boolean isHandsBusy()
- 
removeEffectNoUpdate- Overrides:
- removeEffectNoUpdatein class- LivingEntity
 
- 
move
- 
isAutoJumpEnabledpublic boolean isAutoJumpEnabled()
- 
updateAutoJumpprotected void updateAutoJump(float p_108744_, float p_108745_) 
- 
isHorizontalCollisionMinor- Overrides:
- isHorizontalCollisionMinorin class- Entity
 
- 
canAutoJumpprivate boolean canAutoJump()
- 
isMovingprivate boolean isMoving()
- 
canStartSprintingprivate boolean canStartSprinting()
- 
vehicleCanSprint
- 
hasEnoughImpulseToStartSprintingprivate boolean hasEnoughImpulseToStartSprinting()
- 
hasEnoughFoodToStartSprintingprivate boolean hasEnoughFoodToStartSprinting()
- 
getWaterVisionpublic float getWaterVision()
- 
onGameModeChanged
- 
isUnderWaterpublic boolean isUnderWater()- Overrides:
- isUnderWaterin class- Entity
 
- 
updateIsUnderwaterprotected boolean updateIsUnderwater()- Overrides:
- updateIsUnderwaterin class- Player
 
- 
getRopeHoldPosition- Overrides:
- getRopeHoldPositionin class- Player
 
- 
updateTutorialInventoryActionpublic void updateTutorialInventoryAction(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) - Overrides:
- updateTutorialInventoryActionin class- Player
 
- 
getVisualRotationYInDegreespublic float getVisualRotationYInDegrees()- Overrides:
- getVisualRotationYInDegreesin class- LivingEntity
 
 
-