Package net.minecraft.client.player
Class LocalPlayer
- java.lang.Object
-
- net.minecraft.world.entity.Entity
-
- net.minecraft.world.entity.LivingEntity
-
- net.minecraft.world.entity.player.Player
-
- net.minecraft.client.player.LocalPlayer
-
- Direct Known Subclasses:
NetworkedLocalPlayer
@Client public class LocalPlayer extends Player
-
-
Field Summary
Fields Modifier and Type Field Description boolean
activeJesus
protected int
killAuraTimer
protected Minecraft
mc
MovementInput
movementInput
float
prevRenderArmPitch
float
prevRenderArmYaw
float
renderArmPitch
float
renderArmYaw
int
sprintingTicksLeft
protected int
sprintToggleTimer
-
Fields inherited from class net.minecraft.world.entity.player.Player
cameraYaw, capabilities, craftingInventory, dimension, experience, experienceLevel, experienceTotal, field_20061_w, field_20062_v, field_20063_u, field_20064_t, field_20065_s, field_20066_r, field_22061_z, field_22062_y, field_22063_x, field_9371_f, fishEntity, flyToggleTimer, foodStats, inPortal, inventory, inventorySlots, isSwinging, playerLocation, prevCameraYaw, prevTimeInPortal, score, sleeping, speedInAir, speedOnGround, swingProgressInt, timeInPortal, timeUntilPortal, username, xpCooldown
-
Fields inherited from class net.minecraft.world.entity.LivingEntity
activePotionsMap, arrowHitTempCounter, arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, carryoverDamage, dead, deathTime, defaultPitch, entityAge, entityType, experienceValue, field_703_S, field_704_R, field_705_Q, field_9325_U, field_9326_T, field_9345_F, field_9349_D, field_9353_B, field_9355_A, field_9358_y, field_9359_x, field_9360_w, field_9361_v, field_9362_u, field_9363_r, field_9365_p, health, heartsHalvesLife, hurtTime, isJumping, jumpMovementFactor, landMovementFactor, maxHurtTime, moveForward, moveSpeed, moveStrafing, naturalArmorRating, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, numTicksToChaseTarget, prevCameraPitch, prevHealth, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, targetTasks, tasks, texture
-
Fields inherited from class net.minecraft.world.entity.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, cloakUrl, dataWatcher, distanceWalkedModified, entityCollisionReduction, entityId, fallDistance, field_9293_aM, fireResistance, heartsLife, height, ignoreFrustumCheck, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, isJesusColliding, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, playerNameForSkin, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, skinUrl, slim, stepHeight, ticksExisted, velocityChanged, width, worldObj, yOffset, ySize
-
-
Constructor Summary
Constructors Constructor Description LocalPlayer(Minecraft var1, World var2, Session var3, int var4)
LocalPlayer(Minecraft minecraft, World world, Session session, int i, java.lang.Void freecamOverload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChatMessage(java.lang.String var1)
void
addStat(StatBase var1, int var2)
boolean
canBeCollidedWith()
boolean
canBePushed()
void
closeScreen()
protected void
damageEntity(DamageSource var1, int var2)
void
displayGUIBrewingStand(TileEntityBrewingStand var1)
void
displayGUIChest(IInventory var1)
void
displayGUIDispenser(TileEntityDispenser var1)
void
displayGUIEditSign(TileEntitySign var1)
void
displayGUIEnchantment(int var1, int var2, int var3)
void
displayGUIFurnace(TileEntityFurnace var1)
void
displayWorkbenchGUI(int var1, int var2, int var3)
void
func_6420_o()
int
getEffectiveHealth()
float
getFOVMultiplier()
protected boolean
isClientWorld()
boolean
isFreecamPlayer()
boolean
isMovementToggled()
boolean
isSneaking()
void
moveEntity(double var1, double var3, double var5)
void
onCriticalHit(Entity var1)
void
onDeath(DamageSource var1)
void
onEnchantmentCritical(Entity var1)
void
onItemPickup(Entity var1, int var2)
void
onLivingUpdate()
protected boolean
pushOutOfBlocks(double var1, double var3, double var5)
void
readEntityFromNBT(NBTTagCompound var1)
void
respawnPlayer()
void
sendChatMessage(java.lang.String var1)
void
setDead()
void
setHealth(int var1)
void
setSprinting(boolean var1)
void
setXPStats(float var1, int var2, int var3)
void
travelToTheEnd(int var1)
void
updateChatHistory(java.lang.String s)
void
updateEntityActionState()
void
writeEntityToNBT(NBTTagCompound var1)
-
Methods inherited from class net.minecraft.world.entity.player.Player
addExhaustion, addExperience, addMovementStat, addToPlayerScore, alertWolves, applyPotionDamageCalculations, attackEntityFrom, attackTargetEntityWithCurrentItem, canEat, canHarvestBlock, canPlayerEdit, canTriggerWalking, clearItemInUse, copyPlayer, damageArmor, decreaseAirSupply, destroyCurrentEquippedItem, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, entityInit, fall, func_50009_aI, getBedOrientationInDegrees, getCurrentEquippedItem, getCurrentPlayerStrVsBlock, getExperiencePoints, getEyeHeight, getFoodStats, getHeldItem, getHurtSound, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getMaxHealth, getScore, getSleepTimer, getSpawnChunk, getTotalArmorValue, getUsername, getYOffset, handleHealthUpdate, isBlocking, isEntityInsideOpaqueBlock, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPVPEnabled, isUsingItem, joinEntityItemWithWorld, jump, moveEntityWithHeading, onItemStackChanged, onItemUseFinish, onKillEntity, onUpdate, preparePlayerToSpawn, removeExperience, resetHeight, setInPortal, setItemInUse, setSpawnChunk, shouldHeal, sleepInBedAt, stopUsingItem, swingItem, triggerAchievement, updateItemUse, updateRidden, useCurrentItemOnEntity, verifyRespawnCoordinates, wakeUpPlayer, xpBarCap
-
Methods inherited from class net.minecraft.world.entity.LivingEntity
addPotionEffect, applyArmorCalculations, attackEntityAsMob, canBreatheUnderwater, canDespawn, canEntityBeSeen, clearActivePotions, despawnEntity, detachHome, dropFewItems, dropRareDrop, eatGrassBonus, faceEntity, func_48079_f, func_48090_aM, func_48098_g, func_48100_a, func_48101_aR, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getAttackTarget, getCanSpawnHere, getCreatureAttribute, getDeathSound, getDropItemId, getHeadYaw, getHealth, getHomePosition, getJumpHelper, getLastAttackingEntity, getLivingSound, getLook, getLookHelper, getLookVec, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPosition, getRenderSizeModifier, getRNG, getSoundVolume, getSpeedModifier, getSwingProgress, getTalkInterval, getTexture, getVerticalFaceSpeed, hasHome, heal, isAIEnabled, isChild, isEntityAlive, isEntityUndead, isOnLadder, isPotionActive, isPotionApplicable, isWithinHomeDistance, isWithinHomeDistanceCurrentPosition, kill, knockBack, onChangedPotionEffect, onDeathUpdate, onEntityDeath, onEntityUpdate, onFinishedPotionEffect, onNewPotionEffect, performHurtAnimation, playLivingSound, rayTrace, removePotionEffect, renderBrokenItemStack, setAttackTarget, setEntityHealth, setHomeArea, setJumping, setLastAttackingEntity, setMoveForward, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setSize, spawnExplosionParticle, updateAITasks, updateAITick, updatePotionEffects
-
Methods inherited from class net.minecraft.world.entity.Entity
addEntityID, addVelocity, applyEntityCollision, canAttackWithItem, dealFireDamage, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getCurrentBiomeName, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getInventory, getMountedYOffset, getParts, getShadowSize, handleLavaMovement, handleWaterMovement, hashCode, interact, isBurning, isEating, isEntityEqual, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInsideOfMaterial, isInWater, isOffsetPositionInLiquid, isRiding, isSprinting, isSubmergedInAnyFluid, isWet, mountEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onStruckByLightning, outfitWithItem, playStepSound, readFromNBT, setAir, setAngles, setBeenAttacked, setEating, setFire, setFlag, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSneaking, setVelocity, setWorld, toString, updateFallState, updateRiderPosition, writeToNBT
-
-
-
-
Field Detail
-
movementInput
public MovementInput movementInput
-
mc
protected Minecraft mc
-
sprintToggleTimer
protected int sprintToggleTimer
-
killAuraTimer
protected int killAuraTimer
-
sprintingTicksLeft
public int sprintingTicksLeft
-
renderArmYaw
public float renderArmYaw
-
renderArmPitch
public float renderArmPitch
-
prevRenderArmYaw
public float prevRenderArmYaw
-
prevRenderArmPitch
public float prevRenderArmPitch
-
activeJesus
public boolean activeJesus
-
-
Method Detail
-
canBeCollidedWith
public boolean canBeCollidedWith()
- Overrides:
canBeCollidedWith
in classLivingEntity
-
canBePushed
public boolean canBePushed()
- Overrides:
canBePushed
in classLivingEntity
-
isFreecamPlayer
public boolean isFreecamPlayer()
-
isMovementToggled
public boolean isMovementToggled()
-
moveEntity
public void moveEntity(double var1, double var3, double var5)
- Overrides:
moveEntity
in classEntity
-
updateEntityActionState
public void updateEntityActionState()
- Overrides:
updateEntityActionState
in classPlayer
-
isClientWorld
protected boolean isClientWorld()
- Overrides:
isClientWorld
in classLivingEntity
-
onLivingUpdate
public void onLivingUpdate()
- Overrides:
onLivingUpdate
in classPlayer
-
getEffectiveHealth
public int getEffectiveHealth()
- Overrides:
getEffectiveHealth
in classLivingEntity
-
travelToTheEnd
public void travelToTheEnd(int var1)
- Overrides:
travelToTheEnd
in classPlayer
-
getFOVMultiplier
public float getFOVMultiplier()
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound var1)
- Overrides:
writeEntityToNBT
in classPlayer
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound var1)
- Overrides:
readEntityFromNBT
in classPlayer
-
closeScreen
public void closeScreen()
- Overrides:
closeScreen
in classPlayer
-
displayGUIEditSign
public void displayGUIEditSign(TileEntitySign var1)
- Overrides:
displayGUIEditSign
in classPlayer
-
displayGUIChest
public void displayGUIChest(IInventory var1)
- Overrides:
displayGUIChest
in classPlayer
-
displayWorkbenchGUI
public void displayWorkbenchGUI(int var1, int var2, int var3)
- Overrides:
displayWorkbenchGUI
in classPlayer
-
displayGUIEnchantment
public void displayGUIEnchantment(int var1, int var2, int var3)
- Overrides:
displayGUIEnchantment
in classPlayer
-
displayGUIFurnace
public void displayGUIFurnace(TileEntityFurnace var1)
- Overrides:
displayGUIFurnace
in classPlayer
-
displayGUIBrewingStand
public void displayGUIBrewingStand(TileEntityBrewingStand var1)
- Overrides:
displayGUIBrewingStand
in classPlayer
-
displayGUIDispenser
public void displayGUIDispenser(TileEntityDispenser var1)
- Overrides:
displayGUIDispenser
in classPlayer
-
onCriticalHit
public void onCriticalHit(Entity var1)
- Overrides:
onCriticalHit
in classPlayer
-
onEnchantmentCritical
public void onEnchantmentCritical(Entity var1)
- Overrides:
onEnchantmentCritical
in classPlayer
-
onItemPickup
public void onItemPickup(Entity var1, int var2)
- Overrides:
onItemPickup
in classPlayer
-
updateChatHistory
public void updateChatHistory(java.lang.String s)
-
sendChatMessage
public void sendChatMessage(java.lang.String var1)
-
isSneaking
public boolean isSneaking()
- Overrides:
isSneaking
in classEntity
-
setHealth
public void setHealth(int var1)
-
damageEntity
protected void damageEntity(DamageSource var1, int var2)
- Overrides:
damageEntity
in classPlayer
-
respawnPlayer
public void respawnPlayer()
- Overrides:
respawnPlayer
in classPlayer
-
func_6420_o
public void func_6420_o()
- Specified by:
func_6420_o
in classPlayer
-
addChatMessage
public void addChatMessage(java.lang.String var1)
- Overrides:
addChatMessage
in classPlayer
-
pushOutOfBlocks
protected boolean pushOutOfBlocks(double var1, double var3, double var5)
- Overrides:
pushOutOfBlocks
in classEntity
-
setSprinting
public void setSprinting(boolean var1)
- Overrides:
setSprinting
in classEntity
-
setXPStats
public void setXPStats(float var1, int var2, int var3)
-
onDeath
public void onDeath(DamageSource var1)
-
-