public class EntityPlayerMP extends EntityPlayer implements IContainerListener
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult
Modifier and Type | Field and Description |
---|---|
NetHandlerPlayServer |
connection |
int |
currentWindowId |
PlayerInteractionManager |
interactionManager |
boolean |
isChangingQuantityOnly |
double |
managedPosX |
double |
managedPosZ |
MinecraftServer |
mcServer |
int |
ping |
boolean |
playerConqueredTheEnd |
cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, experience, experienceLevel, experienceTotal, eyeHeight, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, playerLocation, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, renderOffsetX, renderOffsetY, renderOffsetZ, sleeping, speedInAir, speedOnGround, xpCooldown
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, HAND_STATES, hurtTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, fireResistance, firstUpdate, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, 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,
PlayerInteractionManager interactionManagerIn) |
addExhaustion, addExperience, addMovementStat, addPrefix, addScore, addStat, addSuffix, addToPlayerScore, applyEntityAttributes, applyEntityCollision, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, damageArmor, damageEntity, damageShield, displayGuiEditCommandCart, dropItem, dropItem, dropItem, dropItemAndGetStack, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDefaultEyeHeight, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameString, getExperiencePoints, getEyeHeight, getFallSound, getFoodStats, getGameProfile, getHeldEquipment, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getScore, getSleepTimer, getSoundCategory, getSplashSound, getSuffixes, getSwimSound, getTeam, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasCapability, hasReducedDebug, interact, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUser, isWearing, jump, moveEntityWithHeading, onKillEntity, onLivingUpdate, openGui, playSound, preparePlayerToSpawn, refreshDisplayName, replaceItemInInventory, resetCooldown, resetHeight, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setDead, setInWeb, setItemStackToSlot, setPrimaryHand, setReducedDebug, setScore, setSpawnChunk, setSpawnPoint, shouldHeal, spawnSweepParticles, updateEntityActionState, updateRidden, updateSize, xpBarCap
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackEntityAsMob, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropLoot, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, handleJumpLava, handleJumpWater, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, kill, knockBack, markPotionsDirty, notifyDataManagerChange, onDeathUpdate, onEntityUpdate, onKillCommand, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffects
addEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFlag, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, playStepSound, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public NetHandlerPlayServer connection
public final MinecraftServer mcServer
public final PlayerInteractionManager interactionManager
public double managedPosX
public double managedPosZ
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean playerConqueredTheEnd
public EntityPlayerMP(MinecraftServer server, WorldServer worldIn, com.mojang.authlib.GameProfile profile, PlayerInteractionManager interactionManagerIn)
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityPlayer
public void writeEntityToNBT(NBTTagCompound compound)
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 sendEnterCombat()
sendEnterCombat
in class EntityLivingBase
public void sendEndCombat()
sendEndCombat
in class EntityLivingBase
protected CooldownTracker createCooldownTracker()
createCooldownTracker
in class EntityPlayer
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
@Nullable public Entity changeDimension(int dimensionIn)
changeDimension
in class Entity
public boolean isSpectatedByPlayer(EntityPlayerMP player)
isSpectatedByPlayer
in class Entity
public void onItemPickup(Entity entityIn, int quantity)
onItemPickup
in class EntityLivingBase
public EntityPlayer.SleepResult trySleep(BlockPos bedLocation)
trySleep
in class EntityPlayer
public void wakeUpPlayer(boolean immediately, boolean updateWorldFlag, boolean setSpawn)
wakeUpPlayer
in class EntityPlayer
public boolean startRiding(Entity entityIn, boolean force)
startRiding
in class Entity
public void dismountRidingEntity()
dismountRidingEntity
in class EntityPlayer
public boolean isEntityInvulnerable(DamageSource source)
isEntityInvulnerable
in class Entity
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos)
updateFallState
in class EntityLivingBase
protected void frostWalk(BlockPos pos)
frostWalk
in class EntityLivingBase
public void handleFalling(double y, boolean onGroundIn)
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 openGuiHorseInventory(EntityHorse horse, IInventory inventoryIn)
openGuiHorseInventory
in class EntityPlayer
public void openBook(ItemStack stack, EnumHand hand)
openBook
in class EntityPlayer
public void displayGuiCommandBlock(TileEntityCommandBlock p_184824_1_)
displayGuiCommandBlock
in class EntityPlayer
public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents
in interface IContainerListener
public void sendContainerToPlayer(Container containerIn)
public void updateCraftingInventory(Container containerToSend, java.util.List<ItemStack> itemsList)
updateCraftingInventory
in interface IContainerListener
public void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
sendProgressBarUpdate
in interface IContainerListener
public void sendAllWindowProperties(Container containerIn, IInventory inventory)
sendAllWindowProperties
in interface IContainerListener
public void closeScreen()
closeScreen
in class EntityPlayer
public void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float strafe, float forward, boolean jumping, boolean sneaking)
public boolean hasAchievement(Achievement achievementIn)
hasAchievement
in class EntityPlayer
public void addStat(StatBase stat, int amount)
addStat
in class EntityPlayer
public void takeStat(StatBase stat)
takeStat
in class EntityPlayer
public void mountEntityAndWakeUp()
public void setPlayerHealthUpdated()
public void addChatComponentMessage(ITextComponent chatComponent)
addChatComponentMessage
in class EntityPlayer
protected void onItemUseFinish()
onItemUseFinish
in class EntityLivingBase
public void clonePlayer(EntityPlayer oldPlayer, boolean respawnFromEnd)
clonePlayer
in class EntityPlayer
protected void onNewPotionEffect(PotionEffect id)
onNewPotionEffect
in class EntityLivingBase
protected void onChangedPotionEffect(PotionEffect id, boolean p_70695_2_)
onChangedPotionEffect
in class EntityLivingBase
protected void onFinishedPotionEffect(PotionEffect effect)
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 getServerWorld()
public void setGameType(WorldSettings.GameType gameType)
setGameType
in class EntityPlayer
public boolean isSpectator()
isSpectator
in class EntityPlayer
public boolean isCreative()
isCreative
in class EntityPlayer
public void addChatMessage(ITextComponent component)
addChatMessage
in interface ICommandSender
addChatMessage
in class Entity
public boolean canCommandSenderUseCommand(int permLevel, java.lang.String commandName)
canCommandSenderUseCommand
in interface ICommandSender
canCommandSenderUseCommand
in class Entity
public java.lang.String getPlayerIP()
public void handleClientSettings(CPacketClientSettings 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 StatisticsManagerServer getStatFile()
public void removeEntity(Entity entityIn)
public void addEntity(Entity entityIn)
protected void updatePotionMetadata()
updatePotionMetadata
in class EntityLivingBase
public Entity getSpectatingEntity()
public void setSpectatingEntity(Entity entityToSpectate)
protected void decrementTimeUntilPortal()
decrementTimeUntilPortal
in class Entity
public void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem
in class EntityPlayer
public long getLastActiveTime()
@Nullable public ITextComponent getTabListDisplayName()
public void swingArm(EnumHand hand)
swingArm
in class EntityLivingBase
public boolean isInvulnerableDimensionChange()
public void clearInvulnerableDimensionChange()
public void setElytraFlying()
public void clearElytraFlying()