public class EntityPlayerMP extends EntityPlayer implements ICrafting
EntityPlayer.EnumChatVisibility, EntityPlayer.EnumStatusEntity.EnumEntitySize| Modifier and Type | Field and Description |
|---|---|
int |
currentWindowId
The currently in use window ID.
|
boolean |
isChangingQuantityOnly
set to true when player is moving quantity of items from one inventory to another(crafting) but item in either
slot is not changed
|
java.util.List |
loadedChunks
LinkedList that holds the loaded chunks.
|
double |
managedPosX
player X position as seen by PlayerManager
|
double |
managedPosZ
player Z position as seen by PlayerManager
|
MinecraftServer |
mcServer
Reference to the MinecraftServer object.
|
int |
ping |
boolean |
playerConqueredTheEnd
Set when a player beats the ender dragon, used to respawn the player at the spawn point while retaining inventory
and XP
|
NetHandlerPlayServer |
playerNetServerHandler
The NetServerHandler assigned to this player by the ServerConfigurationManager.
|
ItemInWorldManager |
theItemInWorldManager
The ItemInWorldManager belonging to this player
|
cameraYaw, capabilities, experience, experienceLevel, experienceTotal, eyeHeight, field_71079_bU, field_71082_cx, field_71085_bR, field_71089_bV, field_71091_bM, field_71094_bP, field_71095_bQ, field_71096_bN, field_71097_bO, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, sleeping, speedInAir, speedOnGround, xpCooldownarrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressIntaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityPlayerMP(MinecraftServer p_i45285_1_,
WorldServer p_i45285_2_,
com.mojang.authlib.GameProfile p_i45285_3_,
ItemInWorldManager p_i45285_4_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChatComponentMessage(IChatComponent p_146105_1_) |
void |
addChatMessage(IChatComponent p_145747_1_)
Notifies this sender of some sort of information.
|
void |
addExperienceLevel(int p_82242_1_)
Add experience levels to this player.
|
void |
addSelfToInternalCraftingInventory() |
void |
addStat(StatBase p_71064_1_,
int p_71064_2_)
Adds a value to a statistic field.
|
boolean |
attackEntityFrom(DamageSource p_70097_1_,
float p_70097_2_)
Called when the entity is attacked.
|
boolean |
canAttackPlayer(EntityPlayer p_96122_1_) |
boolean |
canCommandSenderUseCommand(int p_70003_1_,
java.lang.String p_70003_2_)
Returns true if the command sender is allowed to use the given command.
|
void |
clonePlayer(EntityPlayer p_71049_1_,
boolean p_71049_2_)
Copies the values from the given player into this player if boolean par2 is true.
|
void |
closeContainer()
Closes the container the player currently has open.
|
void |
closeScreen()
sets current screen to null (used on escape buttons of GUIs); sets current crafting inventory back to the 2x2
square
|
void |
displayGUIAnvil(int p_82244_1_,
int p_82244_2_,
int p_82244_3_)
Displays the GUI for interacting with an anvil.
|
void |
displayGUIChest(IInventory p_71007_1_)
Displays the GUI for interacting with a chest inventory.
|
void |
displayGUIEnchantment(int p_71002_1_,
int p_71002_2_,
int p_71002_3_,
java.lang.String p_71002_4_) |
void |
displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_) |
void |
displayGUIHorse(EntityHorse p_110298_1_,
IInventory p_110298_2_) |
void |
displayGUIMerchant(IMerchant p_71030_1_,
java.lang.String p_71030_2_) |
void |
displayGUIWorkbench(int p_71058_1_,
int p_71058_2_,
int p_71058_3_)
Displays the crafting GUI for a workbench.
|
void |
func_143004_u() |
void |
func_146093_a(TileEntityHopper p_146093_1_) |
void |
func_146098_a(TileEntityBrewingStand p_146098_1_) |
void |
func_146100_a(TileEntity p_146100_1_) |
void |
func_146101_a(TileEntityFurnace p_146101_1_) |
void |
func_146102_a(TileEntityDispenser p_146102_1_) |
void |
func_146104_a(TileEntityBeacon p_146104_1_) |
EntityPlayer.EnumChatVisibility |
func_147096_v() |
protected void |
func_147098_j() |
StatisticsFile |
func_147099_x() |
void |
func_147100_a(C15PacketClientSettings p_147100_1_) |
void |
func_152339_d(Entity p_152339_1_) |
long |
func_154331_x() |
float |
getDefaultEyeHeight()
Returns the default eye height of the player
|
float |
getEyeHeight() |
void |
getNextWindowId()
get the next window id to use
|
ChunkCoordinates |
getPlayerCoordinates()
Return the position for this command sender.
|
java.lang.String |
getPlayerIP()
Gets the player's IP address.
|
WorldServer |
getServerForPlayer() |
void |
handleFalling(double p_71122_1_,
boolean p_71122_3_)
process player falling based on movement packet
|
void |
mountEntity(Entity p_70078_1_)
Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
|
void |
mountEntityAndWakeUp() |
protected void |
onChangedPotionEffect(PotionEffect p_70695_1_,
boolean p_70695_2_) |
void |
onCriticalHit(Entity p_71009_1_)
Called when the player performs a critical hit on the Entity.
|
void |
onDeath(DamageSource p_70645_1_)
Called when the mob's health reaches 0.
|
void |
onEnchantmentCritical(Entity p_71047_1_) |
protected void |
onFinishedPotionEffect(PotionEffect p_70688_1_) |
void |
onItemPickup(Entity p_71001_1_,
int p_71001_2_)
Called whenever an item is picked up from walking over it.
|
protected void |
onItemUseFinish()
Used for when item use count runs out, ie: eating completed
|
protected void |
onNewPotionEffect(PotionEffect p_70670_1_) |
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
onUpdateEntity() |
void |
readEntityFromNBT(NBTTagCompound p_70037_1_)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
requestTexturePackLoad(java.lang.String p_147095_1_)
on receiving this message the client (if permission is given) will download the requested textures
|
protected void |
resetHeight()
sets the players height back to normal after doing things like sleeping and dieing
|
void |
sendContainerAndContentsToPlayer(Container p_71110_1_,
java.util.List p_71110_2_) |
void |
sendContainerToPlayer(Container p_71120_1_) |
void |
sendPlayerAbilities()
Sends the player's abilities to the server (if there is one).
|
void |
sendProgressBarUpdate(Container p_71112_1_,
int p_71112_2_,
int p_71112_3_)
Sends two ints to the client-side Container.
|
void |
sendSlotContents(Container p_71111_1_,
int p_71111_2_,
ItemStack p_71111_3_)
Sends the contents of an inventory slot to the client-side Container.
|
void |
setEntityActionState(float p_110430_1_,
float p_110430_2_,
boolean p_110430_3_,
boolean p_110430_4_) |
void |
setGameType(WorldSettings.GameType p_71033_1_)
Sets the player's game mode and sends it to them.
|
void |
setItemInUse(ItemStack p_71008_1_,
int p_71008_2_)
sets the itemInUse when the use item button is clicked.
|
void |
setPlayerHealthUpdated()
this function is called when a players inventory is sent to him, lastHealth is updated on any dimension
transitions, then reset.
|
void |
setPositionAndUpdate(double p_70634_1_,
double p_70634_3_,
double p_70634_5_)
Sets the position of the entity, keeps yaw/pitch, and updates the 'last' variables
|
EntityPlayer.EnumStatus |
sleepInBedAt(int p_71018_1_,
int p_71018_2_,
int p_71018_3_)
puts player to sleep on specified bed if possible
|
void |
travelToDimension(int p_71027_1_)
Teleports the entity to another dimension.
|
protected void |
updateFallState(double p_70064_1_,
boolean p_70064_3_)
Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance
and deal fall damage if landing on the ground.
|
void |
updateHeldItem()
updates item held by mouse
|
void |
wakeUpPlayer(boolean p_70999_1_,
boolean p_70999_2_,
boolean p_70999_3_)
Wake up the player if they're sleeping.
|
void |
writeEntityToNBT(NBTTagCompound p_70014_1_)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addExhaustion, addExperience, addMovementStat, addScore, addToPlayerScore, applyEntityAttributes, attackTargetEntityWithCurrentItem, canEat, canHarvestBlock, canPlayerEdit, canTriggerWalking, clearItemInUse, damageArmor, damageEntity, destroyCurrentEquippedItem, displayGUIBook, dropOneItem, dropPlayerItemWithRandomChoice, entityInit, fall, func_145748_c_, func_146067_o, func_146094_a, func_146095_a, func_146097_a, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBreakSpeed, getBreakSpeed, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentPlayerStrVsBlock, getDeathSound, getDisplayName, getEntityWorld, getEquipmentInSlot, getExperiencePoints, getFoodStats, getGameProfile, getHeldItem, getHideCape, getHideCape, getHurtSound, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxInPortalTime, getPortalCooldown, getPosition, getScore, getSleepTimer, getSplashSound, getSwimSound, getTeam, getTotalArmorValue, getWorldScoreboard, getYOffset, handleHealthUpdate, interactWith, isBlocking, isCurrentToolAdventureModeExempt, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUsingItem, joinEntityItemWithWorld, jump, moveEntityWithHeading, onKillEntity, onLivingUpdate, openGui, playSound, preparePlayerToSpawn, refreshDisplayName, respawnPlayer, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setHideCape, setInWeb, setScore, setSpawnChunk, setSpawnChunk, shouldHeal, stopUsingItem, triggerAchievement, updateEntityActionState, updateItemUse, updateRidden, verifyRespawnCoordinates, xpBarCapaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropRareDrop, func_110142_aN, func_110146_f, func_142015_aE, func_146066_aG, func_152111_bt, func_152112_bu, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getEntityAttribute, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, heal, isAIEnabled, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, kill, knockBack, onDeathUpdate, onEntityUpdate, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITasks, updateAITick, updateArmSwingProgress, updatePotionEffectsaddEntityCrashInfo, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getFlag, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getShadowSize, getTeleportDirection, getUniqueID, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic NetHandlerPlayServer playerNetServerHandler
public final MinecraftServer mcServer
public final ItemInWorldManager theItemInWorldManager
public double managedPosX
public double managedPosZ
public final java.util.List loadedChunks
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean playerConqueredTheEnd
public EntityPlayerMP(MinecraftServer p_i45285_1_, WorldServer p_i45285_2_, com.mojang.authlib.GameProfile p_i45285_3_, ItemInWorldManager p_i45285_4_)
public void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT in class EntityPlayerpublic void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT in class EntityPlayerpublic void addExperienceLevel(int p_82242_1_)
addExperienceLevel in class EntityPlayerpublic void addSelfToInternalCraftingInventory()
protected void resetHeight()
resetHeight in class EntityPlayerpublic float getEyeHeight()
getEyeHeight in class EntityPlayerpublic void onUpdate()
onUpdate in class EntityPlayerpublic void onUpdateEntity()
protected void func_147098_j()
public void onDeath(DamageSource p_70645_1_)
onDeath in class EntityPlayerpublic boolean attackEntityFrom(DamageSource p_70097_1_, float p_70097_2_)
attackEntityFrom in class EntityPlayerpublic boolean canAttackPlayer(EntityPlayer p_96122_1_)
canAttackPlayer in class EntityPlayerpublic void travelToDimension(int p_71027_1_)
travelToDimension in class Entitypublic void onItemPickup(Entity p_71001_1_, int p_71001_2_)
onItemPickup in class EntityLivingBasepublic EntityPlayer.EnumStatus sleepInBedAt(int p_71018_1_, int p_71018_2_, int p_71018_3_)
sleepInBedAt in class EntityPlayerpublic void wakeUpPlayer(boolean p_70999_1_,
boolean p_70999_2_,
boolean p_70999_3_)
wakeUpPlayer in class EntityPlayerpublic void mountEntity(Entity p_70078_1_)
mountEntity in class EntityPlayerprotected void updateFallState(double p_70064_1_,
boolean p_70064_3_)
updateFallState in class EntityLivingBasepublic void handleFalling(double p_71122_1_,
boolean p_71122_3_)
public void func_146100_a(TileEntity p_146100_1_)
func_146100_a in class EntityPlayerpublic void getNextWindowId()
public void displayGUIWorkbench(int p_71058_1_,
int p_71058_2_,
int p_71058_3_)
displayGUIWorkbench in class EntityPlayerpublic void displayGUIEnchantment(int p_71002_1_,
int p_71002_2_,
int p_71002_3_,
java.lang.String p_71002_4_)
displayGUIEnchantment in class EntityPlayerpublic void displayGUIAnvil(int p_82244_1_,
int p_82244_2_,
int p_82244_3_)
displayGUIAnvil in class EntityPlayerpublic void displayGUIChest(IInventory p_71007_1_)
displayGUIChest in class EntityPlayerpublic void func_146093_a(TileEntityHopper p_146093_1_)
func_146093_a in class EntityPlayerpublic void displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_)
displayGUIHopperMinecart in class EntityPlayerpublic void func_146101_a(TileEntityFurnace p_146101_1_)
func_146101_a in class EntityPlayerpublic void func_146102_a(TileEntityDispenser p_146102_1_)
func_146102_a in class EntityPlayerpublic void func_146098_a(TileEntityBrewingStand p_146098_1_)
func_146098_a in class EntityPlayerpublic void func_146104_a(TileEntityBeacon p_146104_1_)
func_146104_a in class EntityPlayerpublic void displayGUIMerchant(IMerchant p_71030_1_, java.lang.String p_71030_2_)
displayGUIMerchant in class EntityPlayerpublic void displayGUIHorse(EntityHorse p_110298_1_, IInventory p_110298_2_)
displayGUIHorse in class EntityPlayerpublic void sendSlotContents(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_)
sendSlotContents in interface ICraftingpublic void sendContainerToPlayer(Container p_71120_1_)
public void sendContainerAndContentsToPlayer(Container p_71110_1_, java.util.List p_71110_2_)
sendContainerAndContentsToPlayer in interface ICraftingpublic void sendProgressBarUpdate(Container p_71112_1_, int p_71112_2_, int p_71112_3_)
sendProgressBarUpdate in interface ICraftingpublic void closeScreen()
closeScreen in class EntityPlayerpublic void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float p_110430_1_,
float p_110430_2_,
boolean p_110430_3_,
boolean p_110430_4_)
public void addStat(StatBase p_71064_1_, int p_71064_2_)
addStat in class EntityPlayerpublic void mountEntityAndWakeUp()
public void setPlayerHealthUpdated()
public void addChatComponentMessage(IChatComponent p_146105_1_)
addChatComponentMessage in class EntityPlayerprotected void onItemUseFinish()
onItemUseFinish in class EntityPlayerpublic void setItemInUse(ItemStack p_71008_1_, int p_71008_2_)
setItemInUse in class EntityPlayerpublic void clonePlayer(EntityPlayer p_71049_1_, boolean p_71049_2_)
clonePlayer in class EntityPlayerprotected void onNewPotionEffect(PotionEffect p_70670_1_)
onNewPotionEffect in class EntityLivingBaseprotected void onChangedPotionEffect(PotionEffect p_70695_1_, boolean p_70695_2_)
onChangedPotionEffect in class EntityLivingBaseprotected void onFinishedPotionEffect(PotionEffect p_70688_1_)
onFinishedPotionEffect in class EntityLivingBasepublic void setPositionAndUpdate(double p_70634_1_,
double p_70634_3_,
double p_70634_5_)
setPositionAndUpdate in class EntityLivingBasepublic void onCriticalHit(Entity p_71009_1_)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity p_71047_1_)
onEnchantmentCritical in class EntityPlayerpublic void sendPlayerAbilities()
sendPlayerAbilities in class EntityPlayerpublic WorldServer getServerForPlayer()
public void setGameType(WorldSettings.GameType p_71033_1_)
setGameType in class EntityPlayerpublic void addChatMessage(IChatComponent p_145747_1_)
addChatMessage in interface ICommandSenderpublic boolean canCommandSenderUseCommand(int p_70003_1_,
java.lang.String p_70003_2_)
canCommandSenderUseCommand in interface ICommandSenderpublic java.lang.String getPlayerIP()
public void func_147100_a(C15PacketClientSettings p_147100_1_)
public EntityPlayer.EnumChatVisibility func_147096_v()
public void requestTexturePackLoad(java.lang.String p_147095_1_)
public ChunkCoordinates getPlayerCoordinates()
getPlayerCoordinates in interface ICommandSenderpublic void func_143004_u()
public StatisticsFile func_147099_x()
public void func_152339_d(Entity p_152339_1_)
public long func_154331_x()
public float getDefaultEyeHeight()
getDefaultEyeHeight in class EntityPlayer