Added UUID initializers for the functions that support it in McTcpClient.cs, Also Fixed some redundant Object creation.

This commit is contained in:
CarbonNeuron 2020-04-30 16:33:48 -05:00 committed by ORelio
parent 1c2e4ab6d8
commit 2f1b99c064
2 changed files with 8 additions and 7 deletions

View file

@ -60,18 +60,19 @@ namespace MinecraftClient.Mapping
}
/// <summary>
/// Create a new entity based on Entity ID, Entity Type and location
/// Create a new entity based on Entity ID, Entity Type, location, and UUID
/// </summary>
/// <param name="ID">Entity ID</param>
/// <param name="TypeID">Entity Type ID</param>
/// <param name="type">Entity Type Enum</param>
/// <param name="location">Entity location</param>
public Entity(int ID, int TypeID, EntityType type, Location location)
public Entity(int ID, int TypeID, EntityType type, Location location, Guid uuid)
{
this.ID = ID;
this.TypeID = TypeID;
this.Type = type;
this.Location = location;
this.UUID = uuid;
}
/// <summary>