Class PlayerStartNPCBattleInteractionResult
java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
com.pixelmonmod.pixelmon.api.npc.interaction.result.type.PlayerStartNPCBattleInteractionResult
- All Implemented Interfaces:
InteractionResult
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DataProvider<BattleRules>
static final com.mojang.serialization.Codec<PlayerStartNPCBattleInteractionResult>
protected final DataProvider<PartyStorage>
protected final DataProvider<PartyStorage>
Fields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
codec
-
Constructor Summary
ModifierConstructorDescriptionprotected
PlayerStartNPCBattleInteractionResult
(DataProvider<PartyStorage> npcParty, DataProvider<PartyStorage> playerParty, DataProvider<BattleRules> battleRules) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends InteractionResult>
codec()
The coded for decoding data for this interaction resultvoid
handle
(InteractionContext context) Handles the result using the given contextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.result.InteractionResult
fill, inputTypes
-
Field Details
-
CODEC
-
npcParty
-
playerParty
-
battleRules
-
-
Constructor Details
-
PlayerStartNPCBattleInteractionResult
protected PlayerStartNPCBattleInteractionResult(DataProvider<PartyStorage> npcParty, DataProvider<PartyStorage> playerParty, DataProvider<BattleRules> battleRules)
-
-
Method Details
-
codec
Description copied from interface:InteractionResult
The coded for decoding data for this interaction result- Specified by:
codec
in interfaceInteractionResult
- Overrides:
codec
in classImmutableInteractionResult
- Returns:
- The codec
-
handle
Description copied from interface:InteractionResult
Handles the result using the given context- Parameters:
context
- The context
-