Class QuitRaidIntentHandler
java.lang.Object
com.pixelmonmod.pixelmon.battles.raids.data.update.handler.QuitRaidIntentHandler
- All Implemented Interfaces:
RaidIntentHandler<QuitRaidIntent>
Standard handler for
QuitRaidIntent.
Removes the sender from a raid lobby that has not started yet.
-
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, QuitRaidIntent 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
-
QuitRaidIntentHandler
public QuitRaidIntentHandler()
-
-
Method Details
-
getIntentClass
Description copied from interface:RaidIntentHandlerGets the concrete intent class this handler supports.- Specified by:
getIntentClassin interfaceRaidIntentHandler<QuitRaidIntent>- Returns:
- The accepted intent class.
-
apply
public void apply(net.minecraft.server.level.ServerPlayer sender, RaidData data, QuitRaidIntent intent) Description copied from interface:RaidIntentHandlerApplies the typed intent to the given raid.- Specified by:
applyin interfaceRaidIntentHandler<QuitRaidIntent>- Parameters:
sender- The player who sent the intent.data- The raid data receiving the intent.intent- The typed intent to process.
-