Class MessagePlayerInteractionResult
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
com.pixelmonmod.pixelmon.api.npc.interaction.result.type.MessagePlayerInteractionResult
- All Implemented Interfaces:
InteractionResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MessagePlayerInteractionResult>
protected final List<net.minecraft.network.chat.Component>
Fields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
codec, constructor, inputTypes
-
Constructor Summary
ModifierConstructorDescriptionprotected
MessagePlayerInteractionResult
(List<net.minecraft.network.chat.Component> messages) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(InteractionContext context) Handles the result using the given contextof
(net.minecraft.network.chat.Component... messages) Methods inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.MutableInteractionResult
codec, fill, inputTypes, transformData, variable
-
Field Details
-
CODEC
-
messages
-
-
Constructor Details
-
MessagePlayerInteractionResult
-
-
Method Details
-
of
-
of
public static MessagePlayerInteractionResult of(List<net.minecraft.network.chat.Component> commands) -
handle
Description copied from interface:InteractionResult
Handles the result using the given context- Parameters:
context
- The context
-