Class SpecMatchesEntityInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.MutableInteractionCondition
com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.pokemon.SpecMatchesEntityInteractionCondition
- All Implemented Interfaces:
InteractionCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpecMatchesEntityInteractionCondition>protected DataProvider<PixelmonEntity>protected DataProvider<String>Fields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.condition.MutableInteractionCondition
codec, constructor, inputTypesFields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
DIRECT_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpecMatchesEntityInteractionCondition(DataProvider<String> spec, DataProvider<PixelmonEntity> pokemon) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfits(InteractionContext context) Method to check if the given context is correct for the conditionof(DataProvider<String> spec, DataProvider<PixelmonEntity> pokemon) Methods inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.condition.MutableInteractionCondition
codec, fill, inputTypes, transformData, variableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
toData
-
Field Details
-
CODEC
-
spec
-
pokemon
-
-
Constructor Details
-
SpecMatchesEntityInteractionCondition
protected SpecMatchesEntityInteractionCondition(DataProvider<String> spec, DataProvider<PixelmonEntity> pokemon)
-
-
Method Details
-
of
public static SpecMatchesEntityInteractionCondition of(DataProvider<String> spec, DataProvider<PixelmonEntity> pokemon) -
of
-
fits
Description copied from interface:InteractionConditionMethod to check if the given context is correct for the condition- Parameters:
context- The context- Returns:
- True if the logic can proceed with the given context
-