public abstract class EntityPlayer extends EntityLivingBase
Modifier and Type | Class and Description |
---|---|
static class |
EntityPlayer.EnumChatVisibility |
static class |
EntityPlayer.SleepResult |
Modifier and Type | Field and Description |
---|---|
float |
cameraYaw |
PlayerCapabilities |
capabilities |
double |
chasingPosX |
double |
chasingPosY |
double |
chasingPosZ |
float |
experience |
int |
experienceLevel |
int |
experienceTotal |
float |
eyeHeight |
EntityFishHook |
fishEntity |
protected int |
flyToggleTimer |
protected FoodStats |
foodStats |
InventoryPlayer |
inventory |
Container |
inventoryContainer |
protected static DataParameter<java.lang.Byte> |
MAIN_HAND |
Container |
openContainer |
static java.lang.String |
PERSISTED_NBT_TAG |
protected static DataParameter<java.lang.Byte> |
PLAYER_MODEL_FLAG |
BlockPos |
playerLocation |
float |
prevCameraYaw |
double |
prevChasingPosX |
double |
prevChasingPosY |
double |
prevChasingPosZ |
float |
renderOffsetX |
float |
renderOffsetY |
float |
renderOffsetZ |
protected boolean |
sleeping |
protected float |
speedInAir |
protected float |
speedOnGround |
int |
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 |
---|
EntityPlayer(World worldIn,
com.mojang.authlib.GameProfile gameProfileIn) |
Modifier and Type | Method and Description |
---|---|
void |
addChatComponentMessage(ITextComponent chatComponent) |
void |
addExhaustion(float exhaustion) |
void |
addExperience(int amount) |
void |
addExperienceLevel(int levels) |
void |
addMovementStat(double p_71000_1_,
double p_71000_3_,
double p_71000_5_) |
void |
addPrefix(ITextComponent prefix)
Add a prefix to the player's username in chat
|
void |
addScore(int scoreIn) |
void |
addStat(StatBase stat) |
void |
addStat(StatBase stat,
int amount) |
void |
addSuffix(ITextComponent suffix)
Add a suffix to the player's username in chat
|
void |
addToPlayerScore(Entity entityIn,
int amount) |
protected void |
applyEntityAttributes() |
void |
applyEntityCollision(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
void |
attackTargetEntityWithCurrentItem(Entity targetEntity) |
boolean |
canAttackPlayer(EntityPlayer other) |
boolean |
canEat(boolean ignoreHunger) |
boolean |
canHarvestBlock(IBlockState state) |
boolean |
canOpen(LockCode code) |
boolean |
canPlayerEdit(BlockPos pos,
EnumFacing facing,
ItemStack stack) |
protected boolean |
canTriggerWalking() |
void |
clonePlayer(EntityPlayer oldPlayer,
boolean respawnFromEnd) |
void |
closeScreen() |
protected CooldownTracker |
createCooldownTracker() |
protected void |
damageArmor(float damage) |
protected void |
damageEntity(DamageSource damageSrc,
float damageAmount) |
protected void |
damageShield(float damage) |
void |
dismountRidingEntity() |
void |
displayGui(IInteractionObject guiOwner) |
void |
displayGUIChest(IInventory chestInventory) |
void |
displayGuiCommandBlock(TileEntityCommandBlock p_184824_1_) |
void |
displayGuiEditCommandCart(CommandBlockBaseLogic p_184809_1_) |
void |
displayVillagerTradeGui(IMerchant villager) |
EntityItem |
dropItem(boolean dropAll) |
EntityItem |
dropItem(ItemStack itemStackIn,
boolean unused) |
EntityItem |
dropItem(ItemStack droppedItem,
boolean dropAround,
boolean traceItem) |
ItemStack |
dropItemAndGetStack(EntityItem p_184816_1_) |
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
float |
getAbsorptionAmount() |
float |
getAIMoveSpeed() |
boolean |
getAlwaysRenderNameTagForRender() |
java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
float |
getArmorVisibility() |
BlockPos |
getBedLocation() |
BlockPos |
getBedLocation(int dimension)
A dimension aware version of getBedLocation.
|
float |
getBedOrientationInDegrees() |
static BlockPos |
getBedSpawnLocation(World worldIn,
BlockPos bedLocation,
boolean forceSpawn) |
<T> T |
getCapability(Capability<T> capability,
EnumFacing facing)
Retrieves the handler for the capability requested on the specific side.
|
float |
getCooldownPeriod() |
CooldownTracker |
getCooldownTracker() |
float |
getCooledAttackStrength(float adjustTicks) |
protected SoundEvent |
getDeathSound() |
float |
getDefaultEyeHeight()
Returns the default eye height of the player
|
float |
getDigSpeed(IBlockState state)
Deprecated.
|
float |
getDigSpeed(IBlockState state,
BlockPos pos) |
ITextComponent |
getDisplayName() |
java.lang.String |
getDisplayNameString()
Get the currently computed display name, cached for efficiency.
|
protected int |
getExperiencePoints(EntityPlayer player) |
float |
getEyeHeight() |
protected SoundEvent |
getFallSound(int heightIn) |
FoodStats |
getFoodStats() |
com.mojang.authlib.GameProfile |
getGameProfile() |
java.lang.Iterable<ItemStack> |
getHeldEquipment() |
protected SoundEvent |
getHurtSound() |
InventoryEnderChest |
getInventoryEnderChest() |
ItemStack |
getItemStackFromSlot(EntityEquipmentSlot slotIn) |
float |
getLuck() |
int |
getMaxInPortalTime() |
java.lang.String |
getName() |
static java.util.UUID |
getOfflineUUID(java.lang.String username) |
int |
getPortalCooldown() |
java.util.Collection<ITextComponent> |
getPrefixes() |
EnumHandSide |
getPrimaryHand() |
int |
getScore() |
int |
getSleepTimer() |
SoundCategory |
getSoundCategory() |
protected SoundEvent |
getSplashSound() |
java.util.Collection<ITextComponent> |
getSuffixes() |
protected SoundEvent |
getSwimSound() |
Team |
getTeam() |
static java.util.UUID |
getUUID(com.mojang.authlib.GameProfile profile) |
Scoreboard |
getWorldScoreboard() |
int |
getXPSeed() |
double |
getYOffset() |
void |
handleStatusUpdate(byte id) |
boolean |
hasAchievement(Achievement achievementIn) |
boolean |
hasCapability(Capability<?> capability,
EnumFacing facing)
Determines if this object has support for the capability in question on the specific side.
|
boolean |
hasReducedDebug() |
EnumActionResult |
interact(Entity entityIn,
ItemStack stack,
EnumHand hand) |
boolean |
isAllowEdit() |
abstract boolean |
isCreative() |
boolean |
isEntityInsideOpaqueBlock() |
boolean |
isInvisibleToPlayer(EntityPlayer player) |
protected boolean |
isMovementBlocked() |
protected boolean |
isPlayer() |
boolean |
isPlayerFullyAsleep() |
boolean |
isPlayerSleeping() |
boolean |
isPushedByWater() |
boolean |
isSpawnForced()
Deprecated.
|
boolean |
isSpawnForced(int dimension)
A dimension aware version of isSpawnForced.
|
abstract boolean |
isSpectator() |
boolean |
isUser() |
boolean |
isWearing(EnumPlayerModelParts part) |
void |
jump() |
void |
moveEntityWithHeading(float strafe,
float forward) |
void |
onCriticalHit(Entity entityHit) |
void |
onDeath(DamageSource cause) |
void |
onEnchantmentCritical(Entity entityHit) |
void |
onKillEntity(EntityLivingBase entityLivingIn) |
void |
onLivingUpdate() |
void |
onUpdate() |
void |
openBook(ItemStack stack,
EnumHand hand) |
void |
openEditSign(TileEntitySign signTile) |
void |
openGui(java.lang.Object mod,
int modGuiId,
World world,
int x,
int y,
int z)
Opens a GUI with this player, uses FML's IGuiHandler system.
|
void |
openGuiHorseInventory(EntityHorse horse,
IInventory inventoryIn) |
void |
playSound(SoundEvent soundIn,
float volume,
float pitch) |
void |
preparePlayerToSpawn() |
void |
readEntityFromNBT(NBTTagCompound compound) |
void |
refreshDisplayName()
Force the displayed name to refresh
|
void |
removeExperienceLevel(int levels) |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
void |
resetCooldown() |
protected void |
resetHeight() |
void |
respawnPlayer() |
boolean |
sendCommandFeedback() |
void |
sendPlayerAbilities() |
void |
setAbsorptionAmount(float amount) |
void |
setDead() |
void |
setGameType(WorldSettings.GameType gameType) |
void |
setInWeb() |
void |
setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
setPrimaryHand(EnumHandSide hand) |
void |
setReducedDebug(boolean reducedDebug) |
void |
setScore(int scoreIn) |
void |
setSpawnChunk(BlockPos pos,
boolean forced,
int dimension)
A dimension aware version of setSpawnChunk.
|
void |
setSpawnPoint(BlockPos pos,
boolean forced) |
boolean |
shouldHeal() |
void |
spawnSweepParticles() |
void |
takeStat(StatBase stat) |
EntityPlayer.SleepResult |
trySleep(BlockPos bedLocation) |
protected void |
updateEntityActionState() |
void |
updateRidden() |
protected void |
updateSize() |
void |
wakeUpPlayer(boolean immediately,
boolean updateWorldFlag,
boolean setSpawn) |
void |
writeEntityToNBT(NBTTagCompound compound) |
int |
xpBarCap() |
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackEntityAsMob, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropLoot, frostWalk, 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, onChangedPotionEffect, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, updateActiveHand, updateArmSwingProgress, updateDistance, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata
addChatMessage, addEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canCommandSenderUseCommand, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, 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, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, 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, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, updatePassenger, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public static final java.lang.String PERSISTED_NBT_TAG
public float eyeHeight
protected static final DataParameter<java.lang.Byte> PLAYER_MODEL_FLAG
protected static final DataParameter<java.lang.Byte> MAIN_HAND
public InventoryPlayer inventory
public Container inventoryContainer
public Container openContainer
protected FoodStats foodStats
protected int flyToggleTimer
public float prevCameraYaw
public float cameraYaw
public int xpCooldown
public double prevChasingPosX
public double prevChasingPosY
public double prevChasingPosZ
public double chasingPosX
public double chasingPosY
public double chasingPosZ
protected boolean sleeping
public BlockPos playerLocation
public float renderOffsetX
public float renderOffsetY
public float renderOffsetZ
public PlayerCapabilities capabilities
public int experienceLevel
public int experienceTotal
public float experience
protected float speedOnGround
protected float speedInAir
public EntityFishHook fishEntity
public EntityPlayer(World worldIn, com.mojang.authlib.GameProfile gameProfileIn)
protected CooldownTracker createCooldownTracker()
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityLivingBase
protected void entityInit()
entityInit
in class EntityLivingBase
public void onUpdate()
onUpdate
in class EntityLivingBase
protected void updateSize()
public int getMaxInPortalTime()
getMaxInPortalTime
in class Entity
protected SoundEvent getSwimSound()
getSwimSound
in class Entity
protected SoundEvent getSplashSound()
getSplashSound
in class Entity
public int getPortalCooldown()
getPortalCooldown
in class Entity
public void playSound(SoundEvent soundIn, float volume, float pitch)
public SoundCategory getSoundCategory()
getSoundCategory
in class Entity
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class EntityLivingBase
protected boolean isMovementBlocked()
isMovementBlocked
in class EntityLivingBase
public void closeScreen()
public void updateRidden()
updateRidden
in class EntityLivingBase
public void preparePlayerToSpawn()
preparePlayerToSpawn
in class Entity
protected void updateEntityActionState()
updateEntityActionState
in class EntityLivingBase
public void onLivingUpdate()
onLivingUpdate
in class EntityLivingBase
public int getScore()
public void setScore(int scoreIn)
public void addScore(int scoreIn)
public void onDeath(DamageSource cause)
onDeath
in class EntityLivingBase
protected SoundEvent getHurtSound()
getHurtSound
in class EntityLivingBase
protected SoundEvent getDeathSound()
getDeathSound
in class EntityLivingBase
public void addToPlayerScore(Entity entityIn, int amount)
addToPlayerScore
in class Entity
@Nullable public EntityItem dropItem(boolean dropAll)
@Nullable public EntityItem dropItem(@Nullable ItemStack itemStackIn, boolean unused)
@Nullable public EntityItem dropItem(@Nullable ItemStack droppedItem, boolean dropAround, boolean traceItem)
@Nullable public ItemStack dropItemAndGetStack(EntityItem p_184816_1_)
@Deprecated public float getDigSpeed(IBlockState state)
public float getDigSpeed(IBlockState state, BlockPos pos)
public boolean canHarvestBlock(IBlockState state)
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityLivingBase
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityLivingBase
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityLivingBase
public boolean canAttackPlayer(EntityPlayer other)
protected void damageArmor(float damage)
damageArmor
in class EntityLivingBase
protected void damageShield(float damage)
damageShield
in class EntityLivingBase
public float getArmorVisibility()
protected void damageEntity(DamageSource damageSrc, float damageAmount)
damageEntity
in class EntityLivingBase
public void openEditSign(TileEntitySign signTile)
public void displayGuiEditCommandCart(CommandBlockBaseLogic p_184809_1_)
public void displayGuiCommandBlock(TileEntityCommandBlock p_184824_1_)
public void displayVillagerTradeGui(IMerchant villager)
public void displayGUIChest(IInventory chestInventory)
public void openGuiHorseInventory(EntityHorse horse, IInventory inventoryIn)
public void displayGui(IInteractionObject guiOwner)
public EnumActionResult interact(Entity entityIn, @Nullable ItemStack stack, EnumHand hand)
public double getYOffset()
getYOffset
in class Entity
public void dismountRidingEntity()
dismountRidingEntity
in class EntityLivingBase
public void attackTargetEntityWithCurrentItem(Entity targetEntity)
public void onCriticalHit(Entity entityHit)
public void onEnchantmentCritical(Entity entityHit)
public void spawnSweepParticles()
public void respawnPlayer()
public boolean isEntityInsideOpaqueBlock()
isEntityInsideOpaqueBlock
in class Entity
public boolean isUser()
public com.mojang.authlib.GameProfile getGameProfile()
public EntityPlayer.SleepResult trySleep(BlockPos bedLocation)
public void wakeUpPlayer(boolean immediately, boolean updateWorldFlag, boolean setSpawn)
@Nullable public static BlockPos getBedSpawnLocation(World worldIn, BlockPos bedLocation, boolean forceSpawn)
public float getBedOrientationInDegrees()
public boolean isPlayerSleeping()
isPlayerSleeping
in class EntityLivingBase
public boolean isPlayerFullyAsleep()
public int getSleepTimer()
public void addChatComponentMessage(ITextComponent chatComponent)
public BlockPos getBedLocation()
@Deprecated public boolean isSpawnForced()
public void setSpawnPoint(BlockPos pos, boolean forced)
public boolean hasAchievement(Achievement achievementIn)
public void addStat(StatBase stat)
public void addStat(StatBase stat, int amount)
public void takeStat(StatBase stat)
public void jump()
jump
in class EntityLivingBase
public void moveEntityWithHeading(float strafe, float forward)
moveEntityWithHeading
in class EntityLivingBase
public float getAIMoveSpeed()
getAIMoveSpeed
in class EntityLivingBase
public void addMovementStat(double p_71000_1_, double p_71000_3_, double p_71000_5_)
public void fall(float distance, float damageMultiplier)
fall
in class EntityLivingBase
protected void resetHeight()
resetHeight
in class Entity
protected SoundEvent getFallSound(int heightIn)
getFallSound
in class EntityLivingBase
public void onKillEntity(EntityLivingBase entityLivingIn)
onKillEntity
in class Entity
public void addExperience(int amount)
public int getXPSeed()
public void removeExperienceLevel(int levels)
public void addExperienceLevel(int levels)
public int xpBarCap()
public void addExhaustion(float exhaustion)
public FoodStats getFoodStats()
public boolean canEat(boolean ignoreHunger)
public boolean shouldHeal()
public boolean isAllowEdit()
public boolean canPlayerEdit(BlockPos pos, EnumFacing facing, @Nullable ItemStack stack)
protected int getExperiencePoints(EntityPlayer player)
getExperiencePoints
in class EntityLivingBase
protected boolean isPlayer()
isPlayer
in class EntityLivingBase
public boolean getAlwaysRenderNameTagForRender()
getAlwaysRenderNameTagForRender
in class EntityLivingBase
public void clonePlayer(EntityPlayer oldPlayer, boolean respawnFromEnd)
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
public void sendPlayerAbilities()
public void setGameType(WorldSettings.GameType gameType)
public java.lang.String getName()
getName
in interface ICommandSender
getName
in class Entity
public InventoryEnderChest getInventoryEnderChest()
@Nullable public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn)
getItemStackFromSlot
in class EntityLivingBase
public void setItemStackToSlot(EntityEquipmentSlot slotIn, @Nullable ItemStack stack)
setItemStackToSlot
in class EntityLivingBase
public java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment
in class Entity
public java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
in class EntityLivingBase
public boolean isInvisibleToPlayer(EntityPlayer player)
isInvisibleToPlayer
in class Entity
public abstract boolean isSpectator()
public abstract boolean isCreative()
public boolean isPushedByWater()
isPushedByWater
in class Entity
public Scoreboard getWorldScoreboard()
public ITextComponent getDisplayName()
getDisplayName
in interface ICommandSender
getDisplayName
in class Entity
public float getEyeHeight()
getEyeHeight
in class Entity
public void setAbsorptionAmount(float amount)
setAbsorptionAmount
in class EntityLivingBase
public float getAbsorptionAmount()
getAbsorptionAmount
in class EntityLivingBase
public static java.util.UUID getUUID(com.mojang.authlib.GameProfile profile)
public static java.util.UUID getOfflineUUID(java.lang.String username)
public boolean canOpen(LockCode code)
public boolean isWearing(EnumPlayerModelParts part)
public boolean sendCommandFeedback()
sendCommandFeedback
in interface ICommandSender
sendCommandFeedback
in class Entity
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
replaceItemInInventory
in class Entity
public boolean hasReducedDebug()
public void setReducedDebug(boolean reducedDebug)
public EnumHandSide getPrimaryHand()
getPrimaryHand
in class EntityLivingBase
public void setPrimaryHand(EnumHandSide hand)
public float getCooldownPeriod()
public float getCooledAttackStrength(float adjustTicks)
public void resetCooldown()
public CooldownTracker getCooldownTracker()
public void applyEntityCollision(Entity entityIn)
applyEntityCollision
in class Entity
public float getLuck()
public void openGui(java.lang.Object mod, int modGuiId, World world, int x, int y, int z)
mod
- The mod trying to open a GUImodGuiId
- GUI IDworld
- Current Worldx
- Passed directly to IGuiHandler, data meaningless Typically world X positiony
- Passed directly to IGuiHandler, data meaningless Typically world Y positionz
- Passed directly to IGuiHandler, data meaningless Typically world Z positionpublic BlockPos getBedLocation(int dimension)
dimension
- The dimension to get the bed spawn forpublic boolean isSpawnForced(int dimension)
dimension
- The dimension to get whether to check for a bed before spawning forpublic void setSpawnChunk(BlockPos pos, boolean forced, int dimension)
pos
- The spawn point to set as the player-specific spawn point for the dimensionforced
- Whether or not the respawn code should check for a bed at this location (true means it won't check for a bed)dimension
- Which dimension to apply the player-specific respawn point topublic float getDefaultEyeHeight()
public java.lang.String getDisplayNameString()
public void refreshDisplayName()
public void addPrefix(ITextComponent prefix)
prefix
- The prefixpublic void addSuffix(ITextComponent suffix)
suffix
- The suffixpublic java.util.Collection<ITextComponent> getPrefixes()
public java.util.Collection<ITextComponent> getSuffixes()
public <T> T getCapability(Capability<T> capability, EnumFacing facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class EntityLivingBase
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public boolean hasCapability(Capability<?> capability, EnumFacing facing)
ICapabilityProvider
hasCapability
in interface ICapabilityProvider
hasCapability
in class EntityLivingBase
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'