public class ServerPlayerEntity extends PlayerEntity implements IContainerListener
PlayerEntity.SleepResultEntity.IMoveCallbackabilities, cameraYaw, chasingPosX, chasingPosY, chasingPosZ, container, enterChestInventory, experience, experienceLevel, experienceTotal, eyesInWaterPlayer, fishingBobber, flyToggleTimer, foodStats, inventory, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, RIGHT_SHOULDER_ENTITY, spawnForced, spawnForcedMap, spawnPos, spawnPosMap, speedInAir, STANDING_SIZE, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| Constructor and Description |
|---|
ServerPlayerEntity(MinecraftServer server,
ServerWorld worldIn,
com.mojang.authlib.GameProfile profile,
PlayerInteractionManager interactionManagerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity entityIn) |
void |
addExperienceLevel(int levels) |
void |
addSelfToInternalCraftingInventory() |
void |
addStat(Stat<?> stat,
int amount) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
void |
attackTargetEntityWithCurrentItem(Entity targetEntity) |
void |
awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
boolean |
canAttackPlayer(PlayerEntity other) |
private boolean |
canPlayersAttack() |
Entity |
changeDimension(DimensionType destination,
ITeleporter teleporter) |
void |
clearInvulnerableDimensionChange() |
void |
closeContainer() |
void |
closeScreen() |
void |
copyFrom(ServerPlayerEntity that,
boolean keepEverything) |
protected CooldownTracker |
createCooldownTracker() |
IPacket<?> |
createSpawnPacket() |
protected void |
decrementTimeUntilPortal() |
void |
disconnect() |
ItemEntity |
dropItem(ItemStack droppedItem,
boolean dropAround,
boolean traceItem) |
protected void |
frostWalk(BlockPos pos) |
void |
func_195394_a(int p_195394_1_) |
private void |
func_205734_a(ServerWorld worldIn) |
private int |
func_205735_q(int p_205735_1_) |
private void |
func_213846_b(ServerWorld p_213846_1_) |
PlayerAdvancements |
getAdvancements() |
ChatVisibility |
getChatVisibility() |
long |
getLastActiveTime() |
SectionPos |
getManagedSectionPos() |
void |
getNextWindowId() |
protected int |
getPermissionLevel() |
java.lang.String |
getPlayerIP() |
ServerRecipeBook |
getRecipeBook() |
ServerWorld |
getServerWorld() |
Entity |
getSpectatingEntity() |
ServerStatisticsManager |
getStats() |
ITextComponent |
getTabListDisplayName() |
void |
giveExperiencePoints(int p_195068_1_) |
void |
handleClientSettings(CClientSettingsPacket packetIn) |
void |
handleFalling(double y,
boolean onGroundIn) |
private void |
handleTeamKill(java.lang.String p_195398_1_,
java.lang.String p_195398_2_,
ScoreCriteria[] p_195398_3_) |
boolean |
hasDisconnected() |
boolean |
isCreative() |
boolean |
isInvulnerableDimensionChange() |
boolean |
isInvulnerableTo(DamageSource source) |
boolean |
isSpectatedByPlayer(ServerPlayerEntity player) |
boolean |
isSpectator() |
void |
loadResourcePack(java.lang.String url,
java.lang.String hash) |
void |
lookAt(EntityAnchorArgument.Type p_200618_1_,
Entity p_200618_2_,
EntityAnchorArgument.Type p_200618_3_) |
void |
lookAt(EntityAnchorArgument.Type p_200602_1_,
Vec3d p_200602_2_) |
void |
markPlayerActive() |
void |
moveForced(double p_225653_1_,
double p_225653_3_,
double p_225653_5_) |
protected void |
onChangedPotionEffect(EffectInstance id,
boolean reapply) |
void |
onCriticalHit(Entity entityHit) |
void |
onDeath(DamageSource cause) |
void |
onEnchant(ItemStack enchantedItem,
int cost) |
void |
onEnchantmentCritical(Entity entityHit) |
protected void |
onFinishedPotionEffect(EffectInstance effect) |
protected void |
onInsideBlock(BlockState p_191955_1_) |
void |
onItemPickup(Entity entityIn,
int quantity) |
protected void |
onItemUseFinish() |
protected void |
onNewPotionEffect(EffectInstance id) |
void |
openBook(ItemStack stack,
Hand hand) |
void |
openCommandBlock(CommandBlockTileEntity commandBlock) |
java.util.OptionalInt |
openContainer(INamedContainerProvider p_213829_1_) |
void |
openHorseInventory(AbstractHorseEntity horse,
IInventory inventoryIn) |
void |
openMerchantContainer(int containerId,
MerchantOffers offers,
int level,
int xp,
boolean p_213818_5_,
boolean p_213818_6_) |
void |
openSignEditor(SignTileEntity signTile) |
void |
playerTick() |
void |
playSound(SoundEvent p_213823_1_,
SoundCategory p_213823_2_,
float p_213823_3_,
float p_213823_4_) |
void |
readAdditional(CompoundNBT compound) |
void |
removeEntity(Entity entityIn) |
int |
resetRecipes(java.util.Collection<IRecipe<?>> p_195069_1_) |
void |
sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
void |
sendChunkLoad(ChunkPos p_213844_1_,
IPacket<?> p_213844_2_,
IPacket<?> p_213844_3_) |
void |
sendChunkUnload(ChunkPos p_213845_1_) |
void |
sendContainerToPlayer(Container containerIn) |
void |
sendEndCombat() |
void |
sendEnterCombat() |
void |
sendMessage(ITextComponent component) |
void |
sendMessage(ITextComponent textComponent,
ChatType chatTypeIn) |
void |
sendPlayerAbilities() |
void |
sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
void |
sendStatusMessage(ITextComponent chatComponent,
boolean actionBar) |
private void |
sendTileEntityUpdate(TileEntity p_147097_1_) |
void |
sendWindowProperty(Container containerIn,
int varToUpdate,
int newValue) |
void |
setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking) |
void |
setExperienceLevel(int level) |
void |
setGameType(GameType gameType) |
void |
setManagedSectionPos(SectionPos sectionPosIn) |
void |
setPlayerHealthUpdated() |
void |
setPositionAndUpdate(double x,
double y,
double z) |
void |
setSpectatingEntity(Entity entityToSpectate) |
boolean |
startRiding(Entity entityIn,
boolean force) |
void |
stopRiding() |
void |
stopSleepInBed(boolean p_225652_1_,
boolean p_225652_2_) |
void |
swingArm(Hand hand) |
void |
takeStat(Stat<?> stat) |
void |
teleport(ServerWorld newWorld,
double x,
double y,
double z,
float yaw,
float pitch) |
void |
tick() |
com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> |
trySleep(BlockPos at) |
int |
unlockRecipes(java.util.Collection<IRecipe<?>> p_195065_1_) |
void |
unlockRecipes(ResourceLocation[] p_193102_1_) |
protected void |
updateFallState(double y,
boolean onGroundIn,
BlockState state,
BlockPos pos) |
void |
updateHeldItem() |
protected void |
updatePotionMetadata() |
private void |
updateScorePoints(ScoreCriteria criteria,
int points) |
void |
writeAdditional(CompoundNBT compound) |
addExhaustion, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, blockActionRestricted, blockUsingShield, canEat, canHarvestBlock, canPickUpItem, canPlayerEdit, canTriggerWalking, canUseCommandBlock, checkBedValidRespawnPosition, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, drop, dropInventory, dropItem, findAmmo, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBedLocation, getBedLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameAndUUID, getExperiencePoints, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHighspeedSplashSound, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getScoreboardName, getSize, getSleepTimer, getSoundCategory, getSpawnDimension, getSpeedFactor, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasReducedDebug, interactOn, isAllowEdit, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSecondaryUseActive, isSpawnForced, isSpawnForced, isStayingOnGroundSurface, isSwimming, isUser, isWearing, jump, livingTick, maybeBackOffFromEdge, onFoodEaten, onKillEntity, onLivingFall, openJigsaw, openMinecartCommandBlock, openStructureBlock, playSound, preparePlayerToSpawn, refreshDisplayName, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, respawnPlayer, setAbsorptionAmount, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRespawnPosition, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startFallFlying, startSleeping, stopFallFlying, travel, tryToStartFallFlying, updateEntityActionState, updateEyesInWaterPlayer, updatePose, updateRidden, updateSwimming, wakeUp, wantsToStopRiding, xpBarCapaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, calculateFallDamage, canAttack, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createWitherRose, curePotionEffects, decreaseAirSupply, determineNextAir, dropExperience, dropLoot, dropSpecialItems, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArmorCoverPercentage, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLootContextBuilder, getLootTableResourceLocation, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidJump, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, isSleeping, isSpinAttacking, isSuppressingSlidingDownLadder, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onDeathUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, playHurtSound, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, swing, triggerItemUseEffects, updateArmSwingProgress, updateDistance, updatePotionEffects, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireTimer, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getOnPosition, getPassengers, getPersistentData, getPitch, getPitchYaw, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getSelfAndPassengers, getServer, getSubmergedHeight, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isSteppingCarefully, isSuppressingBounce, isVisuallySwimming, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playStepSound, playSwimSound, positionRider, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, repositionDirectPassengers, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilityprivate static final org.apache.logging.log4j.Logger LOGGER
private java.lang.String language
public ServerPlayNetHandler connection
public final MinecraftServer server
public final PlayerInteractionManager interactionManager
private final java.util.List<java.lang.Integer> entityRemoveQueue
private final PlayerAdvancements advancements
private final ServerStatisticsManager stats
private float lastHealthScore
private int lastFoodScore
private int lastAirScore
private int lastArmorScore
private int lastLevelScore
private int lastExperienceScore
private float lastHealth
private int lastFoodLevel
private boolean wasHungry
private int lastExperience
private int respawnInvulnerabilityTicks
private ChatVisibility chatVisibility
private boolean chatColours
private long playerLastActiveTime
private Entity spectatingEntity
private boolean invulnerableDimensionChange
private boolean seenCredits
private final ServerRecipeBook recipeBook
private Vec3d levitationStartPos
private int levitatingSince
private boolean disconnected
@Nullable private Vec3d enteredNetherPosition
private SectionPos managedSectionPos
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean queuedEndExit
public ServerPlayerEntity(MinecraftServer server, ServerWorld worldIn, com.mojang.authlib.GameProfile profile, PlayerInteractionManager interactionManagerIn)
private void func_205734_a(ServerWorld worldIn)
private int func_205735_q(int p_205735_1_)
public void readAdditional(CompoundNBT compound)
readAdditional in class PlayerEntitypublic void writeAdditional(CompoundNBT compound)
writeAdditional in class PlayerEntitypublic void func_195394_a(int p_195394_1_)
public void setExperienceLevel(int level)
public void addExperienceLevel(int levels)
addExperienceLevel in class PlayerEntitypublic void onEnchant(ItemStack enchantedItem, int cost)
onEnchant in class PlayerEntitypublic void addSelfToInternalCraftingInventory()
public void sendEnterCombat()
sendEnterCombat in class LivingEntitypublic void sendEndCombat()
sendEndCombat in class LivingEntityprotected void onInsideBlock(BlockState p_191955_1_)
onInsideBlock in class Entityprotected CooldownTracker createCooldownTracker()
createCooldownTracker in class PlayerEntitypublic void tick()
tick in class PlayerEntitypublic void playerTick()
private void updateScorePoints(ScoreCriteria criteria, int points)
public void onDeath(DamageSource cause)
onDeath in class PlayerEntitypublic void awardKillScore(Entity p_191956_1_, int p_191956_2_, DamageSource p_191956_3_)
awardKillScore in class Entityprivate void handleTeamKill(java.lang.String p_195398_1_,
java.lang.String p_195398_2_,
ScoreCriteria[] p_195398_3_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class PlayerEntitypublic boolean canAttackPlayer(PlayerEntity other)
canAttackPlayer in class PlayerEntityprivate boolean canPlayersAttack()
@Nullable public Entity changeDimension(DimensionType destination, ITeleporter teleporter)
changeDimension in class Entityprivate void func_213846_b(ServerWorld p_213846_1_)
public boolean isSpectatedByPlayer(ServerPlayerEntity player)
isSpectatedByPlayer in class Entityprivate void sendTileEntityUpdate(TileEntity p_147097_1_)
public void onItemPickup(Entity entityIn, int quantity)
onItemPickup in class LivingEntitypublic com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> trySleep(BlockPos at)
trySleep in class PlayerEntitypublic void stopSleepInBed(boolean p_225652_1_,
boolean p_225652_2_)
stopSleepInBed in class PlayerEntitypublic boolean startRiding(Entity entityIn, boolean force)
startRiding in class Entitypublic void stopRiding()
stopRiding in class PlayerEntitypublic boolean isInvulnerableTo(DamageSource source)
isInvulnerableTo in class PlayerEntityprotected void updateFallState(double y,
boolean onGroundIn,
BlockState state,
BlockPos pos)
updateFallState in class LivingEntityprotected void frostWalk(BlockPos pos)
frostWalk in class LivingEntitypublic void handleFalling(double y,
boolean onGroundIn)
public void openSignEditor(SignTileEntity signTile)
openSignEditor in class PlayerEntitypublic void getNextWindowId()
public java.util.OptionalInt openContainer(@Nullable
INamedContainerProvider p_213829_1_)
openContainer in class PlayerEntitypublic void openMerchantContainer(int containerId,
MerchantOffers offers,
int level,
int xp,
boolean p_213818_5_,
boolean p_213818_6_)
openMerchantContainer in class PlayerEntitypublic void openHorseInventory(AbstractHorseEntity horse, IInventory inventoryIn)
openHorseInventory in class PlayerEntitypublic void openBook(ItemStack stack, Hand hand)
openBook in class PlayerEntitypublic void openCommandBlock(CommandBlockTileEntity commandBlock)
openCommandBlock in class PlayerEntitypublic void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents in interface IContainerListenerpublic void sendContainerToPlayer(Container containerIn)
public void sendAllContents(Container containerToSend, NonNullList<ItemStack> itemsList)
sendAllContents in interface IContainerListenerpublic void sendWindowProperty(Container containerIn, int varToUpdate, int newValue)
sendWindowProperty in interface IContainerListenerpublic void closeScreen()
closeScreen in class PlayerEntitypublic void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking)
public void addStat(Stat<?> stat, int amount)
addStat in class PlayerEntitypublic void takeStat(Stat<?> stat)
takeStat in class PlayerEntitypublic int unlockRecipes(java.util.Collection<IRecipe<?>> p_195065_1_)
unlockRecipes in class PlayerEntitypublic void unlockRecipes(ResourceLocation[] p_193102_1_)
unlockRecipes in class PlayerEntitypublic int resetRecipes(java.util.Collection<IRecipe<?>> p_195069_1_)
resetRecipes in class PlayerEntitypublic void giveExperiencePoints(int p_195068_1_)
giveExperiencePoints in class PlayerEntitypublic void disconnect()
public boolean hasDisconnected()
public void setPlayerHealthUpdated()
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class PlayerEntityprotected void onItemUseFinish()
onItemUseFinish in class LivingEntitypublic void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
lookAt in class LivingEntitypublic void lookAt(EntityAnchorArgument.Type p_200618_1_, Entity p_200618_2_, EntityAnchorArgument.Type p_200618_3_)
public void copyFrom(ServerPlayerEntity that, boolean keepEverything)
protected void onNewPotionEffect(EffectInstance id)
onNewPotionEffect in class LivingEntityprotected void onChangedPotionEffect(EffectInstance id, boolean reapply)
onChangedPotionEffect in class LivingEntityprotected void onFinishedPotionEffect(EffectInstance effect)
onFinishedPotionEffect in class LivingEntitypublic void setPositionAndUpdate(double x,
double y,
double z)
setPositionAndUpdate in class Entitypublic void moveForced(double p_225653_1_,
double p_225653_3_,
double p_225653_5_)
moveForced in class Entitypublic void onCriticalHit(Entity entityHit)
onCriticalHit in class PlayerEntitypublic void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical in class PlayerEntitypublic void sendPlayerAbilities()
sendPlayerAbilities in class PlayerEntitypublic ServerWorld getServerWorld()
public void setGameType(GameType gameType)
setGameType in class PlayerEntitypublic boolean isSpectator()
isSpectator in class PlayerEntitypublic boolean isCreative()
isCreative in class PlayerEntitypublic void sendMessage(ITextComponent component)
sendMessage in interface ICommandSourcesendMessage in class Entitypublic void sendMessage(ITextComponent textComponent, ChatType chatTypeIn)
public java.lang.String getPlayerIP()
public void handleClientSettings(CClientSettingsPacket packetIn)
public ChatVisibility getChatVisibility()
public void loadResourcePack(java.lang.String url,
java.lang.String hash)
protected int getPermissionLevel()
getPermissionLevel in class Entitypublic void markPlayerActive()
public ServerStatisticsManager getStats()
public ServerRecipeBook getRecipeBook()
public void removeEntity(Entity entityIn)
public void addEntity(Entity entityIn)
protected void updatePotionMetadata()
updatePotionMetadata in class LivingEntitypublic Entity getSpectatingEntity()
public void setSpectatingEntity(Entity entityToSpectate)
protected void decrementTimeUntilPortal()
decrementTimeUntilPortal in class Entitypublic void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem in class PlayerEntitypublic long getLastActiveTime()
@Nullable public ITextComponent getTabListDisplayName()
public void swingArm(Hand hand)
swingArm in class LivingEntitypublic boolean isInvulnerableDimensionChange()
public void clearInvulnerableDimensionChange()
public PlayerAdvancements getAdvancements()
public void teleport(ServerWorld newWorld, double x, double y, double z, float yaw, float pitch)
public void sendChunkLoad(ChunkPos p_213844_1_, IPacket<?> p_213844_2_, IPacket<?> p_213844_3_)
public void sendChunkUnload(ChunkPos p_213845_1_)
public SectionPos getManagedSectionPos()
public void setManagedSectionPos(SectionPos sectionPosIn)
public void playSound(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_)
playSound in class PlayerEntitypublic IPacket<?> createSpawnPacket()
createSpawnPacket in class LivingEntitypublic ItemEntity dropItem(ItemStack droppedItem, boolean dropAround, boolean traceItem)
dropItem in class PlayerEntity