Class ServerPlayer
- All Implemented Interfaces:
DataComponentGetter, TypedInstance<EntityType<?>>, SyncedDataHolder, DebugValueSource, Attackable, ContainerUser, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, Nameable, ScoreHolder, Waypoint, WaypointTransmitter, IAttachmentHolder, IEntityExtension, ILivingEntityExtension, IPlayerExtension
- Direct Known Subclasses:
FakePlayer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from class Player
Player.BedSleepingProblemNested classes/interfaces inherited from class LivingEntity
LivingEntity.FallsoundsNested classes/interfaces inherited from class Entity
Entity.Flags, Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface DebugValueSource
DebugValueSource.Registration, DebugValueSource.ValueGetter<T>Nested classes/interfaces inherited from interface ItemOwner
ItemOwner.OffsetFromOwnerNested classes/interfaces inherited from interface Waypoint
Waypoint.IconNested classes/interfaces inherited from interface WaypointTransmitter
WaypointTransmitter.BlockConnection, WaypointTransmitter.ChunkConnection, WaypointTransmitter.Connection, WaypointTransmitter.EntityAzimuthConnection, WaypointTransmitter.EntityBlockConnection, WaypointTransmitter.EntityChunkConnection -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerAdvancementsprivate booleanstatic final doubleprivate @Nullable EntityThe entity the player is currently spectating through.private booleanprivate @Nullable RemoteChatSessionprivate ChatVisiblityprivate ChunkTrackingViewprivate final CommandSourceprivate intprivate final ContainerListenerprivate final ContainerSynchronizerprivate static final AttributeModifierprivate static final AttributeModifierprivate static final booleanprivate static final booleanprivate booleanstatic final Stringstatic final intstatic final Stringprivate final Set<ThrownEnderpearl> private @Nullable Vec3private @Nullable Vec3static final doubleprivate static final intfinal ServerPlayerGameModeprivate booleanprivate booleanprivate Stringprivate longprivate Inputprivate booleanprivate Vec3private intprivate intprivate intprivate intprivate floatthe total health of the player, includes actual health and absorption health.private intprivate SectionPosPlayer section position as last updated by TicketManager, used by ChunkManagerprivate intprivate intprivate floatprivate @Nullable Vec3private intprivate static final org.slf4j.Loggerprivate static final intprivate static final intfinal @Nullable Objectprivate floatprivate ParticleStatusprivate @Nullable BlockPosprivate final ServerRecipeBookprivate Set<DebugSubscription<?>> private intprivate @Nullable ServerPlayer.RespawnConfigbooleanprivate final MinecraftServerprivate CompoundTagprivate CompoundTagprivate static final Componentprivate booleanprivate @Nullable Vec3private final ServerStatsCounterprivate Componentprivate Componentprivate Componentstatic final Stringprivate final TextFilterprivate booleanprivate longprivate WardenSpawnTrackerprivate static final AttributeModifierbooleanFields inherited from class Player
containerMenu, CRAFTING_SLOT_OFFSET, CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER_VALUE, DEFAULT_BLOCK_INTERACTION_RANGE, DEFAULT_ENTITY_INTERACTION_RANGE, defaultFlySpeed, enchantmentSeed, ENDER_SLOT_OFFSET, enderChestInventory, experienceLevel, experienceProgress, fishing, foodData, HELD_ITEM_SLOT, hurtDir, inventoryMenu, jumpTriggerTime, MAX_HEALTH, PERSISTED_NBT_TAG, SLEEP_DURATION, takeXpDelay, totalExperience, WAKE_UP_DURATION, wasUnderwaterFields inherited from class Avatar
DATA_PLAYER_MAIN_HAND, DATA_PLAYER_MODE_CUSTOMISATION, DEFAULT_EYE_HEIGHT, DEFAULT_MAIN_HAND, DEFAULT_MODEL_CUSTOMIZATION, DEFAULT_VEHICLE_ATTACHMENT, POSES, STANDING_DIMENSIONS, SWIMMING_BB_HEIGHTFields inherited from class LivingEntity
ARMOR_SLOT_OFFSET, attackAnim, attackStrengthTicker, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, currentExplosionCause, currentImpulseImpactPos, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, DEFAULT_KNOCKBACK, elytraAnimationState, equipment, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, hurtDuration, hurtTime, INPUT_FRICTION, interpolation, INVULNERABLE_DURATION, itemSwapTicker, 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, recentKineticEnemies, removeArrowTime, removeStingerTime, SADDLE_OFFSET, SLEEPING_DIMENSIONS, 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, zzaFields inherited from class 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, horizontalCollision, hurtMarked, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, minorHorizontalCollision, moveDist, needsSync, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, TAG_AIR, TAG_CUSTOM_NAME, 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, zOldFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface Waypoint
MAX_RANGE, WAYPOINT_TRANSMIT_RANGE_HIDE_MODIFIERFields inherited from interface WaypointTransmitter
REALLY_FAR_DISTANCE -
Constructor Summary
ConstructorsConstructorDescriptionServerPlayer(MinecraftServer server, ServerLevel level, com.mojang.authlib.GameProfile gameProfile, ClientInformation clientInformation) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate booleanacceptsSystemMessages(boolean overlay) protected voidaddAdditionalSaveData(ValueOutput output) adjustSpawnLocation(ServerLevel level, BlockPos spawnSuggestion) booleanvoidawardKillScore(Entity victim, DamageSource killingBlow) intawardRecipes(Collection<RecipeHolder<?>> recipes) voidawardRecipesByKey(List<ResourceKey<Recipe<?>>> recipeIds) voidAdds a value to a statistic field.private booleanbedBlocked(BlockPos pos, Direction direction) private booleanbedInRange(BlockPos pos, Direction direction) booleanbroadcastToPlayer(ServerPlayer player) private GameTypecalculateGameModeForNewPlayer(@Nullable GameType loadedGameType) booleanbooleancanHarmPlayer(Player target) protected voidcheckFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos) voidcheckMovementStatistics(double dx, double dy, double dz) voidcheckRidingStatistics(double dx, double dy, double dz) voidvoidprotected voidvoidcopyRespawnPosition(ServerPlayer player) createCommonSpawnInfo(ServerLevel level) protected ItemCooldownsvoidCalled when the entity is dealt a critical hit.Set<DebugSubscription<?>> voidderegisterEnderPearl(ThrownEnderpearl enderPearl) private static booleandidNotMove(double dx, double dy, double dz) voiddie(DamageSource source) Called when the mob's health reaches 0.voidvoidvoiddoTick()voiddrop(boolean all) private static Optional<ServerPlayer.RespawnPosAngle> findRespawnAndUseSpawnBlock(ServerLevel level, ServerPlayer.RespawnConfig respawnConfig, boolean consumeSpawnBlock) findRespawnPositionAndUseSpawnBlock(boolean consumeSpawnBlock, TeleportTransition.PostTeleportTransition postTeleportTransition) voidforceSetRotation(float yRot, boolean relativeY, float xRot, boolean relativeX) gameMode()@Nullable RemoteChatSessionprotected floatgetEnchantedDamage(Entity entity, float dmg, DamageSource damageSource) Returns the language last reported by the player as their local language.long@Nullable BlockPos@Nullable ServerPlayer.RespawnConfiggetStats()@Nullable ComponentintvoidgiveExperienceLevels(int amount) Add experience levels to this player.voidgiveExperiencePoints(int i) voidhandleExtraItemsCreatedOnUse(ItemStack extraItems) voidprivate voidhandleTeamKill(ScoreHolder source, ScoreHolder target, ObjectiveCriteria[] criteriaByTeam) voidbooleanbooleanhurtServer(ServerLevel level, DamageSource source, float damage) voidindicateDamage(double xd, double zd) voidprivate voidinitMenu(AbstractContainerMenu container) booleanbooleanisInvulnerableTo(ServerLevel level, DamageSource source) private booleanprivate booleanisReachableBedBlock(BlockPos bedBlockPos) booleanbooleanvoidlevel()private voidloadAndSpawnEnderPearl(ValueInput pearlInput) voidloadAndSpawnEnderPearls(ValueInput playerInput) voidloadAndSpawnParentVehicle(ValueInput playerInput) voidlookAt(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) voidlookAt(EntityAnchorArgument.Anchor anchor, Vec3 pos) voidbooleanmayInteract(ServerLevel level, BlockPos pos) private voidprotected voidonAttributeUpdated(Holder<Attribute> attribute) protected voidonChangedBlock(ServerLevel level, BlockPos pos) protected voidonEffectAdded(MobEffectInstance effect, @Nullable Entity source) protected voidonEffectsRemoved(Collection<MobEffectInstance> effects) protected voidonEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, @Nullable Entity source) voidonEnchantmentPerformed(ItemStack itemStack, int enchantmentCost) voidvoidonEquippedItemBroken(Item brokenItem, EquipmentSlot inSlot) voidonExplosionHit(@Nullable Entity explosionCausedBy) voidonInsideBlock(BlockState state) voidonItemPickup(ItemEntity entity) voidvoidvoidopenCommandBlock(CommandBlockEntity commandBlock) voidopenDialog(Holder<Dialog> dialog) voidopenHorseInventory(AbstractHorse horse, Container container) voidopenItemGui(ItemStack itemStack, InteractionHand hand) openMenu(@Nullable MenuProvider provider) openMenu(@Nullable MenuProvider provider, @Nullable Consumer<RegistryFriendlyByteBuf> extraDataWriter) Request to open a GUI on the client, from the servervoidopenNautilusInventory(AbstractNautilus nautilus, Container container) voidopenTextEdit(SignBlockEntity sign, boolean isFrontText) static longplaceEnderPearlTicket(ServerLevel level, ChunkPos chunk) private voidplayShoulderEntityAmbientSound(CompoundTag shoulderEntityTag) protected voidprotected voidprotected voidreadAdditionalSaveData(ValueInput input) private static @Nullable GameTypereadPlayerMode(ValueInput playerInput, String modeTag) voidForce the name displayed in the tab list to refresh, by firingPlayerEvent.TabListNameFormat.longregisterAndUpdateEnderPearlTicket(ThrownEnderpearl enderpearl) voidregisterEnderPearl(ThrownEnderpearl enderPearl) protected voidvoidvoidrequestDebugSubscriptions(Set<DebugSubscription<?>> subscriptions) intvoidvoidintresetRecipes(Collection<RecipeHolder<?>> recipe) voidvoidprivate voidvoidrestoreFrom(ServerPlayer oldPlayer, boolean restoreAll) voidrideTick()private voidsaveEnderPearls(ValueOutput playerOutput) private voidsaveParentVehicle(ValueOutput playerOutput) voidsendChatMessage(OutgoingChatMessage message, boolean filtered, ChatType.Bound chatType) voidsendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock) voidsendOverlayMessage(Component message) voidsendServerStatus(ServerStatus status) voidsendSystemMessage(Component message) voidsendSystemMessage(Component message, boolean overlay) voidvoidsetChatSession(RemoteChatSession chatSession) voidsetChunkTrackingView(ChunkTrackingView chunkTrackingView) booleansetEntityOnShoulder(CompoundTag entityTag) voidsetExperienceLevels(int amount) voidsetExperiencePoints(int amount) booleansetGameMode(GameType mode) voidsetKnownMovement(Vec3 lastKnownClientMovement) voidsetLastClientInput(Input lastClientInput) voidsetLastSectionPos(SectionPos lastSectionPos) voidsetRaidOmenPosition(BlockPos raidOmenPosition) voidsetRespawnPosition(@Nullable ServerPlayer.RespawnConfig respawnConfig, boolean showMessage) voidsetServerLevel(ServerLevel level) protected voidprotected voidvoidsetSpawnExtraParticlesOnFall(boolean toggle) voidsetTabListFooter(Component footer) Set the tab list footer while preserving the header.voidsetTabListHeader(Component header) Set the tab list header while preserving the footer.voidsetTabListHeaderFooter(Component header, Component footer) Set the tab list header and footer at once.booleanshouldFilterMessageTo(ServerPlayer serverPlayer) voidvoidsnapTo(double x, double y, double z) booleanstartRiding(Entity entityToRide, boolean force, boolean sendEventAndTriggers) com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> startSleepInBed(BlockPos pos) voidstartSleeping(BlockPos bedPosition) voidstopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList) private voidstoreGameTypes(ValueOutput playerOutput) voidswing(InteractionHand hand) private voidsynchronizeSpecialItemUpdates(ItemStack itemStack) voidCalled when the entity picks up an item.@Nullable ServerPlayerteleport(TeleportTransition transition) voidteleportRelative(double dx, double dy, double dz) voidteleportTo(double x, double y, double z) Sets the position of the entity and updates the 'last' variablesbooleanteleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera) private voidvoidtick()protected voidvoidvoidprivate voidtransferInventoryXpAndScore(Player oldPlayer) private voidtriggerDimensionChangeTriggers(ServerLevel oldLevel) voidtriggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> itemStacks) protected voidvoidupdateOptions(ClientInformation information) private voidprivate voidupdateScoreForCriteria(ObjectiveCriteria criteria, int value) protected voidupdateUsingItem(ItemStack useItem) Methods inherited from class Player
actuallyHurt, addItem, aiStep, animateHurt, attack, awardStat, awardStat, awardStat, blockActionRestricted, blockInteractionRange, blockUsingItem, canBeSeenAsEnemy, canDropItems, canEat, canGlide, cannotAttackWithItem, canPlayerFitWithinBlocksAndEntitiesWhen, canSimulateMovement, canSprint, canUseGameMasterBlocks, causeExtraKnockback, causeFallDamage, causeFoodExhaustion, convertParrotVariant, createAttributes, createEquipment, debugInfo, defineSynchedData, destroyVanishingCursedItems, doAutoAttackOnTouch, doesEmitEquipEvent, doWaterSplashEffect, drop, dropEquipment, entityInteractionRange, extractParrotVariant, freeAt, getAbilities, getAbsorptionAmount, getAttackStrengthScale, getBaseExperienceReward, getBlockSpeedFactor, getContainerInteractionRange, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDestroySpeed, getDestroySpeed, getDimensionChangingDelay, getDismountPoses, getDisplayName, getEnchantmentSeed, getEnderChestInventory, getFallSounds, getFireImmuneTicks, getFlyingSpeed, getFoodData, getForcedPose, getGameProfile, getHurtDir, getHurtSound, getInventory, getItemSwapScale, getLastDeathLocation, getLuck, getMaxHeadRotationRelativeToBody, getMovementEmission, getName, getPlainTextName, getPrefixes, getProjectile, getRopeHoldPosition, getScore, getScoreboardName, getShoulderParrotLeft, getShoulderParrotRight, getSleepTimer, getSlot, getSoundSource, getSpeed, getSuffixes, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getVoicePitch, getWeaponItem, getXpNeededForNextLevel, handleCreativeModeItemDrop, handleEntityEvent, hasContainerOpen, hasContainerOpen, hasCorrectToolForDrops, hasCorrectToolForDrops, hasEnoughFoodToDoExhaustiveManoeuvres, hasInfiniteMaterials, hurtArmor, hurtHelmet, increaseScore, interactOn, internalSetAbsorptionAmount, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isClientAuthoritative, isCreative, isEffectiveAi, isHurt, isImmobile, isLocalClientAuthoritative, isLocalPlayer, isMobilityRestricted, isPickable, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isSpectator, isStayingOnGroundSurface, isSwimming, isWithinAttackRange, isWithinBlockInteractionRange, isWithinEntityInteractionRange, isWithinEntityInteractionRange, killedEntity, makeStuckInBlock, maybeBackOffFromEdge, mayBuild, mayUseItemAt, nameAndId, onAboveBubbleColumn, onAttack, onClimbable, onInsideBubbleColumn, openJigsawBlock, openMinecartCommandBlock, openStructureBlock, openTestBlock, openTestInstanceBlock, playSound, playStepSound, preventsBlockDrops, refreshDisplayName, remove, resetAttackStrengthTicker, resetOnlyAttackStrengthTicker, setForcedPose, setLastDeathLocation, setReducedDebugInfo, setRemainingFireTicks, setScore, setShoulderParrotLeft, setShoulderParrotRight, shouldBeSaved, shouldRotateWithMinecart, shouldShowName, stabAttack, startAutoSpinAttack, startFallFlying, stopSleeping, travel, tryToStartFallFlying, updateIsUnderwater, updatePlayerPose, updateSwimming, updateTutorialInventoryAction, wantsToStopRidingMethods inherited from class Avatar
getDefaultDimensions, getMainArm, isModelPartShown, setMainArmMethods inherited from class LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, applyInput, applyItemBlocking, applyPostImpulseGraceTime, areAllEffectsAmbient, asLivingEntity, attackable, baseTick, blockedByItem, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canDispenserEquipIntoSlot, canEquipWithDispenser, canFreeze, canGlideUsing, canPickUpLoot, canStandOnFluid, canUsePortal, canUseSlot, checkAutoSpinAttack, clearSleepingPos, createLivingAttributes, createWitherRose, decreaseAirSupply, doHurtEquipment, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromEntityInteractLootTable, dropFromGiftLootTable, dropFromLootTable, dropFromLootTable, dropFromLootTable, dropFromLootTable, dropFromShearingLootTable, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getActiveItem, getAgeScale, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttackRangeWith, 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, getLiquidCollisionShape, getLocalBoundsForPose, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSecondsToDisableBlocking, getSleepingPos, getSoundVolume, getStingerCount, getSwimAmount, getTicksSinceLastKineticHitFeedback, getTicksUsingItem, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, hasEffect, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, hasLineOfSight, heal, igniteForTicks, increaseAirSupply, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDeadOrDying, isEquippableInSlot, isFallFlying, isHolding, isHolding, isIgnoringFallDamageFromCurrentImpulse, isInPostImpulseGraceTime, isInvertedHealAndHarm, isInWall, isJumping, isLookingAtMe, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isTransmittingWaypoint, isUsingItem, isVisuallySwimming, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, makeBrain, makePoofParticles, makeSound, makeWaypointConnectionWith, maxUpStep, onBelowWorld, onEquipItem, onRemoval, onSyncedDataUpdated, playAttackSound, playBlockFallSound, playHurtSound, postPiercingAttack, push, randomTeleport, recreateFromPacket, releaseUsingItem, rememberStabbedEntity, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, resetCurrentImpulseContext, resetForwardDirectionOfRelativePortalPosition, resolveMobResponsibleForDamage, resolvePlayerResponsibleForDamage, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setIgnoreFallDamageFromCurrentImpulse, setItemInHand, setItemSlot, setItemSlot, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldTakeDrowningDamage, shouldTravelInFluid, skipDropExperience, spawnItemParticles, stabbedEntities, startUsingItem, stopFallFlying, stopRiding, stopUsingItem, swing, tickDeath, tickEffects, tickHeadTurn, tickRidden, travelFlying, travelFlying, travelInWater, triggerOnDeathMobEffects, tryAddFrost, tryResetCurrentImpulseContext, updateDataBeforeSync, updateEffectVisibility, updateFallFlying, updateSwingTime, updateWalkAnimation, wasExperienceConsumed, wasRecentlyStabbed, waypointIcon, wouldNotSuffocateAtTargetPoseMethods inherited from class Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, applyImplicitComponent, applyImplicitComponentIfPresent, applyImplicitComponents, blockPosition, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canInteractWithLevel, canRide, canSpawnSprintParticle, canTeleport, canTrample, captureDrops, captureDrops, castComponentValue, checkBelowWorld, checkDespawn, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collectAllColliders, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, computeSpeed, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, dropAllLeashConnections, ejectPassengers, entityTags, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, get, getAddEntityPacket, getAirSupply, getAttachments, getAvailableSpaceBelow, 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, getHeadLookAngle, 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, getSharedFlag, getStringUUID, 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, hasMovedHorizontallyRecently, hasPassenger, hasPassenger, hasPose, hurt, hurtClient, hurtOrSimulate, igniteForSeconds, ignoreExplosion, interact, is, isAddedToLevel, isAffectedByBlocks, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInClouds, isInFluidType, isInFluidType, isInLava, isInLiquid, isInShallowWater, 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, moveOrInterpolateTo, moveOrInterpolateTo, 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, registerDebugValues, 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, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, supportQuadLeashAsHolder, syncData, syncPacketPositionCodec, teleportSetPosition, teleportSetPosition, teleportSpectators, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, typeHolder, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoCanPushEntityFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, waterSwimSoundMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from interface ContainerUser
getLivingEntityMethods inherited from interface DataComponentGetter
get, getOrDefault, getOrDefault, getTyped, has, hasMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface 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, shouldRiderSitMethods inherited from interface ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluidMethods inherited from interface IPlayerExtension
isCloseEnough, isFakePlayer, mayFly, openMenuMethods inherited from interface ScoreHolder
getFeedbackDisplayNameMethods inherited from interface SlotProvider
getSlotsFromRange
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_XZ
private static final int NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_XZ- See Also:
-
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_Y
private static final int NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_Y- See Also:
-
FLY_STAT_RECORDING_SPEED
private static final int FLY_STAT_RECORDING_SPEED- See Also:
-
BLOCK_INTERACTION_DISTANCE_VERIFICATION_BUFFER
public static final double BLOCK_INTERACTION_DISTANCE_VERIFICATION_BUFFER- See Also:
-
ENTITY_INTERACTION_DISTANCE_VERIFICATION_BUFFER
public static final double ENTITY_INTERACTION_DISTANCE_VERIFICATION_BUFFER- See Also:
-
ENDER_PEARL_TICKET_RADIUS
public static final int ENDER_PEARL_TICKET_RADIUS- See Also:
-
ENDER_PEARLS_TAG
- See Also:
-
ENDER_PEARL_DIMENSION_TAG
- See Also:
-
TAG_DIMENSION
- See Also:
-
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- See Also:
-
DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL
private static final boolean DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL- See Also:
-
connection
-
server
-
gameMode
-
advancements
-
stats
-
lastRecordedHealthAndAbsorption
private float lastRecordedHealthAndAbsorptionthe total health of the player, includes actual health and absorption health. Updated every tick. -
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
The entity the player is currently spectating through. -
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
Player section position as last updated by TicketManager, used by ChunkManager -
chunkTrackingView
-
respawnConfig
-
textFilter
-
textFilteringEnabled
private boolean textFilteringEnabled -
allowsListing
private boolean allowsListing -
spawnExtraParticlesOnFall
private boolean spawnExtraParticlesOnFall -
wardenSpawnTracker
-
raidOmenPosition
-
lastKnownClientMovement
-
lastClientInput
-
enderPearls
-
timeEntitySatOnShoulder
private long timeEntitySatOnShoulder -
shoulderEntityLeft
-
shoulderEntityRight
-
containerSynchronizer
-
containerListener
-
chatSession
-
object
-
commandSource
-
requestedDebugSubscriptions
-
containerCounter
private int containerCounter -
wonGame
public boolean wonGame -
partialTimeSinceRestTick
private float partialTimeSinceRestTick -
tabListHeader
-
hasTabListName
private boolean hasTabListName -
tabListDisplayName
-
-
Constructor Details
-
ServerPlayer
public ServerPlayer(MinecraftServer server, ServerLevel level, com.mojang.authlib.GameProfile gameProfile, ClientInformation clientInformation)
-
-
Method Details
-
adjustSpawnLocation
- Overrides:
adjustSpawnLocationin classEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classPlayer
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classPlayer
-
saveParentVehicle
-
loadAndSpawnParentVehicle
-
saveEnderPearls
-
loadAndSpawnEnderPearls
-
loadAndSpawnEnderPearl
-
setExperiencePoints
public void setExperiencePoints(int amount) -
setExperienceLevels
public void setExperienceLevels(int amount) -
giveExperienceLevels
public void giveExperienceLevels(int amount) Add experience levels to this player.- Overrides:
giveExperienceLevelsin classPlayer
-
onEnchantmentPerformed
- Overrides:
onEnchantmentPerformedin classPlayer
-
initMenu
-
initInventoryMenu
public void initInventoryMenu() -
onEnterCombat
public void onEnterCombat()- Overrides:
onEnterCombatin classLivingEntity
-
onLeaveCombat
public void onLeaveCombat()- Overrides:
onLeaveCombatin classLivingEntity
-
onInsideBlock
- Overrides:
onInsideBlockin classEntity
-
createItemCooldowns
- Overrides:
createItemCooldownsin classPlayer
-
tick
-
updatePlayerAttributes
private void updatePlayerAttributes() -
doTick
public void doTick() -
synchronizeSpecialItemUpdates
-
tickRegeneration
protected void tickRegeneration()- Overrides:
tickRegenerationin classPlayer
-
handleShoulderEntities
public void handleShoulderEntities()- Overrides:
handleShoulderEntitiesin classPlayer
-
playShoulderEntityAmbientSound
-
setEntityOnShoulder
-
removeEntitiesOnShoulder
protected void removeEntitiesOnShoulder()- Overrides:
removeEntitiesOnShoulderin classPlayer
-
respawnEntityOnShoulder
-
resetFallDistance
public void resetFallDistance()- Overrides:
resetFallDistancein classEntity
-
trackStartFallingPosition
public void trackStartFallingPosition() -
trackEnteredOrExitedLavaOnVehicle
public void trackEnteredOrExitedLavaOnVehicle() -
updateScoreForCriteria
-
die
Called when the mob's health reaches 0. -
tellNeutralMobsThatIDied
private void tellNeutralMobsThatIDied() -
awardKillScore
- Overrides:
awardKillScorein classEntity
-
handleTeamKill
private void handleTeamKill(ScoreHolder source, ScoreHolder target, ObjectiveCriteria[] criteriaByTeam) -
hurtServer
- Overrides:
hurtServerin classPlayer
-
canHarmPlayer
- Overrides:
canHarmPlayerin classPlayer
-
isPvpAllowed
private boolean isPvpAllowed() -
findRespawnPositionAndUseSpawnBlock
public TeleportTransition findRespawnPositionAndUseSpawnBlock(boolean consumeSpawnBlock, TeleportTransition.PostTeleportTransition postTeleportTransition) -
isReceivingWaypoints
public boolean isReceivingWaypoints() -
onAttributeUpdated
- Overrides:
onAttributeUpdatedin classLivingEntity
-
findRespawnAndUseSpawnBlock
private static Optional<ServerPlayer.RespawnPosAngle> findRespawnAndUseSpawnBlock(ServerLevel level, ServerPlayer.RespawnConfig respawnConfig, boolean consumeSpawnBlock) -
showEndCredits
public void showEndCredits() -
teleport
-
forceSetRotation
public void forceSetRotation(float yRot, boolean relativeY, float xRot, boolean relativeX) - Overrides:
forceSetRotationin classEntity
-
triggerDimensionChangeTriggers
-
broadcastToPlayer
- Overrides:
broadcastToPlayerin classEntity
-
take
Called when the entity picks up an item.- Overrides:
takein classLivingEntity
-
startSleepInBed
public com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> startSleepInBed(BlockPos pos) - Overrides:
startSleepInBedin classPlayer
-
startSleeping
- Overrides:
startSleepingin classLivingEntity
-
bedInRange
-
isReachableBedBlock
-
bedBlocked
-
stopSleepInBed
public void stopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList) - Overrides:
stopSleepInBedin classPlayer
-
isInvulnerableTo
- Overrides:
isInvulnerableToin classPlayer
-
onChangedBlock
- Overrides:
onChangedBlockin classLivingEntity
-
checkFallDamage
- Overrides:
checkFallDamagein classLivingEntity
-
onExplosionHit
- Overrides:
onExplosionHitin classEntity
-
pushEntities
protected void pushEntities()- Overrides:
pushEntitiesin classLivingEntity
-
openTextEdit
- Overrides:
openTextEditin classPlayer
-
openDialog
- Overrides:
openDialogin classPlayer
-
nextContainerCounter
private void nextContainerCounter() -
openMenu
-
openMenu
public OptionalInt openMenu(@Nullable MenuProvider provider, @Nullable Consumer<RegistryFriendlyByteBuf> extraDataWriter) Description copied from interface:IPlayerExtensionRequest to open a GUI on the client, from the serverRefer to
IMenuTypeExtension.create(IContainerFactory)for creating aMenuTypethat can consume the extra data sent to the client by this method.The maximum size for #extraDataWriter is 32600 bytes.
- Parameters:
provider- 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).- Returns:
- The window ID of the opened GUI, or empty if the GUI could not be opened
-
sendMerchantOffers
public void sendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock) - Overrides:
sendMerchantOffersin classPlayer
-
openHorseInventory
- Overrides:
openHorseInventoryin classPlayer
-
openNautilusInventory
- Overrides:
openNautilusInventoryin classPlayer
-
openItemGui
- Overrides:
openItemGuiin classPlayer
-
openCommandBlock
- Overrides:
openCommandBlockin classPlayer
-
closeContainer
public void closeContainer()- Overrides:
closeContainerin classPlayer
-
doCloseContainer
public void doCloseContainer()- Overrides:
doCloseContainerin classPlayer
-
rideTick
-
checkMovementStatistics
public void checkMovementStatistics(double dx, double dy, double dz) -
checkRidingStatistics
public void checkRidingStatistics(double dx, double dy, double dz) -
didNotMove
private static boolean didNotMove(double dx, double dy, double dz) -
awardStat
-
resetStat
-
awardRecipes
- Overrides:
awardRecipesin classPlayer
-
triggerRecipeCrafted
- Overrides:
triggerRecipeCraftedin classPlayer
-
awardRecipesByKey
- Overrides:
awardRecipesByKeyin classPlayer
-
resetRecipes
- Overrides:
resetRecipesin classPlayer
-
jumpFromGround
public void jumpFromGround()- Overrides:
jumpFromGroundin classLivingEntity
-
giveExperiencePoints
public void giveExperiencePoints(int i) - Overrides:
giveExperiencePointsin classPlayer
-
disconnect
public void disconnect() -
hasDisconnected
public boolean hasDisconnected() -
resetSentInfo
public void resetSentInfo() -
completeUsingItem
protected void completeUsingItem()- Overrides:
completeUsingItemin classLivingEntity
-
lookAt
- Overrides:
lookAtin classLivingEntity
-
lookAt
public void lookAt(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) -
restoreFrom
-
transferInventoryXpAndScore
-
onEffectAdded
- Overrides:
onEffectAddedin classLivingEntity
-
onEffectUpdated
protected void onEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, @Nullable Entity source) - Overrides:
onEffectUpdatedin classLivingEntity
-
onEffectsRemoved
- Overrides:
onEffectsRemovedin classLivingEntity
-
teleportTo
public void teleportTo(double x, double y, double z) Sets the position of the entity and updates the 'last' variables- Overrides:
teleportToin classEntity
-
teleportRelative
public void teleportRelative(double dx, double dy, double dz) - Overrides:
teleportRelativein classEntity
-
teleportTo
public boolean teleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera) - Overrides:
teleportToin classEntity
-
snapTo
-
crit
-
magicCrit
-
onUpdateAbilities
public void onUpdateAbilities()- Overrides:
onUpdateAbilitiesin classPlayer
-
level
-
setGameMode
-
gameMode
-
commandSource
-
createCommandSourceStack
-
sendSystemMessage
- Overrides:
sendSystemMessagein classPlayer
-
sendOverlayMessage
- Overrides:
sendOverlayMessagein classPlayer
-
sendSystemMessage
-
sendChatMessage
-
getIpAddress
-
updateOptions
-
clientInformation
-
canChatInColor
public boolean canChatInColor() -
getChatVisibility
-
acceptsSystemMessages
private boolean acceptsSystemMessages(boolean overlay) -
acceptsChatMessages
private boolean acceptsChatMessages() -
requestedViewDistance
public int requestedViewDistance() -
sendServerStatus
-
permissions
- Overrides:
permissionsin classPlayer
-
resetLastActionTime
public void resetLastActionTime() -
getStats
-
getRecipeBook
-
updateInvisibilityStatus
protected void updateInvisibilityStatus()- Overrides:
updateInvisibilityStatusin classLivingEntity
-
getCamera
-
setCamera
-
processPortalCooldown
protected void processPortalCooldown()- Overrides:
processPortalCooldownin classEntity
-
getLastActionTime
public long getLastActionTime() -
getTabListDisplayName
-
getTabListOrder
public int getTabListOrder() -
swing
- Overrides:
swingin classLivingEntity
-
isChangingDimension
public boolean isChangingDimension() -
hasChangedDimension
public void hasChangedDimension() -
getAdvancements
-
getRespawnConfig
-
copyRespawnPosition
-
setRespawnPosition
public void setRespawnPosition(@Nullable ServerPlayer.RespawnConfig respawnConfig, boolean showMessage) -
getLastSectionPos
-
setLastSectionPos
-
getChunkTrackingView
-
setChunkTrackingView
-
drop
- Overrides:
dropin classLivingEntity
-
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.- Parameters:
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
-
storeGameTypes
-
isTextFilteringEnabled
public boolean isTextFilteringEnabled()- Overrides:
isTextFilteringEnabledin classPlayer
-
shouldFilterMessageTo
-
mayInteract
- Overrides:
mayInteractin classEntity
-
updateUsingItem
- Overrides:
updateUsingItemin classLivingEntity
-
drop
public void drop(boolean all) -
handleExtraItemsCreatedOnUse
- Overrides:
handleExtraItemsCreatedOnUsein classLivingEntity
-
allowsListing
public boolean allowsListing() -
getWardenSpawnTracker
- Overrides:
getWardenSpawnTrackerin classPlayer
-
setSpawnExtraParticlesOnFall
public void setSpawnExtraParticlesOnFall(boolean toggle) -
onItemPickup
- Overrides:
onItemPickupin classLivingEntity
-
setChatSession
-
getChatSession
-
indicateDamage
public void indicateDamage(double xd, double zd) - Overrides:
indicateDamagein classLivingEntity
-
startRiding
- Overrides:
startRidingin classEntity
-
removeVehicle
public void removeVehicle()- Overrides:
removeVehiclein classPlayer
-
createCommonSpawnInfo
-
setRaidOmenPosition
-
clearRaidOmenPosition
public void clearRaidOmenPosition() -
getRaidOmenPosition
-
getKnownMovement
- Overrides:
getKnownMovementin classEntity
-
getKnownSpeed
- Overrides:
getKnownSpeedin classEntity
-
setKnownMovement
-
getEnchantedDamage
- Overrides:
getEnchantedDamagein classPlayer
-
onEquippedItemBroken
- Overrides:
onEquippedItemBrokenin classLivingEntity
-
getLastClientInput
-
setLastClientInput
-
getLastClientMoveIntent
-
registerEnderPearl
-
deregisterEnderPearl
-
getEnderPearls
-
getShoulderEntityLeft
-
setShoulderEntityLeft
-
getShoulderEntityRight
-
setShoulderEntityRight
-
registerAndUpdateEnderPearlTicket
-
placeEnderPearlTicket
-
requestDebugSubscriptions
-
debugSubscriptions
-