net.minecraft.server.network

public class ServerPlayerEntity

extends PlayerEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, ContainerUser

net.minecraft.server.level.ServerPlayer
net.minecraft.server.level.ServerPlayer
net.minecraft.class_3222
net.minecraft.server.network.ServerPlayerEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_13975
LOGGER
private static final int
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_XZ
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_XZ
field_29769
field_29769
private static final int
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_Y
NEUTRAL_MOB_DEATH_NOTIFICATION_RADII_Y
field_29770
field_29770
private static final int
FLY_STAT_RECORDING_SPEED
FLY_STAT_RECORDING_SPEED
field_46928
field_46928
public static final double
BLOCK_INTERACTION_DISTANCE_VERIFICATION_BUFFER
BLOCK_INTERACTION_DISTANCE_VERIFICATION_BUFFER
field_54046
field_54046
public static final double
ENTITY_INTERACTION_DISTANCE_VERIFICATION_BUFFER
ENTITY_INTERACTION_DISTANCE_VERIFICATION_BUFFER
field_54047
field_54047
public static final int
ENDER_PEARL_TICKET_RADIUS
ENDER_PEARL_TICKET_RADIUS
field_54207
field_54207
public static final String
ENDER_PEARLS_TAG
ENDER_PEARLS_TAG
field_54209
ENDER_PEARLS_KEY
public static final String
ENDER_PEARL_DIMENSION_TAG
ENDER_PEARL_DIMENSION_TAG
field_54210
ENDER_PEARLS_DIMENSION_KEY
public static final String
TAG_DIMENSION
TAG_DIMENSION
field_60522
DIMENSION_KEY
private static final EntityAttributeModifier
CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
field_47709
CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER
private static final EntityAttributeModifier
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
field_47710
CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER
private static final Text
SPAWN_SET_MESSAGE
SPAWN_SET_MESSAGE
field_56606
SET_SPAWN_TEXT
private static final EntityAttributeModifier
WAYPOINT_TRANSMIT_RANGE_CROUCH_MODIFIER
WAYPOINT_TRANSMIT_RANGE_CROUCH_MODIFIER
field_59631
WAYPOINT_TRANSMIT_RANGE_CROUCH_MODIFIER
private static final boolean
DEFAULT_SEEN_CREDITS
DEFAULT_SEEN_CREDITS
field_57112
DEFAULT_SEEN_CREDITS
private static final boolean
DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL
DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL
field_57113
DEFAULT_SPAWN_EXTRA_PARTICLES_ON_FALL
public ServerPlayNetworkHandler
connection
connection
field_13987
networkHandler
private final MinecraftServer
server
server
field_13995
server
public final ServerPlayerInteractionManager
gameMode
gameMode
field_13974
interactionManager
private final PlayerAdvancementTracker
advancements
advancements
field_13970
advancementTracker
private final ServerStatHandler
stats
stats
field_13966
statHandler
private float
lastRecordedHealthAndAbsorption
lastRecordedHealthAndAbsorption
field_13963
lastHealthScore
private int
lastRecordedFoodLevel
lastRecordedFoodLevel
field_13983
lastFoodScore
private int
lastRecordedAirLevel
lastRecordedAirLevel
field_13968
lastAirScore
private int
lastRecordedArmor
lastRecordedArmor
field_13982
lastArmorScore
private int
lastRecordedLevel
lastRecordedLevel
field_13965
lastLevelScore
private int
lastRecordedExperience
lastRecordedExperience
field_13980
lastExperienceScore
private float
lastSentHealth
lastSentHealth
field_13997
syncedHealth
private int
lastSentFood
lastSentFood
field_13979
syncedFoodLevel
private boolean
lastFoodSaturationZero
lastFoodSaturationZero
field_13972
syncedSaturationIsZero
private int
lastSentExp
lastSentExp
field_13978
syncedExperience
private ChatVisibility
chatVisibility
chatVisibility
field_13993
clientChatVisibility
private ParticlesMode
particleStatus
particleStatus
field_52358
particlesMode
private boolean
canChatColor
canChatColor
field_13971
clientChatColorsEnabled
private long
lastActionTime
lastActionTime
field_13976
lastActionTime
private Entity
camera
camera
field_13984
cameraEntity
private boolean
isChangingDimension
isChangingDimension
field_13985
inTeleportationState
public boolean
seenCredits
seenCredits
field_13969
seenCredits
private final ServerRecipeBook
recipeBook
recipeBook
field_13996
recipeBook
private Vec3d
levitationStartPos
levitationStartPos
field_13992
levitationStartPos
private int
levitationStartTime
levitationStartTime
field_13973
levitationStartTick
private boolean
disconnected
disconnected
field_13964
disconnected
private int
requestedViewDistance
requestedViewDistance
field_44990
viewDistance
private String
language
language
field_46156
language
private Vec3d
startingToFallPosition
startingToFallPosition
field_35007
fallStartPos
private Vec3d
enteredNetherPosition
enteredNetherPosition
field_13994
enteredNetherPos
private Vec3d
enteredLavaOnVehiclePosition
enteredLavaOnVehiclePosition
field_35008
vehicleInLavaRidingPos
private ChunkSectionPos
lastSectionPos
lastSectionPos
field_13990
watchedSection
private ChunkFilter
chunkTrackingView
chunkTrackingView
field_44991
chunkFilter
private ServerPlayerEntity$Respawn
respawnConfig
respawnConfig
field_56607
respawn
private final TextStream
textFilter
textFilter
field_26821
textStream
private boolean
textFilteringEnabled
textFilteringEnabled
field_28860
filterText
private boolean
allowsListing
allowsListing
field_35566
allowServerListing
private boolean
spawnExtraParticlesOnFall
spawnExtraParticlesOnFall
field_49776
spawnExtraParticlesOnFall
private SculkShriekerWarningManager
wardenSpawnTracker
wardenSpawnTracker
field_39985
sculkShriekerWarningManager
private BlockPos
raidOmenPosition
raidOmenPosition
field_50088
startRaidPos
private Vec3d
lastKnownClientMovement
lastKnownClientMovement
field_51875
movement
private PlayerInput
lastClientInput
lastClientInput
field_54048
playerInput
private final Set<EnderPearlEntity>
enderPearls
enderPearls
field_54208
enderPearls
private long
timeEntitySatOnShoulder
timeEntitySatOnShoulder
field_62503
shoulderMountTime
private NbtCompound
shoulderEntityLeft
shoulderEntityLeft
field_62504
leftShoulderNbt
private NbtCompound
shoulderEntityRight
shoulderEntityRight
field_62505
rightShoulderNbt
private final ScreenHandlerSyncHandler
containerSynchronizer
containerSynchronizer
field_29180
screenHandlerSyncHandler
private final ScreenHandlerListener
containerListener
containerListener
field_29181
screenHandlerListener
private PublicPlayerSession
chatSession
chatSession
field_39986
session
public final Object
object
object
field_49777
field_49777
private final CommandOutput
commandSource
commandSource
field_54402
commandOutput
private Set<DebugSubscriptionType<?>>
requestedDebugSubscriptions
requestedDebugSubscriptions
field_62842
subscribedTypes
private int
containerCounter
containerCounter
field_13986
screenHandlerSyncId
public boolean
wonGame
wonGame
field_13989
notInAnyWorld

Constructor summary

ModifierConstructor
public (MinecraftServer server, ServerWorld world, com.mojang.authlib.GameProfile profile, SyncedClientOptions clientOptions)

Method summary

Modifier and TypeMethod
public BlockPos
adjustSpawnLocation(ServerLevel level, BlockPos spawnSuggestion)
adjustSpawnLocation(ServerLevel level, BlockPos spawnSuggestion)
method_14245(class_3218 arg0, class_2338 arg1)
getWorldSpawnPos(ServerWorld arg0, BlockPos arg1)
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
private void
saveParentVehicle(ValueOutput playerOutput)
saveParentVehicle(ValueOutput playerOutput)
method_64135(class_11372 arg0)
writeRootVehicle(WriteView view)
public void
loadAndSpawnParentVehicle(ValueInput playerInput)
loadAndSpawnParentVehicle(ValueInput playerInput)
method_64125(class_11368 arg0)
readRootVehicle(ReadView view)
private void
saveEnderPearls(ValueOutput playerOutput)
saveEnderPearls(ValueOutput playerOutput)
method_64136(class_11372 arg0)
writeEnderPearls(WriteView view)
public void
loadAndSpawnEnderPearls(ValueInput playerInput)
loadAndSpawnEnderPearls(ValueInput playerInput)
method_64131(class_11368 arg0)
readEnderPearls(ReadView view)
private void
loadAndSpawnEnderPearl(ValueInput pearlInput)
loadAndSpawnEnderPearl(ValueInput pearlInput)
method_68175(class_11368 arg0)
readEnderPearl(ReadView view)
public void
setExperiencePoints(int amount)
setExperiencePoints(int amount)
method_14228(int arg0)
setExperiencePoints(int points)
public void
setExperienceLevels(int amount)
setExperienceLevels(int amount)
method_14252(int arg0)
setExperienceLevel(int level)
public void
giveExperienceLevels(int amount)
giveExperienceLevels(int amount)
method_7316(int arg0)
addExperienceLevels(int arg0)
public void
onEnchantmentPerformed(ItemStack itemStack, int enchantmentCost)
onEnchantmentPerformed(ItemStack itemStack, int enchantmentCost)
method_7286(class_1799 arg0, int arg1)
applyEnchantmentCosts(ItemStack arg0, int arg1)
private void
initMenu(AbstractContainerMenu container)
initMenu(AbstractContainerMenu container)
method_14235(class_1703 arg0)
onScreenHandlerOpened(ScreenHandler screenHandler)
public void
initInventoryMenu()
initInventoryMenu()
method_34225()
onSpawn()
public void
onEnterCombat()
onEnterCombat()
method_6000()
enterCombat()
public void
onLeaveCombat()
onLeaveCombat()
method_6044()
endCombat()
public void
onInsideBlock(BlockState state)
onInsideBlock(BlockState state)
method_5622(class_2680 arg0)
onBlockCollision(BlockState arg0)
protected ItemCooldownManager
createItemCooldowns()
createItemCooldowns()
method_7265()
createCooldownManager()
public void
tick()
tick()
method_5773()
tick()
private void
updatePlayerAttributes()
updatePlayerAttributes()
method_55633()
updateCreativeInteractionRangeModifiers()
public void
doTick()
doTick()
method_14226()
playerTick()
private void
synchronizeSpecialItemUpdates(ItemStack itemStack)
synchronizeSpecialItemUpdates(ItemStack itemStack)
method_64134(class_1799 arg0)
sendMapPacket(ItemStack stack)
protected void
tickRegeneration()
tickRegeneration()
method_64400()
tickHunger()
public void
handleShoulderEntities()
handleShoulderEntities()
method_74082()
handleShoulderEntities()
private void
playShoulderEntityAmbientSound(CompoundTag shoulderEntityTag)
playShoulderEntityAmbientSound(CompoundTag shoulderEntityTag)
method_74079(class_2487 arg0)
playShoulderEntitySound(NbtCompound nbt)
public boolean
setEntityOnShoulder(CompoundTag entityTag)
setEntityOnShoulder(CompoundTag entityTag)
method_74073(class_2487 arg0)
mountOntoShoulder(NbtCompound shoulderNbt)
protected void
removeEntitiesOnShoulder()
removeEntitiesOnShoulder()
method_7262()
dropShoulderEntities()
private void
respawnEntityOnShoulder(CompoundTag tag)
respawnEntityOnShoulder(CompoundTag tag)
method_74080(class_2487 arg0)
spawnShoulderEntity(NbtCompound nbt)
public void
resetFallDistance()
resetFallDistance()
method_38785()
onLanding()
public void
trackStartFallingPosition()
trackStartFallingPosition()
method_38786()
tickFallStartPos()
public void
trackEnteredOrExitedLavaOnVehicle()
trackEnteredOrExitedLavaOnVehicle()
method_38787()
tickVehicleInLavaRiding()
private void
updateScoreForCriteria(ObjectiveCriteria criteria, int value)
updateScoreForCriteria(ObjectiveCriteria criteria, int value)
method_14212(class_274 arg0, int arg1)
updateScores(ScoreboardCriterion criterion, int score)
public void
die(DamageSource source)
die(DamageSource source)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
private void
tellNeutralMobsThatIDied()
tellNeutralMobsThatIDied()
method_29779()
forgiveMobAnger()
public void
awardKillScore(Entity victim, DamageSource killingBlow)
awardKillScore(Entity victim, DamageSource killingBlow)
method_5716(class_1297 arg0, class_1282 arg1)
updateKilledAdvancementCriterion(Entity arg0, DamageSource arg1)
private void
handleTeamKill(ScoreHolder source, ScoreHolder target, ObjectiveCriteria[] criteriaByTeam)
handleTeamKill(ScoreHolder source, ScoreHolder target, ObjectiveCriteria[] criteriaByTeam)
method_14227(class_9015 arg0, class_9015 arg1, class_274[] arg2)
updateScoreboardScore(ScoreHolder targetScoreHolder, ScoreHolder aboutScoreHolder, ScoreboardCriterion[] criterions)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public boolean
canHarmPlayer(Player target)
canHarmPlayer(Player target)
method_7256(class_1657 arg0)
shouldDamagePlayer(PlayerEntity arg0)
private boolean
isPvpAllowed()
isPvpAllowed()
method_14230()
isPvpEnabled()
public TeleportTarget
findRespawnPositionAndUseSpawnBlock(boolean consumeSpawnBlock, TeleportTransition$PostTeleportTransition postTeleportTransition)
findRespawnPositionAndUseSpawnBlock(boolean consumeSpawnBlock, TeleportTransition$PostTeleportTransition postTeleportTransition)
method_60590(boolean arg0, class_5454$class_9823 arg1)
getRespawnTarget(boolean alive, TeleportTarget$PostDimensionTransition postDimensionTransition)
public boolean
isReceivingWaypoints()
isReceivingWaypoints()
method_70637()
canReceiveWaypoints()
protected void
onAttributeUpdated(Holder<Attribute> attribute)
onAttributeUpdated(Holder<Attribute> attribute)
method_52540(class_6880<class_1320> arg0)
updateAttribute(RegistryEntry<EntityAttribute> arg0)
private static Optional<ServerPlayerEntity$RespawnPos>
findRespawnAndUseSpawnBlock(ServerLevel level, ServerPlayer$RespawnConfig respawnConfig, boolean consumeSpawnBlock)
findRespawnAndUseSpawnBlock(ServerLevel level, ServerPlayer$RespawnConfig respawnConfig, boolean consumeSpawnBlock)
method_60588(class_3218 arg0, class_3222$class_10766 arg1, boolean arg2)
findRespawnPosition(ServerWorld world, ServerPlayerEntity$Respawn respawn, boolean arg2)
public void
showEndCredits()
showEndCredits()
method_60594()
detachForDimensionChange()
public ServerPlayerEntity
teleport(TeleportTransition transition)
teleport(TeleportTransition transition)
method_5731(class_5454 arg0)
teleportTo(TeleportTarget arg0)
public void
forceSetRotation(float yRot, boolean relativeY, float xRot, boolean relativeX)
forceSetRotation(float yRot, boolean relativeY, float xRot, boolean relativeX)
method_64578(float arg0, boolean arg1, float arg2, boolean arg3)
rotate(float arg0, boolean arg1, float arg2, boolean arg3)
private void
triggerDimensionChangeTriggers(ServerLevel oldLevel)
triggerDimensionChangeTriggers(ServerLevel oldLevel)
method_18783(class_3218 arg0)
worldChanged(ServerWorld origin)
public boolean
broadcastToPlayer(ServerPlayer player)
broadcastToPlayer(ServerPlayer player)
method_5680(class_3222 arg0)
canBeSpectated(ServerPlayerEntity arg0)
public void
take(Entity entity, int orgCount)
take(Entity entity, int orgCount)
method_6103(class_1297 arg0, int arg1)
sendPickup(Entity arg0, int arg1)
public com.mojang.datafixers.util.Either<PlayerEntity$SleepFailureReason, Unit>
startSleepInBed(BlockPos pos)
startSleepInBed(BlockPos pos)
method_7269(class_2338 arg0)
trySleep(BlockPos arg0)
public void
startSleeping(BlockPos bedPosition)
startSleeping(BlockPos bedPosition)
method_18403(class_2338 arg0)
sleep(BlockPos arg0)
private boolean
bedInRange(BlockPos pos, Direction direction)
bedInRange(BlockPos pos, Direction direction)
method_26285(class_2338 arg0, class_2350 arg1)
isBedWithinRange(BlockPos pos, Direction direction)
private boolean
isReachableBedBlock(BlockPos bedBlockPos)
isReachableBedBlock(BlockPos bedBlockPos)
method_26287(class_2338 arg0)
isBedWithinRange(BlockPos pos)
private boolean
bedBlocked(BlockPos pos, Direction direction)
bedBlocked(BlockPos pos, Direction direction)
method_26286(class_2338 arg0, class_2350 arg1)
isBedObstructed(BlockPos pos, Direction direction)
public void
stopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList)
stopSleepInBed(boolean forcefulWakeUp, boolean updateLevelList)
method_7358(boolean arg0, boolean arg1)
wakeUp(boolean arg0, boolean arg1)
public boolean
isInvulnerableTo(ServerLevel level, DamageSource source)
isInvulnerableTo(ServerLevel level, DamageSource source)
method_5679(class_3218 arg0, class_1282 arg1)
isInvulnerableTo(ServerWorld arg0, DamageSource arg1)
protected void
onChangedBlock(ServerLevel level, BlockPos pos)
onChangedBlock(ServerLevel level, BlockPos pos)
method_6126(class_3218 arg0, class_2338 arg1)
applyMovementEffects(ServerWorld arg0, BlockPos arg1)
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public void
onExplosionHit(Entity explosionCausedBy)
onExplosionHit(Entity explosionCausedBy)
method_56918(class_1297 arg0)
onExplodedBy(Entity arg0)
protected void
pushEntities()
pushEntities()
method_6070()
tickCramming()
public void
openTextEdit(SignBlockEntity sign, boolean isFrontText)
openTextEdit(SignBlockEntity sign, boolean isFrontText)
method_7311(class_2625 arg0, boolean arg1)
openEditSignScreen(SignBlockEntity arg0, boolean arg1)
public void
openDialog(Holder<Dialog> dialog)
openDialog(Holder<Dialog> dialog)
method_71753(class_6880<class_11419> arg0)
openDialog(RegistryEntry<Dialog> arg0)
private void
nextContainerCounter()
nextContainerCounter()
method_14237()
incrementScreenHandlerSyncId()
public OptionalInt
openMenu(MenuProvider provider)
openMenu(MenuProvider provider)
method_17355(class_3908 arg0)
openHandledScreen(NamedScreenHandlerFactory arg0)
public void
sendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock)
sendMerchantOffers(int containerId, MerchantOffers offers, int merchantLevel, int merchantXp, boolean showProgressBar, boolean canRestock)
method_17354(int arg0, class_1916 arg1, int arg2, int arg3, boolean arg4, boolean arg5)
sendTradeOffers(int arg0, TradeOfferList arg1, int arg2, int arg3, boolean arg4, boolean arg5)
public void
openHorseInventory(AbstractHorse horse, Container container)
openHorseInventory(AbstractHorse horse, Container container)
method_7291(class_1496 arg0, class_1263 arg1)
openHorseInventory(AbstractHorseEntity arg0, Inventory arg1)
public void
openNautilusInventory(AbstractNautilus nautilus, Container container)
openNautilusInventory(AbstractNautilus nautilus, Container container)
method_76575(class_12116 arg0, class_1263 arg1)
openNautilusInventory(AbstractNautilusEntity arg0, Inventory arg1)
public void
openItemGui(ItemStack itemStack, InteractionHand hand)
openItemGui(ItemStack itemStack, InteractionHand hand)
method_7315(class_1799 arg0, class_1268 arg1)
useBook(ItemStack arg0, Hand arg1)
public void
openCommandBlock(CommandBlockEntity commandBlock)
openCommandBlock(CommandBlockEntity commandBlock)
method_7323(class_2593 arg0)
openCommandBlockScreen(CommandBlockBlockEntity arg0)
public void
closeContainer()
closeContainer()
method_7346()
closeHandledScreen()
public void
doCloseContainer()
doCloseContainer()
method_14247()
onHandledScreenClosed()
public void
rideTick()
rideTick()
method_5842()
tickRiding()
public void
checkMovementStatistics(double dx, double dy, double dz)
checkMovementStatistics(double dx, double dy, double dz)
method_54720(double arg0, double arg1, double arg2)
increaseTravelMotionStats(double deltaX, double deltaY, double deltaZ)
private void
checkRidingStatistics(double dx, double dy, double dz)
checkRidingStatistics(double dx, double dy, double dz)
method_54721(double arg0, double arg1, double arg2)
increaseRidingMotionStats(double deltaX, double deltaY, double deltaZ)
private static boolean
didNotMove(double dx, double dy, double dz)
didNotMove(double dx, double dy, double dz)
method_54722(double arg0, double arg1, double arg2)
isZero(double deltaX, double deltaY, double deltaZ)
public void
awardStat(Stat<?> stat, int count)
awardStat(Stat<?> stat, int count)
method_7342(class_3445<?> arg0, int arg1)
increaseStat(Stat<?> arg0, int arg1)
public void
resetStat(Stat<?> stat)
resetStat(Stat<?> stat)
method_7266(class_3445<?> arg0)
resetStat(Stat<?> arg0)
public int
awardRecipes(Collection<RecipeHolder<?>> recipes)
awardRecipes(Collection<RecipeHolder<?>> recipes)
method_7254(Collection<class_8786<?>> arg0)
unlockRecipes(Collection<RecipeEntry<?>> arg0)
public void
triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> itemStacks)
triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> itemStacks)
method_51283(class_8786<?> arg0, List<class_1799> arg1)
onRecipeCrafted(RecipeEntry<?> arg0, List<ItemStack> arg1)
public void
awardRecipesByKey(List<ResourceKey<Recipe<?>>> recipeIds)
awardRecipesByKey(List<ResourceKey<Recipe<?>>> recipeIds)
method_7335(List<class_5321<class_1860<?>>> arg0)
unlockRecipes(List<RegistryKey<Recipe<?>>> arg0)
public int
resetRecipes(Collection<RecipeHolder<?>> recipe)
resetRecipes(Collection<RecipeHolder<?>> recipe)
method_7333(Collection<class_8786<?>> arg0)
lockRecipes(Collection<RecipeEntry<?>> arg0)
public void
jumpFromGround()
jumpFromGround()
method_6043()
jump()
public void
giveExperiencePoints(int i)
giveExperiencePoints(int i)
method_7255(int arg0)
addExperience(int arg0)
public void
disconnect()
disconnect()
method_14231()
onDisconnect()
public boolean
hasDisconnected()
hasDisconnected()
method_14239()
isDisconnected()
public void
resetSentInfo()
resetSentInfo()
method_14217()
markHealthDirty()
protected void
completeUsingItem()
completeUsingItem()
method_6040()
consumeItem()
public void
lookAt(EntityAnchorArgument$Anchor anchor, Vec3 pos)
lookAt(EntityAnchorArgument$Anchor anchor, Vec3 pos)
method_5702(class_2183$class_2184 arg0, class_243 arg1)
lookAt(EntityAnchorArgumentType$EntityAnchor arg0, Vec3d arg1)
public void
lookAt(EntityAnchorArgument$Anchor fromAnchor, Entity entity, EntityAnchorArgument$Anchor toAnchor)
lookAt(EntityAnchorArgument$Anchor fromAnchor, Entity entity, EntityAnchorArgument$Anchor toAnchor)
method_14222(class_2183$class_2184 arg0, class_1297 arg1, class_2183$class_2184 arg2)
lookAtEntity(EntityAnchorArgumentType$EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType$EntityAnchor targetAnchor)
public void
restoreFrom(ServerPlayer oldPlayer, boolean restoreAll)
restoreFrom(ServerPlayer oldPlayer, boolean restoreAll)
method_14203(class_3222 arg0, boolean arg1)
copyFrom(ServerPlayerEntity oldPlayer, boolean alive)
private void
transferInventoryXpAndScore(Player oldPlayer)
transferInventoryXpAndScore(Player oldPlayer)
method_76789(class_1657 arg0)
copyInventoryAndExperienceFrom(PlayerEntity other)
protected void
onEffectAdded(MobEffectInstance effect, Entity source)
onEffectAdded(MobEffectInstance effect, Entity source)
method_6020(class_1293 arg0, class_1297 arg1)
onStatusEffectApplied(StatusEffectInstance arg0, Entity arg1)
protected void
onEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, Entity source)
onEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, Entity source)
method_6009(class_1293 arg0, boolean arg1, class_1297 arg2)
onStatusEffectUpgraded(StatusEffectInstance arg0, boolean arg1, Entity arg2)
protected void
onEffectsRemoved(Collection<MobEffectInstance> effects)
onEffectsRemoved(Collection<MobEffectInstance> effects)
method_6129(Collection<class_1293> arg0)
onStatusEffectsRemoved(Collection<StatusEffectInstance> arg0)
public void
teleportTo(double x, double y, double z)
teleportTo(double x, double y, double z)
method_5859(double arg0, double arg1, double arg2)
requestTeleport(double arg0, double arg1, double arg2)
public void
teleportRelative(double dx, double dy, double dz)
teleportRelative(double dx, double dy, double dz)
method_45166(double arg0, double arg1, double arg2)
requestTeleportOffset(double arg0, double arg1, double arg2)
public boolean
teleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera)
teleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera)
method_48105(class_3218 arg0, double arg1, double arg2, double arg3, Set<class_2709> arg4, float arg5, float arg6, boolean arg7)
teleport(ServerWorld arg0, double arg1, double arg2, double arg3, Set<PositionFlag> arg4, float arg5, float arg6, boolean arg7)
public void
snapTo(double x, double y, double z)
snapTo(double x, double y, double z)
method_24203(double arg0, double arg1, double arg2)
refreshPositionAfterTeleport(double arg0, double arg1, double arg2)
public void
crit(Entity entity)
crit(Entity entity)
method_7277(class_1297 arg0)
addCritParticles(Entity arg0)
public void
magicCrit(Entity entity)
magicCrit(Entity entity)
method_7304(class_1297 arg0)
addEnchantedHitParticles(Entity arg0)
public void
onUpdateAbilities()
onUpdateAbilities()
method_7355()
sendAbilitiesUpdate()
public ServerWorld
level()
level()
method_73183()
getEntityWorld()
public boolean
setGameMode(GameType mode)
setGameMode(GameType mode)
method_7336(class_1934 arg0)
changeGameMode(GameMode gameMode)
public GameMode
gameMode()
gameMode()
method_68876()
getGameMode()
public CommandOutput
commandSource()
commandSource()
method_64401()
getCommandOutput()
public ServerCommandSource
createCommandSourceStack()
createCommandSourceStack()
method_64396()
getCommandSource()
public void
sendSystemMessage(Component message)
sendSystemMessage(Component message)
method_64398(class_2561 arg0)
sendMessage(Text arg0)
public void
sendOverlayMessage(Component message)
sendOverlayMessage(Component message)
method_7353(class_2561 arg0)
sendOverlayMessage(Text arg0)
public void
sendBuildLimitMessage(boolean isTooHigh, int limit)
sendBuildLimitMessage(boolean isTooHigh, int limit)
method_1_2489(boolean arg0, int arg1)
sendBuildLimitMessage(boolean tooHigh, int limit)
public void
sendSpawnProtectionMessage(BlockPos pos)
sendSpawnProtectionMessage(BlockPos pos)
method_1_3106(class_2338 arg0)
sendSpawnProtectionMessage(BlockPos pos)
public void
sendSystemMessage(Component message, boolean overlay)
sendSystemMessage(Component message, boolean overlay)
method_43502(class_2561 arg0, boolean arg1)
sendMessageToClient(Text message, boolean overlay)
public void
sendChatMessage(OutgoingChatMessage message, boolean filtered, ChatType$Bound chatType)
sendChatMessage(OutgoingChatMessage message, boolean filtered, ChatType$Bound chatType)
method_43505(class_7604 arg0, boolean arg1, class_2556$class_7602 arg2)
sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType$Parameters params)
public String
getIpAddress()
getIpAddress()
method_14209()
getIp()
public void
updateOptions(ClientInformation information)
updateOptions(ClientInformation information)
method_14213(class_8791 arg0)
setClientOptions(SyncedClientOptions clientOptions)
public SyncedClientOptions
clientInformation()
clientInformation()
method_53823()
getClientOptions()
public boolean
canChatInColor()
canChatInColor()
method_34879()
areClientChatColorsEnabled()
public ChatVisibility
getChatVisibility()
getChatVisibility()
method_14238()
getClientChatVisibility()
private boolean
acceptsSystemMessages(boolean overlay)
acceptsSystemMessages(boolean overlay)
method_44707(boolean arg0)
acceptsMessage(boolean overlay)
private boolean
acceptsChatMessages()
acceptsChatMessages()
method_44706()
acceptsChatMessage()
public int
requestedViewDistance()
requestedViewDistance()
method_52371()
getViewDistance()
public void
sendServerStatus(ServerStatus status)
sendServerStatus(ServerStatus status)
method_43930(class_2926 arg0)
sendServerMetadata(ServerMetadata metadata)
public PermissionPredicate
permissions()
permissions()
method_75004()
getPermissions()
public void
resetLastActionTime()
resetLastActionTime()
method_14234()
updateLastActionTime()
public ServerStatHandler
getStats()
getStats()
method_14248()
getStatHandler()
public ServerRecipeBook
getRecipeBook()
getRecipeBook()
method_14253()
getRecipeBook()
protected void
updateInvisibilityStatus()
updateInvisibilityStatus()
method_6027()
updatePotionVisibility()
public Entity
getCamera()
getCamera()
method_14242()
getCameraEntity()
public void
setCamera(Entity newCamera)
setCamera(Entity newCamera)
method_14224(class_1297 arg0)
setCameraEntity(Entity entity)
protected void
processPortalCooldown()
processPortalCooldown()
method_5760()
tickPortalCooldown()
public long
getLastActionTime()
getLastActionTime()
method_14219()
getLastActionTime()
public Text
getTabListDisplayName()
getTabListDisplayName()
method_14206()
getPlayerListName()
public int
getTabListOrder()
getTabListOrder()
method_61272()
getPlayerListOrder()
public void
swing(InteractionHand hand)
swing(InteractionHand hand)
method_6104(class_1268 arg0)
swingHand(Hand arg0)
public boolean
isChangingDimension()
isChangingDimension()
method_14208()
isInTeleportationState()
public void
hasChangedDimension()
hasChangedDimension()
method_14240()
onTeleportationDone()
public PlayerAdvancementTracker
getAdvancements()
getAdvancements()
method_14236()
getAdvancementTracker()
public ServerPlayerEntity$Respawn
getRespawnConfig()
getRespawnConfig()
method_67564()
getRespawn()
public void
copyRespawnPosition(ServerPlayer player)
copyRespawnPosition(ServerPlayer player)
method_60592(class_3222 arg0)
setSpawnPointFrom(ServerPlayerEntity player)
public void
setRespawnPosition(ServerPlayer$RespawnConfig respawnConfig, boolean showMessage)
setRespawnPosition(ServerPlayer$RespawnConfig respawnConfig, boolean showMessage)
method_26284(class_3222$class_10766 arg0, boolean arg1)
setSpawnPoint(ServerPlayerEntity$Respawn respawn, boolean sendMessage)
public ChunkSectionPos
getLastSectionPos()
getLastSectionPos()
method_14232()
getWatchedSection()
public void
setLastSectionPos(SectionPos lastSectionPos)
setLastSectionPos(SectionPos lastSectionPos)
method_17668(class_4076 arg0)
setWatchedSection(ChunkSectionPos section)
public ChunkFilter
getChunkTrackingView()
getChunkTrackingView()
method_52372()
getChunkFilter()
public void
setChunkTrackingView(ChunkTrackingView chunkTrackingView)
setChunkTrackingView(ChunkTrackingView chunkTrackingView)
method_52373(class_8603 arg0)
setChunkFilter(ChunkFilter chunkFilter)
public ItemEntity
drop(ItemStack itemStack, boolean randomly, boolean thrownFromHand)
drop(ItemStack itemStack, boolean randomly, boolean thrownFromHand)
method_7329(class_1799 arg0, boolean arg1, boolean arg2)
dropItem(ItemStack arg0, boolean arg1, boolean arg2)
public TextStream
getTextFilter()
getTextFilter()
method_31273()
getTextStream()
public void
setServerLevel(ServerLevel level)
setServerLevel(ServerLevel level)
method_51468(class_3218 arg0)
setServerWorld(ServerWorld world)
private static GameMode
readPlayerMode(ValueInput playerInput, String modeTag)
readPlayerMode(ValueInput playerInput, String modeTag)
method_32745(class_11368 arg0, String arg1)
gameModeFromData(ReadView view, String key)
private GameMode
calculateGameModeForNewPlayer(GameType loadedGameType)
calculateGameModeForNewPlayer(GameType loadedGameType)
method_32746(class_1934 arg0)
getServerGameMode(GameMode backupGameMode)
private void
storeGameTypes(ValueOutput playerOutput)
storeGameTypes(ValueOutput playerOutput)
method_32749(class_11372 arg0)
writeGameModeData(WriteView view)
public boolean
isTextFilteringEnabled()
isTextFilteringEnabled()
method_33793()
shouldFilterText()
public boolean
shouldFilterMessageTo(ServerPlayer serverPlayer)
shouldFilterMessageTo(ServerPlayer serverPlayer)
method_33795(class_3222 arg0)
shouldFilterMessagesSentTo(ServerPlayerEntity player)
public boolean
mayInteract(ServerLevel level, BlockPos pos)
mayInteract(ServerLevel level, BlockPos pos)
method_36971(class_3218 arg0, class_2338 arg1)
canModifyAt(ServerWorld arg0, BlockPos arg1)
protected void
updateUsingItem(ItemStack useItem)
updateUsingItem(ItemStack useItem)
method_37119(class_1799 arg0)
tickItemStackUsage(ItemStack arg0)
public void
drop(boolean all)
drop(boolean all)
method_37413(boolean arg0)
dropSelectedItem(boolean entireStack)
public void
handleExtraItemsCreatedOnUse(ItemStack extraItems)
handleExtraItemsCreatedOnUse(ItemStack extraItems)
method_64399(class_1799 arg0)
giveOrDropStack(ItemStack arg0)
public boolean
allowsListing()
allowsListing()
method_39426()
allowsServerListing()
public Optional<SculkShriekerWarningManager>
getWardenSpawnTracker()
getWardenSpawnTracker()
method_42272()
getSculkShriekerWarningManager()
public void
setSpawnExtraParticlesOnFall(boolean toggle)
setSpawnExtraParticlesOnFall(boolean toggle)
method_58143(boolean arg0)
setSpawnExtraParticlesOnFall(boolean spawnExtraParticlesOnFall)
public void
onItemPickup(ItemEntity entity)
onItemPickup(ItemEntity entity)
method_29499(class_1542 arg0)
triggerItemPickedUpByEntityCriteria(ItemEntity arg0)
public void
setChatSession(RemoteChatSession chatSession)
setChatSession(RemoteChatSession chatSession)
method_46364(class_7822 arg0)
setSession(PublicPlayerSession session)
public PublicPlayerSession
getChatSession()
getChatSession()
method_45163()
getSession()
public void
indicateDamage(double xd, double zd)
indicateDamage(double xd, double zd)
method_48761(double arg0, double arg1)
tiltScreen(double arg0, double arg1)
public boolean
startRiding(Entity entityToRide, boolean force, boolean sendEventAndTriggers)
startRiding(Entity entityToRide, boolean force, boolean sendEventAndTriggers)
method_5873(class_1297 arg0, boolean arg1, boolean arg2)
startRiding(Entity arg0, boolean arg1, boolean arg2)
public void
removeVehicle()
removeVehicle()
method_29239()
dismountVehicle()
public CommonPlayerSpawnInfo
createCommonSpawnInfo(ServerLevel level)
createCommonSpawnInfo(ServerLevel level)
method_52374(class_3218 arg0)
createCommonPlayerSpawnInfo(ServerWorld world)
public void
setRaidOmenPosition(BlockPos raidOmenPosition)
setRaidOmenPosition(BlockPos raidOmenPosition)
method_58586(class_2338 arg0)
setStartRaidPos(BlockPos startRaidPos)
public void
clearRaidOmenPosition()
clearRaidOmenPosition()
method_58584()
clearStartRaidPos()
public BlockPos
getRaidOmenPosition()
getRaidOmenPosition()
method_58585()
getStartRaidPos()
public Vec3d
getKnownMovement()
getKnownMovement()
method_60478()
getMovement()
public Vec3d
getKnownSpeed()
getKnownSpeed()
method_76333()
getKineticAttackMovement()
public void
setKnownMovement(Vec3 lastKnownClientMovement)
setKnownMovement(Vec3 lastKnownClientMovement)
method_52208(class_243 arg0)
setMovement(Vec3d movement)
protected float
getEnchantedDamage(Entity entity, float dmg, DamageSource damageSource)
getEnchantedDamage(Entity entity, float dmg, DamageSource damageSource)
method_59903(class_1297 arg0, float arg1, class_1282 arg2)
getDamageAgainst(Entity arg0, float arg1, DamageSource arg2)
public void
onEquippedItemBroken(Item brokenItem, EquipmentSlot inSlot)
onEquippedItemBroken(Item brokenItem, EquipmentSlot inSlot)
method_20235(class_1792 arg0, class_1304 arg1)
sendEquipmentBreakStatus(Item arg0, EquipmentSlot arg1)
public PlayerInput
getLastClientInput()
getLastClientInput()
method_63562()
getPlayerInput()
public void
setLastClientInput(Input lastClientInput)
setLastClientInput(Input lastClientInput)
method_63561(class_10185 arg0)
setPlayerInput(PlayerInput playerInput)
public Vec3d
getLastClientMoveIntent()
getLastClientMoveIntent()
method_63563()
getInputVelocityForMinecart()
public void
registerEnderPearl(ThrownEnderpearl enderPearl)
registerEnderPearl(ThrownEnderpearl enderPearl)
method_64124(class_1684 arg0)
addEnderPearl(EnderPearlEntity enderPearl)
public void
deregisterEnderPearl(ThrownEnderpearl enderPearl)
deregisterEnderPearl(ThrownEnderpearl enderPearl)
method_64130(class_1684 arg0)
removeEnderPearl(EnderPearlEntity enderPearl)
public Set<EnderPearlEntity>
getEnderPearls()
getEnderPearls()
method_64128()
getEnderPearls()
public NbtCompound
getShoulderEntityLeft()
getShoulderEntityLeft()
method_74074()
getLeftShoulderNbt()
protected void
setShoulderEntityLeft(CompoundTag tag)
setShoulderEntityLeft(CompoundTag tag)
method_74076(class_2487 arg0)
setLeftShoulderNbt(NbtCompound leftShoulderNbt)
public NbtCompound
getShoulderEntityRight()
getShoulderEntityRight()
method_74075()
getRightShoulderNbt()
protected void
setShoulderEntityRight(CompoundTag tag)
setShoulderEntityRight(CompoundTag tag)
method_74077(class_2487 arg0)
setRightShoulderNbt(NbtCompound rightShoulderNbt)
public long
registerAndUpdateEnderPearlTicket(ThrownEnderpearl enderpearl)
registerAndUpdateEnderPearlTicket(ThrownEnderpearl enderpearl)
method_64133(class_1684 arg0)
handleThrownEnderPearl(EnderPearlEntity enderPearl)
public static long
placeEnderPearlTicket(ServerLevel level, ChunkPos chunk)
placeEnderPearlTicket(ServerLevel level, ChunkPos chunk)
method_64123(class_3218 arg0, class_1923 arg1)
addEnderPearlTicket(ServerWorld world, ChunkPos chunkPos)
public void
requestDebugSubscriptions(Set<DebugSubscription<?>> subscriptions)
requestDebugSubscriptions(Set<DebugSubscription<?>> subscriptions)
method_74537(Set<class_12017<?>> arg0)
setSubscribedTypes(Set<DebugSubscriptionType<?>> subscribedTypes)
public Set<DebugSubscriptionType<?>>
debugSubscriptions()
debugSubscriptions()
method_74538()
getSubscribedTypes()