Class MultiplayerRaidIntentHandler
java.lang.Object
com.pixelmonmod.pixelmon.battles.raids.data.update.handler.MultiplayerRaidIntentHandler
- All Implemented Interfaces:
RaidIntentHandler<MultiplayerRaidIntent>
public class MultiplayerRaidIntentHandler
extends Object
implements RaidIntentHandler<MultiplayerRaidIntent>
Standard handler for
MultiplayerRaidIntent.
Unlocks a one-player starting lobby so additional players can join.
-
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, MultiplayerRaidIntent 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
-
MultiplayerRaidIntentHandler
public MultiplayerRaidIntentHandler()
-
-
Method Details
-
getIntentClass
Description copied from interface:RaidIntentHandlerGets the concrete intent class this handler supports.- Specified by:
getIntentClassin interfaceRaidIntentHandler<MultiplayerRaidIntent>- Returns:
- The accepted intent class.
-
apply
public void apply(net.minecraft.server.level.ServerPlayer sender, RaidData data, MultiplayerRaidIntent intent) Description copied from interface:RaidIntentHandlerApplies the typed intent to the given raid.- Specified by:
applyin interfaceRaidIntentHandler<MultiplayerRaidIntent>- Parameters:
sender- The player who sent the intent.data- The raid data receiving the intent.intent- The typed intent to process.
-