-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update protocol version & client states * Add configuration packets * Move some packets outside Mostly because these packets are used in configuration phase now too * Handle configuration packets * Send keep alives for configuration/play state * Finish configuration state stuff * Update login packet * Please 😭 * Update assets * Make boolean types actual booleans * Add armor trims to registry * Write Armor trim codecs to registry * Update clientbound packet ids * Update serverbound packet ids * Update serverbound packet ids in ClientHandler * Update the rest of the assets * Oop * Set server version to 1.20.2 * Don't send nbt root tag name if networked
- Loading branch information
Showing
132 changed files
with
21,128 additions
and
19,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Obsidian.API.Registry.Codecs.ArmorTrims; | ||
public sealed class TrimDescription | ||
{ | ||
public required string Translate { get; init; } | ||
|
||
public string? Color { get; init; } | ||
} |
9 changes: 9 additions & 0 deletions
9
Obsidian.API/Registry/Codecs/ArmorTrims/TrimMaterial/TrimMaterialCodec.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Obsidian.API.Registry.Codecs.ArmorTrims.TrimMaterial; | ||
public sealed class TrimMaterialCodec : ICodec | ||
{ | ||
public required string Name { get; init; } | ||
|
||
public required int Id { get; init; } | ||
|
||
public required TrimMaterialElement Element { get; init; } | ||
} |
13 changes: 13 additions & 0 deletions
13
Obsidian.API/Registry/Codecs/ArmorTrims/TrimMaterial/TrimMaterialElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Obsidian.API.Registry.Codecs.ArmorTrims.TrimMaterial; | ||
public sealed class TrimMaterialElement | ||
{ | ||
public required string Ingredient { get; init; } | ||
|
||
public required string AssetName { get; init; } | ||
|
||
public required double ItemModelIndex { get; init; } | ||
|
||
public required TrimDescription Description { get; init; } | ||
|
||
public Dictionary<string, string>? OverrideArmorMaterials { get; init; } | ||
} |
9 changes: 9 additions & 0 deletions
9
Obsidian.API/Registry/Codecs/ArmorTrims/TrimPattern/TrimPatternCodec.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Obsidian.API.Registry.Codecs.ArmorTrims.TrimPattern; | ||
public sealed class TrimPatternCodec : ICodec | ||
{ | ||
public required string Name { get; init; } | ||
|
||
public required int Id { get; init; } | ||
|
||
public required TrimPatternElement Element { get; init; } | ||
} |
11 changes: 11 additions & 0 deletions
11
Obsidian.API/Registry/Codecs/ArmorTrims/TrimPattern/TrimPatternElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Obsidian.API.Registry.Codecs.ArmorTrims.TrimPattern; | ||
public sealed class TrimPatternElement | ||
{ | ||
public required string TemplateItem { get; init; } | ||
|
||
public required TrimDescription Description { get; init; } | ||
|
||
public required string AssetId { get; init; } | ||
|
||
public required bool Decal { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.