Class TriggerInteractionEventInteractionResult
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
com.pixelmonmod.pixelmon.api.npc.interaction.result.type.TriggerInteractionEventInteractionResult
- All Implemented Interfaces:
InteractionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TriggerInteractionEventInteractionResult>protected InteractionEventFields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
codec, constructor, inputTypes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends InteractionResult>codec()The coded for decoding data for this interaction resultvoidhandle(InteractionContext context) Handles the result using the given contextof(InteractionEvent event) Methods inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
fill, inputTypes, transformData, variableMethods 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
-
Field Details
-
CODEC
-
event
-
-
Constructor Details
-
TriggerInteractionEventInteractionResult
-
-
Method Details
-
of
-
codec
Description copied from interface:InteractionResultThe coded for decoding data for this interaction result- Specified by:
codecin interfaceInteractionResult- Overrides:
codecin classMutableInteractionResult- Returns:
- The codec
-
handle
Description copied from interface:InteractionResultHandles the result using the given context- Parameters:
context- The context
-