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, xpCooldownarrowHitTimer, 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, swingProgressIntaddedToChunk, 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, isSpectatoraddExhaustion, 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, xpBarCapaddPotionEffect, 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, updatePotionEffectsaddEntityCrashInfo, 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, writeToNBTOptionalpublic 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 EntityPlayerpublic void heal(float healAmount)
heal in class EntityLivingBasepublic void mountEntity(Entity entityIn)
mountEntity in class EntityLivingBasepublic void onUpdate()
onUpdate in class EntityPlayerpublic void onUpdateWalkingPlayer()
public EntityItem dropOneItem(boolean p_71040_1_)
dropOneItem in class EntityPlayerpublic void joinEntityItemWithWorld(EntityItem p_71012_1_)
joinEntityItemWithWorld in class EntityPlayerpublic void sendChatMessage(java.lang.String p_71165_1_)
public void swingItem()
swingItem in class EntityLivingBasepublic void respawnPlayer()
respawnPlayer in class EntityPlayerprotected void damageEntity(DamageSource damageSrc, float damageAmount)
damageEntity in class EntityPlayerpublic void closeScreen()
closeScreen in class EntityPlayerpublic void func_175159_q()
public void setPlayerSPHealth(float p_71150_1_)
public void addStat(StatBase stat, int amount)
addStat in class EntityPlayerpublic void sendPlayerAbilities()
sendPlayerAbilities in class EntityPlayerpublic boolean isUser()
isUser in class EntityPlayerprotected 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 EntityPlayerprotected boolean pushOutOfBlocks(double x,
double y,
double z)
pushOutOfBlocks in class Entitypublic void setSprinting(boolean sprinting)
setSprinting in class EntityLivingBasepublic void setXPStats(float currentXP,
int maxXP,
int level)
public void addChatMessage(IChatComponent message)
addChatMessage in interface ICommandSenderaddChatMessage in class Entitypublic boolean canUseCommand(int permLevel,
java.lang.String commandName)
canUseCommand in interface ICommandSendercanUseCommand in class Entitypublic BlockPos getPosition()
getPosition in interface ICommandSendergetPosition in class Entitypublic void playSound(java.lang.String name,
float volume,
float pitch)
playSound in class EntityPlayerpublic boolean isServerWorld()
isServerWorld in class EntityLivingBasepublic boolean isRidingHorse()
public float getHorseJumpPower()
public void openEditSign(TileEntitySign signTile)
openEditSign in class EntityPlayerpublic void openEditCommandBlock(CommandBlockLogic cmdBlockLogic)
openEditCommandBlock in class EntityPlayerpublic void displayGUIBook(ItemStack bookStack)
displayGUIBook in class EntityPlayerpublic void displayGUIChest(IInventory chestInventory)
displayGUIChest in class EntityPlayerpublic void displayGUIHorse(EntityHorse horse, IInventory horseInventory)
displayGUIHorse in class EntityPlayerpublic void displayGui(IInteractionObject guiOwner)
displayGui in class EntityPlayerpublic void displayVillagerTradeGui(IMerchant villager)
displayVillagerTradeGui in class EntityPlayerpublic void onCriticalHit(Entity entityHit)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical in class EntityPlayerpublic boolean isSneaking()
isSneaking in class Entitypublic void updateEntityActionState()
updateEntityActionState in class EntityPlayerprotected boolean isCurrentViewEntity()
public void onLivingUpdate()
onLivingUpdate in class EntityPlayer