Class StringCompareCaseInsensitiveInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.MutableInteractionCondition
com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.text.StringCompareCaseInsensitiveInteractionCondition
- All Implemented Interfaces:
InteractionCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StringCompareCaseInsensitiveInteractionCondition>protected DataProvider<String>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
ConstructorsModifierConstructorDescriptionprotectedStringCompareCaseInsensitiveInteractionCondition(DataProvider<String> first, DataProvider<String> second) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfits(InteractionContext context) Method to check if the given context is correct for the conditionof(DataProvider<String> first, DataProvider<String> second) 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
public static final com.mojang.serialization.Codec<StringCompareCaseInsensitiveInteractionCondition> CODEC -
first
-
second
-
-
Constructor Details
-
StringCompareCaseInsensitiveInteractionCondition
protected StringCompareCaseInsensitiveInteractionCondition(DataProvider<String> first, DataProvider<String> second)
-
-
Method Details
-
of
public static StringCompareCaseInsensitiveInteractionCondition of(DataProvider<String> first, DataProvider<String> second) -
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
-