mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Basic support for minecraft 1.19 (#2084)
* merge commit from milutinke * chat signature & encrypted login * Bug fix :EncryptionResponse format error below 1.18.2 * Implemented chat command signature * Chat message parsing and verification for 1.19 * Add signature settings * Update Simplified Chinese Translation * Clear up comments * Fix wrong variable naming * Bug fix: SignatureV2 Processing
This commit is contained in:
parent
d9f1a77ac2
commit
a8bbb1ac76
55 changed files with 5218 additions and 1174 deletions
|
|
@ -22,7 +22,7 @@ namespace MinecraftClient.Mapping
|
|||
/// <summary>
|
||||
/// Nickname of the entity if it is a player.
|
||||
/// </summary>
|
||||
public string Name;
|
||||
public string? Name;
|
||||
|
||||
/// <summary>
|
||||
/// CustomName of the entity.
|
||||
|
|
@ -66,6 +66,13 @@ namespace MinecraftClient.Mapping
|
|||
/// <remarks>Untested</remarks>
|
||||
public float Pitch = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Used in Item Frame, Falling Block and Fishing Float.
|
||||
/// See https://wiki.vg/Object_Data for details.
|
||||
/// </summary>
|
||||
/// <remarks>Untested</remarks>
|
||||
public int ObjectData = -1;
|
||||
|
||||
/// <summary>
|
||||
/// Health of the entity
|
||||
/// </summary>
|
||||
|
|
@ -113,7 +120,7 @@ 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, byte yaw, byte pitch)
|
||||
public Entity(int ID, EntityType type, Location location, byte yaw, byte pitch, int objectData)
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Type = type;
|
||||
|
|
@ -123,6 +130,7 @@ namespace MinecraftClient.Mapping
|
|||
this.Item = new Item(ItemType.Air, 0, null);
|
||||
this.Yaw = yaw * (1 / 256) * 360; // to angle in 360 degree
|
||||
this.Pitch = pitch * (1 / 256) * 360;
|
||||
this.ObjectData = objectData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -133,7 +141,7 @@ namespace MinecraftClient.Mapping
|
|||
/// <param name="location">Entity location</param>
|
||||
/// <param name="uuid">Player uuid</param>
|
||||
/// <param name="name">Player name</param>
|
||||
public Entity(int ID, EntityType type, Location location, Guid uuid, string name)
|
||||
public Entity(int ID, EntityType type, Location location, Guid uuid, string? name)
|
||||
{
|
||||
this.ID = ID;
|
||||
this.Type = type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue