Package com.pixelmonmod.api.tcg
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-
Field Summary
Fields inherited from class com.pixelmonmod.api.AbstractSpecification
dataType, minecraftType, originalSpec, requirements
-
Constructor Summary
ConstructorDescriptionCardSpecification
(String originalSpec, List<Requirement<Card, net.minecraft.world.item.ItemStack, ?>> requirements) -
Method Summary
Methods inherited from class com.pixelmonmod.api.AbstractSpecification
apply, getRequirement, getRequirements, getValue, matches, toString, write
-
Constructor Details
-
CardSpecification
public CardSpecification(String originalSpec, List<Requirement<Card, net.minecraft.world.item.ItemStack, ?>> requirements)
-
-
Method Details
-
clone
-
create
Description copied from interface:Specification
Creates an instance of the reforged data object- Returns:
- An instance
-
create
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:
-