Class LogicalXORInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.logic.LogicalXORInteractionCondition
- All Implemented Interfaces:
InteractionCondition
- Direct Known Subclasses:
LogicalXNORInteractionCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LogicalXORInteractionCondition>
protected final List<DataProvider<Boolean>>
Fields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
DIRECT_CODEC
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LogicalXORInteractionCondition
(List<DataProvider<Boolean>> conditions) -
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()
of
(DataProvider<Boolean>... conditions) of
(Iterable<DataProvider<Boolean>> conditions) 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
-
conditions
-
-
Constructor Details
-
LogicalXORInteractionCondition
-
-
Method Details
-
of
-
of
-
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
-