Class SpawnAndEnterBattleInteractionResult
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
com.pixelmonmod.pixelmon.api.npc.interaction.result.type.player.SpawnAndEnterBattleInteractionResult
- All Implemented Interfaces:
InteractionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnAndEnterBattleInteractionResult>protected final StringFields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
codec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(InteractionContext context) Checks if the interaction can be executedvoidhandle(InteractionContext context) Handles the result using the given contextMethods inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
codecMethods 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
fill, inputTypes
-
Field Details
-
CODEC
-
spec
-
-
Constructor Details
-
SpawnAndEnterBattleInteractionResult
-
-
Method Details
-
of
-
handle
Description copied from interface:InteractionResultHandles the result using the given context- Parameters:
context- The context
-
canExecute
Description copied from interface:InteractionResultChecks if the interaction can be executed- Parameters:
context- The context- Returns:
- If the interaction can be executed
-