Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.minecraft.src
Class EntityPlayerSP

    java.lang.Object
      net.minecraft.src.Entity
          net.minecraft.src.EntityLiving
              net.minecraft.src.EntityPlayer
                  net.minecraft.src.EntityPlayerSP

All Implemented Interfaces:
  ICommandSender

Direct Known Subclasses:
  EntityClientPlayerMP

    public class EntityPlayerSP

extends EntityPlayer

Field Summary
`MovementInput` | `movementInput`
`float` | `prevRenderArmPitch`
`float` | `prevRenderArmYaw`
`float` | `renderArmPitch`
`float` | `renderArmYaw`
`int` | `sprintingTicksLeft` Ticks left before sprinting is disabled.

Fields inherited from class net.minecraft.src.EntityPlayer
`cameraYaw, capabilities, craftingInventory, dimension, experience, experienceLevel, experienceTotal, 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, field_71098_bD, fishEntity, inventory, inventorySlots, isSwinging, playerCloakUrl, playerLocation, prevCameraYaw, prevTimeInPortal, score, swingProgressInt, timeInPortal, timeUntilPortal, username, xpCooldown`

Fields inherited from class net.minecraft.src.EntityLiving
`arrowHitTempCounter, arrowHitTimer, attackedAtYaw, attackTime, cameraPitch, carryoverDamage, deathTime, field_70730_aX, field_70731_aW, field_70769_ao, field_70770_ap, hurtTime, isJumping, jumpMovementFactor, landMovementFactor, legSwing, legYaw, maxHurtResistantTime, maxHurtTime, prevCameraPitch, prevHealth, prevLegYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress, tasks`

Fields inherited from class net.minecraft.src.Entity
`addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize`

Constructor Summary
`EntityPlayerSP(Minecraft par1Minecraft, World par2World, Session par3Session, int par4)`

Method Summary
`void` | `addChatMessage(String par1Str)` Add a chat message to the player
`void` | `addStat(StatBase par1StatBase, int par2)` Adds a value to a statistic field.
`boolean` | `canCommandSenderUseCommand(String par1Str)` Returns true if the command sender is allowed to use the given command.
`void` | `closeScreen()` sets current screen to null (used on escape buttons of GUIs)
`void` | `displayGUIBook(ItemStack par1ItemStack)` Displays the GUI for interacting with a book.
`void` | `displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)` Displays the GUI for interacting with a brewing stand.
`void` | `displayGUIChest(IInventory par1IInventory)` Displays the GUI for interacting with a chest inventory.
`void` | `displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)` Displays the dipsenser GUI for the passed in dispenser entity.
`void` | `displayGUIEditSign(TileEntitySign par1TileEntitySign)` Displays the GUI for editing a sign.
`void` | `displayGUIEnchantment(int par1, int par2, int par3)`
`void` | `displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)` Displays the furnace GUI for the passed in furnace entity.
`void` | `displayGUIMerchant(IMerchant par1IMerchant)`
`void` | `displayGUIWorkbench(int par1, int par2, int par3)` Displays the crafting GUI for a workbench.
`float` | `getFOVMultiplier()` Gets the player's field of view multiplier.
`boolean` | `isSneaking()` Returns if this entity is sneaking.
`void` | `moveEntity(double par1, double par3, double par5)` Tries to moves the entity by the passed in displacement.
`void` | `onCriticalHit(Entity par1Entity)` Called when the player performs a critical hit on the Entity.
`void` | `onEnchantmentCritical(Entity par1Entity)`
`void` | `onItemPickup(Entity par1Entity, int par2)` Called whenever an item is picked up from walking over it.
`void` | `onLivingUpdate()` Called frequently so the entity can update its state every tick as required.
`void` | `readEntityFromNBT(NBTTagCompound par1NBTTagCompound)` (abstract) Protected helper method to read subclass entity data from NBT.
`void` | `sendChatToPlayer(String par1Str)`
`void` | `setHealth(int par1)` Updates health locally.
`void` | `setSprinting(boolean par1)` Set sprinting switch for Entity.
`void` | `setXPStats(float par1, int par2, int par3)` Sets the current XP, total XP, and level number.
`void` | `updateCloak()`
`void` | `updateEntityActionState()`
`void` | `writeEntityToNBT(NBTTagCompound par1NBTTagCompound)` (abstract) Protected helper method to write subclass entity data to NBT.

Methods inherited from class net.minecraft.src.EntityPlayer
`addExhaustion, addExperience, addMovementStat, addToPlayerScore, attackEntityFrom, attackTargetEntityWithCurrentItem, canEat, canHarvestBlock, canPlayerEdit, clearItemInUse, clonePlayer, destroyCurrentEquippedItem, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, func_71066_bF, getBedOrientationInDegrees, getCommandSenderName, getCurrentEquippedItem, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getEntityName, getEyeHeight, getFoodStats, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getMaxHealth, getScore, getSleepTimer, getSpawnChunk, getTotalArmorValue, getTranslator, getYOffset, handleHealthUpdate, interactWith, isBlocking, isEntityInsideOpaqueBlock, isPlayerFullyAsleep, isPlayerSleeping, isUsingItem, joinEntityItemWithWorld, moveEntityWithHeading, onDeath, onKillEntity, onUpdate, openGui, preparePlayerToSpawn, removeExperience, respawnPlayer, sendGameTypeToPlayer, sendPlayerAbilities, setDead, setInPortal, setItemInUse, setSpawnChunk, shouldHeal, sleepInBedAt, stopUsingItem, swingItem, translateString, travelToTheEnd, triggerAchievement, updateRidden, verifyRespawnCoordinates, wakeUpPlayer, xpBarCap`

Methods inherited from class net.minecraft.src.EntityLiving
`addPotionEffect, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, detachHome, eatGrassBonus, faceEntity, func_70079_am, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAttackTarget, getCanSpawnHere, getCreatureAttribute, getEntitySenses, getHealth, getHeldItem, getHomePosition, getJumpHelper, getLastAttackingEntity, getLook, getLookHelper, getLookVec, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPosition, getRenderSizeModifier, getRNG, getSwingProgress, getTalkInterval, getTexture, getVerticalFaceSpeed, hasHome, heal, isChild, isEntityAlive, isEntityUndead, isExplosiveMob, isOnLadder, isPotionActive, isPotionApplicable, isWithinHomeDistance, isWithinHomeDistanceCurrentPosition, knockBack, onEntityUpdate, performHurtAnimation, playLivingSound, rayTrace, removePotionEffect, renderBrokenItemStack, setAIMoveSpeed, setAttackTarget, setEntityHealth, setHeadRotationYaw, setHomeArea, setJumping, setLastAttackingEntity, setMoveForward, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, spawnExplosionParticle`

Methods inherited from class net.minecraft.src.Entity
`addEntityID, addVelocity, applyEntityCollision, canAttackWithItem, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_70062_b, generatePersistentID, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getLastActiveItems, getMountedYOffset, getParts, getPersistentID, getPickedResult, getShadowSize, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isEating, isEntityEqual, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSprinting, isWet, mountEntity, moveFlying, onCollideWithPlayer, onStruckByLightning, readFromNBT, setAir, setAngles, setEating, setFire, setInWeb, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldRiderSit, toString, unmountEntity, updateRiderPosition, writeToNBT`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### movementInput

    public MovementInput movementInput

### sprintingTicksLeft

    public int sprintingTicksLeft

  Ticks left before sprinting is disabled.

### renderArmYaw

    public float renderArmYaw

### renderArmPitch

    public float renderArmPitch

### prevRenderArmYaw

    public float prevRenderArmYaw

### prevRenderArmPitch

    public float prevRenderArmPitch

Constructor Detail

### EntityPlayerSP

    public EntityPlayerSP(Minecraft par1Minecraft,
                          World par2World,
                          Session par3Session,
                          int par4)

Method Detail

### moveEntity

    public void moveEntity(double par1,
                           double par3,
                           double par5)

  Tries to moves the entity by the passed in displacement. Args: x, y, z

  Overrides:
    `moveEntity` in class `Entity`

### updateEntityActionState

    public void updateEntityActionState()

### onLivingUpdate

    public void 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.

  Overrides:
    `onLivingUpdate` in class `EntityPlayer`

### getFOVMultiplier

    public float getFOVMultiplier()

  Gets the player's field of view multiplier. (ex. when flying)

### writeEntityToNBT

    public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)

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

  Overrides:
    `writeEntityToNBT` in class `EntityPlayer`

### updateCloak

    public void updateCloak()

  Overrides:
    `updateCloak` in class `Entity`

### readEntityFromNBT

    public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)

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

  Overrides:
    `readEntityFromNBT` in class `EntityPlayer`

### closeScreen

    public void closeScreen()

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

  Overrides:
    `closeScreen` in class `EntityPlayer`

### displayGUIEditSign

    public void displayGUIEditSign(TileEntitySign par1TileEntitySign)

  Displays the GUI for editing a sign. Args: tileEntitySign

  Overrides:
    `displayGUIEditSign` in class `EntityPlayer`

### displayGUIBook

    public void displayGUIBook(ItemStack par1ItemStack)

  Displays the GUI for interacting with a book.

  Overrides:
    `displayGUIBook` in class `EntityPlayer`

### displayGUIChest

    public void displayGUIChest(IInventory par1IInventory)

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

  Overrides:
    `displayGUIChest` in class `EntityPlayer`

### displayGUIWorkbench

    public void displayGUIWorkbench(int par1,
                                    int par2,
                                    int par3)

  Displays the crafting GUI for a workbench.

  Overrides:
    `displayGUIWorkbench` in class `EntityPlayer`

### displayGUIEnchantment

    public void displayGUIEnchantment(int par1,
                                      int par2,
                                      int par3)

  Overrides:
    `displayGUIEnchantment` in class `EntityPlayer`

### displayGUIFurnace

    public void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)

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

  Overrides:
    `displayGUIFurnace` in class `EntityPlayer`

### displayGUIBrewingStand

    public void displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)

  Displays the GUI for interacting with a brewing stand.

  Overrides:
    `displayGUIBrewingStand` in class `EntityPlayer`

### displayGUIDispenser

    public void displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)

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

  Overrides:
    `displayGUIDispenser` in class `EntityPlayer`

### displayGUIMerchant

    public void displayGUIMerchant(IMerchant par1IMerchant)

  Overrides:
    `displayGUIMerchant` in class `EntityPlayer`

### onCriticalHit

    public void onCriticalHit(Entity par1Entity)

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

  Overrides:
    `onCriticalHit` in class `EntityPlayer`

### onEnchantmentCritical

    public void onEnchantmentCritical(Entity par1Entity)

  Overrides:
    `onEnchantmentCritical` in class `EntityPlayer`

### onItemPickup

    public void onItemPickup(Entity par1Entity,
                             int par2)

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

  Overrides:
    `onItemPickup` in class `EntityPlayer`

### isSneaking

    public boolean isSneaking()

  Returns if this entity is sneaking.

  Overrides:
    `isSneaking` in class `Entity`

### setHealth

    public void setHealth(int par1)

  Updates health locally.

### addChatMessage

    public void addChatMessage(String par1Str)

  Add a chat message to the player

  Overrides:
    `addChatMessage` in class `EntityPlayer`

### addStat

    public void addStat(StatBase par1StatBase,
                        int par2)

  Adds a value to a statistic field.

  Overrides:
    `addStat` in class `EntityPlayer`

### setSprinting

    public void setSprinting(boolean par1)

  Set sprinting switch for Entity.

  Overrides:
    `setSprinting` in class `Entity`

### setXPStats

    public void setXPStats(float par1,
                           int par2,
                           int par3)

  Sets the current XP, total XP, and level number.

### sendChatToPlayer

    public void sendChatToPlayer(String par1Str)

### canCommandSenderUseCommand

    public boolean canCommandSenderUseCommand(String par1Str)

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD