Class ImmutableInteractionCondition
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.condition.ImmutableInteractionCondition
- All Implemented Interfaces:
InteractionCondition
- Direct Known Subclasses:
AlwaysFalseInteractionCondition
,AlwaysTrueInteractionCondition
,MonthIsInteractionCondition
,RandomChanceInteractionCondition
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.serialization.Codec<? extends InteractionCondition>
Fields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.condition.InteractionCondition
CODEC, DIRECT_CODEC
-
Constructor Summary
ModifierConstructorDescriptionprotected
ImmutableInteractionCondition
(com.mojang.serialization.Codec<? extends InteractionCondition> codec) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends InteractionCondition>
codec()
Codec for decoding data about the interaction conditionMethods 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, fits, inputTypes, toData
-
Field Details
-
codec
-
-
Constructor Details
-
ImmutableInteractionCondition
protected ImmutableInteractionCondition(com.mojang.serialization.Codec<? extends InteractionCondition> codec)
-
-
Method Details
-
codec
Description copied from interface:InteractionCondition
Codec for decoding data about the interaction condition- Specified by:
codec
in interfaceInteractionCondition
- Returns:
- The codec
-