public class EntityPlayerMP extends EntityPlayer implements ICrafting
| Modifier and Type | Field and Description |
|---|---|
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
|
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, fishEntity, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, sleepTimer, username, xpCooldownarrowHitTimer, attackedAtYaw, attackTime, cameraPitch, deathTime, field_110158_av, field_70769_ao, field_70770_ap, hurtTime, isSwingInProgress, jumpMovementFactor, limbSwing, limbYaw, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, prevCameraPitch, prevHealth, prevLimbYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgressaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_98038_p, 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, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityPlayerMP(MinecraftServer par1MinecraftServer,
World par2World,
String par3Str,
ItemInWorldManager par4ItemInWorldManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChatMessage(String par1Str)
Add a chat message to the player
|
void |
addExperienceLevel(int par1)
Add experience levels to this player.
|
void |
addSelfToInternalCraftingInventory() |
void |
addStat(StatBase par1StatBase,
int par2)
Adds a value to a statistic field.
|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
float par2)
Called when the entity is attacked.
|
boolean |
canCommandSenderUseCommand(int par1,
String par2Str)
Returns true if the command sender is allowed to use the given command.
|
void |
clonePlayer(EntityPlayer par1EntityPlayer,
boolean par2)
Copies the values from the given player into this player if boolean par2 is true.
|
void |
closeInventory() |
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 |
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,
String par4Str) |
void |
displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)
Displays the furnace GUI for the passed in furnace entity.
|
void |
displayGUIHopper(TileEntityHopper par1TileEntityHopper) |
void |
displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper) |
void |
displayGUIMerchant(IMerchant par1IMerchant,
String par2Str) |
void |
displayGUIWorkbench(int par1,
int par2,
int par3)
Displays the crafting GUI for a workbench.
|
void |
func_110298_a(EntityHorse par1EntityHorse,
IInventory par2IInventory) |
void |
func_110430_a(float par1,
float par2,
boolean par3,
boolean par4) |
boolean |
func_96122_a(EntityPlayer par1EntityPlayer) |
int |
getChatVisibility() |
float |
getEyeHeight() |
ChunkCoordinates |
getPlayerCoordinates()
Return the position for this command sender.
|
String |
getPlayerIP()
Gets the player's IP address.
|
WorldServer |
getServerForPlayer() |
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 |
requestTexturePackLoad(String par1Str,
int par2)
on recieving this message the client (if permission is given) will download the requested textures
|
void |
sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent) |
void |
sendContainerAndContentsToPlayer(Container par1Container,
List par2List) |
void |
sendContainerToPlayer(Container par1Container) |
void |
sendPlayerAbilities()
Sends the player's abilities to the server (if there is one).
|
void |
sendProgressBarUpdate(Container par1Container,
int par2,
int par3)
Sends two ints to the client-side Container.
|
void |
sendSlotContents(Container par1Container,
int par2,
ItemStack par3ItemStack)
Sends the contents of an inventory slot to the client-side Container.
|
void |
setGameType(EnumGameType par1EnumGameType)
Sets the player's game mode and sends it to them.
|
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 |
travelToDimension(int par1)
Teleports the entity to another dimension.
|
void |
updateClientInfo(Packet204ClientInfo par1Packet204ClientInfo) |
void |
updateFlyingState(double par1,
boolean par3)
likeUpdateFallState, but called from updateFlyingState, rather than moveEntity
|
void |
updateHeldItem()
updates item held by mouse
|
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.
|
addExhaustion, addExperience, addMovementStat, addScore, addToPlayerScore, attackTargetEntityWithCurrentItem, canCurrentToolHarvestBlock, canEat, canHarvestBlock, canPlayerEdit, clearItemInUse, destroyCurrentEquippedItem, displayGUIBook, displayGUIEditSign, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, func_110139_bj, func_110149_m, func_130014_f_, func_82243_bO, func_94059_bO, func_96092_aw, func_98034_c, getAIMoveSpeed, getBedLocation, getBedLocation, getBedOrientationInDegrees, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getEntityName, getFoodStats, getHeldItem, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxInPortalTime, getPortalCooldown, getScore, getSleepTimer, getTeam, getTotalArmorValue, getTranslatedEntityName, getWorldScoreboard, getYOffset, handleHealthUpdate, interactWith, isBlocking, isEntityInsideOpaqueBlock, isPlayerFullyAsleep, isPlayerSleeping, isSpawnForced, isSpawnForced, isUsingItem, joinEntityItemWithWorld, moveEntityWithHeading, onKillEntity, onLivingUpdate, openGui, playSound, preparePlayerToSpawn, respawnPlayer, setCurrentItemOrArmor, setDead, setInWeb, setScore, setSpawnChunk, setSpawnChunk, shouldHeal, stopUsingItem, triggerAchievement, updateRidden, verifyRespawnCoordinates, xpBarCapaddPotionEffect, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, func_110138_aP, func_110140_aT, func_110142_aN, func_110143_aJ, func_110144_aD, func_110145_l, func_110148_a, func_130011_c, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getCreatureAttribute, getLook, getLookVec, getPosition, getRNG, getRotationYawHead, getSwingProgress, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isPotionActive, isPotionActive, isPotionApplicable, knockBack, onEntityUpdate, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setEntityHealth, setJumping, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItemaddEntityID, addNotRiddenEntityID, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_110123_P, func_110124_au, func_130002_c, func_82143_as, func_82146_a, func_82149_j, func_85029_a, func_85031_j, func_96091_a, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getExtendedProperties, getMountedYOffset, getParts, getPersistentID, getPickedResult, getShadowSize, getTeleportDirection, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, moveEntity, moveFlying, onCollideWithPlayer, onStruckByLightning, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setFire, setInPortal, setInvisible, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldRenderInPass, shouldRiderSit, toString, updateRiderPosition, writeToNBTpublic 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
public EntityPlayerMP(MinecraftServer par1MinecraftServer, World par2World, String par3Str, ItemInWorldManager par4ItemInWorldManager)
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT in class EntityPlayerpublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT in class EntityPlayerpublic void addExperienceLevel(int par1)
addExperienceLevel in class EntityPlayerpublic void addSelfToInternalCraftingInventory()
public float getEyeHeight()
getEyeHeight in class EntityPlayerpublic void onUpdate()
onUpdate in class EntityPlayerpublic void onUpdateEntity()
public void onDeath(DamageSource par1DamageSource)
onDeath in class EntityPlayerpublic boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
attackEntityFrom in class EntityPlayerpublic boolean func_96122_a(EntityPlayer par1EntityPlayer)
func_96122_a in class EntityPlayerpublic void travelToDimension(int par1)
travelToDimension in class Entitypublic void onItemPickup(Entity par1Entity, int par2)
onItemPickup in class EntityLivingBasepublic EnumStatus sleepInBedAt(int par1, int par2, int par3)
sleepInBedAt in class EntityPlayerpublic void wakeUpPlayer(boolean par1,
boolean par2,
boolean par3)
wakeUpPlayer in class EntityPlayerpublic void mountEntity(Entity par1Entity)
mountEntity in class EntityPlayerpublic void updateFlyingState(double par1,
boolean par3)
public void incrementWindowID()
public void displayGUIWorkbench(int par1,
int par2,
int par3)
displayGUIWorkbench in class EntityPlayerpublic void displayGUIEnchantment(int par1,
int par2,
int par3,
String par4Str)
displayGUIEnchantment in class EntityPlayerpublic void displayGUIAnvil(int par1,
int par2,
int par3)
displayGUIAnvil in class EntityPlayerpublic void displayGUIChest(IInventory par1IInventory)
displayGUIChest in class EntityPlayerpublic void displayGUIHopper(TileEntityHopper par1TileEntityHopper)
displayGUIHopper in class EntityPlayerpublic void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
displayGUIHopperMinecart 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 displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
displayGUIBeacon in class EntityPlayerpublic void displayGUIMerchant(IMerchant par1IMerchant, String par2Str)
displayGUIMerchant in class EntityPlayerpublic void func_110298_a(EntityHorse par1EntityHorse, IInventory par2IInventory)
func_110298_a in class EntityPlayerpublic void sendSlotContents(Container par1Container, int par2, ItemStack par3ItemStack)
sendSlotContents in interface ICraftingpublic void sendContainerToPlayer(Container par1Container)
public void sendContainerAndContentsToPlayer(Container par1Container, List par2List)
sendContainerAndContentsToPlayer in interface ICraftingpublic void sendProgressBarUpdate(Container par1Container, int par2, int par3)
sendProgressBarUpdate in interface ICraftingpublic void closeScreen()
closeScreen in class EntityPlayerpublic void updateHeldItem()
public void closeInventory()
public void func_110430_a(float par1,
float par2,
boolean par3,
boolean par4)
public void addStat(StatBase par1StatBase, int par2)
addStat in class EntityPlayerpublic void mountEntityAndWakeUp()
public void setPlayerHealthUpdated()
public void addChatMessage(String par1Str)
addChatMessage in class EntityPlayerpublic void setItemInUse(ItemStack par1ItemStack, int par2)
setItemInUse in class EntityPlayerpublic void clonePlayer(EntityPlayer par1EntityPlayer, boolean par2)
clonePlayer in class EntityPlayerpublic void setPositionAndUpdate(double par1,
double par3,
double par5)
setPositionAndUpdate in class EntityLivingBasepublic 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 setGameType(EnumGameType par1EnumGameType)
setGameType in class EntityPlayerpublic void sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent)
sendChatToPlayer in interface ICommandSenderpublic boolean canCommandSenderUseCommand(int par1,
String par2Str)
canCommandSenderUseCommand in interface ICommandSenderpublic String getPlayerIP()
public void updateClientInfo(Packet204ClientInfo par1Packet204ClientInfo)
public int getChatVisibility()
public void requestTexturePackLoad(String par1Str, int par2)
public ChunkCoordinates getPlayerCoordinates()
getPlayerCoordinates in interface ICommandSender