Skip to content

Commit 726130e

Browse files
authored
Change Villager Type generator to a generic registry generator (#33)
1 parent c63a8fb commit 726130e

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

DataGenerator/src/main/java/net/minestom/datagen/DataGenType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public enum DataGenType {
3131
SOUNDS("sounds", new SoundGenerator()),
3232
SOUND_SOURCES("sound_sources", new SoundSourceGenerator()),
3333
VILLAGER_PROFESSIONS("villager_professions", new VillagerProfessionGenerator()),
34-
VILLAGER_TYPES("villager_types", new VillagerTypeGenerator()),
34+
VILLAGER_TYPES("villager_types", new GenericRegistryGenerator<>(BuiltInRegistries.VILLAGER_TYPE)),
3535
RECIPE_TYPE("recipe_types", new GenericRegistryGenerator<>(BuiltInRegistries.RECIPE_TYPE)),
3636
RECIPE_DISPLAY_TYPE("recipe_display_types", new GenericRegistryGenerator<>(BuiltInRegistries.RECIPE_DISPLAY)),
3737
SLOT_DISPLAY_TYPE("slot_display_types", new GenericRegistryGenerator<>(BuiltInRegistries.SLOT_DISPLAY)),

DataGenerator/src/main/java/net/minestom/generators/VillagerTypeGenerator.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)