YATS/Forge Documentation
|
Public Member Functions | |
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 | readEntityFromNBT (NBTTagCompound par1NBTTagCompound) |
void | writeEntityToNBT (NBTTagCompound par1NBTTagCompound) |
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 Member Functions inherited from net.minecraft.command.ICommandSender | |
void | sendChatToPlayer (String s) |
boolean | canCommandSenderUseCommand (int i, String s) |
ChunkCoordinates | getPlayerCoordinates () |
Static Public Member Functions | |
static ChunkCoordinates | verifyRespawnCoordinates (World par0World, ChunkCoordinates par1ChunkCoordinates, boolean par2) |
Static Public Member Functions inherited from net.minecraft.entity.EntityLiving | |
static int | getArmorPosition (ItemStack par0ItemStack) |
static Item | getArmorItemForSlot (int par0, int par1) |
Static Public Attributes | |
static final String | PERSISTED_NBT_TAG = "PlayerPersisted" |
Static Public Attributes inherited from net.minecraft.entity.EntityLiving | |
static final float[] | pickUpLootProability = new float[] {0.0F, 0.1F, 0.15F, 0.45F} |
Protected Member Functions | |
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) |
net.minecraft.entity.player.EntityPlayer.EntityPlayer | ( | World | par1World) |
void net.minecraft.entity.player.EntityPlayer.addChatMessage | ( | String | par1Str) |
Add a chat message to the player
void net.minecraft.entity.player.EntityPlayer.addExhaustion | ( | float | par1) |
increases exhaustion level by supplied amount
void net.minecraft.entity.player.EntityPlayer.addExperience | ( | int | par1) |
This method increases the player's current amount of experience.
void net.minecraft.entity.player.EntityPlayer.addExperienceLevel | ( | int | par1) |
Add experience levels to this player.
void net.minecraft.entity.player.EntityPlayer.addMovementStat | ( | double | par1, |
double | par3, | ||
double | par5 | ||
) |
Adds a value to a movement statistic field - like run, walk, swin or climb.
|
protected |
Makes entity wear random armor based on difficulty
void net.minecraft.entity.player.EntityPlayer.addScore | ( | int | par1) |
Add to player's score
void net.minecraft.entity.player.EntityPlayer.addStat | ( | StatBase | par1StatBase, |
int | par2 | ||
) |
Adds a value to a statistic field.
void net.minecraft.entity.player.EntityPlayer.addToPlayerScore | ( | Entity | par1Entity, |
int | par2 | ||
) |
Adds a value to the player score. Currently not actually used and the entity passed in does nothing. Args: entity, scoreToAdd
|
protected |
Called when the player attack or gets attacked, it's alert all wolves in the area that are owned by the player to join the attack or defend the player.
boolean net.minecraft.entity.player.EntityPlayer.attackEntityFrom | ( | DamageSource | par1DamageSource, |
int | par2 | ||
) |
Called when the entity is attacked.
void net.minecraft.entity.player.EntityPlayer.attackTargetEntityWithCurrentItem | ( | Entity | par1Entity) |
Attacks for the player the targeted entity with the currently equipped item. The equipped item has hitEntity called on it. Args: targetEntity
boolean net.minecraft.entity.player.EntityPlayer.canCurrentToolHarvestBlock | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
Returns true if the item the player is holding can harvest the block at the given coords. Args: x, y, z.
boolean net.minecraft.entity.player.EntityPlayer.canEat | ( | boolean | par1) |
boolean net.minecraft.entity.player.EntityPlayer.canHarvestBlock | ( | Block | par1Block) |
Checks if the player has the ability to harvest a block (checks current inventory item for a tool if necessary)
boolean net.minecraft.entity.player.EntityPlayer.canPickUpLoot | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.canPlayerEdit | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
ItemStack | par5ItemStack | ||
) |
|
protected |
returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling crops
void net.minecraft.entity.player.EntityPlayer.clearItemInUse | ( | ) |
void net.minecraft.entity.player.EntityPlayer.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.EntityPlayer.closeScreen | ( | ) |
sets current screen to null (used on escape buttons of GUIs)
|
protected |
|
protected |
Deals damage to the entity. If its a EntityPlayer then will take damage from the armor first and then health second with the reduced value. Args: damageAmount
void net.minecraft.entity.player.EntityPlayer.destroyCurrentEquippedItem | ( | ) |
Destroys the currently equipped item from the player's inventory.
void net.minecraft.entity.player.EntityPlayer.displayGUIAnvil | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
Displays the GUI for interacting with an anvil.
void net.minecraft.entity.player.EntityPlayer.displayGUIBeacon | ( | TileEntityBeacon | par1TileEntityBeacon) |
Displays the GUI for interacting with a beacon.
void net.minecraft.entity.player.EntityPlayer.displayGUIBook | ( | ItemStack | par1ItemStack) |
Displays the GUI for interacting with a book.
void net.minecraft.entity.player.EntityPlayer.displayGUIBrewingStand | ( | TileEntityBrewingStand | par1TileEntityBrewingStand) |
Displays the GUI for interacting with a brewing stand.
void net.minecraft.entity.player.EntityPlayer.displayGUIChest | ( | IInventory | par1IInventory) |
Displays the GUI for interacting with a chest inventory. Args: chestInventory
void net.minecraft.entity.player.EntityPlayer.displayGUIDispenser | ( | TileEntityDispenser | par1TileEntityDispenser) |
Displays the dipsenser GUI for the passed in dispenser entity. Args: TileEntityDispenser
void net.minecraft.entity.player.EntityPlayer.displayGUIEditSign | ( | TileEntity | par1TileEntity) |
Displays the GUI for editing a sign. Args: tileEntitySign
void net.minecraft.entity.player.EntityPlayer.displayGUIEnchantment | ( | int | par1, |
int | par2, | ||
int | par3, | ||
String | par4Str | ||
) |
void net.minecraft.entity.player.EntityPlayer.displayGUIFurnace | ( | TileEntityFurnace | par1TileEntityFurnace) |
Displays the furnace GUI for the passed in furnace entity. Args: tileEntityFurnace
void net.minecraft.entity.player.EntityPlayer.displayGUIHopper | ( | TileEntityHopper | par1TileEntityHopper) |
void net.minecraft.entity.player.EntityPlayer.displayGUIHopperMinecart | ( | EntityMinecartHopper | par1EntityMinecartHopper) |
void net.minecraft.entity.player.EntityPlayer.displayGUIMerchant | ( | IMerchant | par1IMerchant, |
String | par2Str | ||
) |
void net.minecraft.entity.player.EntityPlayer.displayGUIWorkbench | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
Displays the crafting GUI for a workbench.
EntityItem net.minecraft.entity.player.EntityPlayer.dropOneItem | ( | boolean | par1) |
Called when player presses the drop item key
EntityItem net.minecraft.entity.player.EntityPlayer.dropPlayerItem | ( | ItemStack | par1ItemStack) |
Args: itemstack - called when player drops an item stack that's not in his inventory (like items still placed in a workbench while the workbench'es GUI gets closed)
EntityItem net.minecraft.entity.player.EntityPlayer.dropPlayerItemWithRandomChoice | ( | ItemStack | par1ItemStack, |
boolean | par2 | ||
) |
Args: itemstack, flag
|
protectedvirtual |
Reimplemented from net.minecraft.entity.EntityLiving.
|
protected |
Called when the mob is falling. Calculates and applies fall damage.
boolean net.minecraft.entity.player.EntityPlayer.func_71066_bF | ( | ) |
|
protected |
float net.minecraft.entity.player.EntityPlayer.func_82243_bO | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.func_94059_bO | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.func_94062_bN | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.func_96092_aw | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.func_96122_a | ( | EntityPlayer | par1EntityPlayer) |
boolean net.minecraft.entity.player.EntityPlayer.func_98034_c | ( | EntityPlayer | par1EntityPlayer) |
ChunkCoordinates net.minecraft.entity.player.EntityPlayer.getBedLocation | ( | ) |
Returns the location of the bed the player will respawn at, or null if the player has not slept in a bed.
float net.minecraft.entity.player.EntityPlayer.getBedOrientationInDegrees | ( | ) |
Returns the orientation of the bed in degrees.
String net.minecraft.entity.player.EntityPlayer.getCommandSenderName | ( | ) |
Gets the name of this command sender (usually username, but possibly "Rcon")
Implements net.minecraft.command.ICommandSender.
ItemStack net.minecraft.entity.player.EntityPlayer.getCurrentArmor | ( | int | par1) |
ItemStack net.minecraft.entity.player.EntityPlayer.getCurrentEquippedItem | ( | ) |
Returns the currently being used item by the player.
ItemStack net.minecraft.entity.player.EntityPlayer.getCurrentItemOrArmor | ( | int | par1) |
0 = item, 1-n is armor
float net.minecraft.entity.player.EntityPlayer.getCurrentPlayerStrVsBlock | ( | Block | par1Block, |
boolean | par2 | ||
) |
Returns how strong the player is against the specified block at this moment Deprecated in favor of the more sensitive version
float net.minecraft.entity.player.EntityPlayer.getCurrentPlayerStrVsBlock | ( | Block | par1Block, |
boolean | par2, | ||
int | meta | ||
) |
String net.minecraft.entity.player.EntityPlayer.getEntityName | ( | ) |
Gets the username of the entity.
|
protected |
Get the experience points the entity currently has.
float net.minecraft.entity.player.EntityPlayer.getEyeHeight | ( | ) |
FoodStats net.minecraft.entity.player.EntityPlayer.getFoodStats | ( | ) |
Returns the player's FoodStats object.
ItemStack net.minecraft.entity.player.EntityPlayer.getHeldItem | ( | ) |
Returns the item that this EntityLiving is holding, if any.
|
protected |
boolean net.minecraft.entity.player.EntityPlayer.getHideCape | ( | ) |
InventoryEnderChest net.minecraft.entity.player.EntityPlayer.getInventoryEnderChest | ( | ) |
Returns the InventoryEnderChest of this player.
Gets the Icon Index of the item currently held
ItemStack net.minecraft.entity.player.EntityPlayer.getItemInUse | ( | ) |
returns the ItemStack containing the itemInUse
int net.minecraft.entity.player.EntityPlayer.getItemInUseCount | ( | ) |
Returns the item in use count
int net.minecraft.entity.player.EntityPlayer.getItemInUseDuration | ( | ) |
gets the duration for how long the current itemInUse has been in use
ItemStack [] net.minecraft.entity.player.EntityPlayer.getLastActiveItems | ( | ) |
|
virtual |
Implements net.minecraft.entity.EntityLiving.
int net.minecraft.entity.player.EntityPlayer.getMaxInPortalTime | ( | ) |
Return the amount of time this entity should stay in a portal before being transported.
int net.minecraft.entity.player.EntityPlayer.getPortalCooldown | ( | ) |
Return the amount of cooldown before this entity can use a portal again.
int net.minecraft.entity.player.EntityPlayer.getScore | ( | ) |
int net.minecraft.entity.player.EntityPlayer.getSleepTimer | ( | ) |
ScorePlayerTeam net.minecraft.entity.player.EntityPlayer.getTeam | ( | ) |
int net.minecraft.entity.player.EntityPlayer.getTotalArmorValue | ( | ) |
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
String net.minecraft.entity.player.EntityPlayer.getTranslatedEntityName | ( | ) |
Returns the translated name of the entity.
StringTranslate net.minecraft.entity.player.EntityPlayer.getTranslator | ( | ) |
Scoreboard net.minecraft.entity.player.EntityPlayer.getWorldScoreboard | ( | ) |
double net.minecraft.entity.player.EntityPlayer.getYOffset | ( | ) |
Returns the Y Offset of this entity.
void net.minecraft.entity.player.EntityPlayer.handleHealthUpdate | ( | byte | par1) |
boolean net.minecraft.entity.player.EntityPlayer.interactWith | ( | Entity | par1Entity) |
boolean net.minecraft.entity.player.EntityPlayer.isBlocking | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.isEntityInsideOpaqueBlock | ( | ) |
Checks if this entity is inside of an opaque block
|
protected |
Dead and sleeping entities cannot move
|
protected |
Only use is to identify if class is an instance of player for experience dropping
boolean net.minecraft.entity.player.EntityPlayer.isPlayerFullyAsleep | ( | ) |
Returns whether or not the player is asleep and the screen has fully faded.
boolean net.minecraft.entity.player.EntityPlayer.isPlayerSleeping | ( | ) |
Returns whether player is sleeping or not
boolean net.minecraft.entity.player.EntityPlayer.isSpawnForced | ( | ) |
boolean net.minecraft.entity.player.EntityPlayer.isUsingItem | ( | ) |
Checks if the entity is currently using an item (e.g., bow, food, sword) by holding down the useItemButton
void net.minecraft.entity.player.EntityPlayer.joinEntityItemWithWorld | ( | EntityItem | par1EntityItem) |
Joins the passed in entity item with the world. Args: entityItem
|
protected |
Causes this entity to do an upwards motion (jumping).
void net.minecraft.entity.player.EntityPlayer.mountEntity | ( | Entity | par1Entity) |
Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
void net.minecraft.entity.player.EntityPlayer.moveEntityWithHeading | ( | float | par1, |
float | par2 | ||
) |
Moves the entity based on the specified heading. Args: strafe, forward
void net.minecraft.entity.player.EntityPlayer.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.EntityPlayer.onDeath | ( | DamageSource | par1DamageSource) |
Called when the mob's health reaches 0.
void net.minecraft.entity.player.EntityPlayer.onEnchantmentCritical | ( | Entity | par1Entity) |
|
protected |
Used for when item use count runs out, ie: eating completed
void net.minecraft.entity.player.EntityPlayer.onKillEntity | ( | EntityLiving | par1EntityLiving) |
This method gets called when the entity kills another one.
void net.minecraft.entity.player.EntityPlayer.onLivingUpdate | ( | ) |
Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.
void net.minecraft.entity.player.EntityPlayer.onUpdate | ( | ) |
Called to update the entity's position/logic.
void net.minecraft.entity.player.EntityPlayer.openGui | ( | Object | mod, |
int | modGuiId, | ||
World | world, | ||
int | x, | ||
int | y, | ||
int | z | ||
) |
void net.minecraft.entity.player.EntityPlayer.playSound | ( | String | par1Str, |
float | par2, | ||
float | par3 | ||
) |
void net.minecraft.entity.player.EntityPlayer.preparePlayerToSpawn | ( | ) |
Keeps moving the entity up so it isn't colliding with blocks and other requirements for this entity to be spawned (only actually used on players though its also on Entity)
|
virtual |
(abstract) Protected helper method to read subclass entity data from NBT.
Reimplemented from net.minecraft.entity.EntityLiving.
Reimplemented in net.minecraft.entity.player.EntityPlayerMP.
|
protected |
sets the players height back to normal after doing things like sleeping and dieing
void net.minecraft.entity.player.EntityPlayer.respawnPlayer | ( | ) |
void net.minecraft.entity.player.EntityPlayer.sendPlayerAbilities | ( | ) |
Sends the player's abilities to the server (if there is one).
void net.minecraft.entity.player.EntityPlayer.setCurrentItemOrArmor | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot
void net.minecraft.entity.player.EntityPlayer.setDead | ( | ) |
Will get destroyed next tick.
void net.minecraft.entity.player.EntityPlayer.setGameType | ( | EnumGameType | par1EnumGameType) |
Sets the player's game mode and sends it to them.
|
protected |
void net.minecraft.entity.player.EntityPlayer.setInWeb | ( | ) |
Sets the Entity inside a web block.
void net.minecraft.entity.player.EntityPlayer.setItemInUse | ( | ItemStack | par1ItemStack, |
int | par2 | ||
) |
sets the itemInUse when the use item button is clicked. Args: itemstack, int maxItemUseDuration
void net.minecraft.entity.player.EntityPlayer.setScore | ( | int | par1) |
Set player's score
void net.minecraft.entity.player.EntityPlayer.setSpawnChunk | ( | ChunkCoordinates | par1ChunkCoordinates, |
boolean | par2 | ||
) |
Defines a spawn coordinate to player spawn. Used by bed after the player sleep on it.
boolean net.minecraft.entity.player.EntityPlayer.shouldHeal | ( | ) |
Checks if the player's health is not full and not zero.
EnumStatus net.minecraft.entity.player.EntityPlayer.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.EntityPlayer.stopUsingItem | ( | ) |
String net.minecraft.entity.player.EntityPlayer.translateString | ( | String | par1Str, |
Object... | par2ArrayOfObj | ||
) |
Translates and formats the given string key with the given arguments.
Implements net.minecraft.command.ICommandSender.
void net.minecraft.entity.player.EntityPlayer.triggerAchievement | ( | StatBase | par1StatBase) |
Will trigger the specified trigger.
|
protected |
|
protected |
Plays sounds and makes particles for item in use state
void net.minecraft.entity.player.EntityPlayer.updateRidden | ( | ) |
Handles updating while being ridden by an entity
|
static |
Ensure that a block enabling respawning exists at the specified coordinates and find an empty space nearby to spawn.
void net.minecraft.entity.player.EntityPlayer.wakeUpPlayer | ( | boolean | par1, |
boolean | par2, | ||
boolean | par3 | ||
) |
Wake up the player if they're sleeping.
|
virtual |
(abstract) Protected helper method to write subclass entity data to NBT.
Reimplemented from net.minecraft.entity.EntityLiving.
Reimplemented in net.minecraft.entity.player.EntityPlayerMP.
int net.minecraft.entity.player.EntityPlayer.xpBarCap | ( | ) |
This method returns the cap amount of experience that the experience bar can hold. With each level, the experience cap on the player's experience bar is raised by 10.
float net.minecraft.entity.player.EntityPlayer.cameraYaw |
PlayerCapabilities net.minecraft.entity.player.EntityPlayer.capabilities = new PlayerCapabilities() |
The player's capabilities. (See class PlayerCapabilities)
float net.minecraft.entity.player.EntityPlayer.experience |
The current amount of experience the player has within their Experience Bar.
int net.minecraft.entity.player.EntityPlayer.experienceLevel |
The current experience level the player is on.
int net.minecraft.entity.player.EntityPlayer.experienceTotal |
The total amount of experience the player has. This also includes the amount of experience within their Experience Bar.
float net.minecraft.entity.player.EntityPlayer.field_71079_bU |
float net.minecraft.entity.player.EntityPlayer.field_71082_cx |
double net.minecraft.entity.player.EntityPlayer.field_71085_bR |
float net.minecraft.entity.player.EntityPlayer.field_71089_bV |
double net.minecraft.entity.player.EntityPlayer.field_71091_bM |
double net.minecraft.entity.player.EntityPlayer.field_71094_bP |
double net.minecraft.entity.player.EntityPlayer.field_71095_bQ |
double net.minecraft.entity.player.EntityPlayer.field_71096_bN |
double net.minecraft.entity.player.EntityPlayer.field_71097_bO |
byte net.minecraft.entity.player.EntityPlayer.field_71098_bD = 0 |
EntityFishHook net.minecraft.entity.player.EntityPlayer.fishEntity = null |
An instance of a fishing rod's hook. If this isn't null, the icon image of the fishing rod is slightly different
|
protected |
Used to tell if the player pressed jump twice. If this is at 0 and it's pressed (And they are allowed to fly, as defined in the player's movementInput) it sets this to 7. If it's pressed and it's greater than 0 enable fly.
The player's food stats. (See class FoodStats)
InventoryPlayer net.minecraft.entity.player.EntityPlayer.inventory = new InventoryPlayer(this) |
Inventory of the player
Container net.minecraft.entity.player.EntityPlayer.inventoryContainer |
The Container for the player's inventory (which opens when they press E)
int net.minecraft.entity.player.EntityPlayer.maxHealth = 20 |
Container net.minecraft.entity.player.EntityPlayer.openContainer |
The Container the player has open.
|
static |
ChunkCoordinates net.minecraft.entity.player.EntityPlayer.playerLocation |
The chunk coordinates of the bed the player is in (null if player isn't in a bed).
float net.minecraft.entity.player.EntityPlayer.prevCameraYaw |
|
protected |
Boolean value indicating weather a player is sleeping or not
int net.minecraft.entity.player.EntityPlayer.sleepTimer |
|
protected |
|
protected |
String net.minecraft.entity.player.EntityPlayer.username |
int net.minecraft.entity.player.EntityPlayer.xpCooldown = 0 |
Used by EntityPlayer to prevent too many xp orbs from getting absorbed at once.