Class Entity
java.lang.Object
com.zenith.cache.data.entity.Entity
- Direct Known Subclasses:
EntityLiving
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<AttributeType, Attribute> protected 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()protected booleanorg.cloudburstmc.math.vector.Vector2dvoiddoubledistanceSqTo(Entity entity) booleanintfloatintit.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()booleanbooleanbooleanvoidmountVehicle(int vehicleId) org.cloudburstmc.math.vector.Vector3dposition()setAttributes(Map<AttributeType, Attribute> attributes) 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) toString()voidupdateAttributes(@NonNull List<Attribute> attributes)
-
Field Details
-
entityType
-
x
protected double x -
y
protected double y -
z
protected double z -
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
-
getEntityType
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
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.
-
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
-