Class Entity
java.lang.Object
com.zenith.cache.data.entity.Entity
- Direct Known Subclasses:
EntityExperienceOrb,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 UUIDprotected intprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected floatprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackets(@NonNull Consumer<Packet> consumer) blockPos()org.cloudburstmc.math.vector.Vector2dvoiddoubledistanceSqTo(Entity entity) <T> @Nullable TgetMetadataValue(int index, MetadataType<T> metadataType, Class<T> valueClass) voidmountVehicle(int vehicleId) org.cloudburstmc.math.vector.Vector3dposition()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
-
-
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) -
dimensions
public org.cloudburstmc.math.vector.Vector2d dimensions()
-