public class EntityPlayerSP extends EntityPlayer
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
|
cameraYaw, 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, field_71098_bD, fishEntity, inventory, inventoryContainer, maxHealth, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, sleepTimer, username, xpCooldown
arrowHitTimer, attackedAtYaw, attackTime, cameraPitch, carryoverDamage, deathTime, experienceValue, field_70730_aX, field_70731_aW, field_70769_ao, field_70770_ap, field_94063_bt, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, landMovementFactor, limbSwing, limbYaw, livingSoundTime, maxHurtResistantTime, maxHurtTime, pickUpLootProability, prevCameraPitch, prevHealth, prevLimbYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress, swingProgressInt, targetTasks, tasks
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, 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, skinUrl, 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.
|
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 |
isSneaking()
Returns if this entity is sneaking.
|
void |
moveEntity(double par1,
double par3,
double par5)
Tries to moves the entity by the passed in displacement.
|
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(String par1Str) |
void |
setHealth(int 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 |
updateCloak() |
void |
updateEntityActionState() |
addExhaustion, addExperience, addExperienceLevel, addMovementStat, addScore, addToPlayerScore, attackEntityFrom, attackTargetEntityWithCurrentItem, canCurrentToolHarvestBlock, canEat, canHarvestBlock, canPickUpLoot, canPlayerEdit, clearItemInUse, clonePlayer, destroyCurrentEquippedItem, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, func_71066_bF, func_82243_bO, func_94059_bO, func_94062_bN, func_96092_aw, func_96122_a, func_98034_c, getBedLocation, getBedOrientationInDegrees, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getEntityName, getEyeHeight, getFoodStats, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxHealth, getMaxInPortalTime, getPortalCooldown, getScore, getSleepTimer, getTeam, getTotalArmorValue, getTranslatedEntityName, getTranslator, getWorldScoreboard, getYOffset, handleHealthUpdate, interactWith, isBlocking, isEntityInsideOpaqueBlock, isPlayerFullyAsleep, isPlayerSleeping, isSpawnForced, isUsingItem, joinEntityItemWithWorld, mountEntity, moveEntityWithHeading, onDeath, onKillEntity, onUpdate, openGui, preparePlayerToSpawn, readEntityFromNBT, respawnPlayer, sendPlayerAbilities, setCurrentItemOrArmor, setDead, setGameType, setInWeb, setItemInUse, setScore, setSpawnChunk, shouldHeal, sleepInBedAt, stopUsingItem, translateString, triggerAchievement, updateRidden, verifyRespawnCoordinates, wakeUpPlayer, writeEntityToNBT, xpBarCap
addPotionEffect, attackEntityAsMob, canAttackClass, canBeCollidedWith, canBePushed, canBeSteered, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, detachHome, eatGrassBonus, faceEntity, func_104002_bU, func_82143_as, func_94056_bM, func_94057_bL, func_94058_c, func_94060_bK, func_94061_f, func_96120_a, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getArmorItemForSlot, getArmorPosition, getArrowCountInEntity, getAttackTarget, getCanSpawnHere, getCreatureAttribute, getEntitySenses, getHealth, getHomePosition, getJumpHelper, getLastAttackingEntity, getLook, getLookHelper, getLookVec, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPosition, getRenderSizeModifier, getRNG, getRotationYawHead, getSpeedModifier, getSwingProgress, getTalkInterval, getTexture, getVerticalFaceSpeed, hasHome, heal, initCreature, isChild, isEntityAlive, isEntityUndead, isOnLadder, isPotionActive, isPotionActive, isPotionApplicable, isWithinHomeDistance, isWithinHomeDistanceCurrentPosition, knockBack, onEntityUpdate, performHurtAnimation, playLivingSound, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setAttackTarget, setCanPickUpLoot, setEntityHealth, setHomeArea, setJumping, setLastAttackingEntity, setMoveForward, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, spawnExplosionParticle, swingItem
addEntityID, addNotRiddenEntityID, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, copyDataFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, 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, interact, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSprinting, isWet, moveFlying, onCollideWithPlayer, onStruckByLightning, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setFire, setInPortal, setInvisible, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldRenderInPass, shouldRiderSit, toString, travelToDimension, unmountEntity, updateRiderPosition, writeToNBT
public 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 moveEntity(double par1, double par3, double par5)
moveEntity
in class Entity
public void updateEntityActionState()
public void onLivingUpdate()
onLivingUpdate
in class EntityPlayer
public float getFOVMultiplier()
public void updateCloak()
updateCloak
in class Entity
public void closeScreen()
closeScreen
in class EntityPlayer
public void displayGUIEditSign(TileEntity par1TileEntity)
displayGUIEditSign
in class EntityPlayer
public void displayGUIBook(ItemStack par1ItemStack)
displayGUIBook
in class EntityPlayer
public void displayGUIChest(IInventory par1IInventory)
displayGUIChest
in class EntityPlayer
public void displayGUIHopper(TileEntityHopper par1TileEntityHopper)
displayGUIHopper
in class EntityPlayer
public void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
displayGUIHopperMinecart
in class EntityPlayer
public void displayGUIWorkbench(int par1, int par2, int par3)
displayGUIWorkbench
in class EntityPlayer
public void displayGUIEnchantment(int par1, int par2, int par3, String par4Str)
displayGUIEnchantment
in class EntityPlayer
public void displayGUIAnvil(int par1, int par2, int par3)
displayGUIAnvil
in class EntityPlayer
public void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace)
displayGUIFurnace
in class EntityPlayer
public void displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand)
displayGUIBrewingStand
in class EntityPlayer
public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
displayGUIBeacon
in class EntityPlayer
public void displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser)
displayGUIDispenser
in class EntityPlayer
public void displayGUIMerchant(IMerchant par1IMerchant, String par2Str)
displayGUIMerchant
in class EntityPlayer
public void onCriticalHit(Entity par1Entity)
onCriticalHit
in class EntityPlayer
public void onEnchantmentCritical(Entity par1Entity)
onEnchantmentCritical
in class EntityPlayer
public void onItemPickup(Entity par1Entity, int par2)
onItemPickup
in class EntityLiving
public boolean isSneaking()
isSneaking
in class Entity
public void setHealth(int par1)
public void addChatMessage(String par1Str)
addChatMessage
in class EntityPlayer
public void addStat(StatBase par1StatBase, int par2)
addStat
in class EntityPlayer
public void setSprinting(boolean par1)
setSprinting
in class Entity
public void setXPStats(float par1, int par2, int par3)
public void sendChatToPlayer(String par1Str)
public boolean canCommandSenderUseCommand(int par1, String par2Str)
public ChunkCoordinates getPlayerCoordinates()
public ItemStack getHeldItem()
getHeldItem
in class EntityPlayer
public void playSound(String par1Str, float par2, float par3)
playSound
in class EntityPlayer