public class EntityPlayerMP extends EntityPlayer implements IContainerListener
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepEnemyPredicate, EntityPlayer.SleepResult
bedLocation, cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, enderChest, experience, experienceLevel, experienceTotal, eyeHeight, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, renderOffsetX, renderOffsetY, renderOffsetZ, RIGHT_SHOULDER_ENTITY, sleeping, spawnChunkMap, spawnForced, spawnForcedMap, spawnPos, speedInAir, xpCooldown, xpSeed
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world
Constructor and Description |
---|
EntityPlayerMP(MinecraftServer server,
WorldServer worldIn,
com.mojang.authlib.GameProfile profile,
PlayerInteractionManager interactionManagerIn) |
addExhaustion, addExperience, addItemStackToInventory, addMovementStat, addPrefix, addScore, addShoulderEntity, addStat, addSuffix, applyEntityAttributes, applyEntityCollision, blockUsingShield, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, displayGuiEditCommandCart, doWaterSplashEffect, dropItem, dropItem, dropItem, dropItemAndGetStack, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDefaultEyeHeight, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameString, getExperiencePoints, getEyeHeight, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getSleepTimer, getSoundCategory, getSpawnDimension, getSplashSound, getSuffixes, getSwimSound, getTeam, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasCapability, hasReducedDebug, hasSpawnDimension, interactOn, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUser, isWearing, jump, onKillEntity, onLivingUpdate, openEditStructure, openGui, playSound, preparePlayerToSpawn, refreshDisplayName, registerFixesPlayer, replaceItemInInventory, resetCooldown, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setDead, setInWeb, setItemStackToSlot, setLeftShoulderEntity, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnChunk, setSpawnDimension, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, travel, updateEntityActionState, updateRidden, updateSize, xpBarCap
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropLoot, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onDeathUpdate, onEntityUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffects
addEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptional
private static final org.apache.logging.log4j.Logger LOGGER
private java.lang.String language
public NetHandlerPlayServer connection
public final MinecraftServer mcServer
public final PlayerInteractionManager interactionManager
public double managedPosX
public double managedPosZ
private final java.util.List<java.lang.Integer> entityRemoveQueue
private final PlayerAdvancements advancements
private final StatisticsManagerServer statsFile
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 EntityPlayer.EnumChatVisibility chatVisibility
private boolean chatColours
private long playerLastActiveTime
private Entity spectatingEntity
private boolean invulnerableDimensionChange
private boolean seenCredits
private final RecipeBookServer recipeBook
private Vec3d levitationStartPos
private int levitatingSince
private boolean disconnected
private Vec3d enteredNetherPosition
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean queuedEndExit
public EntityPlayerMP(MinecraftServer server, WorldServer worldIn, com.mojang.authlib.GameProfile profile, PlayerInteractionManager interactionManagerIn)
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityPlayer
public static void registerFixesPlayerMP(DataFixer p_191522_0_)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityPlayer
public void addExperienceLevel(int levels)
addExperienceLevel
in class EntityPlayer
public void onEnchant(ItemStack enchantedItem, int cost)
onEnchant
in class EntityPlayer
public void addSelfToInternalCraftingInventory()
public void sendEnterCombat()
sendEnterCombat
in class EntityLivingBase
public void sendEndCombat()
sendEndCombat
in class EntityLivingBase
protected void onInsideBlock(IBlockState p_191955_1_)
onInsideBlock
in class Entity
protected CooldownTracker createCooldownTracker()
createCooldownTracker
in class EntityPlayer
public void onUpdate()
onUpdate
in class EntityPlayer
public void onUpdateEntity()
private void updateScorePoints(IScoreCriteria criteria, int points)
public void onDeath(DamageSource cause)
onDeath
in class EntityPlayer
public void awardKillScore(Entity p_191956_1_, int p_191956_2_, DamageSource p_191956_3_)
awardKillScore
in class Entity
private java.util.Collection<ScoreObjective> awardTeamKillScores(Entity p_192038_1_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityPlayer
public boolean canAttackPlayer(EntityPlayer other)
canAttackPlayer
in class EntityPlayer
private boolean canPlayersAttack()
@Nullable public Entity changeDimension(int dimensionIn, ITeleporter teleporter)
changeDimension
in class Entity
public boolean isSpectatedByPlayer(EntityPlayerMP player)
isSpectatedByPlayer
in class Entity
private void sendTileEntityUpdate(TileEntity p_147097_1_)
public void onItemPickup(Entity entityIn, int quantity)
onItemPickup
in class EntityLivingBase
public EntityPlayer.SleepResult trySleep(BlockPos bedLocation)
trySleep
in class EntityPlayer
public void wakeUpPlayer(boolean immediately, boolean updateWorldFlag, boolean setSpawn)
wakeUpPlayer
in class EntityPlayer
public boolean startRiding(Entity entityIn, boolean force)
startRiding
in class Entity
public void dismountRidingEntity()
dismountRidingEntity
in class EntityPlayer
public boolean isEntityInvulnerable(DamageSource source)
isEntityInvulnerable
in class Entity
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos)
updateFallState
in class EntityLivingBase
protected void frostWalk(BlockPos pos)
frostWalk
in class EntityLivingBase
public void handleFalling(double y, boolean onGroundIn)
public void openEditSign(TileEntitySign signTile)
openEditSign
in class EntityPlayer
public void getNextWindowId()
public void displayGui(IInteractionObject guiOwner)
displayGui
in class EntityPlayer
public void displayGUIChest(IInventory chestInventory)
displayGUIChest
in class EntityPlayer
public void displayVillagerTradeGui(IMerchant villager)
displayVillagerTradeGui
in class EntityPlayer
public void openGuiHorseInventory(AbstractHorse horse, IInventory inventoryIn)
openGuiHorseInventory
in class EntityPlayer
public void openBook(ItemStack stack, EnumHand hand)
openBook
in class EntityPlayer
public void displayGuiCommandBlock(TileEntityCommandBlock commandBlock)
displayGuiCommandBlock
in class EntityPlayer
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 sendAllWindowProperties(Container containerIn, IInventory inventory)
sendAllWindowProperties
in interface IContainerListener
public void closeScreen()
closeScreen
in class EntityPlayer
public void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float strafe, float forward, boolean jumping, boolean sneaking)
public void addStat(StatBase stat, int amount)
addStat
in class EntityPlayer
public void takeStat(StatBase stat)
takeStat
in class EntityPlayer
public void unlockRecipes(java.util.List<IRecipe> p_192021_1_)
unlockRecipes
in class EntityPlayer
public void unlockRecipes(ResourceLocation[] p_193102_1_)
unlockRecipes
in class EntityPlayer
public void resetRecipes(java.util.List<IRecipe> p_192022_1_)
resetRecipes
in class EntityPlayer
public void mountEntityAndWakeUp()
public boolean hasDisconnected()
public void setPlayerHealthUpdated()
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage
in class EntityPlayer
protected void onItemUseFinish()
onItemUseFinish
in class EntityLivingBase
public void copyFrom(EntityPlayerMP that, boolean keepEverything)
protected void onNewPotionEffect(PotionEffect id)
onNewPotionEffect
in class EntityLivingBase
protected void onChangedPotionEffect(PotionEffect id, boolean p_70695_2_)
onChangedPotionEffect
in class EntityLivingBase
protected void onFinishedPotionEffect(PotionEffect effect)
onFinishedPotionEffect
in class EntityLivingBase
public void setPositionAndUpdate(double x, double y, double z)
setPositionAndUpdate
in class Entity
public void onCriticalHit(Entity entityHit)
onCriticalHit
in class EntityPlayer
public void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical
in class EntityPlayer
public void sendPlayerAbilities()
sendPlayerAbilities
in class EntityPlayer
public WorldServer getServerWorld()
public void setGameType(GameType gameType)
setGameType
in class EntityPlayer
public boolean isSpectator()
isSpectator
in class EntityPlayer
public boolean isCreative()
isCreative
in class EntityPlayer
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSender
sendMessage
in class Entity
public boolean canUseCommand(int permLevel, java.lang.String commandName)
canUseCommand
in interface ICommandSender
canUseCommand
in class Entity
public java.lang.String getPlayerIP()
public void handleClientSettings(CPacketClientSettings packetIn)
public EntityPlayer.EnumChatVisibility getChatVisibility()
public void loadResourcePack(java.lang.String url, java.lang.String hash)
public BlockPos getPosition()
getPosition
in interface ICommandSender
getPosition
in class Entity
public void markPlayerActive()
public StatisticsManagerServer getStatFile()
public RecipeBookServer getRecipeBook()
public void removeEntity(Entity entityIn)
public void addEntity(Entity entityIn)
protected void updatePotionMetadata()
updatePotionMetadata
in class EntityLivingBase
public Entity getSpectatingEntity()
public void setSpectatingEntity(Entity entityToSpectate)
protected void decrementTimeUntilPortal()
decrementTimeUntilPortal
in class Entity
public void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem
in class EntityPlayer
public long getLastActiveTime()
@Nullable public ITextComponent getTabListDisplayName()
public void swingArm(EnumHand hand)
swingArm
in class EntityLivingBase
public boolean isInvulnerableDimensionChange()
public void clearInvulnerableDimensionChange()
public void setElytraFlying()
public void clearElytraFlying()
public PlayerAdvancements getAdvancements()
@Nullable public Vec3d getEnteredNetherPosition()