1.20.4: Update entity, item and block palette

This commit is contained in:
ReinforceZwei 2024-02-11 18:13:48 +08:00
parent a9f1ad4433
commit 4546e6946e
8 changed files with 3361 additions and 3 deletions

View file

@ -146,6 +146,7 @@ namespace MinecraftClient.Protocol.Handlers
// Block palette
> MC_1_20_4_Version when handler.GetTerrainEnabled() =>
throw new NotImplementedException(Translations.exception_palette_block),
>= MC_1_20_4_Version => new Palette1204(),
>= MC_1_20_Version => new Palette120(),
MC_1_19_4_Version => new Palette1194(),
MC_1_19_3_Version => new Palette1193(),
@ -163,6 +164,7 @@ namespace MinecraftClient.Protocol.Handlers
// Entity palette
> MC_1_20_4_Version when handler.GetEntityHandlingEnabled() =>
throw new NotImplementedException(Translations.exception_palette_entity),
>= MC_1_20_4_Version => new EntityPalette1204(),
>= MC_1_20_Version => new EntityPalette120(),
MC_1_19_4_Version => new EntityPalette1194(),
MC_1_19_3_Version => new EntityPalette1193(),
@ -184,6 +186,7 @@ namespace MinecraftClient.Protocol.Handlers
// Item palette
> MC_1_20_4_Version when handler.GetInventoryEnabled() =>
throw new NotImplementedException(Translations.exception_palette_item),
>= MC_1_20_4_Version => new ItemPalette1204(),
>= MC_1_20_Version => new ItemPalette120(),
MC_1_19_4_Version => new ItemPalette1194(),
MC_1_19_3_Version => new ItemPalette1193(),