Package net.minecraft.client.player
Class LocalPlayer
- All Implemented Interfaces:
CommandSource
,SyncedDataHolder
,Attackable
,EntityAccess
,Nameable
,ScoreHolder
,IAttachmentHolder
,IEntityExtension
,ILivingEntityExtension
,IPlayerExtension
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.player.Player
Player.BedSleepingProblem
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<AmbientSoundHandler> private boolean
private int
final ClientPacketListener
private boolean
private static final float
private boolean
private boolean
private boolean
private float
private int
private boolean
static final org.slf4j.Logger
protected final Minecraft
private static final double
float
private int
private static final int
private int
private final ClientRecipeBook
private boolean
float
protected int
private boolean
private final StatsCounter
private static final double
private InteractionHand
private boolean
private boolean
private boolean
private static final int
private static final float
private static final int
private int
float
float
private double
private float
float
float
private double
private float
private double
Fields inherited from class net.minecraft.client.player.AbstractClientPlayer
clientLevel, deltaMovementOnPreviousTick, elytraRotX, elytraRotY, elytraRotZ
Fields inherited from class net.minecraft.world.entity.player.Player
bob, containerMenu, CRAFTING_SLOT_OFFSET, CROUCH_BB_HEIGHT, currentExplosionCause, currentImpulseImpactPos, DATA_PLAYER_MAIN_HAND, DATA_PLAYER_MODE_CUSTOMISATION, DATA_SHOULDER_LEFT, DATA_SHOULDER_RIGHT, DEFAULT_BLOCK_INTERACTION_RANGE, DEFAULT_ENTITY_INTERACTION_RANGE, DEFAULT_EYE_HEIGHT, DEFAULT_MAIN_HAND, DEFAULT_MODEL_CUSTOMIZATION, DEFAULT_VEHICLE_ATTACHMENT, defaultFlySpeed, enchantmentSeed, ENDER_SLOT_OFFSET, enderChestInventory, experienceLevel, experienceProgress, fishing, foodData, HELD_ITEM_SLOT, hurtDir, ignoreFallDamageFromCurrentImpulse, inventoryMenu, jumpTriggerTime, MAX_HEALTH, 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, zCloakO
Fields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, 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, zza
Fields inherited from class net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, 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, zOld
Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
Fields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorDescriptionLocalPlayer
(Minecraft p_108621_, ClientLevel p_108622_, ClientPacketListener p_108623_, StatsCounter p_108624_, ClientRecipeBook p_108625_, boolean p_108626_, boolean p_108627_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
actuallyHurt
(DamageSource p_108729_, float p_108730_) void
aiStep()
private boolean
boolean
boolean
private boolean
void
void
void
void
displayClientMessage
(Component p_108696_, boolean p_108697_) boolean
drop
(boolean p_108701_) float
boolean
float
int
getRopeHoldPosition
(float p_108758_) getStats()
float
getViewXRot
(float p_108742_) float
getViewYRot
(float p_108753_) float
float
void
handleEntityEvent
(byte p_108643_) private void
private boolean
private boolean
void
heal
(float p_108708_) boolean
hurt
(DamageSource p_108662_, float p_108663_) void
hurtTo
(float p_108761_) boolean
protected boolean
boolean
boolean
boolean
protected boolean
isHorizontalCollisionMinor
(Vec3 p_197411_) boolean
private boolean
isMoving()
boolean
boolean
boolean
boolean
boolean
boolean
void
void
private void
moveTowardsClosestSpace
(double p_108705_, double p_108706_) void
onGameModeChanged
(GameType p_287675_) void
onSyncedDataUpdated
(EntityDataAccessor<?> p_108699_) void
void
openCommandBlock
(CommandBlockEntity p_108680_) void
openItemGui
(ItemStack p_108673_, InteractionHand p_108674_) void
openJigsawBlock
(JigsawBlockEntity p_108682_) void
openMinecartCommandBlock
(BaseCommandBlock p_108678_) void
openStructureBlock
(StructureBlockEntity p_108686_) void
openTextEdit
(SignBlockEntity p_277970_, boolean p_277980_) void
playNotifySound
(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) void
playSound
(SoundEvent p_108651_, float p_108652_, float p_108653_) removeEffectNoUpdate
(Holder<MobEffect> p_316634_) void
removeRecipeHighlight
(RecipeHolder<?> p_300983_) void
void
resetPos()
void
respawn()
void
rideTick()
private void
void
private void
protected void
void
sendSystemMessage
(Component p_234129_) void
void
setDoLimitedCrafting
(boolean p_302021_) void
setExperienceValues
(float p_108645_, int p_108646_, int p_108647_) void
setPermissionLevel
(int p_108649_) void
setShowDeathScreen
(boolean p_108712_) boolean
boolean
startRiding
(Entity p_108667_, boolean p_108668_) void
startUsingItem
(InteractionHand p_108718_) void
private boolean
suffocatesAt
(BlockPos p_108747_) void
swing
(InteractionHand p_108660_) void
tick()
protected void
protected void
updateAutoJump
(float p_108744_, float p_108745_) protected boolean
void
updateTutorialInventoryAction
(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) private boolean
vehicleCanSprint
(Entity p_265184_) Methods inherited from class net.minecraft.client.player.AbstractClientPlayer
getDeltaMovementLerped, getFieldOfViewModifier, getPlayerInfo, getSkin, isCreative, isSpectator
Methods inherited from class net.minecraft.world.entity.player.Player
addAdditionalSaveData, addItem, animateHurt, attack, awardRecipes, awardRecipesByKey, awardStat, awardStat, awardStat, awardStat, blockActionRestricted, blockInteractionRange, blockUsingShield, canBeHitByProjectile, canBeSeenAsEnemy, canEat, canHarmPlayer, canInteractWithBlock, canInteractWithEntity, canInteractWithEntity, canPlayerFitWithinBlocksAndEntitiesWhen, canSprint, canTakeItem, canUseGameMasterBlocks, canUseSlot, causeFallDamage, causeFoodExhaustion, createAttributes, createItemCooldowns, defineSynchedData, destroyVanishingCursedItems, die, disableShield, doAutoAttackOnTouch, doCloseContainer, doesEmitEquipEvent, doWaterSplashEffect, drop, drop, dropEquipment, eat, entityInteractionRange, findRespawnPositionAndUseSpawnBlock, freeAt, getAbilities, getAbsorptionAmount, getArmorSlots, getAttackStrengthScale, getBlockSpeedFactor, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDefaultDimensions, getDestroySpeed, getDigSpeed, getDimensionChangingDelay, getDismountPoses, getDisplayName, getEnchantmentSeed, getEnderChestInventory, getExperienceReward, getFallSounds, getFireImmuneTicks, getFlyingSpeed, getFoodData, getForcedPose, getGameProfile, getHandSlots, getHurtDir, getHurtSound, getInventory, getItemBySlot, getLastDeathLocation, getLuck, getMainArm, getMaxHeadRotationRelativeToBody, getMovementEmission, getName, getPortalWaitTime, getPrefixes, getProjectile, getScore, getScoreboard, getScoreboardName, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSlot, getSoundSource, getSpeed, getSuffixes, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getWardenSpawnTracker, getXpNeededForNextLevel, giveExperienceLevels, giveExperiencePoints, hasContainerOpen, hasCorrectToolForDrops, hasCorrectToolForDrops, hasInfiniteMaterials, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseScore, interactOn, internalSetAbsorptionAmount, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isHurt, isImmobile, isInvulnerableTo, isModelPartShown, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isStayingOnGroundSurface, isSwimming, jumpFromGround, killedEntity, makeStuckInBlock, maybeBackOffFromEdge, mayBuild, mayUseItemAt, onEnchantmentPerformed, onSoulSpeedBlock, openHorseInventory, openMenu, playStepSound, readAdditionalSaveData, refreshDisplayName, remove, removeEntitiesOnShoulder, resetAttackStrengthTicker, resetCurrentImpulseContext, resetRecipes, resetStat, 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, wantsToStopRiding
Methods inherited from class net.minecraft.world.entity.LivingEntity
addEffect, addEffect, areAllEffectsAmbient, attackable, baseTick, blockedByShield, brainProvider, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtEquipment, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getHitbox, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlotForHand, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUseItem, getUseItemRemainingTicks, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, igniteForTicks, 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, makeSound, 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, sanitizeScale, 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, wouldNotSuffocateAtTargetPose
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canCollideWith, canControlVehicle, canRide, canTrample, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengerClosestTo, 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, getVehicleAttachmentPoint, getViewScale, getViewVector, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, 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, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, registryAccess, 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, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemoved, setRot, 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, waterSwimSound
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, removeData, serializeAttachments
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, sendPairingData, serializeNBT, shouldRiderSit
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluid
Methods inherited from interface net.neoforged.neoforge.common.extensions.IPlayerExtension
isCloseEnough, mayFly, openMenu, openMenu
Methods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGER -
POSITION_REMINDER_INTERVAL
private static final int POSITION_REMINDER_INTERVAL- See Also:
-
WATER_VISION_MAX_TIME
private static final int WATER_VISION_MAX_TIME- See Also:
-
WATER_VISION_QUICK_TIME
private static final int WATER_VISION_QUICK_TIME- See Also:
-
WATER_VISION_QUICK_PERCENT
private static final float WATER_VISION_QUICK_PERCENT- See Also:
-
SUFFOCATING_COLLISION_CHECK_SCALE
private static final double SUFFOCATING_COLLISION_CHECK_SCALE- See Also:
-
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
private static final double MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN- See Also:
-
DEFAULT_SNEAKING_MOVEMENT_FACTOR
private static final float DEFAULT_SNEAKING_MOVEMENT_FACTOR- See Also:
-
connection
-
stats
-
recipeBook
-
ambientSoundHandlers
-
permissionLevel
private int permissionLevel -
xLast
private double xLast -
yLast1
private double yLast1 -
zLast
private double zLast -
yRotLast
private float yRotLast -
xRotLast
private float xRotLast -
lastOnGround
private boolean lastOnGround -
crouching
private boolean crouching -
wasShiftKeyDown
private boolean wasShiftKeyDown -
wasSprinting
private boolean wasSprinting -
positionReminder
private int positionReminder -
flashOnSetHealth
private boolean flashOnSetHealth -
input
-
minecraft
-
sprintTriggerTime
protected int sprintTriggerTime -
yBob
public float yBob -
xBob
public float xBob -
yBobO
public float yBobO -
xBobO
public float xBobO -
jumpRidingTicks
private int jumpRidingTicks -
jumpRidingScale
private float jumpRidingScale -
spinningEffectIntensity
public float spinningEffectIntensity -
oSpinningEffectIntensity
public float oSpinningEffectIntensity -
startedUsingItem
private boolean startedUsingItem -
usingItemHand
-
handsBusy
private boolean handsBusy -
autoJumpEnabled
private boolean autoJumpEnabled -
autoJumpTime
private int autoJumpTime -
wasFallFlying
private boolean wasFallFlying -
waterVisionTime
private int waterVisionTime -
showDeathScreen
private boolean showDeathScreen -
doLimitedCrafting
private boolean doLimitedCrafting
-
-
Constructor Details
-
LocalPlayer
public 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
-
heal
public void heal(float p_108708_) - Overrides:
heal
in classLivingEntity
-
startRiding
- Overrides:
startRiding
in classEntity
-
removeVehicle
public void removeVehicle()- Overrides:
removeVehicle
in classPlayer
-
getViewXRot
public float getViewXRot(float p_108742_) - Overrides:
getViewXRot
in classEntity
-
getViewYRot
public float getViewYRot(float p_108753_) - Overrides:
getViewYRot
in classLivingEntity
-
tick
public void tick()- Overrides:
tick
in classAbstractClientPlayer
-
getCurrentMood
public float getCurrentMood() -
sendPosition
private void sendPosition() -
sendIsSprintingIfNeeded
private void sendIsSprintingIfNeeded() -
drop
public boolean drop(boolean p_108701_) -
swing
- Overrides:
swing
in classLivingEntity
-
respawn
public void respawn() -
actuallyHurt
- Overrides:
actuallyHurt
in classPlayer
-
closeContainer
public void closeContainer()- Overrides:
closeContainer
in classPlayer
-
clientSideCloseContainer
public void clientSideCloseContainer() -
hurtTo
public void hurtTo(float p_108761_) -
onUpdateAbilities
public void onUpdateAbilities()- Overrides:
onUpdateAbilities
in classPlayer
-
isLocalPlayer
public boolean isLocalPlayer()- Overrides:
isLocalPlayer
in classPlayer
-
isSuppressingSlidingDownLadder
public boolean isSuppressingSlidingDownLadder()- Overrides:
isSuppressingSlidingDownLadder
in classLivingEntity
-
canSpawnSprintParticle
public boolean canSpawnSprintParticle()- Overrides:
canSpawnSprintParticle
in classEntity
-
canSpawnSoulSpeedParticle
public boolean canSpawnSoulSpeedParticle()- Overrides:
canSpawnSoulSpeedParticle
in classLivingEntity
-
sendRidingJump
protected void sendRidingJump() -
sendOpenInventory
public void sendOpenInventory() -
getStats
-
getRecipeBook
-
removeRecipeHighlight
-
getPermissionLevel
public int getPermissionLevel()- Overrides:
getPermissionLevel
in classEntity
-
setPermissionLevel
public void setPermissionLevel(int p_108649_) -
displayClientMessage
- Overrides:
displayClientMessage
in classPlayer
-
moveTowardsClosestSpace
private void moveTowardsClosestSpace(double p_108705_, double p_108706_) -
suffocatesAt
-
setExperienceValues
public void setExperienceValues(float p_108645_, int p_108646_, int p_108647_) -
sendSystemMessage
- Specified by:
sendSystemMessage
in interfaceCommandSource
- Overrides:
sendSystemMessage
in classEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_108643_) - Overrides:
handleEntityEvent
in classPlayer
-
setShowDeathScreen
public void setShowDeathScreen(boolean p_108712_) -
shouldShowDeathScreen
public boolean shouldShowDeathScreen() -
setDoLimitedCrafting
public void setDoLimitedCrafting(boolean p_302021_) -
getDoLimitedCrafting
public boolean getDoLimitedCrafting() -
playSound
-
playNotifySound
public void playNotifySound(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) - Overrides:
playNotifySound
in classPlayer
-
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAi
in classEntity
-
startUsingItem
- Overrides:
startUsingItem
in classLivingEntity
-
isUsingItem
public boolean isUsingItem()- Overrides:
isUsingItem
in classLivingEntity
-
stopUsingItem
public void stopUsingItem()- Overrides:
stopUsingItem
in classLivingEntity
-
getUsedItemHand
- Overrides:
getUsedItemHand
in classLivingEntity
-
onSyncedDataUpdated
- Specified by:
onSyncedDataUpdated
in interfaceSyncedDataHolder
- Overrides:
onSyncedDataUpdated
in classLivingEntity
-
jumpableVehicle
-
getJumpRidingScale
public float getJumpRidingScale() -
isTextFilteringEnabled
public boolean isTextFilteringEnabled()- Overrides:
isTextFilteringEnabled
in classPlayer
-
openTextEdit
- Overrides:
openTextEdit
in classPlayer
-
openMinecartCommandBlock
- Overrides:
openMinecartCommandBlock
in classPlayer
-
openCommandBlock
- Overrides:
openCommandBlock
in classPlayer
-
openStructureBlock
- Overrides:
openStructureBlock
in classPlayer
-
openJigsawBlock
- Overrides:
openJigsawBlock
in classPlayer
-
openItemGui
- Overrides:
openItemGui
in classPlayer
-
crit
-
magicCrit
-
isShiftKeyDown
public boolean isShiftKeyDown()- Overrides:
isShiftKeyDown
in classEntity
-
isCrouching
public boolean isCrouching()- Overrides:
isCrouching
in classEntity
-
isMovingSlowly
public boolean isMovingSlowly() -
serverAiStep
public void serverAiStep()- Overrides:
serverAiStep
in classPlayer
-
isControlledCamera
protected boolean isControlledCamera() -
resetPos
public void resetPos() -
aiStep
public void aiStep() -
tickDeath
protected void tickDeath()- Overrides:
tickDeath
in classLivingEntity
-
handleNetherPortalClient
private void handleNetherPortalClient() -
rideTick
public void rideTick() -
isHandsBusy
public boolean isHandsBusy() -
removeEffectNoUpdate
- Overrides:
removeEffectNoUpdate
in classLivingEntity
-
move
-
isAutoJumpEnabled
public boolean isAutoJumpEnabled() -
updateAutoJump
protected void updateAutoJump(float p_108744_, float p_108745_) -
isHorizontalCollisionMinor
- Overrides:
isHorizontalCollisionMinor
in classEntity
-
canAutoJump
private boolean canAutoJump() -
isMoving
private boolean isMoving() -
canStartSprinting
private boolean canStartSprinting() -
vehicleCanSprint
-
hasEnoughImpulseToStartSprinting
private boolean hasEnoughImpulseToStartSprinting() -
hasEnoughFoodToStartSprinting
private boolean hasEnoughFoodToStartSprinting() -
getWaterVision
public float getWaterVision() -
onGameModeChanged
-
isUnderWater
public boolean isUnderWater()- Overrides:
isUnderWater
in classEntity
-
updateIsUnderwater
protected boolean updateIsUnderwater()- Overrides:
updateIsUnderwater
in classPlayer
-
getRopeHoldPosition
- Overrides:
getRopeHoldPosition
in classPlayer
-
updateTutorialInventoryAction
public void updateTutorialInventoryAction(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) - Overrides:
updateTutorialInventoryAction
in classPlayer
-
getVisualRotationYInDegrees
public float getVisualRotationYInDegrees()- Overrides:
getVisualRotationYInDegrees
in classLivingEntity
-