using System; using System.Collections.Generic; namespace MinecraftClient.Mapping { /// /// Represents an entity evolving into a Minecraft world /// public class Entity { /// /// ID of the entity on the Minecraft server /// public int ID; /// /// UUID of the entity if it is a player. /// public Guid UUID; /// /// Nickname of the entity if it is a player. /// public string Name; /// /// Entity type /// public EntityType Type; /// /// Entity location in the Minecraft world /// public Location Location; /// /// Health of the entity /// public float Health; /// /// Create a new entity based on Entity ID, Entity Type and location /// /// Entity ID /// Entity Type Enum /// Entity location public Entity(int ID, EntityType type, Location location) { this.ID = ID; this.Type = type; this.Location = location; this.Health = 1.0f; } /// /// Create a new entity based on Entity ID, Entity Type, location, name and UUID /// /// Entity ID /// Entity Type Enum /// Entity location /// Player uuid /// Player name public Entity(int ID, EntityType type, Location location, Guid uuid, string name) { this.ID = ID; this.Type = type; this.Location = location; this.UUID = uuid; this.Name = name; this.Health = 1.0f; } } }