类 LocalPlayer
- 所有已实现的接口:
SyncedDataHolder
,Attackable
,EntityAccess
,Nameable
,ScoreHolder
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,IForgePlayer
,INBTSerializable<CompoundTag>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.player.Player
Player.BedSleepingProblem
从类继承的嵌套类/接口 net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private final List
<AmbientSoundHandler> private boolean
private int
final ClientPacketListener
private boolean
private boolean
private final TickThrottler
private boolean
private boolean
private float
private int
private boolean
private boolean
private Input
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
static final float
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
从类继承的字段 net.minecraft.client.player.AbstractClientPlayer
clientLevel, deltaMovementOnPreviousTick, elytraRotX, elytraRotY, elytraRotZ, walkDist, walkDistO
从类继承的字段 net.minecraft.world.entity.player.Player
bob, CLIENT_LOADED_TIMEOUT_TIME, clientLoadedTimeoutTimer, 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, inventoryMenu, jumpTriggerTime, MAX_HEALTH, oBob, SLEEP_DURATION, STANDING_DIMENSIONS, SWIMMING_BB_HEIGHT, SWIMMING_BB_WIDTH, takeXpDelay, totalExperience, WAKE_UP_DURATION, wasUnderwater, xCloak, xCloakO, yCloak, yCloakO, zCloak, zCloakO
从类继承的字段 net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, elytraAnimationState, 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, PLAYER_NOT_WEARING_DISGUISE_ITEM, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
从类继承的字段 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, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
构造器概要
构造器构造器说明LocalPlayer
(Minecraft p_108621_, ClientLevel p_108622_, ClientPacketListener p_108623_, StatsCounter p_108624_, ClientRecipeBook p_108625_, boolean p_108626_, boolean p_108627_) -
方法概要
修饰符和类型方法说明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
private void
handleConfusionTransitionEffect
(boolean p_342626_) void
handleCreativeModeItemDrop
(ItemStack p_369228_) void
handleEntityEvent
(byte p_108643_) private boolean
private boolean
private boolean
void
heal
(float p_108708_) void
hurtTo
(float p_108761_) boolean
protected boolean
boolean
boolean
boolean
protected boolean
isHorizontalCollisionMinor
(Vec3 p_197411_) boolean
private boolean
isMoving()
boolean
private 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_330723_) void
removeRecipeHighlight
(RecipeDisplayId p_369927_) void
void
resetPos()
void
respawn()
void
rideTick()
private void
void
private void
protected void
private void
void
void
setDoLimitedCrafting
(boolean p_300578_) void
setExperienceValues
(float p_108645_, int p_108646_, int p_108647_) void
setPermissionLevel
(int p_108649_) void
setShowDeathScreen
(boolean p_108712_) boolean
boolean
private 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
void
updateTutorialInventoryAction
(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) private boolean
vehicleCanSprint
(Entity p_265184_) 从类继承的方法 net.minecraft.client.player.AbstractClientPlayer
getDeltaMovementLerped, getFieldOfViewModifier, getPlayerInfo, getSkin, isCreative, isSpectator
从类继承的方法 net.minecraft.world.entity.player.Player
actuallyHurt, addAdditionalSaveData, addItem, animateHurt, attack, awardRecipes, awardRecipesByKey, awardStat, awardStat, awardStat, awardStat, blockActionRestricted, blockInteractionRange, blockUsingShield, canBeHitByProjectile, canBeSeenAsEnemy, canEat, canGlide, canHarmPlayer, canInteractWithBlock, canInteractWithEntity, canInteractWithEntity, canPlayerFitWithinBlocksAndEntitiesWhen, canSprint, canUseGameMasterBlocks, canUseSlot, causeFallDamage, causeFoodExhaustion, createAttributes, createItemCooldowns, defineSynchedData, destroyVanishingCursedItems, die, disableShield, doAutoAttackOnTouch, doCloseContainer, doesEmitEquipEvent, doWaterSplashEffect, drop, drop, dropEquipment, entityInteractionRange, freeAt, getAbilities, getAbsorptionAmount, getArmorSlots, getAttackStrengthScale, getBaseExperienceReward, getBlockSpeedFactor, getCapability, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDefaultDimensions, getDestroySpeed, getDestroySpeed, getDimensionChangingDelay, getDismountPoses, getDisplayName, getEnchantedDamage, getEnchantmentSeed, getEnderChestInventory, getFallSounds, getFireImmuneTicks, getFlyingSpeed, getFoodData, getForcedPose, getGameProfile, getHandSlots, getHurtDir, getHurtSound, getInventory, getItemBySlot, getLastDeathLocation, getLuck, getMainArm, getMaxHeadRotationRelativeToBody, getMovementEmission, getName, getPrefixes, getProjectile, getScore, getScoreboard, getScoreboardName, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSlot, getSoundSource, getSpeed, getSuffixes, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getWardenSpawnTracker, getWeaponItem, getXpNeededForNextLevel, giveExperienceLevels, giveExperiencePoints, hasClientLoaded, hasContainerOpen, hasCorrectToolForDrops, hasInfiniteMaterials, hasPermissions, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, hurtServer, increaseScore, interactOn, internalSetAbsorptionAmount, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isControlledByClient, isHurt, isIgnoringFallDamageFromCurrentImpulse, isImmobile, isInvulnerableTo, isModelPartShown, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isStayingOnGroundSurface, isSwimming, killedEntity, makeStuckInBlock, maybeBackOffFromEdge, mayBuild, mayUseItemAt, onAboveBubbleCol, onClimbable, onEnchantmentPerformed, onInsideBubbleColumn, openHorseInventory, openMenu, playStepSound, readAdditionalSaveData, refreshDisplayName, remove, removeEntitiesOnShoulder, resetAttackStrengthTicker, resetCurrentImpulseContext, resetRecipes, resetStat, sendMerchantOffers, setClientLoaded, setEntityOnShoulder, setForcedPose, setIgnoreFallDamageFromCurrentImpulse, setItemSlot, setLastDeathLocation, setMainArm, setReducedDebugInfo, setRemainingFireTicks, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldBeSaved, shouldShowName, startAutoSpinAttack, startFallFlying, startSleepInBed, stopFallFlying, stopSleepInBed, stopSleeping, sweepAttack, tickClientLoadTimeout, tickRegeneration, travel, triggerRecipeCrafted, tryResetCurrentImpulseContext, tryToStartFallFlying, updatePlayerPose, updateSwimming, wantsToStopRiding
从类继承的方法 net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, areAllEffectsAmbient, attackable, baseTick, blockedByShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttackType, canBeAffected, canBeNameTagged, canBeSeenByAnyone, canBreatheUnderwater, cancelLerp, canDisableShield, canDispenserEquipIntoSlot, canEquipWithDispenser, canFreeze, canGlideUsing, canPickUpLoot, canStandOnFluid, canUsePortal, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtEquipment, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBrain, getCombatTracker, getComfortableFallDistance, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getEffect, getEffectiveGravity, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getHitbox, getItemBlockingWith, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayerTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlotForHand, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUseItem, getUseItemRemainingTicks, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleExtraItemsCreatedOnUse, hasEffect, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, igniteForTicks, increaseAirSupply, indicateDamage, invalidateCaps, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isLookingAtMe, isPickable, isPushable, isSensitiveToWater, isSleeping, isVisuallySwimming, jumpFromGround, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makePoofParticles, makeSound, maxUpStep, onAttributeUpdated, onBelowWorld, onChangedBlock, onEffectAdded, onEffectsRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, playHurtSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, reviveCaps, 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, spawnItemParticles, startSleeping, stopRiding, swing, take, tickEffects, tickHeadTurn, tickRidden, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canCollideWith, canControlVehicle, canRide, canTeleport, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, checkBelowWorld, checkDespawn, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getLootTable, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, 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, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interact, interactAt, is, isAddedToWorld, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isControlledByOrIsLocalPlayer, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterOrSwimmable, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isSilent, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, markHurt, mayInteract, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, oldPosition, onAddedToWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onPassengerTurned, onRemoval, onRemovedFromWorld, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, recordMovementThroughBlocks, refreshDimensions, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
从接口继承的方法 net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, self, sinkInFluid
从接口继承的方法 net.minecraftforge.common.extensions.IForgePlayer
isCloseEnough
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
LOGGER
public static final org.slf4j.Logger LOGGER -
POSITION_REMINDER_INTERVAL
private static final int POSITION_REMINDER_INTERVAL- 另请参阅:
-
WATER_VISION_MAX_TIME
private static final int WATER_VISION_MAX_TIME- 另请参阅:
-
WATER_VISION_QUICK_TIME
private static final int WATER_VISION_QUICK_TIME- 另请参阅:
-
WATER_VISION_QUICK_PERCENT
private static final float WATER_VISION_QUICK_PERCENT- 另请参阅:
-
SUFFOCATING_COLLISION_CHECK_SCALE
private static final double SUFFOCATING_COLLISION_CHECK_SCALE- 另请参阅:
-
MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
private static final double MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN- 另请参阅:
-
USING_ITEM_SPEED_FACTOR
public static final float USING_ITEM_SPEED_FACTOR- 另请参阅:
-
connection
-
stats
-
recipeBook
-
dropSpamThrottler
-
ambientSoundHandlers
-
permissionLevel
private int permissionLevel -
xLast
private double xLast -
yLast
private double yLast -
zLast
private double zLast -
yRotLast
private float yRotLast -
xRotLast
private float xRotLast -
lastOnGround
private boolean lastOnGround -
lastHorizontalCollision
private boolean lastHorizontalCollision -
crouching
private boolean crouching -
wasShiftKeyDown
private boolean wasShiftKeyDown -
wasSprinting
private boolean wasSprinting -
positionReminder
private int positionReminder -
flashOnSetHealth
private boolean flashOnSetHealth -
input
-
lastSentInput
-
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
-
-
构造器详细资料
-
LocalPlayer
public LocalPlayer(Minecraft p_108621_, ClientLevel p_108622_, ClientPacketListener p_108623_, StatsCounter p_108624_, ClientRecipeBook p_108625_, boolean p_108626_, boolean p_108627_)
-
-
方法详细资料
-
heal
public void heal(float p_108708_) - 覆盖:
heal
在类中LivingEntity
-
startRiding
- 覆盖:
startRiding
在类中Entity
-
removeVehicle
public void removeVehicle()- 覆盖:
removeVehicle
在类中Player
-
getViewXRot
public float getViewXRot(float p_108742_) - 覆盖:
getViewXRot
在类中Entity
-
getViewYRot
public float getViewYRot(float p_108753_) - 覆盖:
getViewYRot
在类中LivingEntity
-
tick
public void tick()- 覆盖:
tick
在类中AbstractClientPlayer
-
getCurrentMood
public float getCurrentMood() -
sendPosition
private void sendPosition() -
sendShiftKeyState
private void sendShiftKeyState() -
sendIsSprintingIfNeeded
private void sendIsSprintingIfNeeded() -
drop
public boolean drop(boolean p_108701_) -
swing
- 覆盖:
swing
在类中LivingEntity
-
respawn
public void respawn() -
closeContainer
public void closeContainer()- 覆盖:
closeContainer
在类中Player
-
clientSideCloseContainer
public void clientSideCloseContainer() -
hurtTo
public void hurtTo(float p_108761_) -
onUpdateAbilities
public void onUpdateAbilities()- 覆盖:
onUpdateAbilities
在类中Player
-
isLocalPlayer
public boolean isLocalPlayer()- 覆盖:
isLocalPlayer
在类中Player
-
isSuppressingSlidingDownLadder
public boolean isSuppressingSlidingDownLadder() -
canSpawnSprintParticle
public boolean canSpawnSprintParticle()- 覆盖:
canSpawnSprintParticle
在类中Entity
-
sendRidingJump
protected void sendRidingJump() -
sendOpenInventory
public void sendOpenInventory() -
getStats
-
getRecipeBook
-
removeRecipeHighlight
-
getPermissionLevel
public int getPermissionLevel()- 覆盖:
getPermissionLevel
在类中Player
-
setPermissionLevel
public void setPermissionLevel(int p_108649_) -
displayClientMessage
- 覆盖:
displayClientMessage
在类中Player
-
moveTowardsClosestSpace
private void moveTowardsClosestSpace(double p_108705_, double p_108706_) -
suffocatesAt
-
setExperienceValues
public void setExperienceValues(float p_108645_, int p_108646_, int p_108647_) -
handleEntityEvent
public void handleEntityEvent(byte p_108643_) - 覆盖:
handleEntityEvent
在类中Player
-
setShowDeathScreen
public void setShowDeathScreen(boolean p_108712_) -
shouldShowDeathScreen
public boolean shouldShowDeathScreen() -
setDoLimitedCrafting
public void setDoLimitedCrafting(boolean p_300578_) -
getDoLimitedCrafting
public boolean getDoLimitedCrafting() -
playSound
-
playNotifySound
public void playNotifySound(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) - 覆盖:
playNotifySound
在类中Player
-
isEffectiveAi
public boolean isEffectiveAi()- 覆盖:
isEffectiveAi
在类中Entity
-
startUsingItem
- 覆盖:
startUsingItem
在类中LivingEntity
-
isUsingItem
public boolean isUsingItem()- 覆盖:
isUsingItem
在类中LivingEntity
-
stopUsingItem
public void stopUsingItem()- 覆盖:
stopUsingItem
在类中LivingEntity
-
getUsedItemHand
- 覆盖:
getUsedItemHand
在类中LivingEntity
-
onSyncedDataUpdated
- 指定者:
onSyncedDataUpdated
在接口中SyncedDataHolder
- 覆盖:
onSyncedDataUpdated
在类中LivingEntity
-
jumpableVehicle
-
getJumpRidingScale
public float getJumpRidingScale() -
isTextFilteringEnabled
public boolean isTextFilteringEnabled()- 覆盖:
isTextFilteringEnabled
在类中Player
-
openTextEdit
- 覆盖:
openTextEdit
在类中Player
-
openMinecartCommandBlock
- 覆盖:
openMinecartCommandBlock
在类中Player
-
openCommandBlock
- 覆盖:
openCommandBlock
在类中Player
-
openStructureBlock
- 覆盖:
openStructureBlock
在类中Player
-
openJigsawBlock
- 覆盖:
openJigsawBlock
在类中Player
-
openItemGui
- 覆盖:
openItemGui
在类中Player
-
crit
-
magicCrit
-
isShiftKeyDown
public boolean isShiftKeyDown()- 覆盖:
isShiftKeyDown
在类中Entity
-
isCrouching
public boolean isCrouching()- 覆盖:
isCrouching
在类中Entity
-
isMovingSlowly
public boolean isMovingSlowly() -
serverAiStep
public void serverAiStep()- 覆盖:
serverAiStep
在类中Player
-
isControlledCamera
protected boolean isControlledCamera() -
resetPos
public void resetPos() -
aiStep
public void aiStep() -
shouldStopSprinting
private boolean shouldStopSprinting() -
isRidingCamel
private boolean isRidingCamel() -
hasBlindness
private boolean hasBlindness() -
getActivePortalLocalTransition
-
tickDeath
protected void tickDeath()- 覆盖:
tickDeath
在类中LivingEntity
-
handleConfusionTransitionEffect
private void handleConfusionTransitionEffect(boolean p_342626_) -
rideTick
public void rideTick() -
isHandsBusy
public boolean isHandsBusy() -
removeEffectNoUpdate
- 覆盖:
removeEffectNoUpdate
在类中LivingEntity
-
move
-
isAutoJumpEnabled
public boolean isAutoJumpEnabled() -
shouldRotateWithMinecart
public boolean shouldRotateWithMinecart()- 覆盖:
shouldRotateWithMinecart
在类中Player
-
updateAutoJump
protected void updateAutoJump(float p_108744_, float p_108745_) -
isHorizontalCollisionMinor
- 覆盖:
isHorizontalCollisionMinor
在类中Entity
-
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()- 覆盖:
isUnderWater
在类中Entity
-
updateIsUnderwater
protected boolean updateIsUnderwater()- 覆盖:
updateIsUnderwater
在类中Player
-
getRopeHoldPosition
- 覆盖:
getRopeHoldPosition
在类中Player
-
updateTutorialInventoryAction
public void updateTutorialInventoryAction(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) - 覆盖:
updateTutorialInventoryAction
在类中Player
-
getVisualRotationYInDegrees
public float getVisualRotationYInDegrees() -
updateSyncFields
-
handleCreativeModeItemDrop
- 覆盖:
handleCreativeModeItemDrop
在类中Player
-
canDropItems
public boolean canDropItems()- 覆盖:
canDropItems
在类中Player
-
getDropSpamThrottler
-