Change the empty key for spells to "none"

This commit is contained in:
Sollace 2021-12-29 17:53:08 +02:00
parent c676abaedf
commit 18fffef06a
2 changed files with 4 additions and 1 deletions

View file

@ -15,6 +15,9 @@ import net.minecraft.util.Identifier;
import net.minecraft.util.JsonHelper;
import net.minecraft.world.World;
/**
* Recipe that requires an item and a certain number of traits to produce a result.
*/
public class TraitRequirementRecipe implements SpellbookRecipe {
private final Identifier id;
private final IngredientWithSpell requirement;

View file

@ -33,7 +33,7 @@ import net.minecraft.util.Util;
import net.minecraft.util.registry.Registry;
public final class SpellType<T extends Spell> implements Affine, SpellPredicate<T> {
public static final Identifier EMPTY_ID = new Identifier("unicopia", "null");
public static final Identifier EMPTY_ID = new Identifier("unicopia", "none");
public static final SpellType<?> EMPTY_KEY = new SpellType<>(EMPTY_ID, Affinity.NEUTRAL, 0xFFFFFF, false, SpellTraits.EMPTY, (t, c) -> null);
private static final Registry<SpellType<?>> REGISTRY = Registries.createSimple(new Identifier("unicopia", "spells"));