Skip to content

Commit

Permalink
1.21 update (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tides authored Jun 22, 2024
1 parent 1b4518c commit 07538bd
Show file tree
Hide file tree
Showing 45 changed files with 16,357 additions and 11,930 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Obsidian.API.Registry.Codecs.Chat;

public sealed record class ChatCodec : ICodec
public sealed record class ChatTypeCodec : ICodec
{
public required string Name { get; init; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Obsidian.API.Registry.Codecs.PaintingVariant;
public sealed class PaintingVariantCodec : ICodec
{
public required string Name { get; init; }

public required int Id { get; init; }

public PaintingVariantElement Element { get; internal set; } = new();

internal PaintingVariantCodec() { }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Obsidian.API.Registry.Codecs.PaintingVariant;
public sealed record class PaintingVariantElement
{
public string AssetId { get; set; } = default!;

public int Height { get; set; }
public int Width { get; set; }
}
5 changes: 4 additions & 1 deletion Obsidian.API/_Enums/ProtocolVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@ public enum ProtocolVersion

//1.20.5 same pvn
[Description("1.20.6")]
v1_20_6 = 766
v1_20_6 = 766,

[Description("1.21")]
v1_21 = 767
}
Loading

0 comments on commit 07538bd

Please sign in to comment.