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