mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-25 22:24:31 +01:00
Change the empty key for spells to "none"
This commit is contained in:
parent
c676abaedf
commit
18fffef06a
2 changed files with 4 additions and 1 deletions
|
@ -15,6 +15,9 @@ import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.JsonHelper;
|
import net.minecraft.util.JsonHelper;
|
||||||
import net.minecraft.world.World;
|
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 {
|
public class TraitRequirementRecipe implements SpellbookRecipe {
|
||||||
private final Identifier id;
|
private final Identifier id;
|
||||||
private final IngredientWithSpell requirement;
|
private final IngredientWithSpell requirement;
|
||||||
|
|
|
@ -33,7 +33,7 @@ import net.minecraft.util.Util;
|
||||||
import net.minecraft.util.registry.Registry;
|
import net.minecraft.util.registry.Registry;
|
||||||
|
|
||||||
public final class SpellType<T extends Spell> implements Affine, SpellPredicate<T> {
|
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);
|
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"));
|
private static final Registry<SpellType<?>> REGISTRY = Registries.createSimple(new Identifier("unicopia", "spells"));
|
||||||
|
|
Loading…
Reference in a new issue