Class MutableInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.MutableInteractionCondition
- All Implemented Interfaces:
InteractionCondition
- Direct Known Subclasses:
CanBattleInteractionCondition
,CooldownInteractionCondition
,EqualInteractionCondition
,GreaterThanInteractionCondition
,GreaterThanOrEqualInteractionCondition
,InRangeExclusiveInteractionCondition
,LessThanOrEqualInteractionCondition
,LogicalNOTInteractionCondition
,NotEqualInteractionCondition
,SpecMatchesEntityInteractionCondition
,SpecMatchesInteractionCondition
,StringCompareCaseInsensitiveInteractionCondition
,StringCompareInteractionCondition
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.serialization.Codec<? extends InteractionCondition>
protected final Supplier<? extends MutableInteractionCondition>
protected final List<InputTypeData<?>>
Fields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
CODEC, DIRECT_CODEC
-
Constructor Summary
ModifierConstructorDescriptionprotected
MutableInteractionCondition
(com.mojang.serialization.Codec<? extends InteractionCondition> codec, Supplier<? extends MutableInteractionCondition> constructor) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends InteractionCondition>
codec()
Codec for decoding data about the interaction conditionfill
(ConditionData data) Fills the condition with the given dataReturns the input types for the conditionprotected <T> void
transformData
(InputType<?> inputType, InputTypeData<T> data) protected <T> void
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
fits, toData
-
Field Details
-
codec
-
inputTypes
-
constructor
-
-
Constructor Details
-
MutableInteractionCondition
protected MutableInteractionCondition(com.mojang.serialization.Codec<? extends InteractionCondition> codec, Supplier<? extends MutableInteractionCondition> constructor)
-
-
Method Details
-
variable
-
codec
Description copied from interface:InteractionCondition
Codec for decoding data about the interaction condition- Specified by:
codec
in interfaceInteractionCondition
- Returns:
- The codec
-
inputTypes
Description copied from interface:InteractionCondition
Returns the input types for the condition- Specified by:
inputTypes
in interfaceInteractionCondition
- Returns:
- The input types
-
fill
Description copied from interface:InteractionCondition
Fills the condition with the given data- Specified by:
fill
in interfaceInteractionCondition
- Parameters:
data
- The data- Returns:
- The filled condition
-
transformData
-