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 |
int |
ping |
boolean |
queuedEndExit |
MinecraftServer |
server |
abilities, bedLocation, cameraYaw, chasingPosX, chasingPosY, chasingPosZ, enderChest, experience, experienceLevel, experienceTotal, eyesInWaterPlayer, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, renderOffsetX, renderOffsetY, renderOffsetZ, RIGHT_SHOULDER_ENTITY, sleeping, spawnForced, spawnForcedMap, spawnPos, spawnPosMap, speedInAir, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, field_208001_bq, field_208002_br, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, world| Constructor and Description |
|---|
EntityPlayerMP(MinecraftServer server,
WorldServer worldIn,
com.mojang.authlib.GameProfile profile,
PlayerInteractionManager interactionManagerIn) |
addExhaustion, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, applyEntityCollision, blockUsingShield, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropItem, dropItem, dropItem, dropItemAndGetStack, fall, func_207402_f, func_208017_dF, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDefaultEyeHeight, getDigSpeed, getDigSpeed, getDisplayName, getExperiencePoints, getEyeHeight, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHighspeedSplashSound, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getScoreboardName, getSleepTimer, getSoundCategory, getSpawnDimension, getSplashSound, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasReducedDebug, interactOn, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isUser, isWearing, jump, livingTick, onKillEntity, openMinecartCommandBlock, openStructureBlock, playSound, preparePlayerToSpawn, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, respawnPlayer, setAbsorptionAmount, setInWeb, setItemStackToSlot, setLeftShoulderEntity, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, travel, updateEntityActionState, updateEyesInWaterPlayer, updateRidden, updateSize, updateSwimming, xpBarCapaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, determineNextAir, dismountEntity, dropEquipment, dropFewItems, dropLoot, func_195061_cb, func_203010_cG, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributeMap, getCombatTracker, getCreatureAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, getYaw, handleFluidJump, hasItemInSlot, heal, isActiveItemStackBlocking, isAlive, isChild, isElytraFlying, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, isSpinAttacking, knockBack, lerp, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onDeathUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, remove, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setHeadRotation, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, startSpinAttack, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffects, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_212321_a, getAdjustedHorizontalFacing, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyePosition, getFlag, getForward, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPitch, getPitchYaw, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSubmergedHeight, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, handleFluidAcceleration, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPassenger, isPassenger, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, playSwimSound, processInitialInteract, pushOutOfBlocks, rayTrace, read, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setInvisible, setInvulnerable, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSitgetCapabilitypublic NetHandlerPlayServer connection
public final MinecraftServer server
public final PlayerInteractionManager interactionManager
public double managedPosX
public double managedPosZ
public int currentWindowId
public boolean isChangingQuantityOnly
public int ping
public boolean queuedEndExit
public EntityPlayerMP(MinecraftServer server, WorldServer worldIn, com.mojang.authlib.GameProfile profile, PlayerInteractionManager interactionManagerIn)
public void readAdditional(NBTTagCompound compound)
readAdditional in class EntityPlayerpublic void writeAdditional(NBTTagCompound compound)
writeAdditional in class EntityPlayerpublic void func_195394_a(int p_195394_1_)
public void func_195399_b(int p_195399_1_)
public void addExperienceLevel(int levels)
addExperienceLevel in class EntityPlayerpublic void onEnchant(ItemStack enchantedItem, int cost)
onEnchant in class EntityPlayerpublic void addSelfToInternalCraftingInventory()
public void sendEnterCombat()
sendEnterCombat in class EntityLivingBasepublic void sendEndCombat()
sendEndCombat in class EntityLivingBaseprotected void onInsideBlock(IBlockState p_191955_1_)
onInsideBlock in class Entityprotected CooldownTracker createCooldownTracker()
createCooldownTracker in class EntityPlayerpublic void tick()
tick in class EntityPlayerpublic void playerTick()
public void onDeath(DamageSource cause)
onDeath in class EntityPlayerpublic void awardKillScore(Entity p_191956_1_, int p_191956_2_, DamageSource p_191956_3_)
awardKillScore in class Entitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityPlayerpublic boolean canAttackPlayer(EntityPlayer other)
canAttackPlayer in class EntityPlayer@Nullable public Entity changeDimension(DimensionType p_212321_1_, ITeleporter teleporter)
IForgeEntityEntity.changeDimension(DimensionType, ITeleporter) if your entity
needs special handling for specific teleporters.changeDimension in interface IForgeEntitychangeDimension in class Entityp_212321_1_ - The target dimensionteleporter - The teleporter being used to move the entity to the dimensionnull if the entity should despawn.public boolean isSpectatedByPlayer(EntityPlayerMP player)
isSpectatedByPlayer in class Entitypublic void onItemPickup(Entity entityIn, int quantity)
onItemPickup in class EntityLivingBasepublic EntityPlayer.SleepResult trySleep(BlockPos bedLocation)
trySleep in class EntityPlayerpublic void wakeUpPlayer(boolean immediately,
boolean updateWorldFlag,
boolean setSpawn)
wakeUpPlayer in class EntityPlayerpublic boolean startRiding(Entity entityIn, boolean force)
startRiding in class Entitypublic void stopRiding()
stopRiding in class EntityPlayerpublic boolean isInvulnerableTo(DamageSource source)
isInvulnerableTo in class Entityprotected void updateFallState(double y,
boolean onGroundIn,
IBlockState state,
BlockPos pos)
updateFallState in class EntityLivingBaseprotected void frostWalk(BlockPos pos)
frostWalk in class EntityLivingBasepublic void handleFalling(double y,
boolean onGroundIn)
public void openSignEditor(TileEntitySign signTile)
openSignEditor in class EntityPlayerpublic void getNextWindowId()
public void displayGui(IInteractionObject guiOwner)
displayGui in class EntityPlayerpublic void displayGUIChest(IInventory chestInventory)
displayGUIChest in class EntityPlayerpublic void displayVillagerTradeGui(IMerchant villager)
displayVillagerTradeGui in class EntityPlayerpublic void openHorseInventory(AbstractHorse horse, IInventory inventoryIn)
openHorseInventory in class EntityPlayerpublic void openBook(ItemStack stack, EnumHand hand)
openBook in class EntityPlayerpublic void openCommandBlock(TileEntityCommandBlock commandBlock)
openCommandBlock in class EntityPlayerpublic void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents in interface IContainerListenerpublic void sendContainerToPlayer(Container containerIn)
public void sendAllContents(Container containerToSend, NonNullList<ItemStack> itemsList)
sendAllContents in interface IContainerListenerpublic void sendWindowProperty(Container containerIn, int varToUpdate, int newValue)
sendWindowProperty in interface IContainerListenerpublic void sendAllWindowProperties(Container containerIn, IInventory inventory)
sendAllWindowProperties in interface IContainerListenerpublic void closeScreen()
closeScreen in class EntityPlayerpublic void updateHeldItem()
public void closeContainer()
public void setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking)
public void addStat(Stat<?> stat, int amount)
addStat in class EntityPlayerpublic void takeStat(Stat<?> stat)
takeStat in class EntityPlayerpublic int unlockRecipes(java.util.Collection<IRecipe> p_195065_1_)
unlockRecipes in class EntityPlayerpublic void unlockRecipes(ResourceLocation[] p_193102_1_)
unlockRecipes in class EntityPlayerpublic int resetRecipes(java.util.Collection<IRecipe> p_195069_1_)
resetRecipes in class EntityPlayerpublic void giveExperiencePoints(int p_195068_1_)
giveExperiencePoints in class EntityPlayerpublic void disconnect()
public boolean hasDisconnected()
public void setPlayerHealthUpdated()
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class EntityPlayerprotected void onItemUseFinish()
onItemUseFinish in class EntityLivingBasepublic void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
lookAt in class EntityLivingBasepublic void lookAt(EntityAnchorArgument.Type p_200618_1_, Entity p_200618_2_, EntityAnchorArgument.Type p_200618_3_)
public void copyFrom(EntityPlayerMP that, boolean keepEverything)
protected void onNewPotionEffect(PotionEffect id)
onNewPotionEffect in class EntityLivingBaseprotected void onChangedPotionEffect(PotionEffect id, boolean p_70695_2_)
onChangedPotionEffect in class EntityLivingBaseprotected void onFinishedPotionEffect(PotionEffect effect)
onFinishedPotionEffect in class EntityLivingBasepublic void setPositionAndUpdate(double x,
double y,
double z)
setPositionAndUpdate in class Entitypublic void onCriticalHit(Entity entityHit)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical in class EntityPlayerpublic void sendPlayerAbilities()
sendPlayerAbilities in class EntityPlayerpublic WorldServer getServerWorld()
public void setGameType(GameType gameType)
setGameType in class EntityPlayerpublic boolean isSpectator()
isSpectator in class EntityPlayerpublic boolean isCreative()
isCreative in class EntityPlayerpublic void sendMessage(ITextComponent component)
sendMessage in interface ICommandSourcesendMessage in class Entitypublic void sendMessage(ITextComponent textComponent, ChatType chatTypeIn)
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)
protected int getPermissionLevel()
getPermissionLevel in class Entitypublic void markPlayerActive()
public StatisticsManagerServer getStats()
public ServerRecipeBook getRecipeBook()
public void removeEntity(Entity entityIn)
public void addEntity(Entity entityIn)
protected void updatePotionMetadata()
updatePotionMetadata in class EntityLivingBasepublic Entity getSpectatingEntity()
public void setSpectatingEntity(Entity entityToSpectate)
protected void decrementTimeUntilPortal()
decrementTimeUntilPortal in class Entitypublic void attackTargetEntityWithCurrentItem(Entity targetEntity)
attackTargetEntityWithCurrentItem in class EntityPlayerpublic long getLastActiveTime()
@Nullable public ITextComponent getTabListDisplayName()
public void swingArm(EnumHand hand)
swingArm in class EntityLivingBasepublic boolean isInvulnerableDimensionChange()
public void clearInvulnerableDimensionChange()
public void setElytraFlying()
public void clearElytraFlying()
public PlayerAdvancements getAdvancements()
@Nullable public Vec3d getEnteredNetherPosition()
public void teleport(WorldServer p_200619_1_, double x, double y, double z, float yaw, float pitch)