mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
WIP: Added some strctured components
This commit is contained in:
parent
63b027d84a
commit
76e873ed54
36 changed files with 857 additions and 231 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Components;
|
||||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Components._1_20_6;
|
||||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Core;
|
||||
|
||||
namespace MinecraftClient.Protocol.Handlers.StructuredComponents.Registries;
|
||||
|
|
@ -8,6 +8,21 @@ public class StructuredComponentsRegistry1206 : StructuredComponentRegistry
|
|||
public StructuredComponentsRegistry1206(SubComponentRegistry subComponentRegistry, DataTypes dataTypes) : base(
|
||||
subComponentRegistry, dataTypes)
|
||||
{
|
||||
RegisterComponent<TestComponent>(0, "minecraft:test");
|
||||
RegisterComponent<CustomDataComponent1206>(0, "minecraft:custom_data");
|
||||
RegisterComponent<MaxStackSizeComponent1206>(1, "minecraft:max_stack_size");
|
||||
RegisterComponent<MaxDamageComponent1206>(2, "minecraft:max_damage");
|
||||
RegisterComponent<DamageComponent1206>(3, "minecraft:damage");
|
||||
RegisterComponent<UnbrekableComponent1206>(4, "minecraft:unbreakable");
|
||||
RegisterComponent<CustomNameComponent1206>(5, "minecraft:custom_name");
|
||||
RegisterComponent<ItemNameComponent1206>(6, "minecraft:item_name");
|
||||
RegisterComponent<LoreNameComponent1206>(7, "minecraft:lore");
|
||||
RegisterComponent<RarityComponent1206>(8, "minecraft:rarity");
|
||||
RegisterComponent<EnchantmentsComponent1206>(9, "minecraft:enchantments");
|
||||
RegisterComponent<CanPlaceOnComponent1206>(10, "minecraft:can_place_on");
|
||||
RegisterComponent<CanBreakComponent1206>(11, "minecraft:can_break");
|
||||
RegisterComponent<AttributeModifiersComponent1206>(12, "minecraft:attribute_modifiers");
|
||||
RegisterComponent<CustomModelDataComponent1206>(13, "minecraft:custom_model_data");
|
||||
RegisterComponent<HideAdditionalTooltipComponent1206>(14, "minecraft:hide_additional_tooltip");
|
||||
RegisterComponent<HideTooltipComponent1206>(15, "minecraft:hide_tooltip");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Components.Subcomponents;
|
||||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Components.Subcomponents._1_20_6;
|
||||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Core;
|
||||
|
||||
namespace MinecraftClient.Protocol.Handlers.StructuredComponents.Registries.Subcomponents;
|
||||
|
||||
public class SubComponentRegistry1206 : SubComponentRegistry
|
||||
{
|
||||
public SubComponentRegistry1206(DataTypes dataTypes) : base(dataTypes)
|
||||
{
|
||||
RegisterSubComponent<BlockPredicateSubcomponent1206>(SubComponents.BlockPredicate);
|
||||
RegisterSubComponent<BlockSetSubcomponent1206>(SubComponents.BlockSet);
|
||||
RegisterSubComponent<PropertySubComponent1206>(SubComponents.Property);
|
||||
RegisterSubComponent<AttributeSubComponent1206>(SubComponents.Attribute);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Components.Subcomponents;
|
||||
using MinecraftClient.Protocol.Handlers.StructuredComponents.Core;
|
||||
|
||||
namespace MinecraftClient.Protocol.Handlers.StructuredComponents.Registries.Subcomponents;
|
||||
|
||||
public class TestSubComponentRegistry : SubComponentRegistry
|
||||
{
|
||||
public TestSubComponentRegistry(DataTypes dataTypes) : base(dataTypes)
|
||||
{
|
||||
RegisterSubComponent<TestSubComonent>("TestSubcomponent");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue