Class EntityPlayer
java.lang.Object
com.zenith.cache.data.entity.Entity
com.zenith.cache.data.entity.EntityLiving
com.zenith.cache.data.entity.EntityPlayer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected intprotected intprotected floatprotected booleanprotected intFields inherited from class EntityLiving
equipment, health, lerpHeadSteps, lerpHeadYaw, lerpPitch, lerpSteps, lerpX, lerpY, lerpYaw, lerpZ, potionEffectMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackets(@NonNull Consumer<Packet> consumer) protected booleanbooleanfloatintgetFood()intgetLevel()floatintinthashCode()booleanisAlive()booleansetExperience(float experience) setFood(int food) setLevel(int level) setSaturation(float saturation) setSelfPlayer(boolean selfPlayer) setTotalExperience(int totalExperience) voidtick()toString()voidupdateAttributes(List<Attribute> attributes) Methods inherited from class EntityLiving
cancelLerp, dimensions, getEquipment, getHealth, getLerpHeadSteps, getLerpHeadYaw, getLerpPitch, getLerpSteps, getLerpX, getLerpY, getLerpYaw, getLerpZ, getPotionEffectMap, isBaby, isSleeping, isSwimming, lerpHeadRotationStep, lerpHeadTo, lerpPositionAndRotationStep, lerpTargetHeadYaw, lerpTargetPitch, lerpTargetX, lerpTargetY, lerpTargetYaw, lerpTargetZ, lerpTo, setEquipment, setHealth, setLerpHeadSteps, setLerpHeadYaw, setLerpPitch, setLerpSteps, setLerpX, setLerpY, setLerpYaw, setLerpZ, setPotionEffectMapMethods inherited from class Entity
blockPos, collisionBox, dismountVehicle, distanceSqTo, getAttributes, getBaseX, getBaseY, getBaseZ, getEntityData, getEntityId, getEntityType, getHeadYaw, getLeashedId, getMetadata, getMetadataValue, getMetadataValue, getObjectData, getPassengerIds, getPitch, getPose, getTickCount, getUuid, getVehicleId, getVelX, getVelY, getVelZ, getX, getY, getYaw, getZ, isControlledByLocalInstance, isInVehicle, isLeashed, isRemoved, mountVehicle, position, setAttributes, setBaseX, setBaseY, setBaseZ, setEntityId, setEntityType, setHeadYaw, setInVehicle, setLeashed, setLeashedId, setMetadata, setObjectData, setPassengerIds, setPitch, setRemoved, setTickCount, setUuid, setVehicleId, setVelX, setVelY, setVelZ, setX, setY, setYaw, setZ
-
Field Details
-
selfPlayer
protected boolean selfPlayer -
food
protected int food -
saturation
protected float saturation -
totalExperience
protected int totalExperience -
level
protected int level -
experience
protected float experience
-
-
Constructor Details
-
EntityPlayer
public EntityPlayer() -
EntityPlayer
public EntityPlayer(boolean selfPlayer)
-
-
Method Details
-
updateAttributes
- Overrides:
updateAttributesin classEntity
-
isAlive
public boolean isAlive()- Overrides:
isAlivein classEntityLiving
-
addPackets
- Overrides:
addPacketsin classEntityLiving
-
tick
public void tick()- Overrides:
tickin classEntityLiving
-
isSelfPlayer
public boolean isSelfPlayer() -
getFood
public int getFood() -
getSaturation
public float getSaturation() -
getTotalExperience
public int getTotalExperience() -
getLevel
public int getLevel() -
getExperience
public float getExperience() -
setSelfPlayer
- Returns:
this.
-
setFood
- Returns:
this.
-
setSaturation
- Returns:
this.
-
setTotalExperience
- Returns:
this.
-
setLevel
- Returns:
this.
-
setExperience
- Returns:
this.
-
toString
- Overrides:
toStringin classEntityLiving
-
equals
- Overrides:
equalsin classEntityLiving
-
canEqual
- Overrides:
canEqualin classEntityLiving
-
hashCode
public int hashCode()- Overrides:
hashCodein classEntityLiving
-