Class MatchesSpecDataProvider
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.provider.MutableDataProvider<Boolean>
com.pixelmonmod.pixelmon.api.npc.interaction.provider.type.player.MatchesSpecDataProvider
- All Implemented Interfaces:
DataProvider<Boolean>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MatchesSpecDataProvider>
protected DataProvider<Pokemon>
protected PokemonSpecification
Fields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.provider.MutableDataProvider
codec, constructor, inputTypes
-
Constructor Summary
ModifierConstructorDescriptionprotected
MatchesSpecDataProvider
(DataProvider<Pokemon> pokemon, PokemonSpecification spec) -
Method Summary
Modifier and TypeMethodDescriptionget
(InteractionContext context) static MatchesSpecDataProvider
of
(DataProvider<Pokemon> pokemon, PokemonSpecification spec) Methods inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.provider.MutableDataProvider
codec, fill, inputTypes, transformData, variable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.provider.DataProvider
getKey
-
Field Details
-
CODEC
-
pokemon
-
spec
-
-
Constructor Details
-
MatchesSpecDataProvider
-
-
Method Details
-
of
- Parameters:
pokemon
- ThePokemon
DataProvider
.spec
- ThePokemonSpecification
to check against.- Returns:
- A new
MatchesSpecDataProvider
.
-
get
-