public class EntityPlayerSP extends AbstractClientPlayer
EntityPlayer.EnumChatVisibility, EntityPlayer.EnumStatus
Modifier and Type | Field and Description |
---|---|
protected Minecraft |
mc |
MovementInput |
movementInput |
float |
prevRenderArmPitch |
float |
prevRenderArmYaw |
float |
prevTimeInPortal |
float |
renderArmPitch |
float |
renderArmYaw |
NetHandlerPlayClient |
sendQueue |
int |
sprintingTicksLeft |
protected int |
sprintToggleTimer |
float |
timeInPortal |
cameraYaw, capabilities, experience, experienceLevel, experienceTotal, field_71085_bR, field_71091_bM, field_71094_bP, field_71095_bQ, field_71096_bN, field_71097_bO, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, renderOffsetX, renderOffsetY, renderOffsetZ, sleeping, speedInAir, speedOnGround, xpCooldown
arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
addedToChunk, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityPlayerSP(Minecraft mcIn,
World worldIn,
NetHandlerPlayClient p_i46278_3_,
StatFileWriter p_i46278_4_) |
Modifier and Type | Method and Description |
---|---|
void |
addChatComponentMessage(IChatComponent chatComponent) |
void |
addChatMessage(IChatComponent message) |
void |
addStat(StatBase stat,
int amount) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canUseCommand(int permLevel,
java.lang.String commandName) |
void |
closeScreen() |
protected void |
damageEntity(DamageSource damageSrc,
float damageAmount) |
void |
displayGui(IInteractionObject guiOwner) |
void |
displayGUIBook(ItemStack bookStack) |
void |
displayGUIChest(IInventory chestInventory) |
void |
displayGUIHorse(EntityHorse horse,
IInventory horseInventory) |
void |
displayVillagerTradeGui(IMerchant villager) |
EntityItem |
dropOneItem(boolean p_71040_1_) |
void |
func_175159_q() |
java.lang.String |
getClientBrand() |
float |
getHorseJumpPower() |
BlockPos |
getPosition() |
StatFileWriter |
getStatFileWriter() |
void |
heal(float healAmount) |
protected boolean |
isCurrentViewEntity() |
boolean |
isRidingHorse() |
boolean |
isServerWorld() |
boolean |
isSneaking() |
boolean |
isUser() |
void |
joinEntityItemWithWorld(EntityItem p_71012_1_) |
void |
mountEntity(Entity entityIn) |
void |
onCriticalHit(Entity entityHit) |
void |
onEnchantmentCritical(Entity entityHit) |
void |
onLivingUpdate() |
void |
onUpdate() |
void |
onUpdateWalkingPlayer() |
void |
openEditCommandBlock(CommandBlockLogic cmdBlockLogic) |
void |
openEditSign(TileEntitySign signTile) |
void |
playSound(java.lang.String name,
float volume,
float pitch) |
protected boolean |
pushOutOfBlocks(double x,
double y,
double z) |
void |
respawnPlayer() |
void |
sendChatMessage(java.lang.String p_71165_1_) |
void |
sendHorseInventory() |
protected void |
sendHorseJump() |
void |
sendPlayerAbilities() |
void |
setClientBrand(java.lang.String brand) |
void |
setPlayerSPHealth(float p_71150_1_) |
void |
setSprinting(boolean sprinting) |
void |
setXPStats(float currentXP,
int maxXP,
int level) |
void |
swingItem() |
void |
updateEntityActionState() |
getDownloadImageSkin, getFovModifier, getLocationCape, getLocationSkin, getLocationSkin, getPlayerInfo, getSkinType, hasPlayerInfo, hasSkin, isSpectator
addExhaustion, addExperience, addExperienceLevel, addMovementStat, addScore, addToPlayerScore, applyEntityAttributes, attackTargetEntityWithCurrentItem, canAttackPlayer, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, clearItemInUse, clonePlayer, damageArmor, destroyCurrentEquippedItem, dropItem, dropPlayerItemWithRandomChoice, entityInit, fall, func_175145_a, func_175148_a, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getBreakSpeed, getCurrentArmor, getCurrentEquippedItem, getDeathSound, getDefaultEyeHeight, getDisplayName, getDisplayNameString, getEquipmentInSlot, getExperiencePoints, getEyeHeight, getFallSoundString, getFoodStats, getGameProfile, getHeldItem, getHurtSound, getInventory, getInventoryEnderChest, getItemInUse, getItemInUseCount, getItemInUseDuration, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getScore, getSleepTimer, getSplashSound, getSwimSound, getTeam, getToolDigEfficiency, getTotalArmorValue, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleHealthUpdate, hasReducedDebug, interactWith, isAllowEdit, isBlocking, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUsingItem, jump, moveEntityWithHeading, onDeath, onItemUseFinish, onKillEntity, openGui, preparePlayerToSpawn, readEntityFromNBT, refreshDisplayName, removeExperienceLevel, replaceItemInInventory, resetHeight, sendCommandFeedback, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setGameType, setInWeb, setItemInUse, setReducedDebug, setScore, setSpawnChunk, setSpawnPoint, shouldHeal, stopUsingItem, triggerAchievement, trySleep, updateItemUse, updateRidden, wakeUpPlayer, writeEntityToNBT, xpBarCap
addPotionEffect, addRandomArmor, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, func_110146_f, func_146066_aG, func_152111_bt, func_152112_bu, func_175133_bi, func_175134_bD, func_175135_B, func_175136_bO, func_180426_a, func_180433_a, func_180466_bG, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, isChild, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, kill, knockBack, onChangedPotionEffect, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, updateAITick, updateArmSwingProgress, updatePotionEffects
addEntityCrashInfo, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_145781_i, func_174807_aT, func_174815_a, func_174816_a, func_174817_o, func_174819_aU, func_174823_aP, func_174825_a, func_174827_a, func_174834_g, func_180427_aV, getAir, getAlwaysRenderNameTag, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getExtendedProperties, getFlag, getHorizontalFacing, getMaxFallHeight, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPositionEyes, getPositionVector, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isEntityInvulnerable, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isRiding, isSilent, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, playStepSound, rayTrace, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, toString, travelToDimension, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
public final NetHandlerPlayClient sendQueue
public MovementInput movementInput
protected Minecraft mc
protected int sprintToggleTimer
public int sprintingTicksLeft
public float renderArmYaw
public float renderArmPitch
public float prevRenderArmYaw
public float prevRenderArmPitch
public float timeInPortal
public float prevTimeInPortal
public EntityPlayerSP(Minecraft mcIn, World worldIn, NetHandlerPlayClient p_i46278_3_, StatFileWriter p_i46278_4_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityPlayer
public void heal(float healAmount)
heal
in class EntityLivingBase
public void mountEntity(Entity entityIn)
mountEntity
in class EntityLivingBase
public void onUpdate()
onUpdate
in class EntityPlayer
public void onUpdateWalkingPlayer()
public EntityItem dropOneItem(boolean p_71040_1_)
dropOneItem
in class EntityPlayer
public void joinEntityItemWithWorld(EntityItem p_71012_1_)
joinEntityItemWithWorld
in class EntityPlayer
public void sendChatMessage(java.lang.String p_71165_1_)
public void swingItem()
swingItem
in class EntityLivingBase
public void respawnPlayer()
respawnPlayer
in class EntityPlayer
protected void damageEntity(DamageSource damageSrc, float damageAmount)
damageEntity
in class EntityPlayer
public void closeScreen()
closeScreen
in class EntityPlayer
public void func_175159_q()
public void setPlayerSPHealth(float p_71150_1_)
public void addStat(StatBase stat, int amount)
addStat
in class EntityPlayer
public void sendPlayerAbilities()
sendPlayerAbilities
in class EntityPlayer
public boolean isUser()
isUser
in class EntityPlayer
protected void sendHorseJump()
public void sendHorseInventory()
public void setClientBrand(java.lang.String brand)
public java.lang.String getClientBrand()
public StatFileWriter getStatFileWriter()
public void addChatComponentMessage(IChatComponent chatComponent)
addChatComponentMessage
in class EntityPlayer
protected boolean pushOutOfBlocks(double x, double y, double z)
pushOutOfBlocks
in class Entity
public void setSprinting(boolean sprinting)
setSprinting
in class EntityLivingBase
public void setXPStats(float currentXP, int maxXP, int level)
public void addChatMessage(IChatComponent message)
addChatMessage
in interface ICommandSender
addChatMessage
in class Entity
public boolean canUseCommand(int permLevel, java.lang.String commandName)
canUseCommand
in interface ICommandSender
canUseCommand
in class Entity
public BlockPos getPosition()
getPosition
in interface ICommandSender
getPosition
in class Entity
public void playSound(java.lang.String name, float volume, float pitch)
playSound
in class EntityPlayer
public boolean isServerWorld()
isServerWorld
in class EntityLivingBase
public boolean isRidingHorse()
public float getHorseJumpPower()
public void openEditSign(TileEntitySign signTile)
openEditSign
in class EntityPlayer
public void openEditCommandBlock(CommandBlockLogic cmdBlockLogic)
openEditCommandBlock
in class EntityPlayer
public void displayGUIBook(ItemStack bookStack)
displayGUIBook
in class EntityPlayer
public void displayGUIChest(IInventory chestInventory)
displayGUIChest
in class EntityPlayer
public void displayGUIHorse(EntityHorse horse, IInventory horseInventory)
displayGUIHorse
in class EntityPlayer
public void displayGui(IInteractionObject guiOwner)
displayGui
in class EntityPlayer
public void displayVillagerTradeGui(IMerchant villager)
displayVillagerTradeGui
in class EntityPlayer
public void onCriticalHit(Entity entityHit)
onCriticalHit
in class EntityPlayer
public void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical
in class EntityPlayer
public boolean isSneaking()
isSneaking
in class Entity
public void updateEntityActionState()
updateEntityActionState
in class EntityPlayer
protected boolean isCurrentViewEntity()
public void onLivingUpdate()
onLivingUpdate
in class EntityPlayer