Class EntityLiving
java.lang.Object
com.zenith.cache.data.entity.Entity
com.zenith.cache.data.entity.EntityLiving
- Direct Known Subclasses:
EntityPlayer, EntityStandard
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<EquipmentSlot, ItemStack> protected @Nullable Floatprotected intprotected doubleprotected doubleprotected intprotected doubleprotected doubleprotected doubleprotected doubleprotected Map<Effect, PotionEffect> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackets(@NonNull Consumer<Packet> consumer) voidprotected booleanorg.cloudburstmc.math.vector.Vector2dboolean@Nullable FloatintdoubledoubleintdoublegetLerpX()doublegetLerpY()doubledoublegetLerpZ()inthashCode()booleanisAlive()booleanisBaby()booleanbooleanprotected voidlerpHeadRotationStep(int lerpHeadSteps, double lerpHeadYaw) voidlerpHeadTo(float yaw, int steps) protected voidlerpPositionAndRotationStep(int steps, double targetX, double targetY, double targetZ, double targetYaw, double targetPitch) floatfloatdoubledoublefloatdoublevoidlerpTo(double x, double y, double z, float yaw, float pitch, int steps) setEquipment(Map<EquipmentSlot, ItemStack> equipment) setLerpHeadSteps(int lerpHeadSteps) setLerpHeadYaw(double lerpHeadYaw) setLerpPitch(double lerpPitch) setLerpSteps(int lerpSteps) setLerpX(double lerpX) setLerpY(double lerpY) setLerpYaw(double lerpYaw) setLerpZ(double lerpZ) setPotionEffectMap(Map<Effect, PotionEffect> potionEffectMap) voidtick()toString()Methods 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, updateAttributes
-
Field Details
-
lerpSteps
protected int lerpSteps -
lerpX
protected double lerpX -
lerpY
protected double lerpY -
lerpZ
protected double lerpZ -
lerpYaw
protected double lerpYaw -
lerpPitch
protected double lerpPitch -
lerpHeadYaw
protected double lerpHeadYaw -
lerpHeadSteps
protected int lerpHeadSteps -
health
-
potionEffectMap
-
equipment
-
-
Constructor Details
-
EntityLiving
public EntityLiving()
-
-
Method Details
-
addPackets
- Overrides:
addPacketsin classEntity
-
isAlive
public boolean isAlive() -
isSleeping
public boolean isSleeping() -
isSwimming
public boolean isSwimming() -
isBaby
public boolean isBaby() -
dimensions
public org.cloudburstmc.math.vector.Vector2d dimensions()- Overrides:
dimensionsin classEntity
-
lerpTo
-
lerpHeadTo
public void lerpHeadTo(float yaw, int steps) - Overrides:
lerpHeadToin classEntity
-
cancelLerp
public void cancelLerp()- Overrides:
cancelLerpin classEntity
-
lerpTargetX
public double lerpTargetX()- Overrides:
lerpTargetXin classEntity
-
lerpTargetY
public double lerpTargetY()- Overrides:
lerpTargetYin classEntity
-
lerpTargetZ
public double lerpTargetZ()- Overrides:
lerpTargetZin classEntity
-
lerpTargetPitch
public float lerpTargetPitch()- Overrides:
lerpTargetPitchin classEntity
-
lerpTargetYaw
public float lerpTargetYaw()- Overrides:
lerpTargetYawin classEntity
-
lerpTargetHeadYaw
public float lerpTargetHeadYaw() -
tick
-
lerpPositionAndRotationStep
protected void lerpPositionAndRotationStep(int steps, double targetX, double targetY, double targetZ, double targetYaw, double targetPitch) -
lerpHeadRotationStep
protected void lerpHeadRotationStep(int lerpHeadSteps, double lerpHeadYaw) -
getLerpSteps
public int getLerpSteps() -
getLerpX
public double getLerpX() -
getLerpY
public double getLerpY() -
getLerpZ
public double getLerpZ() -
getLerpYaw
public double getLerpYaw() -
getLerpPitch
public double getLerpPitch() -
getLerpHeadYaw
public double getLerpHeadYaw() -
getLerpHeadSteps
public int getLerpHeadSteps() -
getHealth
-
getPotionEffectMap
-
getEquipment
-
setLerpSteps
- Returns:
this.
-
setLerpX
- Returns:
this.
-
setLerpY
- Returns:
this.
-
setLerpZ
- Returns:
this.
-
setLerpYaw
- Returns:
this.
-
setLerpPitch
- Returns:
this.
-
setLerpHeadYaw
- Returns:
this.
-
setLerpHeadSteps
- Returns:
this.
-
setHealth
- Returns:
this.
-
setPotionEffectMap
- Returns:
this.
-
setEquipment
- Returns:
this.
-
toString
-
equals
-
canEqual
-
hashCode
-