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.client.entity
Class EntityPlayerSP

    java.lang.Object
      net.minecraft.entity.Entity
          net.minecraft.entity.EntityLiving
              net.minecraft.entity.player.EntityPlayer
                  net.minecraft.client.entity.EntityPlayerSP

All Implemented Interfaces:
  ICommandSender

Direct Known Subclasses:
  EntityClientPlayerMP

    public class EntityPlayerSP

extends EntityPlayer

Field Summary
`MovementInput` | `movementInput`
`float` | `prevRenderArmPitch`
`float` | `prevRenderArmYaw`
`float` | `prevTimeInPortal` The amount of time an entity has been in a Portal the previous tick
`float` | `renderArmPitch`
`float` | `renderArmYaw`
`int` | `sprintingTicksLeft` Ticks left before sprinting is disabled.
`float` | `timeInPortal` The amount of time an entity has been in a Portal

Fields inherited from class net.minecraft.entity.player.EntityPlayer
`cameraYaw, capabilities, 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, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerCloakUrl, playerLocation, prevCameraYaw, username, xpCooldown`

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

Fields inherited from class net.minecraft.entity.Entity
`addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dimension, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_82151_R, 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, timeUntilPortal, 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(int par1, String par2Str)` 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` | `displayGUIAnvil(int par1, int par2, int par3)` Displays the GUI for interacting with an anvil.
`void` | `displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)` Displays the GUI for interacting with a beacon.
`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(TileEntity par1TileEntity)` 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.
`void` | `func_85030_a(String par1Str, float par2, float par3)`
`float` | `getFOVMultiplier()` Gets the player's field of view multiplier.
`ItemStack` | `getHeldItem()` Returns the item that this EntityLiving is holding, if any.
`ChunkCoordinates` | `getPlayerCoordinates()` Return the coordinates for this player as ChunkCoordinates.
`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` | `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()`

Methods inherited from class net.minecraft.entity.player.EntityPlayer
`addExhaustion, addExperience, addExperienceLevel, addMovementStat, addToPlayerScore, attackEntityFrom, attackTargetEntityWithCurrentItem, canCurrentToolHarvestBlock, canEat, canHarvestBlock, canPlayerEdit, clearItemInUse, clonePlayer, destroyCurrentEquippedItem, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, func_71066_bF, func_82243_bO, func_85039_t, func_85040_s, getBedLocation, getBedOrientationInDegrees, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getEntityName, getEyeHeight, getFoodStats, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxHealth, getMaxInPortalTime, getPortalCooldown, getScore, getSleepTimer, getTotalArmorValue, getTranslator, getYOffset, handleHealthUpdate, interactWith, isBlocking, isEntityInsideOpaqueBlock, isPlayerFullyAsleep, isPlayerSleeping, isSpawnForced, isUsingItem, joinEntityItemWithWorld, moveEntityWithHeading, onDeath, onKillEntity, onUpdate, openGui, preparePlayerToSpawn, readEntityFromNBT, respawnPlayer, sendGameTypeToPlayer, sendPlayerAbilities, setCurrentItemOrArmor, setDead, setInWeb, setItemInUse, setSpawnChunk, shouldHeal, sleepInBedAt, stopUsingItem, translateString, triggerAchievement, updateRidden, verifyRespawnCoordinates, wakeUpPlayer, writeEntityToNBT, xpBarCap`

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

Methods inherited from class net.minecraft.entity.Entity
`addEntityID, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_82146_a, func_82148_at, func_82149_j, func_85029_a, func_85031_j, func_85032_ar, generatePersistentID, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getHasActivePotion, 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, setHasActivePotion, setInPortal, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldRiderSit, toString, travelToDimension, 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

### timeInPortal

    public float timeInPortal

  The amount of time an entity has been in a Portal

### prevTimeInPortal

    public float prevTimeInPortal

  The amount of time an entity has been in a Portal the previous tick

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)

### updateCloak

    public void updateCloak()

  Overrides:
    `updateCloak` in class `Entity`

### closeScreen

    public void closeScreen()

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

  Overrides:
    `closeScreen` in class `EntityPlayer`

### displayGUIEditSign

    public void displayGUIEditSign(TileEntity par1TileEntity)

  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`

### displayGUIAnvil

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

  Displays the GUI for interacting with an anvil.

  Overrides:
    `displayGUIAnvil` 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`

### displayGUIBeacon

    public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)

  Displays the GUI for interacting with a beacon.

  Overrides:
    `displayGUIBeacon` 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 `EntityLiving`

### 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(int par1,
                                              String par2Str)

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

### getPlayerCoordinates

    public ChunkCoordinates getPlayerCoordinates()

  Return the coordinates for this player as ChunkCoordinates.

### getHeldItem

    public ItemStack getHeldItem()

  Returns the item that this EntityLiving is holding, if any.

  Overrides:
    `getHeldItem` in class `EntityPlayer`

### func_85030_a

    public void func_85030_a(String par1Str,
                             float par2,
                             float par3)

  Overrides:
    `func_85030_a` in class `EntityPlayer`

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