public class ServerPlayerEntity extends PlayerEntity implements IContainerListener
PlayerEntity.SleepResult| Modifier and Type | Field and Description |
|---|---|
ServerPlayNetHandler |
connection |
int |
currentWindowId |
PlayerInteractionManager |
interactionManager |
boolean |
isChangingQuantityOnly |
int |
ping |
boolean |
queuedEndExit |
MinecraftServer |
server |
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, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, 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, randomYawVelocity, 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, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldfield_213139_a_| 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) |
Entity |
changeDimension(DimensionType destination) |
void |
clearElytraFlying() |
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_) |
void |
func_195399_b(int p_195399_1_) |
void |
func_213818_a(int p_213818_1_,
MerchantOffers p_213818_2_,
int p_213818_3_,
int p_213818_4_,
boolean p_213818_5_,
boolean p_213818_6_) |
void |
func_213823_a(SoundEvent p_213823_1_,
SoundCategory p_213823_2_,
float p_213823_3_,
float p_213823_4_) |
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) |
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() |
protected void |
onChangedPotionEffect(EffectInstance id,
boolean p_70695_2_) |
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 |
openSignEditor(SignTileEntity signTile) |
void |
playerTick() |
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) |
void |
sendWindowProperty(Container containerIn,
int varToUpdate,
int newValue) |
void |
setElytraFlying() |
void |
setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking) |
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 |
swingArm(Hand hand) |
void |
takeStat(Stat<?> stat) |
void |
teleport(ServerWorld p_200619_1_,
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() |
void |
wakeUpPlayer(boolean immediately,
boolean updateWorldFlag,
boolean setSpawn) |
void |
writeAdditional(CompoundNBT compound) |
addExhaustion, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, blockUsingShield, canEat, canHarvestBlock, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropInventory, dropItem, dropItem, fall, findAmmo, func_213365_e, func_213822_a, func_213826_a, func_223729_a, 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, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasReducedDebug, interactOn, isAllowEdit, isInvisibleToPlayer, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isUser, isWearing, jump, livingTick, onFoodEaten, onKillEntity, openMinecartCommandBlock, openStructureBlock, playSound, preparePlayerToSpawn, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, respawnPlayer, setAbsorptionAmount, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startSleeping, travel, updateEntityActionState, updateEyesInWaterPlayer, updatePose, updateRidden, updateSwimming, wakeUp, xpBarCapaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, createBrain, curePotionEffects, decreaseAirSupply, determineNextAir, dismountEntity, dropLoot, dropSpecialItems, func_213314_bj, func_213343_cS, func_213344_a, func_213346_cF, func_213363_a, func_213371_e, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidJump, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, isSleeping, isSpinAttacking, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onDeathUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffects, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getPassengers, getPersistentData, getPitch, getPitchYaw, getPose, getPosition, getPositionVec, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSubmergedHeight, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, playSwimSound, processInitialInteract, pushOutOfBlocks, read, recalculateSize, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldRenderSneaking, 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, shouldRiderSitgetCapabilitypublic ServerPlayNetHandler connection
public final MinecraftServer server
public final PlayerInteractionManager interactionManager
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)
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 func_195399_b(int p_195399_1_)
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()
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 Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class PlayerEntitypublic boolean canAttackPlayer(PlayerEntity other)
canAttackPlayer in class PlayerEntity@Nullable public Entity changeDimension(DimensionType destination)
changeDimension in class Entitypublic boolean isSpectatedByPlayer(ServerPlayerEntity player)
isSpectatedByPlayer in class Entitypublic 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 wakeUpPlayer(boolean immediately,
boolean updateWorldFlag,
boolean setSpawn)
wakeUpPlayer 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 Entityprotected 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 func_213818_a(int p_213818_1_,
MerchantOffers p_213818_2_,
int p_213818_3_,
int p_213818_4_,
boolean p_213818_5_,
boolean p_213818_6_)
func_213818_a 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 p_70695_2_)
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 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 void setElytraFlying()
public void clearElytraFlying()
public PlayerAdvancements getAdvancements()
public void teleport(ServerWorld p_200619_1_, 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 func_213823_a(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_)
func_213823_a in class PlayerEntitypublic IPacket<?> createSpawnPacket()
createSpawnPacket in class LivingEntitypublic ItemEntity dropItem(ItemStack droppedItem, boolean dropAround, boolean traceItem)
dropItem in class PlayerEntity