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
,MessageSpawnLocationInteractionResult
,OpenDialogueInteractionResult
,OpenPagedDialogueInteractionResult
,OpenTradeInteractionResult
,PlayerExecuteCommandInteractionResult
,PokedexSeenInteractionResult
,SetCooldownInteractionResult
,SetIconInteractionResult
,TriggerInteractionEventInteractionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.serialization.MapCodec
<? 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
ConstructorsModifierConstructorDescriptionprotected
MutableInteractionResult
(com.mojang.serialization.MapCodec<? extends InteractionResult> codec, Supplier<? extends MutableInteractionResult> constructor) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? 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
canExecute, handle, type
-
Field Details
-
codec
-
inputTypes
-
constructor
-
-
Constructor Details
-
MutableInteractionResult
protected MutableInteractionResult(com.mojang.serialization.MapCodec<? 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
-