Class CardSpecificationProxy

java.lang.Object
com.pixelmonmod.api.tcg.CardSpecificationProxy

public class CardSpecificationProxy extends Object
Static proxy class for the SpecificationFactory where it handles passing in the class
  • Method Details

    • register

      public static void register(Requirement<Card,net.minecraft.world.item.ItemStack,?> requirement)
      Register a new Requirement
      Parameters:
      requirement - The requirement being registered
    • requirements

      public static ParseAttempt<List<Requirement<Card,net.minecraft.world.item.ItemStack,?>>> requirements(String spec)
      Gets the list of Requirements created from the given spec
      Parameters:
      spec - The spec being parsed
      Returns:
      The list of all requirements
    • create

      public static ParseAttempt<CardSpecification> create(String... specs)
      Creates a CardSpecification instance from a string array
      Parameters:
      specs - The specs being parsed
      Returns:
      The pokemon spec created
    • getRequirementNames

      public static String[] getRequirementNames()
    • fromNbt

      public static ParseAttempt<CardSpecification> fromNbt(net.minecraft.nbt.CompoundTag nbt)