public class EntityPlayerSP extends AbstractClientPlayer
| Modifier and Type | Field and Description |
|---|---|
MovementInput |
movementInput |
float |
prevRenderArmPitch |
float |
prevRenderArmYaw |
float |
prevTimeInPortal
The amount of time an entity has been in a Portal the previous tick
|
float |
renderArmPitch |
float |
renderArmYaw |
int |
sprintingTicksLeft
Ticks left before sprinting is disabled.
|
float |
timeInPortal
The amount of time an entity has been in a Portal
|
field_110314_bcameraYaw, capabilities, experience, experienceLevel, experienceTotal, field_71079_bU, field_71082_cx, field_71085_bR, field_71089_bV, field_71091_bM, field_71094_bP, field_71095_bQ, field_71096_bN, field_71097_bO, fishEntity, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, sleepTimer, username, xpCooldownarrowHitTimer, attackedAtYaw, attackTime, cameraPitch, deathTime, field_110158_av, field_70769_ao, field_70770_ap, hurtTime, isSwingInProgress, jumpMovementFactor, limbSwing, limbYaw, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, prevCameraPitch, prevHealth, prevLimbYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgressaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, field_98038_p, fireResistance, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityPlayerSP(Minecraft par1Minecraft,
World par2World,
Session par3Session,
int par4) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChatMessage(String par1Str)
Add a chat message to the player
|
void |
addStat(StatBase par1StatBase,
int par2)
Adds a value to a statistic field.
|
boolean |
canCommandSenderUseCommand(int par1,
String par2Str)
Returns true if the command sender is allowed to use the given command.
|
void |
closeScreen()
sets current screen to null (used on escape buttons of GUIs)
|
void |
displayGUIAnvil(int par1,
int par2,
int par3)
Displays the GUI for interacting with an anvil.
|
void |
displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
Displays the GUI for interacting with a beacon.
|
void |
displayGUIBook(ItemStack par1ItemStack)
Displays the GUI for interacting with a book.
|
void |
displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)
Displays the GUI for interacting with a brewing stand.
|
void |
displayGUIChest(IInventory par1IInventory)
Displays the GUI for interacting with a chest inventory.
|
void |
displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)
Displays the dipsenser GUI for the passed in dispenser entity.
|
void |
displayGUIEditSign(TileEntity par1TileEntity)
Displays the GUI for editing a sign.
|
void |
displayGUIEnchantment(int par1,
int par2,
int par3,
String par4Str) |
void |
displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)
Displays the furnace GUI for the passed in furnace entity.
|
void |
displayGUIHopper(TileEntityHopper par1TileEntityHopper) |
void |
displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper) |
void |
displayGUIMerchant(IMerchant par1IMerchant,
String par2Str) |
void |
displayGUIWorkbench(int par1,
int par2,
int par3)
Displays the crafting GUI for a workbench.
|
void |
func_110298_a(EntityHorse par1EntityHorse,
IInventory par2IInventory) |
boolean |
func_110317_t() |
float |
func_110319_bJ() |
float |
getFOVMultiplier()
Gets the player's field of view multiplier.
|
ItemStack |
getHeldItem()
Returns the item that this EntityLiving is holding, if any.
|
ChunkCoordinates |
getPlayerCoordinates()
Return the position for this command sender.
|
boolean |
isClientWorld()
Returns whether the entity is in a local (client) world
|
boolean |
isSneaking()
Returns if this entity is sneaking.
|
void |
onCriticalHit(Entity par1Entity)
Called when the player performs a critical hit on the Entity.
|
void |
onEnchantmentCritical(Entity par1Entity) |
void |
onItemPickup(Entity par1Entity,
int par2)
Called whenever an item is picked up from walking over it.
|
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
playSound(String par1Str,
float par2,
float par3) |
void |
sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent) |
void |
setHealth(float par1)
Updates health locally.
|
void |
setSprinting(boolean par1)
Set sprinting switch for Entity.
|
void |
setXPStats(float par1,
int par2,
int par3)
Sets the current XP, total XP, and level number.
|
void |
updateEntityActionState() |
func_110299_g, func_110300_d, func_110303_q, func_110304_a, func_110305_h, func_110306_p, func_110307_b, func_110308_e, func_110309_l, func_110310_o, func_110311_faddExhaustion, addExperience, addExperienceLevel, addMovementStat, addScore, addToPlayerScore, attackEntityFrom, attackTargetEntityWithCurrentItem, canCurrentToolHarvestBlock, canEat, canHarvestBlock, canPlayerEdit, clearItemInUse, clonePlayer, destroyCurrentEquippedItem, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, func_110139_bj, func_110149_m, func_130014_f_, func_82243_bO, func_94059_bO, func_96092_aw, func_96122_a, func_98034_c, getAIMoveSpeed, getBedLocation, getBedLocation, getBedOrientationInDegrees, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getEntityName, getEyeHeight, getFoodStats, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxInPortalTime, getPortalCooldown, getScore, getSleepTimer, getTeam, getTotalArmorValue, getTranslatedEntityName, getWorldScoreboard, getYOffset, handleHealthUpdate, interactWith, isBlocking, isEntityInsideOpaqueBlock, isPlayerFullyAsleep, isPlayerSleeping, isSpawnForced, isSpawnForced, isUsingItem, joinEntityItemWithWorld, mountEntity, moveEntityWithHeading, onDeath, onKillEntity, onUpdate, openGui, preparePlayerToSpawn, readEntityFromNBT, respawnPlayer, sendPlayerAbilities, setCurrentItemOrArmor, setDead, setGameType, setInWeb, setItemInUse, setScore, setSpawnChunk, setSpawnChunk, shouldHeal, sleepInBedAt, stopUsingItem, triggerAchievement, updateRidden, verifyRespawnCoordinates, wakeUpPlayer, writeEntityToNBT, xpBarCapaddPotionEffect, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, func_110138_aP, func_110140_aT, func_110142_aN, func_110143_aJ, func_110144_aD, func_110145_l, func_110148_a, func_130011_c, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getCreatureAttribute, getLook, getLookVec, getPosition, getRNG, getRotationYawHead, getSwingProgress, heal, isChild, isEntityAlive, isEntityUndead, isOnLadder, isPotionActive, isPotionActive, isPotionApplicable, knockBack, onEntityUpdate, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setEntityHealth, setJumping, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, swingItemaddEntityID, addNotRiddenEntityID, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_110123_P, func_110124_au, func_130002_c, func_82143_as, func_82146_a, func_82149_j, func_85029_a, func_85031_j, func_96091_a, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getExtendedProperties, getMountedYOffset, getParts, getPersistentID, getPickedResult, getShadowSize, getTeleportDirection, handleLavaMovement, handleWaterMovement, hashCode, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSprinting, isWet, moveEntity, moveFlying, onCollideWithPlayer, onStruckByLightning, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setFire, setInPortal, setInvisible, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, updateRiderPosition, writeToNBTpublic MovementInput movementInput
public int sprintingTicksLeft
public float renderArmYaw
public float renderArmPitch
public float prevRenderArmYaw
public float prevRenderArmPitch
public float timeInPortal
public float prevTimeInPortal
public void updateEntityActionState()
public void onLivingUpdate()
onLivingUpdate in class EntityPlayerpublic float getFOVMultiplier()
public void closeScreen()
closeScreen in class EntityPlayerpublic void displayGUIEditSign(TileEntity par1TileEntity)
displayGUIEditSign in class EntityPlayerpublic void displayGUIBook(ItemStack par1ItemStack)
displayGUIBook in class EntityPlayerpublic void displayGUIChest(IInventory par1IInventory)
displayGUIChest in class EntityPlayerpublic void displayGUIHopper(TileEntityHopper par1TileEntityHopper)
displayGUIHopper in class EntityPlayerpublic void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
displayGUIHopperMinecart in class EntityPlayerpublic void func_110298_a(EntityHorse par1EntityHorse, IInventory par2IInventory)
func_110298_a in class EntityPlayerpublic void displayGUIWorkbench(int par1,
int par2,
int par3)
displayGUIWorkbench in class EntityPlayerpublic void displayGUIEnchantment(int par1,
int par2,
int par3,
String par4Str)
displayGUIEnchantment in class EntityPlayerpublic void displayGUIAnvil(int par1,
int par2,
int par3)
displayGUIAnvil in class EntityPlayerpublic void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)
displayGUIFurnace in class EntityPlayerpublic void displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)
displayGUIBrewingStand in class EntityPlayerpublic void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
displayGUIBeacon in class EntityPlayerpublic void displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)
displayGUIDispenser in class EntityPlayerpublic void displayGUIMerchant(IMerchant par1IMerchant, String par2Str)
displayGUIMerchant in class EntityPlayerpublic void onCriticalHit(Entity par1Entity)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity par1Entity)
onEnchantmentCritical in class EntityPlayerpublic void onItemPickup(Entity par1Entity, int par2)
onItemPickup in class EntityLivingBasepublic boolean isSneaking()
isSneaking in class Entitypublic void setHealth(float par1)
public void addChatMessage(String par1Str)
addChatMessage in class EntityPlayerpublic void addStat(StatBase par1StatBase, int par2)
addStat in class EntityPlayerpublic void setSprinting(boolean par1)
setSprinting in class EntityLivingBasepublic void setXPStats(float par1,
int par2,
int par3)
public void sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent)
public boolean canCommandSenderUseCommand(int par1,
String par2Str)
public ChunkCoordinates getPlayerCoordinates()
public ItemStack getHeldItem()
getHeldItem in class EntityPlayerpublic void playSound(String par1Str, float par2, float par3)
playSound in class EntityPlayerpublic boolean isClientWorld()
isClientWorld in class EntityLivingBasepublic boolean func_110317_t()
public float func_110319_bJ()