Class InRangeInclusiveInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.math.InRangeInclusiveInteractionCondition
- All Implemented Interfaces:
InteractionCondition
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<InRangeInclusiveInteractionCondition>
protected final DataProvider<Number>
protected final DataProvider<Number>
protected final DataProvider<Number>
Fields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
DIRECT_CODEC
-
Constructor Summary
ModifierConstructorDescriptionprotected
InRangeInclusiveInteractionCondition
(DataProvider<Number> min, DataProvider<Number> max, DataProvider<Number> value) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends InteractionCondition>
codec()
Codec for decoding data about the interaction conditionboolean
fits
(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
fill, inputTypes, toData
-
Field Details
-
CODEC
-
min
-
max
-
value
-
-
Constructor Details
-
InRangeInclusiveInteractionCondition
protected InRangeInclusiveInteractionCondition(DataProvider<Number> min, DataProvider<Number> max, DataProvider<Number> value)
-
-
Method Details
-
of
public static InRangeInclusiveInteractionCondition of(DataProvider<Number> min, DataProvider<Number> max, DataProvider<Number> value) -
of
-
codec
Description copied from interface:InteractionCondition
Codec for decoding data about the interaction condition- Specified by:
codec
in interfaceInteractionCondition
- Returns:
- The codec
-
fits
Description copied from interface:InteractionCondition
Method to check if the given context is correct for the condition- Specified by:
fits
in interfaceInteractionCondition
- Parameters:
context
- The context- Returns:
- True if the logic can proceed with the given context
-