Class SelectedPokemonIntentHandler
java.lang.Object
com.pixelmonmod.pixelmon.battles.raids.data.update.handler.SelectedPokemonIntentHandler
- All Implemented Interfaces:
RaidIntentHandler<SelectedPokemonRaidIntent>
public class SelectedPokemonIntentHandler
extends Object
implements RaidIntentHandler<SelectedPokemonRaidIntent>
Standard handler for
SelectedPokemonRaidIntent.
Validates the selected party slot and updates the sender's lobby Pokemon.
-
Field Summary
FieldsFields inherited from interface com.pixelmonmod.pixelmon.battles.raids.data.update.RaidIntentHandler
CODEC, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(net.minecraft.server.level.ServerPlayer sender, RaidData data, SelectedPokemonRaidIntent intent) Applies the typed intent to the given raid.Gets the concrete intent class this handler supports.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.battles.raids.data.update.RaidIntentHandler
execute
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SelectedPokemonIntentHandler
public SelectedPokemonIntentHandler()
-
-
Method Details
-
getIntentClass
Description copied from interface:RaidIntentHandlerGets the concrete intent class this handler supports.- Specified by:
getIntentClassin interfaceRaidIntentHandler<SelectedPokemonRaidIntent>- Returns:
- The accepted intent class.
-
apply
public void apply(net.minecraft.server.level.ServerPlayer sender, RaidData data, SelectedPokemonRaidIntent intent) Description copied from interface:RaidIntentHandlerApplies the typed intent to the given raid.- Specified by:
applyin interfaceRaidIntentHandler<SelectedPokemonRaidIntent>- Parameters:
sender- The player who sent the intent.data- The raid data receiving the intent.intent- The typed intent to process.
-