77import net .darkhax .bookshelf .api .commands .ICommandBuilder ;
88import net .darkhax .bookshelf .mixin .item .AccessorItem ;
99import net .minecraft .commands .synchronization .ArgumentSerializer ;
10+ import net .minecraft .commands .synchronization .ArgumentTypes ;
11+ import net .minecraft .core .Registry ;
1012import net .minecraft .core .particles .ParticleType ;
1113import net .minecraft .sounds .SoundEvent ;
1214import net .minecraft .stats .StatType ;
2123import net .minecraft .world .item .alchemy .Potion ;
2224import net .minecraft .world .item .crafting .RecipeSerializer ;
2325import net .minecraft .world .item .enchantment .Enchantment ;
26+ import net .minecraft .world .item .enchantment .EnchantmentHelper ;
2427import net .minecraft .world .level .ItemLike ;
2528import net .minecraft .world .level .block .Block ;
2629import net .minecraft .world .level .block .entity .BlockEntityType ;
@@ -32,25 +35,25 @@ public class RegistryDataProvider {
3235
3336 private final String ownerId ;
3437
35- public final IOwnedRegistryEntries <Block > blocks = new RegistryEntries <>(this ::getOwner );
36- public final IOwnedRegistryEntries <Fluid > fluids = new RegistryEntries <>(this ::getOwner );
37- public final IOwnedRegistryEntries <Item > items = new RegistryEntries <>(this ::getOwner );
38- public final IOwnedRegistryEntries <MobEffect > mobEffects = new RegistryEntries <>(this ::getOwner );
39- public final IOwnedRegistryEntries <SoundEvent > sounds = new RegistryEntries <>(this ::getOwner );
40- public final IOwnedRegistryEntries <Potion > potions = new RegistryEntries <>(this ::getOwner );
41- public final IOwnedRegistryEntries <Enchantment > enchantments = new RegistryEntries <>(this ::getOwner );
42- public final IOwnedRegistryEntries <EntityType <?>> entities = new RegistryEntries <>(this ::getOwner );
43- public final IOwnedRegistryEntries <BlockEntityType <?>> blockEntities = new RegistryEntries <>(this ::getOwner );
44- public final IOwnedRegistryEntries <ParticleType <?>> particleTypes = new RegistryEntries <>(this ::getOwner );
45- public final IOwnedRegistryEntries <MenuType <?>> menus = new RegistryEntries <>(this ::getOwner );
46- public final IOwnedRegistryEntries <RecipeSerializer <?>> recipeSerializers = new RegistryEntries <>(this ::getOwner );
47- public final IOwnedRegistryEntries <Motive > paintings = new RegistryEntries <>(this ::getOwner );
48- public final IOwnedRegistryEntries <Attribute > attributes = new RegistryEntries <>(this ::getOwner );
49- public final IOwnedRegistryEntries <StatType <?>> stats = new RegistryEntries <>(this ::getOwner );
50- public final IOwnedRegistryEntries <VillagerProfession > villagerProfessions = new RegistryEntries <>(this ::getOwner );
51-
52- public final ClassRegistryEntries <ArgumentSerializer > commandArguments = new ClassRegistryEntries <>(this ::getOwner );
53- public final IOwnedRegistryEntries <ICommandBuilder > commands = new RegistryEntries <>(this ::getOwner );
38+ public final IOwnedRegistryEntries <Block > blocks = new RegistryEntries <>(this ::getOwner , Registry . BLOCK_REGISTRY );
39+ public final IOwnedRegistryEntries <Fluid > fluids = new RegistryEntries <>(this ::getOwner , Registry . FLUID_REGISTRY );
40+ public final IOwnedRegistryEntries <Item > items = new RegistryEntries <>(this ::getOwner , Registry . ITEM_REGISTRY );
41+ public final IOwnedRegistryEntries <MobEffect > mobEffects = new RegistryEntries <>(this ::getOwner , Registry . MOB_EFFECT_REGISTRY );
42+ public final IOwnedRegistryEntries <SoundEvent > sounds = new RegistryEntries <>(this ::getOwner , Registry . SOUND_EVENT_REGISTRY );
43+ public final IOwnedRegistryEntries <Potion > potions = new RegistryEntries <>(this ::getOwner , Registry . POTION_REGISTRY );
44+ public final IOwnedRegistryEntries <Enchantment > enchantments = new RegistryEntries <>(this ::getOwner , Registry . ENCHANTMENT_REGISTRY );
45+ public final IOwnedRegistryEntries <EntityType <?>> entities = new RegistryEntries <>(this ::getOwner , Registry . ENTITY_TYPE_REGISTRY );
46+ public final IOwnedRegistryEntries <BlockEntityType <?>> blockEntities = new RegistryEntries <>(this ::getOwner , Registry . BLOCK_ENTITY_TYPE_REGISTRY );
47+ public final IOwnedRegistryEntries <ParticleType <?>> particleTypes = new RegistryEntries <>(this ::getOwner , Registry . PARTICLE_TYPE_REGISTRY );
48+ public final IOwnedRegistryEntries <MenuType <?>> menus = new RegistryEntries <>(this ::getOwner , Registry . MENU_REGISTRY );
49+ public final IOwnedRegistryEntries <RecipeSerializer <?>> recipeSerializers = new RegistryEntries <>(this ::getOwner , Registry . PARTICLE_TYPE_REGISTRY );
50+ public final IOwnedRegistryEntries <Motive > paintings = new RegistryEntries <>(this ::getOwner , Registry . MOTIVE_REGISTRY );
51+ public final IOwnedRegistryEntries <Attribute > attributes = new RegistryEntries <>(this ::getOwner , Registry . ATTRIBUTE_REGISTRY );
52+ public final IOwnedRegistryEntries <StatType <?>> stats = new RegistryEntries <>(this ::getOwner , Registry . STAT_TYPE_REGISTRY );
53+ public final IOwnedRegistryEntries <VillagerProfession > villagerProfessions = new RegistryEntries <>(this ::getOwner , Registry . VILLAGER_PROFESSION_REGISTRY );
54+
55+ public final ClassRegistryEntries <ArgumentSerializer > commandArguments = new ClassRegistryEntries <>(this ::getOwner , "Command Argument" );
56+ public final IOwnedRegistryEntries <ICommandBuilder > commands = new RegistryEntries <>(this ::getOwner , "Command" );
5457 public final VillagerTradeEntries trades = new VillagerTradeEntries ();
5558
5659 public RegistryDataProvider (String ownerId ) {
0 commit comments