|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.entity.Entity
net.minecraft.entity.EntityLiving
net.minecraft.entity.player.EntityPlayer
net.minecraft.client.entity.EntityPlayerSP
public class EntityPlayerSP
| 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 |
| 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. |
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 |
playSound(String par1Str,
float par2,
float par3)
|
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 java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public MovementInput movementInput
public int sprintingTicksLeft
public float renderArmYaw
public float renderArmPitch
public float prevRenderArmYaw
public float prevRenderArmPitch
public float timeInPortal
public float prevTimeInPortal
| Constructor Detail |
|---|
public EntityPlayerSP(Minecraft par1Minecraft,
World par2World,
Session par3Session,
int par4)
| Method Detail |
|---|
public void moveEntity(double par1,
double par3,
double par5)
moveEntity in class Entitypublic void updateEntityActionState()
public void onLivingUpdate()
onLivingUpdate in class EntityPlayerpublic float getFOVMultiplier()
public void updateCloak()
updateCloak in class Entitypublic void closeScreen()
closeScreen in class EntityPlayerpublic void displayGUIEditSign(TileEntity par1TileEntity)
displayGUIEditSign in class EntityPlayerpublic void displayGUIBook(ItemStack par1ItemStack)
displayGUIBook in class EntityPlayerpublic void displayGUIChest(IInventory par1IInventory)
displayGUIChest in class EntityPlayer
public void displayGUIWorkbench(int par1,
int par2,
int par3)
displayGUIWorkbench in class EntityPlayer
public void displayGUIEnchantment(int par1,
int par2,
int par3)
displayGUIEnchantment in class EntityPlayer
public void displayGUIAnvil(int par1,
int par2,
int par3)
displayGUIAnvil in class EntityPlayerpublic void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)
displayGUIFurnace in class EntityPlayerpublic void displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)
displayGUIBrewingStand in class EntityPlayerpublic void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
displayGUIBeacon in class EntityPlayerpublic void displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)
displayGUIDispenser in class EntityPlayerpublic void displayGUIMerchant(IMerchant par1IMerchant)
displayGUIMerchant in class EntityPlayerpublic void onCriticalHit(Entity par1Entity)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity par1Entity)
onEnchantmentCritical in class EntityPlayer
public void onItemPickup(Entity par1Entity,
int par2)
onItemPickup in class EntityLivingpublic boolean isSneaking()
isSneaking in class Entitypublic void setHealth(int par1)
public void addChatMessage(String par1Str)
addChatMessage in class EntityPlayer
public void addStat(StatBase par1StatBase,
int par2)
addStat in class EntityPlayerpublic void setSprinting(boolean par1)
setSprinting in class Entity
public void setXPStats(float par1,
int par2,
int par3)
public void sendChatToPlayer(String par1Str)
public boolean canCommandSenderUseCommand(int par1,
String par2Str)
public ChunkCoordinates getPlayerCoordinates()
public ItemStack getHeldItem()
getHeldItem in class EntityPlayer
public void playSound(String par1Str,
float par2,
float par3)
playSound in class EntityPlayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||