Skip to content

Commit de6c171

Browse files
authored
Add SpellTypes generator (#4041)
1 parent 4b669ef commit de6c171

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

generator/src/main/java/org/spongepowered/vanilla/generator/GeneratorMain.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import net.minecraft.world.entity.animal.horse.Llama;
5858
import net.minecraft.world.entity.animal.horse.Markings;
5959
import net.minecraft.world.entity.animal.horse.Variant;
60+
import net.minecraft.world.entity.monster.SpellcasterIllager;
6061
import net.minecraft.world.entity.vehicle.Boat;
6162
import net.minecraft.world.item.DyeColor;
6263
import net.minecraft.world.item.ItemDisplayContext;
@@ -276,6 +277,13 @@ private static List<Generator> generators(final Context context) {
276277
"getSerializedName",
277278
"sponge"
278279
),
280+
new EnumEntriesValidator<>(
281+
"data.type",
282+
"SpellTypes",
283+
SpellcasterIllager.IllagerSpell.class,
284+
"name",
285+
"sponge"
286+
),
279287
new EnumEntriesValidator<>(
280288
"data.type",
281289
"FoxTypes",

0 commit comments

Comments
 (0)