|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.src.Entity
net.minecraft.src.EntityLiving
net.minecraft.src.EntityPlayer
net.minecraft.src.EntityPlayerMP
public class EntityPlayerMP
| Field Summary | |
|---|---|
int |
currentWindowId
The currently in use window ID. |
List |
destroyedItemsNetCache
entities added to this list will be packet29'd to the player |
List |
loadedChunks
LinkedList that holds the loaded chunks. |
double |
managedPosX
player X position as seen by PlayerManager |
double |
managedPosZ
player Z position as seen by PlayerManager |
MinecraftServer |
mcServer
Reference to the MinecraftServer object. |
int |
ping
|
boolean |
playerConqueredTheEnd
Set when a player beats the ender dragon, used to respawn the player at the spawn point while retaining inventory and XP |
boolean |
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 |
playerNetServerHandler
The NetServerHandler assigned to this player by the ServerConfigurationManager. |
ItemInWorldManager |
theItemInWorldManager
The ItemInWorldManager belonging to this player |
| 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 |
| Constructor Summary | |
|---|---|
EntityPlayerMP(MinecraftServer par1MinecraftServer,
World par2World,
String par3Str,
ItemInWorldManager par4ItemInWorldManager)
|
|
| Method Summary | |
|---|---|
void |
addChatMessage(String par1Str)
Add a chat message to the player |
void |
addSelfToInternalCraftingInventory()
|
void |
addStat(StatBase par1StatBase,
int par2)
Adds a value to a statistic field. |
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
canCommandSenderUseCommand(String par1Str)
Returns true if the command sender is allowed to use the given command. |
void |
closeInventory()
|
void |
closeScreen()
sets current screen to null (used on escape buttons of GUIs) |
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 |
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. |
String |
func_71114_r()
|
int |
getChatVisibility()
|
ItemStack |
getCurrentItemOrArmor(int par1)
0 = item, 1-n is armor |
float |
getEyeHeight()
|
ItemStack[] |
getLastActiveItems()
|
WorldServer |
getServerForPlayer()
|
StringTranslate |
getTranslator()
|
void |
incrementWindowID()
|
void |
mountEntity(Entity par1Entity)
Called when a player mounts an entity. |
void |
mountEntityAndWakeUp()
|
void |
onCriticalHit(Entity par1Entity)
Called when the player performs a critical hit on the Entity. |
void |
onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0. |
void |
onEnchantmentCritical(Entity par1Entity)
|
void |
onItemPickup(Entity par1Entity,
int par2)
Called whenever an item is picked up from walking over it. |
void |
onUpdate()
Called to update the entity's position/logic. |
void |
onUpdateEntity()
|
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
removeExperience(int par1)
Decrease the player level, used to pay levels for enchantments on items at enchanted table. |
void |
requestTexturePackLoad(String par1Str,
int par2)
on recieving this message the client (if permission is given) will download the requested textures |
void |
sendChatToPlayer(String par1Str)
|
void |
sendContainerAndContentsToPlayer(Container par1Container,
List par2List)
|
void |
sendContainerToPlayer(Container par1Container)
|
void |
sendGameTypeToPlayer(EnumGameType par1EnumGameType)
|
void |
sendInventoryToPlayer()
|
void |
sendPlayerAbilities()
Sends the player's abilities to the server (if there is one). |
void |
setItemInUse(ItemStack par1ItemStack,
int par2)
sets the itemInUse when the use item button is clicked. |
void |
setPlayerHealthUpdated()
this function is called when a players inventory is sent to him, lastHealth is updated on any dimension transitions, then reset. |
void |
setPositionAndUpdate(double par1,
double par3,
double par5)
Move the entity to the coordinates informed, but keep yaw/pitch values. |
EnumStatus |
sleepInBedAt(int par1,
int par2,
int par3)
Attempts to have the player sleep in a bed at the specified location. |
void |
swingItem()
Swings the item the player is holding. |
void |
travelToTheEnd(int par1)
|
void |
updateClientInfo(Packet204ClientInfo par1Packet204ClientInfo)
|
void |
updateCraftingInventoryInfo(Container par1Container,
int par2,
int par3)
send information about the crafting inventory to the client(currently only for furnace times) |
void |
updateCraftingInventorySlot(Container par1Container,
int par2,
ItemStack par3ItemStack)
inform the player of a change in a single slot |
void |
updateFlyingState(double par1,
boolean par3)
likeUpdateFallState, but called from updateFlyingState, rather than moveEntity |
void |
wakeUpPlayer(boolean par1,
boolean par2,
boolean par3)
Wake up the player if they're sleeping. |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public NetServerHandler playerNetServerHandler
public MinecraftServer mcServer
public ItemInWorldManager theItemInWorldManager
public double managedPosX
public double managedPosZ
public final List loadedChunks
public final List destroyedItemsNetCache
public int currentWindowId
public boolean playerInventoryBeingManipulated
public int ping
public boolean playerConqueredTheEnd
| Constructor Detail |
|---|
public EntityPlayerMP(MinecraftServer par1MinecraftServer,
World par2World,
String par3Str,
ItemInWorldManager par4ItemInWorldManager)
| Method Detail |
|---|
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT in class EntityPlayerpublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT in class EntityPlayerpublic void removeExperience(int par1)
removeExperience in class EntityPlayerpublic void addSelfToInternalCraftingInventory()
public ItemStack[] getLastActiveItems()
getLastActiveItems in class Entitypublic float getEyeHeight()
getEyeHeight in class EntityPlayerpublic void onUpdate()
onUpdate in class EntityPlayerpublic void onUpdateEntity()
public ItemStack getCurrentItemOrArmor(int par1)
public void onDeath(DamageSource par1DamageSource)
onDeath in class EntityPlayer
public boolean attackEntityFrom(DamageSource par1DamageSource,
int par2)
attackEntityFrom in class EntityPlayerpublic void travelToTheEnd(int par1)
travelToTheEnd in class EntityPlayer
public void onItemPickup(Entity par1Entity,
int par2)
onItemPickup in class EntityPlayerpublic void swingItem()
swingItem in class EntityPlayer
public EnumStatus sleepInBedAt(int par1,
int par2,
int par3)
sleepInBedAt in class EntityPlayer
public void wakeUpPlayer(boolean par1,
boolean par2,
boolean par3)
wakeUpPlayer in class EntityPlayerpublic void mountEntity(Entity par1Entity)
mountEntity in class Entity
public void updateFlyingState(double par1,
boolean par3)
public void incrementWindowID()
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 EntityPlayerpublic void displayGUIChest(IInventory par1IInventory)
displayGUIChest in class EntityPlayerpublic void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)
displayGUIFurnace in class EntityPlayerpublic void displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)
displayGUIDispenser in class EntityPlayerpublic void displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)
displayGUIBrewingStand in class EntityPlayerpublic void displayGUIMerchant(IMerchant par1IMerchant)
displayGUIMerchant in class EntityPlayer
public void updateCraftingInventorySlot(Container par1Container,
int par2,
ItemStack par3ItemStack)
updateCraftingInventorySlot in interface ICraftingpublic void sendContainerToPlayer(Container par1Container)
public void sendContainerAndContentsToPlayer(Container par1Container,
List par2List)
sendContainerAndContentsToPlayer in interface ICrafting
public void updateCraftingInventoryInfo(Container par1Container,
int par2,
int par3)
updateCraftingInventoryInfo in interface ICraftingpublic void closeScreen()
closeScreen in class EntityPlayerpublic void sendInventoryToPlayer()
public void closeInventory()
public void addStat(StatBase par1StatBase,
int par2)
addStat in class EntityPlayerpublic void mountEntityAndWakeUp()
public void setPlayerHealthUpdated()
public void addChatMessage(String par1Str)
addChatMessage in class EntityPlayer
public void setItemInUse(ItemStack par1ItemStack,
int par2)
setItemInUse in class EntityPlayer
public void setPositionAndUpdate(double par1,
double par3,
double par5)
setPositionAndUpdate in class EntityLivingpublic void onCriticalHit(Entity par1Entity)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity par1Entity)
onEnchantmentCritical in class EntityPlayerpublic void sendPlayerAbilities()
sendPlayerAbilities in class EntityPlayerpublic WorldServer getServerForPlayer()
public void sendGameTypeToPlayer(EnumGameType par1EnumGameType)
sendGameTypeToPlayer in class EntityPlayerpublic void sendChatToPlayer(String par1Str)
sendChatToPlayer in interface ICommandSenderpublic boolean canCommandSenderUseCommand(String par1Str)
canCommandSenderUseCommand in interface ICommandSenderpublic String func_71114_r()
public void updateClientInfo(Packet204ClientInfo par1Packet204ClientInfo)
public StringTranslate getTranslator()
getTranslator in class EntityPlayerpublic int getChatVisibility()
public void requestTexturePackLoad(String par1Str,
int par2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||