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,HasPokemonInPartyInteractionCondition,InRangeExclusiveInteractionCondition,LessThanOrEqualInteractionCondition,LogicalNOTInteractionCondition,NotEqualInteractionCondition,SpecMatchesEntityInteractionCondition,SpecMatchesInteractionCondition,StringCompareCaseInsensitiveInteractionCondition,StringCompareInteractionCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.serialization.MapCodec<? 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
ConstructorsModifierConstructorDescriptionprotectedMutableInteractionCondition(com.mojang.serialization.MapCodec<? extends InteractionCondition> codec, Supplier<? extends MutableInteractionCondition> constructor) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? 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> voidtransformData(InputType<?> inputType, InputTypeData<T> data) protected <T> voidMethods 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
fits, toData, type
-
Field Details
-
codec
-
inputTypes
-
constructor
-
-
Constructor Details
-
MutableInteractionCondition
protected MutableInteractionCondition(com.mojang.serialization.MapCodec<? extends InteractionCondition> codec, Supplier<? extends MutableInteractionCondition> constructor)
-
-
Method Details
-
variable
-
codec
Description copied from interface:InteractionConditionCodec for decoding data about the interaction condition- Specified by:
codecin interfaceInteractionCondition- Returns:
- The codec
-
inputTypes
Description copied from interface:InteractionConditionReturns the input types for the condition- Specified by:
inputTypesin interfaceInteractionCondition- Returns:
- The input types
-
fill
Description copied from interface:InteractionConditionFills the condition with the given data- Specified by:
fillin interfaceInteractionCondition- Parameters:
data- The data- Returns:
- The filled condition
-
transformData
-