Package com.pixelmonmod.api.pokemon
Class PokemonSpecification
java.lang.Object
com.pixelmonmod.api.AbstractSpecification<Pokemon,PixelmonEntity>
com.pixelmonmod.api.pokemon.PokemonSpecification
- All Implemented Interfaces:
Specification<Pokemon,
,PixelmonEntity> Cloneable
Implementation of the abstract specification for the
Pokemon
and PixelmonEntity
types for Pixelmon-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PokemonSpecification>
Fields inherited from class com.pixelmonmod.api.AbstractSpecification
dataType, minecraftType, originalSpec, requirements
-
Constructor Summary
ConstructorDescriptionPokemonSpecification
(String originalSpec, List<Requirement<Pokemon, PixelmonEntity, ?>> requirements) -
Method Summary
Modifier and TypeMethodDescriptionclone()
create()
Creates an instance of the reforged data objectcreate
(boolean shallow) Creates an instance of the reforged data object
If shallow is true not all fields will be instantiated - shallow should be false by defaultcreate
(net.minecraft.world.level.Level world) Methods inherited from class com.pixelmonmod.api.AbstractSpecification
apply, getRequirement, getRequirements, getValue, matches, toString, write
-
Field Details
-
CODEC
-
-
Constructor Details
-
PokemonSpecification
public PokemonSpecification(String originalSpec, List<Requirement<Pokemon, PixelmonEntity, ?>> 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:
-
create
-