Class Entity
java.lang.Object
com.zenith.cache.data.entity.Entity
- Direct Known Subclasses:
EntityLiving
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<AttributeType, Attribute> protected doubleprotected doubleprotected doubleprotected intprotected EntityTypeprotected floatprotected booleanprotected booleanprotected intprotected it.unimi.dsi.fastutil.ints.Int2ObjectMap<EntityMetadata<?, ?>> protected ObjectDataprotected it.unimi.dsi.fastutil.ints.IntArrayListprotected floatprotected booleanprotected intprotected UUIDprotected intprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected floatprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackets(@NonNull Consumer<Packet> consumer) blockPos()voidprotected booleanorg.cloudburstmc.math.vector.Vector2dvoiddoubledistanceSqTo(Entity entity) booleandoublegetBaseX()doublegetBaseY()doublegetBaseZ()intfloatintit.unimi.dsi.fastutil.ints.Int2ObjectMap<EntityMetadata<?, ?>> <T> @Nullable TgetMetadataValue(int index, MetadataType<T> metadataType) <T> @Nullable TgetMetadataValue(int index, MetadataType<T> metadataType, Class<T> valueClass) it.unimi.dsi.fastutil.ints.IntArrayListfloatgetPitch()getPose()intgetUuid()intdoublegetVelX()doublegetVelY()doublegetVelZ()doublegetX()doublegetY()floatgetYaw()doublegetZ()inthashCode()booleanbooleanbooleanbooleanvoidlerpHeadTo(float yaw, int steps) floatdoubledoublefloatdoublevoidlerpTo(double x, double y, double z, float yaw, float pitch, int steps) voidmountVehicle(int vehicleId) org.cloudburstmc.math.vector.Vector3dposition()setAttributes(Map<AttributeType, Attribute> attributes) setBaseX(double baseX) setBaseY(double baseY) setBaseZ(double baseZ) setEntityId(int entityId) setEntityType(EntityType entityType) setHeadYaw(float headYaw) setInVehicle(boolean isInVehicle) setLeashed(boolean isLeashed) setLeashedId(int leashedId) setMetadata(it.unimi.dsi.fastutil.ints.Int2ObjectMap<EntityMetadata<?, ?>> metadata) setObjectData(ObjectData objectData) setPassengerIds(it.unimi.dsi.fastutil.ints.IntArrayList passengerIds) setPitch(float pitch) setRemoved(boolean removed) setTickCount(int tickCount) setVehicleId(int vehicleId) setVelX(double velX) setVelY(double velY) setVelZ(double velZ) setX(double x) setY(double y) setYaw(float yaw) setZ(double z) voidtick()toString()voidupdateAttributes(@NonNull List<Attribute> attributes)
-
Field Details
-
entityType
-
x
protected double x -
y
protected double y -
z
protected double z -
baseX
protected double baseX -
baseY
protected double baseY -
baseZ
protected double baseZ -
yaw
protected float yaw -
pitch
protected float pitch -
headYaw
protected float headYaw -
entityId
protected int entityId -
uuid
-
velX
protected double velX -
velY
protected double velY -
velZ
protected double velZ -
leashedId
protected int leashedId -
isLeashed
protected boolean isLeashed -
attributes
-
metadata
-
passengerIds
protected it.unimi.dsi.fastutil.ints.IntArrayList passengerIds -
isInVehicle
protected boolean isInVehicle -
vehicleId
protected int vehicleId -
objectData
-
removed
protected boolean removed -
tickCount
protected int tickCount
-
-
Constructor Details
-
Entity
public Entity()
-
-
Method Details
-
addPackets
-
updateAttributes
-
mountVehicle
public void mountVehicle(int vehicleId) -
dismountVehicle
public void dismountVehicle() -
getEntityData
-
blockPos
-
position
public org.cloudburstmc.math.vector.Vector3d position() -
distanceSqTo
-
getMetadataValue
public <T> @Nullable T getMetadataValue(int index, MetadataType<T> metadataType, Class<T> valueClass) -
getMetadataValue
-
getPose
-
dimensions
public org.cloudburstmc.math.vector.Vector2d dimensions() -
collisionBox
-
lerpTo
public void lerpTo(double x, double y, double z, float yaw, float pitch, int steps) -
lerpHeadTo
public void lerpHeadTo(float yaw, int steps) -
cancelLerp
public void cancelLerp() -
lerpTargetX
public double lerpTargetX() -
lerpTargetY
public double lerpTargetY() -
lerpTargetZ
public double lerpTargetZ() -
lerpTargetPitch
public float lerpTargetPitch() -
lerpTargetYaw
public float lerpTargetYaw() -
tick
public void tick() -
isControlledByLocalInstance
public boolean isControlledByLocalInstance() -
getEntityType
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getBaseX
public double getBaseX() -
getBaseY
public double getBaseY() -
getBaseZ
public double getBaseZ() -
getYaw
public float getYaw() -
getPitch
public float getPitch() -
getHeadYaw
public float getHeadYaw() -
getEntityId
public int getEntityId() -
getUuid
-
getVelX
public double getVelX() -
getVelY
public double getVelY() -
getVelZ
public double getVelZ() -
getLeashedId
public int getLeashedId() -
isLeashed
public boolean isLeashed() -
getAttributes
-
getMetadata
-
getPassengerIds
public it.unimi.dsi.fastutil.ints.IntArrayList getPassengerIds() -
isInVehicle
public boolean isInVehicle() -
getVehicleId
public int getVehicleId() -
getObjectData
-
isRemoved
public boolean isRemoved() -
getTickCount
public int getTickCount() -
setEntityType
- Returns:
this.
-
setX
- Returns:
this.
-
setY
- Returns:
this.
-
setZ
- Returns:
this.
-
setBaseX
- Returns:
this.
-
setBaseY
- Returns:
this.
-
setBaseZ
- Returns:
this.
-
setYaw
- Returns:
this.
-
setPitch
- Returns:
this.
-
setHeadYaw
- Returns:
this.
-
setEntityId
- Returns:
this.
-
setUuid
-
setVelX
- Returns:
this.
-
setVelY
- Returns:
this.
-
setVelZ
- Returns:
this.
-
setLeashedId
- Returns:
this.
-
setLeashed
- Returns:
this.
-
setAttributes
- Returns:
this.
-
setMetadata
- Returns:
this.
-
setPassengerIds
- Returns:
this.
-
setInVehicle
- Returns:
this.
-
setVehicleId
- Returns:
this.
-
setObjectData
- Returns:
this.
-
setRemoved
- Returns:
this.
-
setTickCount
- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-