Class MutableInteractionResult
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
- All Implemented Interfaces:
InteractionResult
- Direct Known Subclasses:
AppraiseRodInteractionResult
,ConsoleExecuteCommandInteractionResult
,GivePokemonInteractionResult
,HealPlayerPartyInteractionResult
,MessagePlayerInteractionResult
,OpenDialogueInteractionResult
,OpenPagedDialogueInteractionResult
,OpenTradeInteractionResult
,PlayerExecuteCommandInteractionResult
,SetIconInteractionResult
,TriggerInteractionEventInteractionResult
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.serialization.Codec<? extends InteractionResult>
protected final Supplier<? extends MutableInteractionResult>
protected final List<InputTypeData<?>>
Fields inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.result.InteractionResult
CODEC
-
Constructor Summary
ModifierConstructorDescriptionprotected
MutableInteractionResult
(com.mojang.serialization.Codec<? extends InteractionResult> codec, Supplier<? extends MutableInteractionResult> constructor) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends InteractionResult>
codec()
The coded for decoding data for this interaction resultfill
(ResultData data) protected <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.result.InteractionResult
handle
-
Field Details
-
codec
-
inputTypes
-
constructor
-
-
Constructor Details
-
MutableInteractionResult
protected MutableInteractionResult(com.mojang.serialization.Codec<? extends InteractionResult> codec, Supplier<? extends MutableInteractionResult> constructor)
-
-
Method Details
-
variable
-
codec
Description copied from interface:InteractionResult
The coded for decoding data for this interaction result- Specified by:
codec
in interfaceInteractionResult
- Returns:
- The codec
-
inputTypes
- Specified by:
inputTypes
in interfaceInteractionResult
-
fill
- Specified by:
fill
in interfaceInteractionResult
-
transformData
-