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