Class LogicalXNORInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.logic.LogicalXORInteractionCondition
com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.logic.LogicalXNORInteractionCondition
- All Implemented Interfaces:
InteractionCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LogicalXNORInteractionCondition>
Fields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.condition.type.logic.LogicalXORInteractionCondition
conditions
Fields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
DIRECT_CODEC
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LogicalXNORInteractionCondition
(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
-
-
Constructor Details
-
LogicalXNORInteractionCondition
-
-
Method Details
-
of
-
of
-
of
-
codec
Description copied from interface:InteractionCondition
Codec for decoding data about the interaction condition- Specified by:
codec
in interfaceInteractionCondition
- Overrides:
codec
in classLogicalXORInteractionCondition
- 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
- Overrides:
fits
in classLogicalXORInteractionCondition
- Parameters:
context
- The context- Returns:
- True if the logic can proceed with the given context
-