mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add Entity.Name & /inventory 0 creative <slot> <itemtype> <count> (#1024)
* Update Program.cs * Update Entity.cs Add Entity.Name * Update Program.cs * Update Entity.cs Add break; * Update Entity.cs * Update Inventory.cs Add /inventory 0 creative <slot> <item> <count> * Update PacketOutgoingType.cs + CreativeInventoryAction * Update Protocol16.cs + SendCreativeInventorAction * Update Protocol18.cs + SendCreativeInventorAction * Update IMinecraftCom.cs + SendCreativeInventorAction * Update McTcpClient.cs + DoCreativeInventorAction * Update ChatBot.cs + CreativeInventorAction * Update McTcpClient.cs * Update ChatBot.cs * Update Inventory.cs Add show count * Update ChatBot.cs + ChatBot fix * Update Inventory.cs Inventory update and Fix * Update Entity.cs * Update McTcpClient.cs * Update Program.cs * Update Protocol16.cs * Update Protocol18.cs * Update IMinecraftCom.cs * Update Entity.cs
This commit is contained in:
parent
65620e2e95
commit
d120001d70
8 changed files with 110 additions and 16 deletions
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MinecraftClient.Mapping
|
||||
{
|
||||
|
|
@ -20,6 +18,11 @@ namespace MinecraftClient.Mapping
|
|||
/// </summary>
|
||||
public Guid UUID;
|
||||
|
||||
/// <summary>
|
||||
/// Nickname of the entity if it is a player.
|
||||
/// </summary>
|
||||
public string Name;
|
||||
|
||||
/// <summary>
|
||||
/// Entity type
|
||||
/// </summary>
|
||||
|
|
@ -48,12 +51,14 @@ namespace MinecraftClient.Mapping
|
|||
/// <param name="ID">Entity ID</param>
|
||||
/// <param name="type">Entity Type Enum</param>
|
||||
/// <param name="location">Entity location</param>
|
||||
public Entity(int ID, EntityType type, Location location, Guid uuid)
|
||||
/// <param name="uuid">Player uuid</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue