类 ServerPlayer
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.player.Player
net.minecraft.server.level.ServerPlayer
- 所有已实现的接口:
DataComponentGetter
,SyncedDataHolder
,Attackable
,EntityAccess
,UniquelyIdentifyable
,Nameable
,ScoreHolder
,Waypoint
,WaypointTransmitter
,IAttachmentHolder
,IEntityExtension
,ILivingEntityExtension
,IPlayerExtension
- 直接已知子类:
FakePlayer
,GameTestPlayer
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
static final record
从类继承的嵌套类/接口 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.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.waypoints.Waypoint
Waypoint.Icon
-
字段概要
字段修饰符和类型字段说明private final PlayerAdvancements
private boolean
static final double
private Entity
private boolean
private RemoteChatSession
private ChatVisiblity
private ChunkTrackingView
private final CommandSource
private int
private final ContainerListener
private final ContainerSynchronizer
private static final AttributeModifier
private static final AttributeModifier
private static final boolean
private static final boolean
private boolean
static final String
static final int
static final String
private final Set
<ThrownEnderpearl> private Vec3
private Vec3
static final double
private static final int
final ServerPlayerGameMode
private boolean
private boolean
private String
private long
private Input
private boolean
private Vec3
private int
private int
private int
private int
private float
private int
private SectionPos
private int
private int
private float
private Vec3
private int
private static final org.slf4j.Logger
private static final int
private static final int
final Object
private ParticleStatus
private BlockPos
private final ServerRecipeBook
private int
private ServerPlayer.RespawnConfig
boolean
private final MinecraftServer
private static final Component
private boolean
private Vec3
private final ServerStatsCounter
private Component
private Component
private Component
static final String
private final TextFilter
private boolean
private WardenSpawnTracker
private static final AttributeModifier
boolean
从类继承的字段 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, 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
从类继承的字段 net.minecraft.world.entity.LivingEntity
ARMOR_SLOT_OFFSET, attackAnim, attackStrengthTicker, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, elytraAnimationState, equipment, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, hurtDuration, hurtTime, INPUT_FRICTION, interpolation, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerMemoryTime, lerpHeadSteps, lerpYHeadRot, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, PLAYER_HURT_EXPERIENCE_TIME, PLAYER_NOT_WEARING_DISGUISE_ITEM, PLAYER_NOT_WEARING_DISGUISE_ITEM_FOR_TARGET, removeArrowTime, removeStingerTime, SADDLE_OFFSET, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, TAG_ATTRIBUTES, TAG_BRAIN, TAG_DEATH_TIME, TAG_EQUIPMENT, TAG_FALL_FLYING, TAG_HEALTH, TAG_HURT_BY_TIMESTAMP, TAG_HURT_TIME, TAG_SLEEPING_POS, 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, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, minorHorizontalCollision, moveDist, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, TAG_AIR, TAG_DATA, TAG_FALL_DISTANCE, TAG_FIRE, TAG_GLOWING, TAG_ID, TAG_INVULNERABLE, TAG_MOTION, TAG_NO_GRAVITY, TAG_ON_GROUND, TAG_PASSENGERS, TAG_PORTAL_COOLDOWN, TAG_POS, TAG_ROTATION, TAG_SILENT, TAG_UUID, tickCount, TOTAL_AIR_SUPPLY, uuid, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
从接口继承的字段 net.minecraft.world.waypoints.Waypoint
MAX_RANGE, WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIER
从接口继承的字段 net.minecraft.world.waypoints.WaypointTransmitter
REALLY_FAR_DISTANCE
-
构造器概要
构造器构造器说明ServerPlayer
(MinecraftServer p_254143_, ServerLevel p_254435_, com.mojang.authlib.GameProfile p_253651_, ClientInformation p_301997_) -
方法概要
修饰符和类型方法说明private boolean
private boolean
acceptsSystemMessages
(boolean p_240568_) protected void
addAdditionalSaveData
(ValueOutput p_422225_) adjustSpawnLocation
(ServerLevel p_352206_, BlockPos p_352202_) boolean
void
void
awardKillScore
(Entity p_9050_, DamageSource p_9052_) int
awardRecipes
(Collection<RecipeHolder<?>> p_9129_) void
awardRecipesByKey
(List<ResourceKey<Recipe<?>>> p_312811_) void
private boolean
bedBlocked
(BlockPos p_9192_, Direction p_9193_) private boolean
bedInRange
(BlockPos p_9117_, Direction p_9118_) boolean
broadcastToPlayer
(ServerPlayer p_9014_) private GameType
calculateGameModeForNewPlayer
(GameType p_143424_) boolean
boolean
canHarmPlayer
(Player p_9064_) protected void
checkFallDamage
(double p_8976_, boolean p_8977_, BlockState p_8978_, BlockPos p_8979_) void
checkMovementStatistics
(double p_308996_, double p_309062_, double p_309170_) void
checkRidingStatistics
(double p_308888_, double p_309131_, double p_308893_) void
void
protected void
void
copyRespawnPosition
(ServerPlayer p_348642_) createCommonSpawnInfo
(ServerLevel p_294169_) protected ItemCooldowns
void
void
deregisterEnderPearl
(ThrownEnderpearl p_372925_) private static boolean
didNotMove
(double p_309023_, double p_309067_, double p_309143_) void
die
(DamageSource p_9035_) void
void
displayClientMessage
(Component p_9154_, boolean p_9155_) void
void
doTick()
boolean
drop
(boolean p_182295_) private static Optional
<ServerPlayer.RespawnPosAngle> findRespawnAndUseSpawnBlock
(ServerLevel p_348505_, ServerPlayer.RespawnConfig p_404800_, boolean p_348513_) findRespawnPositionAndUseSpawnBlock
(boolean p_348590_, TeleportTransition.PostTeleportTransition p_379376_) void
forceSetRotation
(float p_380337_, float p_380190_) gameMode()
private int
getCoprime
(int p_9238_) protected float
getEnchantedDamage
(Entity p_346252_, float p_346142_, DamageSource p_345841_) Returns the language last reported by the player as their local language.long
int
getStats()
int
void
giveExperienceLevels
(int p_9200_) void
giveExperiencePoints
(int p_9208_) void
handleExtraItemsCreatedOnUse
(ItemStack p_376376_) private void
handleTeamKill
(ScoreHolder p_313693_, ScoreHolder p_313814_, ObjectiveCriteria[] p_9127_) void
boolean
boolean
hurtServer
(ServerLevel p_376762_, DamageSource p_376676_, float p_376089_) void
indicateDamage
(double p_270621_, double p_270478_) void
private void
initMenu
(AbstractContainerMenu p_143400_) boolean
boolean
isInvulnerableTo
(ServerLevel p_376413_, DamageSource p_9182_) private boolean
private boolean
isReachableBedBlock
(BlockPos p_9223_) boolean
boolean
void
level()
private void
loadAndSpawnEnderPearl
(ValueInput p_422176_) void
loadAndSpawnEnderPearls
(ValueInput p_422632_) void
loadAndSpawnParentVehicle
(ValueInput p_422396_) void
loadGameTypes
(ValueInput p_421945_) void
lookAt
(EntityAnchorArgument.Anchor p_9108_, Entity p_9109_, EntityAnchorArgument.Anchor p_9110_) void
lookAt
(EntityAnchorArgument.Anchor p_9112_, Vec3 p_9113_) void
boolean
mayInteract
(ServerLevel p_376296_, BlockPos p_143407_) private void
private boolean
noCollisionNoLiquid
(ServerLevel p_364183_, AABB p_362915_) protected void
onAttributeUpdated
(Holder<Attribute> p_419585_) protected void
onChangedBlock
(ServerLevel p_346052_, BlockPos p_9206_) protected void
onEffectAdded
(MobEffectInstance p_143393_, Entity p_143394_) protected void
onEffectsRemoved
(Collection<MobEffectInstance> p_366811_) protected void
onEffectUpdated
(MobEffectInstance p_143396_, boolean p_143397_, Entity p_143398_) void
onEnchantmentPerformed
(ItemStack p_9079_, int p_9080_) void
void
onEquippedItemBroken
(Item p_348565_, EquipmentSlot p_348623_) void
onExplosionHit
(Entity p_326351_) void
onInsideBlock
(BlockState p_9103_) void
onItemPickup
(ItemEntity p_215095_) void
void
void
openCommandBlock
(CommandBlockEntity p_9099_) void
openDialog
(Holder<Dialog> p_425542_) void
openHorseInventory
(AbstractHorse p_9059_, Container p_9060_) void
openItemGui
(ItemStack p_9082_, InteractionHand p_9083_) openMenu
(MenuProvider p_9033_) openMenu
(MenuProvider p_9033_, Consumer<RegistryFriendlyByteBuf> extraDataWriter) Request to open a GUI on the client, from the servervoid
openTextEdit
(SignBlockEntity p_277909_, boolean p_277495_) static long
placeEnderPearlTicket
(ServerLevel p_373027_, ChunkPos p_372827_) void
playNotifySound
(SoundEvent p_9019_, SoundSource p_9020_, float p_9021_, float p_9022_) protected void
protected void
protected void
readAdditionalSaveData
(ValueInput p_422091_) private static GameType
readPlayerMode
(ValueInput p_422110_, String p_143415_) void
Force the name displayed in the tab list to refresh, by firingPlayerEvent.TabListNameFormat
.long
void
registerEnderPearl
(ThrownEnderpearl p_373000_) void
int
void
void
int
resetRecipes
(Collection<RecipeHolder<?>> p_9195_) void
void
void
restoreFrom
(ServerPlayer p_9016_, boolean p_9017_) void
rideTick()
private void
saveEnderPearls
(ValueOutput p_421520_) private void
saveParentVehicle
(ValueOutput p_422435_) void
sendChatMessage
(OutgoingChatMessage p_249852_, boolean p_250110_, ChatType.Bound p_252108_) void
sendMerchantOffers
(int p_8988_, MerchantOffers p_8989_, int p_8990_, int p_8991_, boolean p_8992_, boolean p_8993_) void
sendServerStatus
(ServerStatus p_215110_) void
sendSystemMessage
(Component p_215097_) void
sendSystemMessage
(Component p_240560_, boolean p_240545_) void
void
setChatSession
(RemoteChatSession p_254468_) void
setChunkTrackingView
(ChunkTrackingView p_296310_) void
setExperienceLevels
(int p_9175_) void
setExperiencePoints
(int p_8986_) boolean
setGameMode
(GameType p_143404_) void
setKnownMovement
(Vec3 p_348509_) void
setLastClientInput
(Input p_371842_) void
setLastSectionPos
(SectionPos p_9120_) void
setRaidOmenPosition
(BlockPos p_338782_) void
setRespawnPosition
(ServerPlayer.RespawnConfig p_405460_, boolean p_9162_) void
setServerLevel
(ServerLevel p_284971_) void
setSpawnExtraParticlesOnFall
(boolean p_334029_) void
setTabListFooter
(Component footer) Set the tab list footer while preserving the header.void
setTabListHeader
(Component header) Set the tab list header while preserving the footer.void
setTabListHeaderFooter
(Component header, Component footer) Set the tab list header and footer at once.boolean
shouldFilterMessageTo
(ServerPlayer p_143422_) void
void
snapTo
(double p_9171_, double p_9172_, double p_9173_) boolean
startRiding
(Entity p_277395_, boolean p_278062_) com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> startSleepInBed
(BlockPos p_9115_) void
startSleeping
(BlockPos p_9190_) void
stopSleepInBed
(boolean p_9165_, boolean p_9166_) private void
storeGameTypes
(ValueOutput p_422626_) void
swing
(InteractionHand p_9031_) private void
synchronizeSpecialItemUpdates
(ItemStack p_372884_) void
teleport
(TeleportTransition p_379854_) void
teleportRelative
(double p_251611_, double p_248861_, double p_252266_) void
teleportTo
(double p_8969_, double p_8970_, double p_8971_) boolean
teleportTo
(ServerLevel p_265564_, double p_265424_, double p_265680_, double p_265312_, Set<Relative> p_265192_, float p_265059_, float p_265266_, boolean p_361029_) private void
void
tick()
protected void
void
void
private void
void
triggerRecipeCrafted
(RecipeHolder<?> p_301156_, List<ItemStack> p_282336_) protected void
void
updateOptions
(ClientInformation p_301998_) private void
private void
updateScoreForCriteria
(ObjectiveCriteria p_9105_, int p_9106_) protected void
updateUsingItem
(ItemStack p_143402_) 从类继承的方法 net.minecraft.world.entity.player.Player
actuallyHurt, addItem, aiStep, animateHurt, awardStat, awardStat, awardStat, blockActionRestricted, blockInteractionRange, blockUsingItem, canBeHitByProjectile, canBeSeenAsEnemy, canDropItems, canEat, canGlide, canInteractWithBlock, canInteractWithEntity, canInteractWithEntity, canPlayerFitWithinBlocksAndEntitiesWhen, canSimulateMovement, canSprint, canUseGameMasterBlocks, causeFallDamage, causeFoodExhaustion, createAttributes, createEquipment, debugInfo, defineSynchedData, destroyVanishingCursedItems, doAutoAttackOnTouch, doesEmitEquipEvent, doWaterSplashEffect, drop, dropEquipment, entityInteractionRange, freeAt, getAbilities, getAbsorptionAmount, getAttackStrengthScale, getBaseExperienceReward, getBlockSpeedFactor, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDefaultDimensions, getDestroySpeed, getDestroySpeed, getDimensionChangingDelay, getDismountPoses, getDisplayName, getEnchantmentSeed, getEnderChestInventory, getFallSounds, getFireImmuneTicks, getFlyingSpeed, getFoodData, getForcedPose, getGameProfile, getHurtDir, getHurtSound, getInventory, getLastDeathLocation, getLuck, getMainArm, getMaxHeadRotationRelativeToBody, getMovementEmission, getName, getPrefixes, getProjectile, getRopeHoldPosition, getScore, getScoreboard, getScoreboardName, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSlot, getSoundSource, getSpeed, getSuffixes, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getWeaponItem, getXpNeededForNextLevel, handleCreativeModeItemDrop, handleEntityEvent, hasClientLoaded, hasContainerOpen, hasCorrectToolForDrops, hasCorrectToolForDrops, hasInfiniteMaterials, hasPermissions, hurtArmor, hurtHelmet, increaseScore, interactOn, internalSetAbsorptionAmount, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isClientAuthoritative, isCreative, isEffectiveAi, isHurt, isIgnoringFallDamageFromCurrentImpulse, isImmobile, isLocalClientAuthoritative, isLocalPlayer, isModelPartShown, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isSpectator, isStayingOnGroundSurface, isSwimming, killedEntity, makeStuckInBlock, maybeBackOffFromEdge, mayBuild, mayUseItemAt, onAboveBubbleColumn, onClimbable, onInsideBubbleColumn, openJigsawBlock, openMinecartCommandBlock, openStructureBlock, openTestBlock, openTestInstanceBlock, playSound, playStepSound, preventsBlockDrops, refreshDisplayName, remove, removeEntitiesOnShoulder, resetAttackStrengthTicker, resetCurrentImpulseContext, respawn, setClientLoaded, setEntityOnShoulder, setForcedPose, setIgnoreFallDamageFromCurrentImpulse, setLastDeathLocation, setMainArm, setReducedDebugInfo, setRemainingFireTicks, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldBeSaved, shouldRotateWithMinecart, shouldShowName, startAutoSpinAttack, startFallFlying, stopSleeping, sweepAttack, tickClientLoadTimeout, travel, tryResetCurrentImpulseContext, tryToStartFallFlying, updateIsUnderwater, updatePlayerPose, updateSwimming, updateTutorialInventoryAction, wantsToStopRiding
从类继承的方法 net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, applyInput, applyItemBlocking, areAllEffectsAmbient, attackable, baseTick, blockedByItem, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttackType, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canDispenserEquipIntoSlot, canEquipWithDispenser, canFreeze, canGlideUsing, canPickUpLoot, canStandOnFluid, canUsePortal, canUseSlot, checkAutoSpinAttack, clearSleepingPos, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtEquipment, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getAgeScale, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getEffect, getEffectBlendFactor, getEffectiveGravity, getEquipmentSlotForItem, getEquipSound, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getHitbox, getInterpolation, getItemBlockingWith, getItemBySlot, getItemHeldByArm, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtByPlayer, getLastHurtByPlayerMemoryTime, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSecondsToDisableBlocking, getSleepingPos, getSlotForHand, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, hasEffect, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, igniteForTicks, increaseAirSupply, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isJumping, isLookingAtMe, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isTransmittingWaypoint, isUsingItem, isVisuallySwimming, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, makeBrain, makePoofParticles, makeSound, makeWaypointConnectionWith, maxUpStep, onBelowWorld, onEquipItem, onRemoval, onSyncedDataUpdated, playBlockFallSound, playHurtSound, push, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setItemSlot, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, skipDropExperience, spawnItemParticles, startUsingItem, stopFallFlying, stopRiding, stopUsingItem, swing, tickDeath, tickEffects, tickHeadTurn, tickRidden, travelFlying, travelFlying, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateSwingTime, updateWalkAnimation, wasExperienceConsumed, waypointIcon, wouldNotSuffocateAtTargetPose
从类继承的方法 net.minecraft.world.entity.Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, applyImplicitComponent, applyImplicitComponentIfPresent, applyImplicitComponents, blockPosition, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canTeleport, canTrample, captureDrops, captureDrops, castComponentValue, checkBelowWorld, checkDespawn, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, dropAllLeashConnections, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, get, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, 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, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getLootTable, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getQuadLeashHolderOffsets, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRequiresPrecisePosition, getRootVehicle, getRotationVector, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getXRot, getY, getY, getYRot, getYRot, getZ, getZ, handleOnAboveBubbleColumn, handleOnInsideBubbleColumn, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interact, interactAt, is, isAddedToLevel, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInClouds, isInFluidType, isInFluidType, isInLava, isInLiquid, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWater, isInWaterOrRain, isLocalInstanceAuthoritative, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isShiftKeyDown, isSilent, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lavaIgnite, lerpMotion, lerpPositionAndRotationStep, limitPistonMovement, load, makeBoundingBox, makeBoundingBox, markHurt, mirror, move, moveOrInterpolateTo, moveRelative, moveTowardsClosestSpace, nextStep, notifyLeasheeRemoved, notifyLeashHolder, oldPosition, onAddedToLevel, onClientRemoval, onFlap, onGround, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSwimSound, position, positionRider, positionRider, problemPath, processFlappingMovement, propagateFallToPassengers, push, push, reapplyPosition, refreshDimensions, registryAccess, removeAfterChangingDimensions, removeLatestMovementRecording, removePassenger, removeTag, repositionEntityAfterLoad, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendBubbleColumnParticles, setAirSupply, setAsInsidePortal, setBoundingBox, setComponent, setCustomName, setCustomNameVisible, setData, 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, setRequiresPrecisePosition, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shearOffAllLeashConnections, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, snapTo, snapTo, snapTo, snapTo, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, supportQuadLeashAsHolder, syncPacketPositionCodec, teleportSetPosition, teleportSpectators, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, waterSwimSound
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments
从接口继承的方法 net.minecraft.core.component.DataComponentGetter
get, getOrDefault, getOrDefault, getTyped, has, has
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, shouldRiderSit
从接口继承的方法 net.neoforged.neoforge.common.extensions.ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluid
从接口继承的方法 net.neoforged.neoforge.common.extensions.IPlayerExtension
isCloseEnough, isFakePlayer, mayFly, openMenu
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_XZ
private static final int NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_XZ- 另请参阅:
-
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_Y
private static final int NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_Y- 另请参阅:
-
FLY_STAT_RECORDING_SPEED
private static final int FLY_STAT_RECORDING_SPEED- 另请参阅:
-
BLOCK_INTERACTION_DISTANCE_VERIFICATION_BUFFER
public static final double BLOCK_INTERACTION_DISTANCE_VERIFICATION_BUFFER- 另请参阅:
-
ENTITY_INTERACTION_DISTANCE_VERIFICATION_BUFFER
public static final double ENTITY_INTERACTION_DISTANCE_VERIFICATION_BUFFER- 另请参阅:
-
ENDER_PEARL_TICKET_RADIUS
public static final int ENDER_PEARL_TICKET_RADIUS- 另请参阅:
-
ENDER_PEARLS_TAG
- 另请参阅:
-
ENDER_PEARL_DIMENSION_TAG
- 另请参阅:
-
TAG_DIMENSION
- 另请参阅:
-
CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
-
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
-
SPAWN_SET_MESSAGE
-
WAYPOINT_TRANSMIT_RANGE_CROUCH_MODIFIER
-
DEFAULT_SEEN_CREDITS
private static final boolean DEFAULT_SEEN_CREDITS- 另请参阅:
-
DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL
private static final boolean DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL- 另请参阅:
-
connection
-
server
-
gameMode
-
advancements
-
stats
-
lastRecordedHealthAndAbsorption
private float lastRecordedHealthAndAbsorption -
lastRecordedFoodLevel
private int lastRecordedFoodLevel -
lastRecordedAirLevel
private int lastRecordedAirLevel -
lastRecordedArmor
private int lastRecordedArmor -
lastRecordedLevel
private int lastRecordedLevel -
lastRecordedExperience
private int lastRecordedExperience -
lastSentHealth
private float lastSentHealth -
lastSentFood
private int lastSentFood -
lastFoodSaturationZero
private boolean lastFoodSaturationZero -
lastSentExp
private int lastSentExp -
chatVisibility
-
particleStatus
-
canChatColor
private boolean canChatColor -
lastActionTime
private long lastActionTime -
camera
-
isChangingDimension
private boolean isChangingDimension -
seenCredits
public boolean seenCredits -
recipeBook
-
levitationStartPos
-
levitationStartTime
private int levitationStartTime -
disconnected
private boolean disconnected -
requestedViewDistance
private int requestedViewDistance -
language
-
startingToFallPosition
-
enteredNetherPosition
-
enteredLavaOnVehiclePosition
-
lastSectionPos
-
chunkTrackingView
-
respawnConfig
-
textFilter
-
textFilteringEnabled
private boolean textFilteringEnabled -
allowsListing
private boolean allowsListing -
spawnExtraParticlesOnFall
private boolean spawnExtraParticlesOnFall -
wardenSpawnTracker
-
raidOmenPosition
-
lastKnownClientMovement
-
lastClientInput
-
enderPearls
-
containerSynchronizer
-
containerListener
-
chatSession
-
object
-
commandSource
-
containerCounter
private int containerCounter -
wonGame
public boolean wonGame -
tabListHeader
-
hasTabListName
private boolean hasTabListName -
tabListDisplayName
-
-
构造器详细资料
-
ServerPlayer
public ServerPlayer(MinecraftServer p_254143_, ServerLevel p_254435_, com.mojang.authlib.GameProfile p_253651_, ClientInformation p_301997_)
-
-
方法详细资料
-
adjustSpawnLocation
- 覆盖:
adjustSpawnLocation
在类中Entity
-
noCollisionNoLiquid
-
getCoprime
private int getCoprime(int p_9238_) -
readAdditionalSaveData
- 覆盖:
readAdditionalSaveData
在类中Player
-
addAdditionalSaveData
- 覆盖:
addAdditionalSaveData
在类中Player
-
saveParentVehicle
-
loadAndSpawnParentVehicle
-
saveEnderPearls
-
loadAndSpawnEnderPearls
-
loadAndSpawnEnderPearl
-
setExperiencePoints
public void setExperiencePoints(int p_8986_) -
setExperienceLevels
public void setExperienceLevels(int p_9175_) -
giveExperienceLevels
public void giveExperienceLevels(int p_9200_) - 覆盖:
giveExperienceLevels
在类中Player
-
onEnchantmentPerformed
- 覆盖:
onEnchantmentPerformed
在类中Player
-
initMenu
-
initInventoryMenu
public void initInventoryMenu() -
onEnterCombat
public void onEnterCombat()- 覆盖:
onEnterCombat
在类中LivingEntity
-
onLeaveCombat
public void onLeaveCombat()- 覆盖:
onLeaveCombat
在类中LivingEntity
-
onInsideBlock
- 覆盖:
onInsideBlock
在类中Entity
-
createItemCooldowns
- 覆盖:
createItemCooldowns
在类中Player
-
tick
public void tick() -
updatePlayerAttributes
private void updatePlayerAttributes() -
doTick
public void doTick() -
synchronizeSpecialItemUpdates
-
tickRegeneration
protected void tickRegeneration()- 覆盖:
tickRegeneration
在类中Player
-
resetFallDistance
public void resetFallDistance()- 覆盖:
resetFallDistance
在类中Entity
-
trackStartFallingPosition
public void trackStartFallingPosition() -
trackEnteredOrExitedLavaOnVehicle
public void trackEnteredOrExitedLavaOnVehicle() -
updateScoreForCriteria
-
die
-
tellNeutralMobsThatIDied
private void tellNeutralMobsThatIDied() -
awardKillScore
- 覆盖:
awardKillScore
在类中Entity
-
handleTeamKill
private void handleTeamKill(ScoreHolder p_313693_, ScoreHolder p_313814_, ObjectiveCriteria[] p_9127_) -
hurtServer
- 覆盖:
hurtServer
在类中Player
-
canHarmPlayer
- 覆盖:
canHarmPlayer
在类中Player
-
isPvpAllowed
private boolean isPvpAllowed() -
findRespawnPositionAndUseSpawnBlock
public TeleportTransition findRespawnPositionAndUseSpawnBlock(boolean p_348590_, TeleportTransition.PostTeleportTransition p_379376_) -
isReceivingWaypoints
public boolean isReceivingWaypoints() -
onAttributeUpdated
- 覆盖:
onAttributeUpdated
在类中LivingEntity
-
findRespawnAndUseSpawnBlock
private static Optional<ServerPlayer.RespawnPosAngle> findRespawnAndUseSpawnBlock(ServerLevel p_348505_, ServerPlayer.RespawnConfig p_404800_, boolean p_348513_) -
showEndCredits
public void showEndCredits() -
teleport
-
forceSetRotation
public void forceSetRotation(float p_380337_, float p_380190_) - 覆盖:
forceSetRotation
在类中Entity
-
triggerDimensionChangeTriggers
-
broadcastToPlayer
- 覆盖:
broadcastToPlayer
在类中Entity
-
take
- 覆盖:
take
在类中LivingEntity
-
startSleepInBed
public com.mojang.datafixers.util.Either<Player.BedSleepingProblem,Unit> startSleepInBed(BlockPos p_9115_) - 覆盖:
startSleepInBed
在类中Player
-
startSleeping
- 覆盖:
startSleeping
在类中LivingEntity
-
bedInRange
-
isReachableBedBlock
-
bedBlocked
-
stopSleepInBed
public void stopSleepInBed(boolean p_9165_, boolean p_9166_) - 覆盖:
stopSleepInBed
在类中Player
-
isInvulnerableTo
- 覆盖:
isInvulnerableTo
在类中Player
-
onChangedBlock
- 覆盖:
onChangedBlock
在类中LivingEntity
-
checkFallDamage
protected void checkFallDamage(double p_8976_, boolean p_8977_, BlockState p_8978_, BlockPos p_8979_) - 覆盖:
checkFallDamage
在类中LivingEntity
-
onExplosionHit
- 覆盖:
onExplosionHit
在类中Entity
-
pushEntities
protected void pushEntities()- 覆盖:
pushEntities
在类中LivingEntity
-
openTextEdit
- 覆盖:
openTextEdit
在类中Player
-
openDialog
- 覆盖:
openDialog
在类中Player
-
nextContainerCounter
private void nextContainerCounter() -
openMenu
-
openMenu
public OptionalInt openMenu(@Nullable MenuProvider p_9033_, @Nullable Consumer<RegistryFriendlyByteBuf> extraDataWriter) 从接口复制的说明:IPlayerExtension
Request to open a GUI on the client, from the serverRefer to
IMenuTypeExtension.create(IContainerFactory)
for creating aMenuType
that can consume the extra data sent to the client by this method.The maximum size for #extraDataWriter is 32600 bytes.
- 参数:
p_9033_
- A supplier of container properties including the registry name of the containerextraDataWriter
- Consumer to write any additional data the GUI needs. This data is written afterIMenuProviderExtension.writeClientSideData(AbstractContainerMenu, RegistryFriendlyByteBuf)
.- 返回:
- The window ID of the opened GUI, or empty if the GUI could not be opened
-
sendMerchantOffers
public void sendMerchantOffers(int p_8988_, MerchantOffers p_8989_, int p_8990_, int p_8991_, boolean p_8992_, boolean p_8993_) - 覆盖:
sendMerchantOffers
在类中Player
-
openHorseInventory
- 覆盖:
openHorseInventory
在类中Player
-
openItemGui
- 覆盖:
openItemGui
在类中Player
-
openCommandBlock
- 覆盖:
openCommandBlock
在类中Player
-
closeContainer
public void closeContainer()- 覆盖:
closeContainer
在类中Player
-
doCloseContainer
public void doCloseContainer()- 覆盖:
doCloseContainer
在类中Player
-
rideTick
public void rideTick() -
checkMovementStatistics
public void checkMovementStatistics(double p_308996_, double p_309062_, double p_309170_) -
checkRidingStatistics
public void checkRidingStatistics(double p_308888_, double p_309131_, double p_308893_) -
didNotMove
private static boolean didNotMove(double p_309023_, double p_309067_, double p_309143_) -
awardStat
-
resetStat
-
awardRecipes
- 覆盖:
awardRecipes
在类中Player
-
triggerRecipeCrafted
- 覆盖:
triggerRecipeCrafted
在类中Player
-
awardRecipesByKey
- 覆盖:
awardRecipesByKey
在类中Player
-
resetRecipes
- 覆盖:
resetRecipes
在类中Player
-
jumpFromGround
public void jumpFromGround()- 覆盖:
jumpFromGround
在类中LivingEntity
-
giveExperiencePoints
public void giveExperiencePoints(int p_9208_) - 覆盖:
giveExperiencePoints
在类中Player
-
disconnect
public void disconnect() -
hasDisconnected
public boolean hasDisconnected() -
resetSentInfo
public void resetSentInfo() -
displayClientMessage
- 覆盖:
displayClientMessage
在类中Player
-
completeUsingItem
protected void completeUsingItem()- 覆盖:
completeUsingItem
在类中LivingEntity
-
lookAt
- 覆盖:
lookAt
在类中LivingEntity
-
lookAt
public void lookAt(EntityAnchorArgument.Anchor p_9108_, Entity p_9109_, EntityAnchorArgument.Anchor p_9110_) -
restoreFrom
-
onEffectAdded
- 覆盖:
onEffectAdded
在类中LivingEntity
-
onEffectUpdated
protected void onEffectUpdated(MobEffectInstance p_143396_, boolean p_143397_, @Nullable Entity p_143398_) - 覆盖:
onEffectUpdated
在类中LivingEntity
-
onEffectsRemoved
- 覆盖:
onEffectsRemoved
在类中LivingEntity
-
teleportTo
public void teleportTo(double p_8969_, double p_8970_, double p_8971_) - 覆盖:
teleportTo
在类中Entity
-
teleportRelative
public void teleportRelative(double p_251611_, double p_248861_, double p_252266_) - 覆盖:
teleportRelative
在类中Entity
-
teleportTo
public boolean teleportTo(ServerLevel p_265564_, double p_265424_, double p_265680_, double p_265312_, Set<Relative> p_265192_, float p_265059_, float p_265266_, boolean p_361029_) - 覆盖:
teleportTo
在类中Entity
-
snapTo
public void snapTo(double p_9171_, double p_9172_, double p_9173_) -
crit
-
magicCrit
-
onUpdateAbilities
public void onUpdateAbilities()- 覆盖:
onUpdateAbilities
在类中Player
-
level
-
setGameMode
-
gameMode
-
commandSource
-
createCommandSourceStack
-
sendSystemMessage
-
sendSystemMessage
-
sendChatMessage
public void sendChatMessage(OutgoingChatMessage p_249852_, boolean p_250110_, ChatType.Bound p_252108_) -
getIpAddress
-
updateOptions
-
clientInformation
-
canChatInColor
public boolean canChatInColor() -
getChatVisibility
-
acceptsSystemMessages
private boolean acceptsSystemMessages(boolean p_240568_) -
acceptsChatMessages
private boolean acceptsChatMessages() -
requestedViewDistance
public int requestedViewDistance() -
sendServerStatus
-
getPermissionLevel
public int getPermissionLevel()- 覆盖:
getPermissionLevel
在类中Player
-
resetLastActionTime
public void resetLastActionTime() -
getStats
-
getRecipeBook
-
updateInvisibilityStatus
protected void updateInvisibilityStatus()- 覆盖:
updateInvisibilityStatus
在类中LivingEntity
-
getCamera
-
setCamera
-
processPortalCooldown
protected void processPortalCooldown()- 覆盖:
processPortalCooldown
在类中Entity
-
attack
-
getLastActionTime
public long getLastActionTime() -
getTabListDisplayName
-
getTabListOrder
public int getTabListOrder() -
swing
- 覆盖:
swing
在类中LivingEntity
-
isChangingDimension
public boolean isChangingDimension() -
hasChangedDimension
public void hasChangedDimension() -
getAdvancements
-
getRespawnConfig
-
copyRespawnPosition
-
setRespawnPosition
-
getLastSectionPos
-
setLastSectionPos
-
getChunkTrackingView
-
setChunkTrackingView
-
playNotifySound
- 覆盖:
playNotifySound
在类中Player
-
drop
- 覆盖:
drop
在类中LivingEntity
-
getLanguage
Returns the language last reported by the player as their local language. Defaults to en_us if the value is unknown. -
getTabListHeader
-
setTabListHeader
Set the tab list header while preserving the footer.- 参数:
header
- the new header, orComponent.empty()
to clear
-
refreshTabListName
public void refreshTabListName()Force the name displayed in the tab list to refresh, by firingPlayerEvent.TabListNameFormat
. -
getTextFilter
-
setServerLevel
-
readPlayerMode
-
calculateGameModeForNewPlayer
-
loadGameTypes
-
storeGameTypes
-
isTextFilteringEnabled
public boolean isTextFilteringEnabled()- 覆盖:
isTextFilteringEnabled
在类中Player
-
shouldFilterMessageTo
-
mayInteract
- 覆盖:
mayInteract
在类中Entity
-
updateUsingItem
- 覆盖:
updateUsingItem
在类中LivingEntity
-
drop
public boolean drop(boolean p_182295_) -
handleExtraItemsCreatedOnUse
-
allowsListing
public boolean allowsListing() -
getWardenSpawnTracker
- 覆盖:
getWardenSpawnTracker
在类中Player
-
setSpawnExtraParticlesOnFall
public void setSpawnExtraParticlesOnFall(boolean p_334029_) -
onItemPickup
- 覆盖:
onItemPickup
在类中LivingEntity
-
setChatSession
-
getChatSession
-
indicateDamage
public void indicateDamage(double p_270621_, double p_270478_) - 覆盖:
indicateDamage
在类中LivingEntity
-
startRiding
- 覆盖:
startRiding
在类中Entity
-
removeVehicle
public void removeVehicle()- 覆盖:
removeVehicle
在类中Player
-
createCommonSpawnInfo
-
setRaidOmenPosition
-
clearRaidOmenPosition
public void clearRaidOmenPosition() -
getRaidOmenPosition
-
getKnownMovement
- 覆盖:
getKnownMovement
在类中Entity
-
setKnownMovement
-
getEnchantedDamage
- 覆盖:
getEnchantedDamage
在类中Player
-
onEquippedItemBroken
- 覆盖:
onEquippedItemBroken
在类中LivingEntity
-
getLastClientInput
-
setLastClientInput
-
getLastClientMoveIntent
-
registerEnderPearl
-
deregisterEnderPearl
-
getEnderPearls
-
registerAndUpdateEnderPearlTicket
-
placeEnderPearlTicket
-