Class CardSpecification

java.lang.Object
com.pixelmonmod.api.AbstractSpecification<Card,net.minecraft.world.item.ItemStack>
com.pixelmonmod.api.tcg.CardSpecification
All Implemented Interfaces:
Specification<Card,net.minecraft.world.item.ItemStack>, Cloneable

public class CardSpecification extends AbstractSpecification<Card,net.minecraft.world.item.ItemStack>
Implementation of the abstract specification for the Card and ItemStack types for TCG
  • Constructor Details

    • CardSpecification

      public CardSpecification(String originalSpec, List<Requirement<Card,net.minecraft.world.item.ItemStack,?>> requirements)
  • Method Details

    • clone

      public CardSpecification clone()
      Overrides:
      clone in class Object
    • create

      public Card create()
      Description copied from interface: Specification
      Creates an instance of the reforged data object
      Returns:
      An instance
    • create

      public Card create(boolean shallow)
      Description copied from interface: Specification
      Creates an instance of the reforged data object
      If shallow is true not all fields will be instantiated - shallow should be false by default
      Returns: