YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.player.EntityPlayerMP Class Reference
Inheritance diagram for net.minecraft.entity.player.EntityPlayerMP:
net.minecraft.entity.player.EntityPlayer net.minecraft.inventory.ICrafting net.minecraft.entity.EntityLiving net.minecraft.command.ICommandSender net.minecraft.entity.Entity

Public Member Functions

 EntityPlayerMP (MinecraftServer par1MinecraftServer, World par2World, String par3Str, ItemInWorldManager par4ItemInWorldManager)
 
void readEntityFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeEntityToNBT (NBTTagCompound par1NBTTagCompound)
 
void addExperienceLevel (int par1)
 
void addSelfToInternalCraftingInventory ()
 
float getEyeHeight ()
 
void onUpdate ()
 
void setEntityHealth (int par1)
 
void onUpdateEntity ()
 
void onDeath (DamageSource par1DamageSource)
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
boolean func_96122_a (EntityPlayer par1EntityPlayer)
 
void travelToDimension (int par1)
 
void onItemPickup (Entity par1Entity, int par2)
 
EnumStatus sleepInBedAt (int par1, int par2, int par3)
 
void wakeUpPlayer (boolean par1, boolean par2, boolean par3)
 
void mountEntity (Entity par1Entity)
 
void updateFlyingState (double par1, boolean par3)
 
void incrementWindowID ()
 
void displayGUIWorkbench (int par1, int par2, int par3)
 
void displayGUIEnchantment (int par1, int par2, int par3, String par4Str)
 
void displayGUIAnvil (int par1, int par2, int par3)
 
void displayGUIChest (IInventory par1IInventory)
 
void displayGUIHopper (TileEntityHopper par1TileEntityHopper)
 
void displayGUIHopperMinecart (EntityMinecartHopper par1EntityMinecartHopper)
 
void displayGUIFurnace (TileEntityFurnace par1TileEntityFurnace)
 
void displayGUIDispenser (TileEntityDispenser par1TileEntityDispenser)
 
void displayGUIBrewingStand (TileEntityBrewingStand par1TileEntityBrewingStand)
 
void displayGUIBeacon (TileEntityBeacon par1TileEntityBeacon)
 
void displayGUIMerchant (IMerchant par1IMerchant, String par2Str)
 
void sendSlotContents (Container par1Container, int par2, ItemStack par3ItemStack)
 
void sendContainerToPlayer (Container par1Container)
 
void sendContainerAndContentsToPlayer (Container par1Container, List par2List)
 
void sendProgressBarUpdate (Container par1Container, int par2, int par3)
 
void closeScreen ()
 
void updateHeldItem ()
 
void closeInventory ()
 
void addStat (StatBase par1StatBase, int par2)
 
void mountEntityAndWakeUp ()
 
void setPlayerHealthUpdated ()
 
void addChatMessage (String par1Str)
 
void setItemInUse (ItemStack par1ItemStack, int par2)
 
void clonePlayer (EntityPlayer par1EntityPlayer, boolean par2)
 
void setPositionAndUpdate (double par1, double par3, double par5)
 
void onCriticalHit (Entity par1Entity)
 
void onEnchantmentCritical (Entity par1Entity)
 
void sendPlayerAbilities ()
 
WorldServer getServerForPlayer ()
 
void setGameType (EnumGameType par1EnumGameType)
 
void sendChatToPlayer (String par1Str)
 
boolean canCommandSenderUseCommand (int par1, String par2Str)
 
String getPlayerIP ()
 
void updateClientInfo (Packet204ClientInfo par1Packet204ClientInfo)
 
StringTranslate getTranslator ()
 
int getChatVisibility ()
 
void requestTexturePackLoad (String par1Str, int par2)
 
ChunkCoordinates getPlayerCoordinates ()
 
- Public Member Functions inherited from net.minecraft.entity.player.EntityPlayer
 EntityPlayer (World par1World)
 
int getMaxHealth ()
 
ItemStack getItemInUse ()
 
int getItemInUseCount ()
 
boolean isUsingItem ()
 
int getItemInUseDuration ()
 
void stopUsingItem ()
 
void clearItemInUse ()
 
boolean isBlocking ()
 
void onUpdate ()
 
int getMaxInPortalTime ()
 
int getPortalCooldown ()
 
void playSound (String par1Str, float par2, float par3)
 
void handleHealthUpdate (byte par1)
 
void closeScreen ()
 
void mountEntity (Entity par1Entity)
 
void updateRidden ()
 
void preparePlayerToSpawn ()
 
void onLivingUpdate ()
 
int getScore ()
 
void setScore (int par1)
 
void addScore (int par1)
 
void onDeath (DamageSource par1DamageSource)
 
void addToPlayerScore (Entity par1Entity, int par2)
 
EntityItem dropOneItem (boolean par1)
 
EntityItem dropPlayerItem (ItemStack par1ItemStack)
 
EntityItem dropPlayerItemWithRandomChoice (ItemStack par1ItemStack, boolean par2)
 
void joinEntityItemWithWorld (EntityItem par1EntityItem)
 
float getCurrentPlayerStrVsBlock (Block par1Block, boolean par2)
 
float getCurrentPlayerStrVsBlock (Block par1Block, boolean par2, int meta)
 
boolean canHarvestBlock (Block par1Block)
 
void displayGUIChest (IInventory par1IInventory)
 
void displayGUIHopper (TileEntityHopper par1TileEntityHopper)
 
void displayGUIHopperMinecart (EntityMinecartHopper par1EntityMinecartHopper)
 
void displayGUIEnchantment (int par1, int par2, int par3, String par4Str)
 
void displayGUIAnvil (int par1, int par2, int par3)
 
void displayGUIWorkbench (int par1, int par2, int par3)
 
float getEyeHeight ()
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
boolean func_96122_a (EntityPlayer par1EntityPlayer)
 
int getTotalArmorValue ()
 
float func_82243_bO ()
 
void displayGUIFurnace (TileEntityFurnace par1TileEntityFurnace)
 
void displayGUIDispenser (TileEntityDispenser par1TileEntityDispenser)
 
void displayGUIEditSign (TileEntity par1TileEntity)
 
void displayGUIBrewingStand (TileEntityBrewingStand par1TileEntityBrewingStand)
 
void displayGUIBeacon (TileEntityBeacon par1TileEntityBeacon)
 
void displayGUIMerchant (IMerchant par1IMerchant, String par2Str)
 
void displayGUIBook (ItemStack par1ItemStack)
 
boolean interactWith (Entity par1Entity)
 
ItemStack getCurrentEquippedItem ()
 
void destroyCurrentEquippedItem ()
 
double getYOffset ()
 
void attackTargetEntityWithCurrentItem (Entity par1Entity)
 
void onCriticalHit (Entity par1Entity)
 
void onEnchantmentCritical (Entity par1Entity)
 
void respawnPlayer ()
 
void setDead ()
 
boolean isEntityInsideOpaqueBlock ()
 
boolean func_71066_bF ()
 
EnumStatus sleepInBedAt (int par1, int par2, int par3)
 
void wakeUpPlayer (boolean par1, boolean par2, boolean par3)
 
float getBedOrientationInDegrees ()
 
boolean isPlayerSleeping ()
 
boolean isPlayerFullyAsleep ()
 
int getSleepTimer ()
 
void addChatMessage (String par1Str)
 
ChunkCoordinates getBedLocation ()
 
boolean isSpawnForced ()
 
void setSpawnChunk (ChunkCoordinates par1ChunkCoordinates, boolean par2)
 
void triggerAchievement (StatBase par1StatBase)
 
void addStat (StatBase par1StatBase, int par2)
 
void moveEntityWithHeading (float par1, float par2)
 
void addMovementStat (double par1, double par3, double par5)
 
void onKillEntity (EntityLiving par1EntityLiving)
 
void setInWeb ()
 
Icon getItemIcon (ItemStack par1ItemStack, int par2)
 
ItemStack getCurrentArmor (int par1)
 
void addExperience (int par1)
 
void addExperienceLevel (int par1)
 
int xpBarCap ()
 
void addExhaustion (float par1)
 
FoodStats getFoodStats ()
 
boolean canEat (boolean par1)
 
boolean shouldHeal ()
 
void setItemInUse (ItemStack par1ItemStack, int par2)
 
boolean canCurrentToolHarvestBlock (int par1, int par2, int par3)
 
boolean canPlayerEdit (int par1, int par2, int par3, int par4, ItemStack par5ItemStack)
 
String getEntityName ()
 
boolean func_94062_bN ()
 
boolean func_94059_bO ()
 
boolean canPickUpLoot ()
 
void clonePlayer (EntityPlayer par1EntityPlayer, boolean par2)
 
void sendPlayerAbilities ()
 
void setGameType (EnumGameType par1EnumGameType)
 
String getCommandSenderName ()
 
StringTranslate getTranslator ()
 
String translateString (String par1Str, Object...par2ArrayOfObj)
 
InventoryEnderChest getInventoryEnderChest ()
 
ItemStack getCurrentItemOrArmor (int par1)
 
ItemStack getHeldItem ()
 
void setCurrentItemOrArmor (int par1, ItemStack par2ItemStack)
 
boolean func_98034_c (EntityPlayer par1EntityPlayer)
 
ItemStack[] getLastActiveItems ()
 
boolean getHideCape ()
 
boolean func_96092_aw ()
 
Scoreboard getWorldScoreboard ()
 
ScorePlayerTeam getTeam ()
 
String getTranslatedEntityName ()
 
void openGui (Object mod, int modGuiId, World world, int x, int y, int z)
 
- Public Member Functions inherited from net.minecraft.entity.EntityLiving
 EntityLiving (World par1World)
 
EntityLookHelper getLookHelper ()
 
EntityMoveHelper getMoveHelper ()
 
EntityJumpHelper getJumpHelper ()
 
PathNavigate getNavigator ()
 
EntitySenses getEntitySenses ()
 
Random getRNG ()
 
EntityLiving getAITarget ()
 
EntityLiving getLastAttackingEntity ()
 
void setLastAttackingEntity (Entity par1Entity)
 
int getAge ()
 
float getRotationYawHead ()
 
void setRotationYawHead (float par1)
 
float getAIMoveSpeed ()
 
void setAIMoveSpeed (float par1)
 
boolean attackEntityAsMob (Entity par1Entity)
 
EntityLiving getAttackTarget ()
 
void setAttackTarget (EntityLiving par1EntityLiving)
 
boolean canAttackClass (Class par1Class)
 
void eatGrassBonus ()
 
boolean isWithinHomeDistanceCurrentPosition ()
 
boolean isWithinHomeDistance (int par1, int par2, int par3)
 
void setHomeArea (int par1, int par2, int par3, int par4)
 
ChunkCoordinates getHomePosition ()
 
float getMaximumHomeDistance ()
 
void detachHome ()
 
boolean hasHome ()
 
void setRevengeTarget (EntityLiving par1EntityLiving)
 
boolean canEntityBeSeen (Entity par1Entity)
 
String getTexture ()
 
boolean canBeCollidedWith ()
 
boolean canBePushed ()
 
float getEyeHeight ()
 
int getTalkInterval ()
 
void playLivingSound ()
 
void onEntityUpdate ()
 
void spawnExplosionParticle ()
 
void updateRidden ()
 
void setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9)
 
void onUpdate ()
 
void heal (int par1)
 
int getHealth ()
 
void setEntityHealth (int par1)
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
void performHurtAnimation ()
 
int getTotalArmorValue ()
 
void knockBack (Entity par1Entity, int par2, double par3, double par5)
 
void onDeath (DamageSource par1DamageSource)
 
void moveEntityWithHeading (float par1, float par2)
 
boolean isOnLadder ()
 
boolean isEntityAlive ()
 
boolean canBreatheUnderwater ()
 
void setMoveForward (float par1)
 
void setJumping (boolean par1)
 
void onLivingUpdate ()
 
boolean isBlocking ()
 
int getVerticalFaceSpeed ()
 
void faceEntity (Entity par1Entity, float par2, float par3)
 
boolean getCanSpawnHere ()
 
float getSwingProgress (float par1)
 
Vec3 getPosition (float par1)
 
Vec3 getLookVec ()
 
Vec3 getLook (float par1)
 
float getRenderSizeModifier ()
 
MovingObjectPosition rayTrace (double par1, float par3)
 
int getMaxSpawnedInChunk ()
 
void handleHealthUpdate (byte par1)
 
boolean isPlayerSleeping ()
 
Icon getItemIcon (ItemStack par1ItemStack, int par2)
 
void clearActivePotions ()
 
Collection getActivePotionEffects ()
 
boolean isPotionActive (int par1)
 
boolean isPotionActive (Potion par1Potion)
 
PotionEffect getActivePotionEffect (Potion par1Potion)
 
void addPotionEffect (PotionEffect par1PotionEffect)
 
boolean isPotionApplicable (PotionEffect par1PotionEffect)
 
boolean isEntityUndead ()
 
void removePotionEffectClient (int par1)
 
void removePotionEffect (int par1)
 
float getSpeedModifier ()
 
void setPositionAndUpdate (double par1, double par3, double par5)
 
boolean isChild ()
 
EnumCreatureAttribute getCreatureAttribute ()
 
void renderBrokenItemStack (ItemStack par1ItemStack)
 
int func_82143_as ()
 
ItemStack getHeldItem ()
 
ItemStack getCurrentItemOrArmor (int par1)
 
ItemStack getCurrentArmor (int par1)
 
void setCurrentItemOrArmor (int par1, ItemStack par2ItemStack)
 
ItemStack[] getLastActiveItems ()
 
void onItemPickup (Entity par1Entity, int par2)
 
void initCreature ()
 
void swingItem ()
 
boolean canBeSteered ()
 
final int getArrowCountInEntity ()
 
final void setArrowCountInEntity (int par1)
 
EntityLiving func_94060_bK ()
 
String getEntityName ()
 
void func_94058_c (String par1Str)
 
String func_94057_bL ()
 
boolean func_94056_bM ()
 
void func_94061_f (boolean par1)
 
boolean func_94062_bN ()
 
boolean func_94059_bO ()
 
void func_96120_a (int par1, float par2)
 
boolean canPickUpLoot ()
 
void setCanPickUpLoot (boolean par1)
 
boolean func_104002_bU ()
 
void curePotionEffects (ItemStack curativeItem)
 
boolean shouldRiderFaceForward (EntityPlayer player)
 
- Public Member Functions inherited from net.minecraft.entity.Entity
 Entity (World par1World)
 
DataWatcher getDataWatcher ()
 
boolean equals (Object par1Obj)
 
int hashCode ()
 
void setDead ()
 
void setPosition (double par1, double par3, double par5)
 
void setAngles (float par1, float par2)
 
void onUpdate ()
 
void onEntityUpdate ()
 
int getMaxInPortalTime ()
 
void setFire (int par1)
 
void extinguish ()
 
boolean isOffsetPositionInLiquid (double par1, double par3, double par5)
 
void moveEntity (double par1, double par3, double par5)
 
void playSound (String par1Str, float par2, float par3)
 
AxisAlignedBB getBoundingBox ()
 
final boolean isImmuneToFire ()
 
boolean isWet ()
 
boolean isInWater ()
 
boolean handleWaterMovement ()
 
boolean isInsideOfMaterial (Material par1Material)
 
float getEyeHeight ()
 
boolean handleLavaMovement ()
 
void moveFlying (float par1, float par2, float par3)
 
int getBrightnessForRender (float par1)
 
float getBrightness (float par1)
 
void setWorld (World par1World)
 
void setPositionAndRotation (double par1, double par3, double par5, float par7, float par8)
 
void setLocationAndAngles (double par1, double par3, double par5, float par7, float par8)
 
float getDistanceToEntity (Entity par1Entity)
 
double getDistanceSq (double par1, double par3, double par5)
 
double getDistance (double par1, double par3, double par5)
 
double getDistanceSqToEntity (Entity par1Entity)
 
void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
 
void applyEntityCollision (Entity par1Entity)
 
void addVelocity (double par1, double par3, double par5)
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
boolean canBeCollidedWith ()
 
boolean canBePushed ()
 
void addToPlayerScore (Entity par1Entity, int par2)
 
boolean addNotRiddenEntityID (NBTTagCompound par1NBTTagCompound)
 
boolean isInRangeToRenderVec3D (Vec3 par1Vec3)
 
boolean isInRangeToRenderDist (double par1)
 
String getTexture ()
 
boolean addEntityID (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
float getShadowSize ()
 
EntityItem dropItem (int par1, int par2)
 
EntityItem dropItemWithOffset (int par1, int par2, float par3)
 
EntityItem entityDropItem (ItemStack par1ItemStack, float par2)
 
boolean isEntityAlive ()
 
boolean isEntityInsideOpaqueBlock ()
 
boolean interact (EntityPlayer par1EntityPlayer)
 
AxisAlignedBB getCollisionBox (Entity par1Entity)
 
void updateRidden ()
 
void updateRiderPosition ()
 
double getYOffset ()
 
double getMountedYOffset ()
 
void mountEntity (Entity par1Entity)
 
void unmountEntity (Entity par1Entity)
 
void setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9)
 
float getCollisionBorderSize ()
 
Vec3 getLookVec ()
 
void setInPortal ()
 
int getPortalCooldown ()
 
void setVelocity (double par1, double par3, double par5)
 
void handleHealthUpdate (byte par1)
 
void performHurtAnimation ()
 
void updateCloak ()
 
ItemStack[] getLastActiveItems ()
 
void setCurrentItemOrArmor (int par1, ItemStack par2ItemStack)
 
boolean isBurning ()
 
boolean isRiding ()
 
boolean isSneaking ()
 
void setSneaking (boolean par1)
 
boolean isSprinting ()
 
void setSprinting (boolean par1)
 
boolean isInvisible ()
 
boolean func_98034_c (EntityPlayer par1EntityPlayer)
 
void setInvisible (boolean par1)
 
boolean isEating ()
 
void setEating (boolean par1)
 
int getAir ()
 
void setAir (int par1)
 
void onStruckByLightning (EntityLightningBolt par1EntityLightningBolt)
 
void onKillEntity (EntityLiving par1EntityLiving)
 
void setInWeb ()
 
String getEntityName ()
 
Entity[] getParts ()
 
boolean isEntityEqual (Entity par1Entity)
 
float getRotationYawHead ()
 
void setRotationYawHead (float par1)
 
boolean canAttackWithItem ()
 
boolean func_85031_j (Entity par1Entity)
 
String toString ()
 
boolean isEntityInvulnerable ()
 
void func_82149_j (Entity par1Entity)
 
void copyDataFrom (Entity par1Entity, boolean par2)
 
void travelToDimension (int par1)
 
float func_82146_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, Block par6Block)
 
boolean func_96091_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, int par6, float par7)
 
int func_82143_as ()
 
int getTeleportDirection ()
 
boolean doesEntityNotTriggerPressurePlate ()
 
void func_85029_a (CrashReportCategory par1CrashReportCategory)
 
boolean canRenderOnFire ()
 
boolean func_96092_aw ()
 
String getTranslatedEntityName ()
 
NBTTagCompound getEntityData ()
 
boolean shouldRiderSit ()
 
ItemStack getPickedResult (MovingObjectPosition target)
 
UUID getPersistentID ()
 
final void resetEntityId ()
 
boolean shouldRenderInPass (int pass)
 
boolean isCreatureType (EnumCreatureType type, boolean forSpawnCount)
 
String registerExtendedProperties (String identifier, IExtendedEntityProperties properties)
 
IExtendedEntityProperties getExtendedProperties (String identifier)
 

Public Attributes

NetServerHandler playerNetServerHandler
 
MinecraftServer mcServer
 
ItemInWorldManager theItemInWorldManager
 
double managedPosX
 
double managedPosZ
 
final List loadedChunks = new LinkedList()
 
final List destroyedItemsNetCache = new LinkedList()
 
int currentWindowId = 0
 
boolean playerInventoryBeingManipulated
 
int ping
 
boolean playerConqueredTheEnd = false
 
- Public Attributes inherited from net.minecraft.entity.player.EntityPlayer
int maxHealth = 20
 
InventoryPlayer inventory = new InventoryPlayer(this)
 
Container inventoryContainer
 
Container openContainer
 
byte field_71098_bD = 0
 
float prevCameraYaw
 
float cameraYaw
 
String username
 
int xpCooldown = 0
 
double field_71091_bM
 
double field_71096_bN
 
double field_71097_bO
 
double field_71094_bP
 
double field_71095_bQ
 
double field_71085_bR
 
ChunkCoordinates playerLocation
 
int sleepTimer
 
float field_71079_bU
 
float field_71082_cx
 
float field_71089_bV
 
PlayerCapabilities capabilities = new PlayerCapabilities()
 
int experienceLevel
 
int experienceTotal
 
float experience
 
EntityFishHook fishEntity = null
 
- Public Attributes inherited from net.minecraft.entity.EntityLiving
int maxHurtResistantTime = 20
 
float field_70769_ao
 
float field_70770_ap
 
float renderYawOffset = 0.0F
 
float prevRenderYawOffset = 0.0F
 
float rotationYawHead = 0.0F
 
float prevRotationYawHead = 0.0F
 
float landMovementFactor = 0.1F
 
float jumpMovementFactor = 0.02F
 
float prevSwingProgress
 
float swingProgress
 
int prevHealth
 
int carryoverDamage
 
int livingSoundTime
 
int hurtTime
 
int maxHurtTime
 
float attackedAtYaw = 0.0F
 
int deathTime = 0
 
int attackTime = 0
 
float prevCameraPitch
 
float cameraPitch
 
int experienceValue
 
int field_70731_aW = -1
 
float field_70730_aX = (float)(Math.random() * 0.8999999761581421D + 0.10000000149011612D)
 
float prevLimbYaw
 
float limbYaw
 
float limbSwing
 
int arrowHitTimer = 0
 
final EntityAITasks tasks
 
final EntityAITasks targetTasks
 
boolean isSwingInProgress = false
 
int swingProgressInt = 0
 
final CombatTracker field_94063_bt = new CombatTracker(this)
 
boolean isJumping = false
 
- Public Attributes inherited from net.minecraft.entity.Entity
int entityId
 
double renderDistanceWeight
 
boolean preventEntitySpawning
 
Entity riddenByEntity
 
Entity ridingEntity
 
boolean field_98038_p
 
World worldObj
 
double prevPosX
 
double prevPosY
 
double prevPosZ
 
double posX
 
double posY
 
double posZ
 
double motionX
 
double motionY
 
double motionZ
 
float rotationYaw
 
float rotationPitch
 
float prevRotationYaw
 
float prevRotationPitch
 
final AxisAlignedBB boundingBox
 
boolean onGround
 
boolean isCollidedHorizontally
 
boolean isCollidedVertically
 
boolean isCollided
 
boolean velocityChanged
 
boolean field_70135_K
 
boolean isDead
 
float yOffset
 
float width
 
float height
 
float prevDistanceWalkedModified
 
float distanceWalkedModified
 
float distanceWalkedOnStepModified
 
float fallDistance
 
double lastTickPosX
 
double lastTickPosY
 
double lastTickPosZ
 
float ySize
 
float stepHeight
 
boolean noClip
 
float entityCollisionReduction
 
int ticksExisted
 
int fireResistance
 
int hurtResistantTime
 
String skinUrl
 
String cloakUrl
 
boolean addedToChunk
 
int chunkCoordX
 
int chunkCoordY
 
int chunkCoordZ
 
int serverPosX
 
int serverPosY
 
int serverPosZ
 
boolean ignoreFrustumCheck
 
boolean isAirBorne
 
int timeUntilPortal
 
int dimension
 
EnumEntitySize myEntitySize
 
boolean captureDrops = false
 
ArrayList< EntityItemcapturedDrops = new ArrayList<EntityItem>()
 

Protected Member Functions

void resetHeight ()
 
void updateFallState (double par1, boolean par3)
 
void onItemUseFinish ()
 
void onNewPotionEffect (PotionEffect par1PotionEffect)
 
void onChangedPotionEffect (PotionEffect par1PotionEffect)
 
void onFinishedPotionEffect (PotionEffect par1PotionEffect)
 
- Protected Member Functions inherited from net.minecraft.entity.player.EntityPlayer
void entityInit ()
 
void updateItemUse (ItemStack par1ItemStack, int par2)
 
void onItemUseFinish ()
 
boolean isMovementBlocked ()
 
void updateEntityActionState ()
 
void resetHeight ()
 
void alertWolves (EntityLiving par1EntityLiving, boolean par2)
 
void damageArmor (int par1)
 
void damageEntity (DamageSource par1DamageSource, int par2)
 
boolean getHideCape (int par1)
 
void setHideCape (int par1, boolean par2)
 
void jump ()
 
void fall (float par1)
 
void addRandomArmor ()
 
void func_82162_bC ()
 
int getExperiencePoints (EntityPlayer par1EntityPlayer)
 
boolean isPlayer ()
 
boolean canTriggerWalking ()
 
- Protected Member Functions inherited from net.minecraft.entity.EntityLiving
int func_96121_ay ()
 
void updateFallState (double par1, boolean par3)
 
void onDeathUpdate ()
 
int decreaseAirSupply (int par1)
 
int getExperiencePoints (EntityPlayer par1EntityPlayer)
 
boolean isPlayer ()
 
float getSoundPitch ()
 
void damageArmor (int par1)
 
int applyArmorCalculations (DamageSource par1DamageSource, int par2)
 
int applyPotionDamageCalculations (DamageSource par1DamageSource, int par2)
 
void damageEntity (DamageSource par1DamageSource, int par2)
 
float getSoundVolume ()
 
String getLivingSound ()
 
String getHurtSound ()
 
String getDeathSound ()
 
void dropRareDrop (int par1)
 
void dropFewItems (boolean par1, int par2)
 
int getDropItemId ()
 
void fall (float par1)
 
void func_85033_bc ()
 
void collideWithEntity (Entity par1Entity)
 
boolean isAIEnabled ()
 
boolean isClientWorld ()
 
boolean isMovementBlocked ()
 
void jump ()
 
boolean canDespawn ()
 
void despawnEntity ()
 
void updateAITasks ()
 
void updateAITick ()
 
void updateEntityActionState ()
 
void updateArmSwingProgress ()
 
void kill ()
 
void updatePotionEffects ()
 
void onNewPotionEffect (PotionEffect par1PotionEffect)
 
void onChangedPotionEffect (PotionEffect par1PotionEffect)
 
void onFinishedPotionEffect (PotionEffect par1PotionEffect)
 
void dropEquipment (boolean par1, int par2)
 
void addRandomArmor ()
 
void func_82162_bC ()
 
- Protected Member Functions inherited from net.minecraft.entity.Entity
void preparePlayerToSpawn ()
 
void setSize (float par1, float par2)
 
void setRotation (float par1, float par2)
 
void setOnFireFromLava ()
 
void kill ()
 
void doBlockCollisions ()
 
void playStepSound (int par1, int par2, int par3, int par4)
 
boolean canTriggerWalking ()
 
void updateFallState (double par1, boolean par3)
 
void dealFireDamage (int par1)
 
void fall (float par1)
 
void setBeenAttacked ()
 
final String getEntityString ()
 
NBTTagList newDoubleNBTList (double...par1ArrayOfDouble)
 
NBTTagList newFloatNBTList (float...par1ArrayOfFloat)
 
boolean getFlag (int par1)
 
void setFlag (int par1, boolean par2)
 
boolean pushOutOfBlocks (double par1, double par3, double par5)
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.entity.player.EntityPlayer
static ChunkCoordinates verifyRespawnCoordinates (World par0World, ChunkCoordinates par1ChunkCoordinates, boolean par2)
 
- Static Public Attributes inherited from net.minecraft.entity.player.EntityPlayer
static final String PERSISTED_NBT_TAG = "PlayerPersisted"
 
- Protected Attributes inherited from net.minecraft.entity.player.EntityPlayer
FoodStats foodStats = new FoodStats()
 
int flyToggleTimer = 0
 
boolean sleeping
 
float speedOnGround = 0.1F
 
float speedInAir = 0.02F
 

Constructor & Destructor Documentation

net.minecraft.entity.player.EntityPlayerMP.EntityPlayerMP ( MinecraftServer  par1MinecraftServer,
World  par2World,
String  par3Str,
ItemInWorldManager  par4ItemInWorldManager 
)

Member Function Documentation

void net.minecraft.entity.player.EntityPlayerMP.addChatMessage ( String  par1Str)

Add a chat message to the player

void net.minecraft.entity.player.EntityPlayerMP.addExperienceLevel ( int  par1)

Add experience levels to this player.

void net.minecraft.entity.player.EntityPlayerMP.addSelfToInternalCraftingInventory ( )
void net.minecraft.entity.player.EntityPlayerMP.addStat ( StatBase  par1StatBase,
int  par2 
)

Adds a value to a statistic field.

boolean net.minecraft.entity.player.EntityPlayerMP.attackEntityFrom ( DamageSource  par1DamageSource,
int  par2 
)

Called when the entity is attacked.

boolean net.minecraft.entity.player.EntityPlayerMP.canCommandSenderUseCommand ( int  par1,
String  par2Str 
)

Returns true if the command sender is allowed to use the given command.

Implements net.minecraft.command.ICommandSender.

void net.minecraft.entity.player.EntityPlayerMP.clonePlayer ( EntityPlayer  par1EntityPlayer,
boolean  par2 
)

Copies the values from the given player into this player if boolean par2 is true. Always clones Ender Chest Inventory.

void net.minecraft.entity.player.EntityPlayerMP.closeInventory ( )
void net.minecraft.entity.player.EntityPlayerMP.closeScreen ( )

sets current screen to null (used on escape buttons of GUIs)

void net.minecraft.entity.player.EntityPlayerMP.displayGUIAnvil ( int  par1,
int  par2,
int  par3 
)

Displays the GUI for interacting with an anvil.

void net.minecraft.entity.player.EntityPlayerMP.displayGUIBeacon ( TileEntityBeacon  par1TileEntityBeacon)

Displays the GUI for interacting with a beacon.

void net.minecraft.entity.player.EntityPlayerMP.displayGUIBrewingStand ( TileEntityBrewingStand  par1TileEntityBrewingStand)

Displays the GUI for interacting with a brewing stand.

void net.minecraft.entity.player.EntityPlayerMP.displayGUIChest ( IInventory  par1IInventory)

Displays the GUI for interacting with a chest inventory. Args: chestInventory

void net.minecraft.entity.player.EntityPlayerMP.displayGUIDispenser ( TileEntityDispenser  par1TileEntityDispenser)

Displays the dipsenser GUI for the passed in dispenser entity. Args: TileEntityDispenser

void net.minecraft.entity.player.EntityPlayerMP.displayGUIEnchantment ( int  par1,
int  par2,
int  par3,
String  par4Str 
)
void net.minecraft.entity.player.EntityPlayerMP.displayGUIFurnace ( TileEntityFurnace  par1TileEntityFurnace)

Displays the furnace GUI for the passed in furnace entity. Args: tileEntityFurnace

void net.minecraft.entity.player.EntityPlayerMP.displayGUIHopper ( TileEntityHopper  par1TileEntityHopper)
void net.minecraft.entity.player.EntityPlayerMP.displayGUIHopperMinecart ( EntityMinecartHopper  par1EntityMinecartHopper)
void net.minecraft.entity.player.EntityPlayerMP.displayGUIMerchant ( IMerchant  par1IMerchant,
String  par2Str 
)
void net.minecraft.entity.player.EntityPlayerMP.displayGUIWorkbench ( int  par1,
int  par2,
int  par3 
)

Displays the crafting GUI for a workbench.

boolean net.minecraft.entity.player.EntityPlayerMP.func_96122_a ( EntityPlayer  par1EntityPlayer)
int net.minecraft.entity.player.EntityPlayerMP.getChatVisibility ( )
float net.minecraft.entity.player.EntityPlayerMP.getEyeHeight ( )
ChunkCoordinates net.minecraft.entity.player.EntityPlayerMP.getPlayerCoordinates ( )

Return the position for this command sender.

Implements net.minecraft.command.ICommandSender.

String net.minecraft.entity.player.EntityPlayerMP.getPlayerIP ( )

Gets the player's IP address. Used in /banip.

WorldServer net.minecraft.entity.player.EntityPlayerMP.getServerForPlayer ( )
StringTranslate net.minecraft.entity.player.EntityPlayerMP.getTranslator ( )
void net.minecraft.entity.player.EntityPlayerMP.incrementWindowID ( )
void net.minecraft.entity.player.EntityPlayerMP.mountEntity ( Entity  par1Entity)

Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.

void net.minecraft.entity.player.EntityPlayerMP.mountEntityAndWakeUp ( )
void net.minecraft.entity.player.EntityPlayerMP.onChangedPotionEffect ( PotionEffect  par1PotionEffect)
protected
void net.minecraft.entity.player.EntityPlayerMP.onCriticalHit ( Entity  par1Entity)

Called when the player performs a critical hit on the Entity. Args: entity that was hit critically

void net.minecraft.entity.player.EntityPlayerMP.onDeath ( DamageSource  par1DamageSource)

Called when the mob's health reaches 0.

void net.minecraft.entity.player.EntityPlayerMP.onEnchantmentCritical ( Entity  par1Entity)
void net.minecraft.entity.player.EntityPlayerMP.onFinishedPotionEffect ( PotionEffect  par1PotionEffect)
protected
void net.minecraft.entity.player.EntityPlayerMP.onItemPickup ( Entity  par1Entity,
int  par2 
)

Called whenever an item is picked up from walking over it. Args: pickedUpEntity, stackSize

void net.minecraft.entity.player.EntityPlayerMP.onItemUseFinish ( )
protected

Used for when item use count runs out, ie: eating completed

void net.minecraft.entity.player.EntityPlayerMP.onNewPotionEffect ( PotionEffect  par1PotionEffect)
protected
void net.minecraft.entity.player.EntityPlayerMP.onUpdate ( )

Called to update the entity's position/logic.

void net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity ( )
void net.minecraft.entity.player.EntityPlayerMP.readEntityFromNBT ( NBTTagCompound  par1NBTTagCompound)
virtual

(abstract) Protected helper method to read subclass entity data from NBT.

Reimplemented from net.minecraft.entity.player.EntityPlayer.

void net.minecraft.entity.player.EntityPlayerMP.requestTexturePackLoad ( String  par1Str,
int  par2 
)

on recieving this message the client (if permission is given) will download the requested textures

void net.minecraft.entity.player.EntityPlayerMP.resetHeight ( )
protected

sets the players height back to normal after doing things like sleeping and dieing

void net.minecraft.entity.player.EntityPlayerMP.sendChatToPlayer ( String  par1Str)
void net.minecraft.entity.player.EntityPlayerMP.sendContainerAndContentsToPlayer ( Container  par1Container,
List  par2List 
)
void net.minecraft.entity.player.EntityPlayerMP.sendContainerToPlayer ( Container  par1Container)
void net.minecraft.entity.player.EntityPlayerMP.sendPlayerAbilities ( )

Sends the player's abilities to the server (if there is one).

void net.minecraft.entity.player.EntityPlayerMP.sendProgressBarUpdate ( Container  par1Container,
int  par2,
int  par3 
)

Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, and enchanting level. Normally the first int identifies which variable to update, and the second contains the new value. Both are truncated to shorts in non-local SMP.

Implements net.minecraft.inventory.ICrafting.

void net.minecraft.entity.player.EntityPlayerMP.sendSlotContents ( Container  par1Container,
int  par2,
ItemStack  par3ItemStack 
)

Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot. Args: Container, slot number, slot contents

Implements net.minecraft.inventory.ICrafting.

void net.minecraft.entity.player.EntityPlayerMP.setEntityHealth ( int  par1)
void net.minecraft.entity.player.EntityPlayerMP.setGameType ( EnumGameType  par1EnumGameType)

Sets the player's game mode and sends it to them.

void net.minecraft.entity.player.EntityPlayerMP.setItemInUse ( ItemStack  par1ItemStack,
int  par2 
)

sets the itemInUse when the use item button is clicked. Args: itemstack, int maxItemUseDuration

void net.minecraft.entity.player.EntityPlayerMP.setPlayerHealthUpdated ( )

this function is called when a players inventory is sent to him, lastHealth is updated on any dimension transitions, then reset.

void net.minecraft.entity.player.EntityPlayerMP.setPositionAndUpdate ( double  par1,
double  par3,
double  par5 
)

Move the entity to the coordinates informed, but keep yaw/pitch values.

EnumStatus net.minecraft.entity.player.EntityPlayerMP.sleepInBedAt ( int  par1,
int  par2,
int  par3 
)

Attempts to have the player sleep in a bed at the specified location.

void net.minecraft.entity.player.EntityPlayerMP.travelToDimension ( int  par1)

Teleports the entity to another dimension. Params: Dimension number to teleport to

void net.minecraft.entity.player.EntityPlayerMP.updateClientInfo ( Packet204ClientInfo  par1Packet204ClientInfo)
void net.minecraft.entity.player.EntityPlayerMP.updateFallState ( double  par1,
boolean  par3 
)
protected

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. Args: distanceFallenThisTick, onGround

void net.minecraft.entity.player.EntityPlayerMP.updateFlyingState ( double  par1,
boolean  par3 
)

likeUpdateFallState, but called from updateFlyingState, rather than moveEntity

void net.minecraft.entity.player.EntityPlayerMP.updateHeldItem ( )

updates item held by mouse

void net.minecraft.entity.player.EntityPlayerMP.wakeUpPlayer ( boolean  par1,
boolean  par2,
boolean  par3 
)

Wake up the player if they're sleeping.

void net.minecraft.entity.player.EntityPlayerMP.writeEntityToNBT ( NBTTagCompound  par1NBTTagCompound)
virtual

(abstract) Protected helper method to write subclass entity data to NBT.

Reimplemented from net.minecraft.entity.player.EntityPlayer.

Member Data Documentation

int net.minecraft.entity.player.EntityPlayerMP.currentWindowId = 0

The currently in use window ID. Incremented every time a window is opened.

final List net.minecraft.entity.player.EntityPlayerMP.destroyedItemsNetCache = new LinkedList()

entities added to this list will be packet29'd to the player

final List net.minecraft.entity.player.EntityPlayerMP.loadedChunks = new LinkedList()

LinkedList that holds the loaded chunks.

double net.minecraft.entity.player.EntityPlayerMP.managedPosX

player X position as seen by PlayerManager

double net.minecraft.entity.player.EntityPlayerMP.managedPosZ

player Z position as seen by PlayerManager

MinecraftServer net.minecraft.entity.player.EntityPlayerMP.mcServer

Reference to the MinecraftServer object.

int net.minecraft.entity.player.EntityPlayerMP.ping
boolean net.minecraft.entity.player.EntityPlayerMP.playerConqueredTheEnd = false

Set when a player beats the ender dragon, used to respawn the player at the spawn point while retaining inventory and XP

boolean net.minecraft.entity.player.EntityPlayerMP.playerInventoryBeingManipulated

poor mans concurency flag, lets hope the jvm doesn't re-order the setting of this flag wrt the inventory change on the next line

NetServerHandler net.minecraft.entity.player.EntityPlayerMP.playerNetServerHandler

The NetServerHandler assigned to this player by the ServerConfigurationManager.

ItemInWorldManager net.minecraft.entity.player.EntityPlayerMP.theItemInWorldManager

The ItemInWorldManager belonging to this player


The documentation for this class was generated from the following file: