Class Entity

java.lang.Object
com.zenith.cache.data.entity.Entity
Direct Known Subclasses:
EntityLiving

public abstract class Entity extends Object
  • Field Details

    • entityType

      protected EntityType 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

      protected UUID uuid
    • velX

      protected double velX
    • velY

      protected double velY
    • velZ

      protected double velZ
    • leashedId

      protected int leashedId
    • isLeashed

      protected boolean isLeashed
    • attributes

      protected Map<AttributeType, Attribute> attributes
    • metadata

      protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<EntityMetadata<?,?>> metadata
    • passengerIds

      protected it.unimi.dsi.fastutil.ints.IntArrayList passengerIds
    • isInVehicle

      protected boolean isInVehicle
    • vehicleId

      protected int vehicleId
    • objectData

      protected ObjectData objectData
    • removed

      protected boolean removed
  • Constructor Details

    • Entity

      public Entity()
  • Method Details

    • addPackets

      public void addPackets(@NonNull Consumer<Packet> consumer)
    • updateAttributes

      public void updateAttributes(@NonNull List<Attribute> attributes)
    • mountVehicle

      public void mountVehicle(int vehicleId)
    • dismountVehicle

      public void dismountVehicle()
    • getEntityData

      public EntityData getEntityData()
    • blockPos

      public BlockPos blockPos()
    • position

      public org.cloudburstmc.math.vector.Vector3d position()
    • distanceSqTo

      public double distanceSqTo(Entity entity)
    • getMetadataValue

      public <T> @Nullable T getMetadataValue(int index, MetadataType<T> metadataType, Class<T> valueClass)
    • dimensions

      public org.cloudburstmc.math.vector.Vector2d dimensions()