public class EntityPlayerMP extends EntityPlayer implements ICrafting
EntityPlayer.EnumChatVisibility, EntityPlayer.EnumStatus
Modifier and Type | Field and Description |
---|---|
int |
currentWindowId |
boolean |
isChangingQuantityOnly |
java.util.List |
loadedChunks |
double |
managedPosX |
double |
managedPosZ |
MinecraftServer |
mcServer |
int |
ping |
boolean |
playerConqueredTheEnd |
NetHandlerPlayServer |
playerNetServerHandler |
ItemInWorldManager |
theItemInWorldManager |
cameraYaw, capabilities, experience, experienceLevel, experienceTotal, field_71085_bR, field_71091_bM, field_71094_bP, field_71095_bQ, field_71096_bN, field_71097_bO, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, renderOffsetX, renderOffsetY, renderOffsetZ, sleeping, speedInAir, speedOnGround, xpCooldown
arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityPlayerMP(MinecraftServer server,
WorldServer worldIn,
com.mojang.authlib.GameProfile profile,
ItemInWorldManager interactionManager) |
addExhaustion, addExperience, addMovementStat, addScore, addToPlayerScore, applyEntityAttributes, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, clearItemInUse, damageArmor, damageEntity, destroyCurrentEquippedItem, dropItem, dropOneItem, dropPlayerItemWithRandomChoice, entityInit, fall, func_175148_a, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getBreakSpeed, getCurrentArmor, getCurrentEquippedItem, getDeathSound, getDefaultEyeHeight, getDisplayName, getDisplayNameString, getEquipmentInSlot, getExperiencePoints, getEyeHeight, getFallSoundString, getFoodStats, getGameProfile, getHeldItem, getHurtSound, getInventory, getInventoryEnderChest, getItemInUse, getItemInUseCount, getItemInUseDuration, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getScore, getSleepTimer, getSplashSound, getSwimSound, getTeam, getToolDigEfficiency, getTotalArmorValue, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleHealthUpdate, hasReducedDebug, interactWith, isAllowEdit, isBlocking, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUser, isUsingItem, joinEntityItemWithWorld, jump, moveEntityWithHeading, onKillEntity, onLivingUpdate, openEditCommandBlock, openGui, playSound, preparePlayerToSpawn, refreshDisplayName, replaceItemInInventory, resetHeight, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setInWeb, setReducedDebug, setScore, setSpawnChunk, setSpawnPoint, shouldHeal, stopUsingItem, triggerAchievement, updateEntityActionState, updateItemUse, updateRidden, xpBarCap
addPotionEffect, addRandomArmor, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, func_110146_f, func_146066_aG, func_175133_bi, func_175134_bD, func_175136_bO, func_180426_a, func_180466_bG, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, heal, isChild, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, isServerWorld, kill, knockBack, onDeathUpdate, onEntityUpdate, onKillCommand, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITick, updateArmSwingProgress, updatePotionEffects
addEntityCrashInfo, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_145781_i, func_174807_aT, func_174815_a, func_174816_a, func_174817_o, func_174819_aU, func_174823_aP, func_174825_a, func_174834_g, func_180427_aV, getAir, getAlwaysRenderNameTag, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getFlag, getHorizontalFacing, getMaxFallHeight, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPositionEyes, getPositionVector, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, playStepSound, pushOutOfBlocks, rayTrace, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
public NetHandlerPlayServer playerNetServerHandler
public final MinecraftServer mcServer
public final ItemInWorldManager theItemInWorldManager
public double managedPosX
public double managedPosZ
public final java.util.List loadedChunks
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean playerConqueredTheEnd
public EntityPlayerMP(MinecraftServer server, WorldServer worldIn, com.mojang.authlib.GameProfile profile, ItemInWorldManager interactionManager)
public void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT
in class EntityPlayer
public void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT
in class EntityPlayer
public void addExperienceLevel(int levels)
addExperienceLevel
in class EntityPlayer
public void removeExperienceLevel(int levels)
removeExperienceLevel
in class EntityPlayer
public void addSelfToInternalCraftingInventory()
public void func_152111_bt()
func_152111_bt
in class EntityLivingBase
public void func_152112_bu()
func_152112_bu
in class EntityLivingBase
public void onUpdate()
onUpdate
in class EntityPlayer
public void onUpdateEntity()
protected void updateBiomesExplored()
public void onDeath(DamageSource cause)
onDeath
in class EntityPlayer
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityPlayer
public boolean canAttackPlayer(EntityPlayer other)
canAttackPlayer
in class EntityPlayer
public void travelToDimension(int dimensionId)
travelToDimension
in class Entity
public boolean func_174827_a(EntityPlayerMP p_174827_1_)
func_174827_a
in class Entity
public void onItemPickup(Entity p_71001_1_, int p_71001_2_)
onItemPickup
in class EntityLivingBase
public EntityPlayer.EnumStatus trySleep(BlockPos bedLocation)
trySleep
in class EntityPlayer
public void wakeUpPlayer(boolean p_70999_1_, boolean updateWorldFlag, boolean setSpawn)
wakeUpPlayer
in class EntityPlayer
public void mountEntity(Entity entityIn)
mountEntity
in class EntityLivingBase
protected void func_180433_a(double p_180433_1_, boolean p_180433_3_, Block p_180433_4_, BlockPos p_180433_5_)
func_180433_a
in class EntityLivingBase
public void handleFalling(double p_71122_1_, boolean p_71122_3_)
public void openEditSign(TileEntitySign signTile)
openEditSign
in class EntityPlayer
public void getNextWindowId()
public void displayGui(IInteractionObject guiOwner)
displayGui
in class EntityPlayer
public void displayGUIChest(IInventory chestInventory)
displayGUIChest
in class EntityPlayer
public void displayVillagerTradeGui(IMerchant villager)
displayVillagerTradeGui
in class EntityPlayer
public void displayGUIHorse(EntityHorse horse, IInventory horseInventory)
displayGUIHorse
in class EntityPlayer
public void displayGUIBook(ItemStack bookStack)
displayGUIBook
in class EntityPlayer
public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents
in interface ICrafting
public void sendContainerToPlayer(Container p_71120_1_)
public void sendContainerAndContentsToPlayer(Container containerToSend, java.util.List itemsList)
sendContainerAndContentsToPlayer
in interface ICrafting
public void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
sendProgressBarUpdate
in interface ICrafting
public void func_175173_a(Container p_175173_1_, IInventory p_175173_2_)
func_175173_a
in interface ICrafting
public void closeScreen()
closeScreen
in class EntityPlayer
public void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float p_110430_1_, float p_110430_2_, boolean p_110430_3_, boolean p_110430_4_)
public void addStat(StatBase stat, int amount)
addStat
in class EntityPlayer
public void func_175145_a(StatBase p_175145_1_)
func_175145_a
in class EntityPlayer
public void mountEntityAndWakeUp()
public void setPlayerHealthUpdated()
public void addChatComponentMessage(IChatComponent chatComponent)
addChatComponentMessage
in class EntityPlayer
protected void onItemUseFinish()
onItemUseFinish
in class EntityPlayer
public void setItemInUse(ItemStack stack, int duration)
setItemInUse
in class EntityPlayer
public void clonePlayer(EntityPlayer oldPlayer, boolean respawnFromEnd)
clonePlayer
in class EntityPlayer
protected void onNewPotionEffect(PotionEffect p_70670_1_)
onNewPotionEffect
in class EntityLivingBase
protected void onChangedPotionEffect(PotionEffect p_70695_1_, boolean p_70695_2_)
onChangedPotionEffect
in class EntityLivingBase
protected void onFinishedPotionEffect(PotionEffect p_70688_1_)
onFinishedPotionEffect
in class EntityLivingBase
public void setPositionAndUpdate(double x, double y, double z)
setPositionAndUpdate
in class Entity
public void onCriticalHit(Entity entityHit)
onCriticalHit
in class EntityPlayer
public void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical
in class EntityPlayer
public void sendPlayerAbilities()
sendPlayerAbilities
in class EntityPlayer
public WorldServer getServerForPlayer()
public void setGameType(WorldSettings.GameType gameType)
setGameType
in class EntityPlayer
public boolean isSpectator()
isSpectator
in class EntityPlayer
public void addChatMessage(IChatComponent message)
addChatMessage
in interface ICommandSender
addChatMessage
in class Entity
public boolean canUseCommand(int permLevel, java.lang.String commandName)
canUseCommand
in interface ICommandSender
canUseCommand
in class Entity
public java.lang.String getPlayerIP()
public void handleClientSettings(C15PacketClientSettings packetIn)
public EntityPlayer.EnumChatVisibility getChatVisibility()
public void loadResourcePack(java.lang.String url, java.lang.String hash)
public BlockPos getPosition()
getPosition
in interface ICommandSender
getPosition
in class Entity
public void markPlayerActive()
public StatisticsFile getStatFile()
public void func_152339_d(Entity p_152339_1_)
protected void func_175135_B()
func_175135_B
in class EntityLivingBase
public Entity getSpectatingEntity()
public void setSpectatingEntity(Entity p_175399_1_)
public void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem
in class EntityPlayer
public long getLastActiveTime()
public IChatComponent getTabListDisplayName()