Class Gen2BellEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
- Direct Known Subclasses:
Gen2BellEvent.RollSuccessEvent
,Gen2BellEvent.SummonLegendary
public abstract class Gen2BellEvent
extends net.neoforged.bus.api.Event
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Gen2BellEvent
Event fires whenever a bell spawn roll is about to be made.static class
Gen2BellEvent
Event fires when a bell spawns a legendary. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
Gets the player based offplayerUUID
.
-
Field Details
-
playerUUID
The UUID of the player most relevant to the event.
-
-
Constructor Details
-
Gen2BellEvent
-
-
Method Details
-
getPlayer
@Nullable public net.minecraft.server.level.ServerPlayer getPlayer()Gets the player based offplayerUUID
. Could be null in some cases where the player is offline.
-