Class MutableInteractionResult
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
- All Implemented Interfaces:
InteractionResult
- Direct Known Subclasses:
ApplySpecInteractionResult,AppraiseRodInteractionResult,ConsoleExecuteCommandInteractionResult,GivePokemonInteractionResult,HealPlayerPartyInteractionResult,MessagePlayerInteractionResult,MessageSpawnLocationInteractionResult,OpenDialogueInteractionResult,OpenPagedDialogueInteractionResult,OpenTradeInteractionResult,PlayerExecuteCommandInteractionResult,PlayerStartNPCBattleInteractionResult,PokedexCaughtInteractionResult,PokedexSeenInteractionResult,SetCooldownInteractionResult,SetIconInteractionResult,TriggerInteractionEventInteractionResult,UnlockPokedexSectionInteractionResult
-
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
ConstructorsModifierConstructorDescriptionprotectedMutableInteractionResult(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> 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.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:InteractionResultThe coded for decoding data for this interaction result- Specified by:
codecin interfaceInteractionResult- Returns:
- The codec
-
inputTypes
- Specified by:
inputTypesin interfaceInteractionResult
-
fill
- Specified by:
fillin interfaceInteractionResult
-
transformData
-