Preliminary 1.21 Support

This commit is contained in:
Anon 2024-12-06 16:45:48 +01:00
parent 7bd213a154
commit f83e7c5707
18 changed files with 588 additions and 55 deletions

View file

@ -20,6 +20,7 @@ public class StructuredComponentsHandler
var subcomponentRegistryType = protocolVersion switch
{
Protocol18Handler.MC_1_20_6_Version => typeof(SubComponentRegistry1206),
Protocol18Handler.MC_1_21_Version => typeof(SubComponentRegistry121),
_ => throw new NotSupportedException($"Protocol version {protocolVersion} is not supported for subcomponent registries!")
};
@ -30,6 +31,7 @@ public class StructuredComponentsHandler
var registryType = protocolVersion switch
{
Protocol18Handler.MC_1_20_6_Version => typeof(StructuredComponentsRegistry1206),
Protocol18Handler.MC_1_21_Version => typeof(StructuredComponentsRegistry121),
_ => throw new NotSupportedException($"Protocol version {protocolVersion} is not supported for structured component registries!")
};