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
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprotectedMessagePlayerInteractionResult(List<net.minecraft.network.chat.Component> messages) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(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, 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
-
messages
-
-
Constructor Details
-
MessagePlayerInteractionResult
-
-
Method Details
-
of
-
of
public static MessagePlayerInteractionResult of(List<net.minecraft.network.chat.Component> commands) -
handle
Description copied from interface:InteractionResultHandles the result using the given context- Parameters:
context- The context
-