Package net.minecraft.client.player
Class LocalPlayer
- All Implemented Interfaces:
CommandSource,EntityAccess,Nameable,ICapabilityProvider,ICapabilityProviderImpl<Entity>,ICapabilitySerializable<CompoundTag>,IForgeEntity,IForgeLivingEntity,IForgePlayer,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.player.Player
Player.BedSleepingProblemNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<AmbientSoundHandler>private booleanprivate intfinal ClientPacketListenerprivate booleanprivate static final floatprivate booleanprivate booleanprivate floatprivate intprivate booleanstatic final org.slf4j.Loggerprotected final Minecraftprivate static final doublefloatprivate intfloatprivate static final intprivate intprivate final ClientRecipeBookprivate Stringprivate booleanintprotected 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.AbstractClientPlayer
clientLevel, elytraRotX, elytraRotY, elytraRotZFields inherited from class net.minecraft.world.entity.player.Player
bob, containerMenu, CROUCH_BB_HEIGHT, DATA_PLAYER_MAIN_HAND, DATA_PLAYER_MODE_CUSTOMISATION, DATA_SHOULDER_LEFT, DATA_SHOULDER_RIGHT, DEFAULT_EYE_HEIGHT, defaultFlySpeed, enchantmentSeed, ENDER_SLOT_OFFSET, enderChestInventory, experienceLevel, experienceProgress, fishing, foodData, 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.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, 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, flyingSpeed, HAND_SLOTS, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, 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, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.Entity
BASE_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, 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, level, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, 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 interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionLocalPlayer(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 voidactuallyHurt(DamageSource p_108729_, float p_108730_) voidaiStep()private booleanbooleanbooleanvoidvoidvoidvoiddisplayClientMessage(Component p_108696_, boolean p_108697_) booleandrop(boolean p_108701_) floatfloatintgetRopeHoldPosition(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_) 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_108684_) 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(Recipe<?> p_108676_) voidvoidresetPos()voidrespawn()voidrideTick()private voidvoidprivate voidprotected voidvoidsendSystemMessage(Component p_234129_) voidvoidsetExperienceValues(float p_108645_, int p_108646_, int p_108647_) voidsetPermissionLevel(int p_108649_) voidsetServerBrand(String p_108749_) voidsetShowDeathScreen(boolean p_108712_) voidsetSprinting(boolean p_108751_) 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 booleanvoidvoidupdateTutorialInventoryAction(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) Methods inherited from class net.minecraft.client.player.AbstractClientPlayer
getCloakTextureLocation, getElytraTextureLocation, getFieldOfViewModifier, getModelName, getPlayerInfo, getSkinLocation, getSkinTextureLocation, isCapeLoaded, isCreative, isElytraLoaded, isSkinLoaded, isSpectator, registerSkinTextureMethods inherited from class net.minecraft.world.entity.player.Player
addAdditionalSaveData, addItem, attack, awardRecipes, awardRecipesByKey, awardStat, awardStat, awardStat, awardStat, blockActionRestricted, blockUsingShield, canBeSeenAsEnemy, canEat, canHarmPlayer, canTakeItem, canUseGameMasterBlocks, causeFallDamage, causeFoodExhaustion, checkMovementStatistics, createAttributes, createItemCooldowns, defineSynchedData, destroyVanishingCursedItems, die, disableShield, doAutoAttackOnTouch, doCloseContainer, doesEmitEquipEvent, doWaterSplashEffect, drop, drop, dropEquipment, eat, findRespawnPositionAndUseSpawnBlock, freeAt, getAbilities, getAbsorptionAmount, getArmorSlots, getAttackStrengthScale, getBlockSpeedFactor, getCapability, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDestroySpeed, getDigSpeed, getDimensionChangingDelay, getDimensions, getDismountPoses, getDisplayName, getEnchantmentSeed, getEnderChestInventory, getExperienceReward, getFallSounds, getFireImmuneTicks, getFoodData, getForcedPose, getGameProfile, getHandSlots, getHurtSound, getInventory, getItemBySlot, getLastDeathLocation, getLuck, getMainArm, getMovementEmission, getMyRidingOffset, getName, 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, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isHurt, isImmobile, isInvulnerableTo, isModelPartShown, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isStayingOnGroundSurface, isSwimming, jumpFromGround, makeStuckInBlock, maybeBackOffFromEdge, mayBuild, mayUseItemAt, onEnchantmentPerformed, onSoulSpeedBlock, openHorseInventory, openMenu, readAdditionalSaveData, refreshDisplayName, remove, removeEntitiesOnShoulder, resetAttackStrengthTicker, resetRecipes, resetStat, sendMerchantOffers, setAbsorptionAmount, setEntityOnShoulder, setForcedPose, setItemSlot, setLastDeathLocation, setMainArm, setReducedDebugInfo, setRemainingFireTicks, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldBeSaved, shouldRemoveSoulSpeed, shouldShowName, startAutoSpinAttack, startFallFlying, startSleepInBed, stopFallFlying, stopSleepInBed, stopSleeping, sweepAttack, travel, tryToStartFallFlying, updatePlayerPose, updateSwimming, wantsToStopRiding, wasKilledMethods inherited from class net.minecraft.world.entity.LivingEntity
addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, baseTick, blockedByShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createLootContext, createWitherRose, curePotionEffects, 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, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getMobType, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUseItem, getUseItemRemainingTicks, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, increaseAirSupply, invalidateCaps, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isVisuallySwimming, jumpInLiquid, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, outOfWorld, playBlockFallSound, playEquipSound, playHurtSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSpeed, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, skipDropExperience, spawnSoulSpeedParticle, startSleeping, stopRiding, swing, take, tickEffects, tickHeadTurn, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumedMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, allowsDismounting, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, checkInsideBlocks, checkOutOfWorld, checkSlowFallDistance, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, dampensVibrations, discard, 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, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, 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, getLevel, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMotionDirection, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPose, getPosition, getPositionCodec, 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, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isRemoved, isSilent, isSprinting, isSteppingCarefully, isSuppressingBounce, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, markHurt, mayInteract, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removeAfterChangingDimensions, removePassenger, removeTag, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, 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, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushingMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, 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, serializeNBT, shouldRiderSitMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluidMethods inherited from interface net.minecraftforge.common.extensions.IForgePlayer
canHit, canInteractWith, canInteractWith, getAttackRange, getReachDistance, isCloseEnough
-
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 -
serverBrand
-
input
-
minecraft
-
sprintTriggerTime
protected int sprintTriggerTime -
sprintTime
public int sprintTime -
yBob
public float yBob -
xBob
public float xBob -
yBobO
public float yBobO -
xBobO
public float xBobO -
jumpRidingTicks
private int jumpRidingTicks -
jumpRidingScale
private float jumpRidingScale -
portalTime
public float portalTime -
oPortalTime
public float oPortalTime -
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
-
-
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:
healin classLivingEntity
-
startRiding
- Overrides:
startRidingin classEntity
-
removeVehicle
public void removeVehicle()- Overrides:
removeVehiclein classPlayer
-
getViewXRot
public float getViewXRot(float p_108742_) - Overrides:
getViewXRotin classEntity
-
getViewYRot
public float getViewYRot(float p_108753_) - Overrides:
getViewYRotin classLivingEntity
-
tick
public void tick() -
getCurrentMood
public float getCurrentMood() -
sendPosition
private void sendPosition() -
sendIsSprintingIfNeeded
private void sendIsSprintingIfNeeded() -
drop
public boolean drop(boolean p_108701_) -
swing
- Overrides:
swingin classLivingEntity
-
respawn
public void respawn() -
actuallyHurt
- Overrides:
actuallyHurtin classPlayer
-
closeContainer
public void closeContainer()- Overrides:
closeContainerin classPlayer
-
clientSideCloseContainer
public void clientSideCloseContainer() -
hurtTo
public void hurtTo(float p_108761_) -
onUpdateAbilities
public void onUpdateAbilities()- Overrides:
onUpdateAbilitiesin classPlayer
-
isLocalPlayer
public boolean isLocalPlayer()- Overrides:
isLocalPlayerin classPlayer
-
isSuppressingSlidingDownLadder
public boolean isSuppressingSlidingDownLadder()- Overrides:
isSuppressingSlidingDownLadderin classLivingEntity
-
canSpawnSprintParticle
public boolean canSpawnSprintParticle()- Overrides:
canSpawnSprintParticlein classEntity
-
canSpawnSoulSpeedParticle
public boolean canSpawnSoulSpeedParticle()- Overrides:
canSpawnSoulSpeedParticlein classLivingEntity
-
sendRidingJump
protected void sendRidingJump() -
sendOpenInventory
public void sendOpenInventory() -
setServerBrand
-
getServerBrand
-
getStats
-
getRecipeBook
-
removeRecipeHighlight
-
getPermissionLevel
public int getPermissionLevel()- Overrides:
getPermissionLevelin classEntity
-
setPermissionLevel
public void setPermissionLevel(int p_108649_) -
displayClientMessage
- Overrides:
displayClientMessagein classPlayer
-
moveTowardsClosestSpace
private void moveTowardsClosestSpace(double p_108705_, double p_108706_) -
suffocatesAt
-
setSprinting
public void setSprinting(boolean p_108751_) - Overrides:
setSprintingin classLivingEntity
-
setExperienceValues
public void setExperienceValues(float p_108645_, int p_108646_, int p_108647_) -
sendSystemMessage
- Specified by:
sendSystemMessagein interfaceCommandSource- Overrides:
sendSystemMessagein classEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_108643_) - Overrides:
handleEntityEventin classPlayer
-
setShowDeathScreen
public void setShowDeathScreen(boolean p_108712_) -
shouldShowDeathScreen
public boolean shouldShowDeathScreen() -
playSound
-
playNotifySound
public void playNotifySound(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) - Overrides:
playNotifySoundin classPlayer
-
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAiin classLivingEntity
-
startUsingItem
- Overrides:
startUsingItemin classLivingEntity
-
isUsingItem
public boolean isUsingItem()- Overrides:
isUsingItemin classLivingEntity
-
stopUsingItem
public void stopUsingItem()- Overrides:
stopUsingItemin classLivingEntity
-
getUsedItemHand
- Overrides:
getUsedItemHandin classLivingEntity
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdatedin classLivingEntity
-
jumpableVehicle
-
getJumpRidingScale
public float getJumpRidingScale() -
isTextFilteringEnabled
public boolean isTextFilteringEnabled()- Overrides:
isTextFilteringEnabledin classPlayer
-
openTextEdit
- Overrides:
openTextEditin classPlayer
-
openMinecartCommandBlock
- Overrides:
openMinecartCommandBlockin classPlayer
-
openCommandBlock
- Overrides:
openCommandBlockin classPlayer
-
openStructureBlock
- Overrides:
openStructureBlockin classPlayer
-
openJigsawBlock
- Overrides:
openJigsawBlockin classPlayer
-
openItemGui
- Overrides:
openItemGuiin classPlayer
-
crit
-
magicCrit
-
isShiftKeyDown
public boolean isShiftKeyDown()- Overrides:
isShiftKeyDownin classEntity
-
isCrouching
public boolean isCrouching()- Overrides:
isCrouchingin classEntity
-
isMovingSlowly
public boolean isMovingSlowly() -
serverAiStep
public void serverAiStep()- Overrides:
serverAiStepin classPlayer
-
isControlledCamera
protected boolean isControlledCamera() -
resetPos
public void resetPos() -
aiStep
public void aiStep() -
tickDeath
protected void tickDeath()- Overrides:
tickDeathin classLivingEntity
-
handleNetherPortalClient
private void handleNetherPortalClient() -
rideTick
public void rideTick() -
isHandsBusy
public boolean isHandsBusy() -
removeEffectNoUpdate
- Overrides:
removeEffectNoUpdatein classLivingEntity
-
move
-
isAutoJumpEnabled
public boolean isAutoJumpEnabled() -
updateAutoJump
protected void updateAutoJump(float p_108744_, float p_108745_) -
isHorizontalCollisionMinor
- Overrides:
isHorizontalCollisionMinorin classEntity
-
canAutoJump
private boolean canAutoJump() -
isMoving
private boolean isMoving() -
hasEnoughImpulseToStartSprinting
private boolean hasEnoughImpulseToStartSprinting() -
hasEnoughFoodToStartSprinting
private boolean hasEnoughFoodToStartSprinting() -
getWaterVision
public float getWaterVision() -
isUnderWater
public boolean isUnderWater()- Overrides:
isUnderWaterin classEntity
-
updateIsUnderwater
protected boolean updateIsUnderwater()- Overrides:
updateIsUnderwaterin classPlayer
-
getRopeHoldPosition
- Overrides:
getRopeHoldPositionin classPlayer
-
updateSyncFields
-
updateTutorialInventoryAction
public void updateTutorialInventoryAction(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) - Overrides:
updateTutorialInventoryActionin classPlayer
-
getVisualRotationYInDegrees
public float getVisualRotationYInDegrees()- Overrides:
getVisualRotationYInDegreesin classLivingEntity
-