Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.21 update #440

Merged
merged 7 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading