public class EntityPlayerMP extends EntityPlayer implements IContainerListener
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult| Modifier and Type | Field and Description |
|---|---|
NetHandlerPlayServer |
connection
The NetServerHandler assigned to this player by the ServerConfigurationManager.
|
int |
currentWindowId
The currently in use window ID.
|
PlayerInteractionManager |
interactionManager
The player interaction manager for this player
|
boolean |
isChangingQuantityOnly
set to true when player is moving quantity of items from one inventory to another(crafting) but item in either
slot is not changed
|
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 |
queuedEndExit
True when the player has left the End using an the exit portal, but has not yet been respawned in the overworld
|
bedLocation, cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, enderChest, experience, experienceLevel, experienceTotal, eyeHeight, 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, spawnChunkMap, spawnForced, spawnForcedMap, spawnPos, speedInAir, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, 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, updateBlocked, velocityChanged, width, world| Constructor and Description |
|---|
EntityPlayerMP(MinecraftServer server,
WorldServer worldIn,
GameProfile profile,
PlayerInteractionManager interactionManagerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(Entity entityIn) |
void |
addExperienceLevel(int levels)
Add experience levels to this player.
|
void |
addSelfToInternalCraftingInventory() |
void |
addStat(StatBase stat,
int amount)
Adds a value to a statistic field.
|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
void |
attackTargetEntityWithCurrentItem(Entity targetEntity)
Attacks for the player the targeted entity with the currently equipped item.
|
void |
awardKillScore(Entity p_191956_1_,
int p_191956_2_,
DamageSource p_191956_3_) |
boolean |
canAttackPlayer(EntityPlayer other) |
boolean |
canUseCommand(int permLevel,
java.lang.String commandName)
Returns
true if the CommandSender is allowed to execute the command, false if not |
Entity |
changeDimension(int dimensionIn,
ITeleporter teleporter) |
void |
clearElytraFlying() |
void |
clearInvulnerableDimensionChange() |
void |
closeContainer()
Closes the container the player currently has open.
|
void |
closeScreen()
set current crafting inventory back to the 2x2 square
|
void |
copyFrom(EntityPlayerMP that,
boolean keepEverything) |
protected CooldownTracker |
createCooldownTracker() |
protected void |
decrementTimeUntilPortal()
Decrements the counter for the remaining time until the entity may use a portal again.
|
void |
dismountRidingEntity()
Dismounts this entity from the entity it is riding.
|
void |
displayGui(IInteractionObject guiOwner) |
void |
displayGUIChest(IInventory chestInventory)
Displays the GUI for interacting with a chest inventory.
|
void |
displayGuiCommandBlock(TileEntityCommandBlock commandBlock) |
void |
displayVillagerTradeGui(IMerchant villager) |
protected void |
frostWalk(BlockPos pos) |
PlayerAdvancements |
getAdvancements() |
EntityPlayer.EnumChatVisibility |
getChatVisibility() |
Vec3d |
getEnteredNetherPosition() |
long |
getLastActiveTime() |
void |
getNextWindowId()
get the next window id to use
|
java.lang.String |
getPlayerIP()
Gets the player's IP address.
|
BlockPos |
getPosition()
Get the position in the world.
|
RecipeBookServer |
getRecipeBook() |
WorldServer |
getServerWorld() |
Entity |
getSpectatingEntity() |
StatisticsManagerServer |
getStatFile()
Gets the stats file for reading achievements
|
ITextComponent |
getTabListDisplayName()
Returns null which indicates the tab list should just display the player's name, return a different value to
display the specified text instead of the player's name
|
void |
handleClientSettings(CPacketClientSettings packetIn) |
void |
handleFalling(double y,
boolean onGroundIn)
process player falling based on movement packet
|
boolean |
hasDisconnected() |
boolean |
isCreative() |
boolean |
isEntityInvulnerable(DamageSource source)
Returns whether this Entity is invulnerable to the given DamageSource.
|
boolean |
isInvulnerableDimensionChange() |
boolean |
isSpectatedByPlayer(EntityPlayerMP player) |
boolean |
isSpectator()
Returns true if the player is in spectator mode.
|
void |
loadResourcePack(java.lang.String url,
java.lang.String hash) |
void |
markPlayerActive() |
void |
mountEntityAndWakeUp() |
protected void |
onChangedPotionEffect(PotionEffect id,
boolean p_70695_2_) |
void |
onCriticalHit(Entity entityHit)
Called when the entity is dealt a critical hit.
|
void |
onDeath(DamageSource cause)
Called when the mob's health reaches 0.
|
void |
onEnchant(ItemStack enchantedItem,
int cost) |
void |
onEnchantmentCritical(Entity entityHit) |
protected void |
onFinishedPotionEffect(PotionEffect effect) |
protected void |
onInsideBlock(IBlockState p_191955_1_) |
void |
onItemPickup(Entity entityIn,
int quantity)
Called when the entity picks up an item.
|
protected void |
onItemUseFinish()
Used for when item use count runs out, ie: eating completed
|
protected void |
onNewPotionEffect(PotionEffect id) |
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
onUpdateEntity() |
void |
openBook(ItemStack stack,
EnumHand hand) |
void |
openEditSign(TileEntitySign signTile) |
void |
openGuiHorseInventory(AbstractHorse horse,
IInventory inventoryIn) |
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
static void |
registerFixesPlayerMP(DataFixer p_191522_0_) |
void |
removeEntity(Entity entityIn)
Sends a packet to the player to remove an entity.
|
void |
resetRecipes(java.util.List<IRecipe> p_192022_1_) |
void |
sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList)
update the crafting window inventory with the items in the list
|
void |
sendAllWindowProperties(Container containerIn,
IInventory inventory) |
void |
sendContainerToPlayer(Container containerIn) |
void |
sendEndCombat()
Sends an END_COMBAT packet to the client
|
void |
sendEnterCombat()
Sends an ENTER_COMBAT packet to the client
|
void |
sendMessage(ITextComponent component)
Send a chat message to the CommandSender
|
void |
sendPlayerAbilities()
Sends the player's abilities to the server (if there is one).
|
void |
sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack)
Sends the contents of an inventory slot to the client-side Container.
|
void |
sendStatusMessage(ITextComponent chatComponent,
boolean actionBar) |
void |
sendWindowProperty(Container containerIn,
int varToUpdate,
int newValue)
Sends two ints to the client-side Container.
|
void |
setElytraFlying() |
void |
setEntityActionState(float strafe,
float forward,
boolean jumping,
boolean sneaking) |
void |
setGameType(GameType gameType)
Sets the player's game mode and sends it to them.
|
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 x,
double y,
double z)
Sets the position of the entity and updates the 'last' variables
|
void |
setSpectatingEntity(Entity entityToSpectate) |
boolean |
startRiding(Entity entityIn,
boolean force) |
void |
swingArm(EnumHand hand) |
void |
takeStat(StatBase stat) |
EntityPlayer.SleepResult |
trySleep(BlockPos bedLocation) |
void |
unlockRecipes(java.util.List<IRecipe> p_192021_1_) |
void |
unlockRecipes(ResourceLocation[] p_193102_1_) |
protected void |
updateFallState(double y,
boolean onGroundIn,
IBlockState state,
BlockPos pos) |
void |
updateHeldItem()
updates item held by mouse
|
protected void |
updatePotionMetadata()
Clears potion metadata values if the entity has no potion effects.
|
void |
wakeUpPlayer(boolean immediately,
boolean updateWorldFlag,
boolean setSpawn)
Wake up the player if they're sleeping.
|
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addExhaustion, addExperience, addItemStackToInventory, addMovementStat, addPrefix, addScore, addShoulderEntity, addStat, addSuffix, applyEntityAttributes, applyEntityCollision, blockUsingShield, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, displayGuiEditCommandCart, doWaterSplashEffect, 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, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getSleepTimer, getSoundCategory, getSpawnDimension, getSplashSound, getSuffixes, getSwimSound, getTeam, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasCapability, hasReducedDebug, hasSpawnDimension, interactOn, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUser, isWearing, jump, onKillEntity, onLivingUpdate, openEditStructure, openGui, playSound, preparePlayerToSpawn, refreshDisplayName, registerFixesPlayer, replaceItemInInventory, resetCooldown, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setDead, setInWeb, setItemStackToSlot, setLeftShoulderEntity, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnChunk, setSpawnDimension, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, travel, updateEntityActionState, updateRidden, updateSize, xpBarCapaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropLoot, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onDeathUpdate, onEntityUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffectsaddEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, changeDimension, 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, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic 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 queuedEndExit
public EntityPlayerMP(MinecraftServer server, WorldServer worldIn, GameProfile profile, PlayerInteractionManager interactionManagerIn)
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT in class EntityPlayerpublic static void registerFixesPlayerMP(DataFixer p_191522_0_)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT in class EntityPlayerpublic 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 onUpdate()
onUpdate in class EntityPlayerpublic void onUpdateEntity()
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 EntityPlayerpublic Entity changeDimension(int dimensionIn, ITeleporter teleporter)
changeDimension in class Entitypublic 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 dismountRidingEntity()
dismountRidingEntity in class EntityPlayerpublic boolean isEntityInvulnerable(DamageSource source)
isEntityInvulnerable 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 openEditSign(TileEntitySign signTile)
openEditSign 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 openGuiHorseInventory(AbstractHorse horse, IInventory inventoryIn)
openGuiHorseInventory in class EntityPlayerpublic void openBook(ItemStack stack, EnumHand hand)
openBook in class EntityPlayerpublic void displayGuiCommandBlock(TileEntityCommandBlock commandBlock)
displayGuiCommandBlock 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(StatBase stat, int amount)
addStat in class EntityPlayerpublic void takeStat(StatBase stat)
takeStat in class EntityPlayerpublic void unlockRecipes(java.util.List<IRecipe> p_192021_1_)
unlockRecipes in class EntityPlayerpublic void unlockRecipes(ResourceLocation[] p_193102_1_)
unlockRecipes in class EntityPlayerpublic void resetRecipes(java.util.List<IRecipe> p_192022_1_)
resetRecipes in class EntityPlayerpublic void mountEntityAndWakeUp()
public boolean hasDisconnected()
public void setPlayerHealthUpdated()
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class EntityPlayerprotected void onItemUseFinish()
onItemUseFinish in class EntityLivingBasepublic 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 ICommandSendersendMessage in class Entitypublic boolean canUseCommand(int permLevel,
java.lang.String commandName)
true if the CommandSender is allowed to execute the command, false if notcanUseCommand in interface ICommandSendercanUseCommand in class Entitypublic 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()
null is not allowed! If you are not an entity in the world, return
the coordinates 0, 0, 0getPosition in interface ICommandSendergetPosition in class Entitypublic void markPlayerActive()
public StatisticsManagerServer getStatFile()
public RecipeBookServer 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()
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()
public Vec3d getEnteredNetherPosition()