public class ServerPlayerEntity extends PlayerEntity implements IContainerListener
PlayerEntity.SleepResult
Entity.IMoveCallback
abilities, 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, xpSeed
activeItemStack, 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, unused180
addedToChunk, 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, world
DUMMY
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, xpBarCap
addPotionEffect, 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, updateSpinAttack
addPassenger, 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, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
private 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 PlayerEntity
public void writeAdditional(CompoundNBT compound)
writeAdditional
in class PlayerEntity
public void func_195394_a(int p_195394_1_)
public void setExperienceLevel(int level)
public void addExperienceLevel(int levels)
addExperienceLevel
in class PlayerEntity
public void onEnchant(ItemStack enchantedItem, int cost)
onEnchant
in class PlayerEntity
public void addSelfToInternalCraftingInventory()
public void sendEnterCombat()
sendEnterCombat
in class LivingEntity
public void sendEndCombat()
sendEndCombat
in class LivingEntity
protected void onInsideBlock(BlockState p_191955_1_)
onInsideBlock
in class Entity
protected CooldownTracker createCooldownTracker()
createCooldownTracker
in class PlayerEntity
public void tick()
tick
in class PlayerEntity
public void playerTick()
private void updateScorePoints(ScoreCriteria criteria, int points)
public void onDeath(DamageSource cause)
onDeath
in class PlayerEntity
public void awardKillScore(Entity p_191956_1_, int p_191956_2_, DamageSource p_191956_3_)
awardKillScore
in class Entity
private 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 PlayerEntity
public boolean canAttackPlayer(PlayerEntity other)
canAttackPlayer
in class PlayerEntity
private boolean canPlayersAttack()
@Nullable public Entity changeDimension(DimensionType destination, ITeleporter teleporter)
changeDimension
in class Entity
private void func_213846_b(ServerWorld p_213846_1_)
public boolean isSpectatedByPlayer(ServerPlayerEntity player)
isSpectatedByPlayer
in class Entity
private void sendTileEntityUpdate(TileEntity p_147097_1_)
public void onItemPickup(Entity entityIn, int quantity)
onItemPickup
in class LivingEntity
public com.mojang.datafixers.util.Either<PlayerEntity.SleepResult,Unit> trySleep(BlockPos at)
trySleep
in class PlayerEntity
public void stopSleepInBed(boolean p_225652_1_, boolean p_225652_2_)
stopSleepInBed
in class PlayerEntity
public boolean startRiding(Entity entityIn, boolean force)
startRiding
in class Entity
public void stopRiding()
stopRiding
in class PlayerEntity
public boolean isInvulnerableTo(DamageSource source)
isInvulnerableTo
in class PlayerEntity
protected void updateFallState(double y, boolean onGroundIn, BlockState state, BlockPos pos)
updateFallState
in class LivingEntity
protected void frostWalk(BlockPos pos)
frostWalk
in class LivingEntity
public void handleFalling(double y, boolean onGroundIn)
public void openSignEditor(SignTileEntity signTile)
openSignEditor
in class PlayerEntity
public void getNextWindowId()
public java.util.OptionalInt openContainer(@Nullable INamedContainerProvider p_213829_1_)
openContainer
in class PlayerEntity
public void openMerchantContainer(int containerId, MerchantOffers offers, int level, int xp, boolean p_213818_5_, boolean p_213818_6_)
openMerchantContainer
in class PlayerEntity
public void openHorseInventory(AbstractHorseEntity horse, IInventory inventoryIn)
openHorseInventory
in class PlayerEntity
public void openBook(ItemStack stack, Hand hand)
openBook
in class PlayerEntity
public void openCommandBlock(CommandBlockTileEntity commandBlock)
openCommandBlock
in class PlayerEntity
public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents
in interface IContainerListener
public void sendContainerToPlayer(Container containerIn)
public void sendAllContents(Container containerToSend, NonNullList<ItemStack> itemsList)
sendAllContents
in interface IContainerListener
public void sendWindowProperty(Container containerIn, int varToUpdate, int newValue)
sendWindowProperty
in interface IContainerListener
public void closeScreen()
closeScreen
in class PlayerEntity
public 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 PlayerEntity
public void takeStat(Stat<?> stat)
takeStat
in class PlayerEntity
public int unlockRecipes(java.util.Collection<IRecipe<?>> p_195065_1_)
unlockRecipes
in class PlayerEntity
public void unlockRecipes(ResourceLocation[] p_193102_1_)
unlockRecipes
in class PlayerEntity
public int resetRecipes(java.util.Collection<IRecipe<?>> p_195069_1_)
resetRecipes
in class PlayerEntity
public void giveExperiencePoints(int p_195068_1_)
giveExperiencePoints
in class PlayerEntity
public void disconnect()
public boolean hasDisconnected()
public void setPlayerHealthUpdated()
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage
in class PlayerEntity
protected void onItemUseFinish()
onItemUseFinish
in class LivingEntity
public void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
lookAt
in class LivingEntity
public 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 LivingEntity
protected void onChangedPotionEffect(EffectInstance id, boolean reapply)
onChangedPotionEffect
in class LivingEntity
protected void onFinishedPotionEffect(EffectInstance effect)
onFinishedPotionEffect
in class LivingEntity
public void setPositionAndUpdate(double x, double y, double z)
setPositionAndUpdate
in class Entity
public void moveForced(double p_225653_1_, double p_225653_3_, double p_225653_5_)
moveForced
in class Entity
public void onCriticalHit(Entity entityHit)
onCriticalHit
in class PlayerEntity
public void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical
in class PlayerEntity
public void sendPlayerAbilities()
sendPlayerAbilities
in class PlayerEntity
public ServerWorld getServerWorld()
public void setGameType(GameType gameType)
setGameType
in class PlayerEntity
public boolean isSpectator()
isSpectator
in class PlayerEntity
public boolean isCreative()
isCreative
in class PlayerEntity
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSource
sendMessage
in class Entity
public 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 Entity
public void markPlayerActive()
public ServerStatisticsManager getStats()
public ServerRecipeBook getRecipeBook()
public void removeEntity(Entity entityIn)
public void addEntity(Entity entityIn)
protected void updatePotionMetadata()
updatePotionMetadata
in class LivingEntity
public Entity getSpectatingEntity()
public void setSpectatingEntity(Entity entityToSpectate)
protected void decrementTimeUntilPortal()
decrementTimeUntilPortal
in class Entity
public void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem
in class PlayerEntity
public long getLastActiveTime()
@Nullable public ITextComponent getTabListDisplayName()
public void swingArm(Hand hand)
swingArm
in class LivingEntity
public 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 PlayerEntity
public IPacket<?> createSpawnPacket()
createSpawnPacket
in class LivingEntity
public ItemEntity dropItem(ItemStack droppedItem, boolean dropAround, boolean traceItem)
dropItem
in class PlayerEntity