Class Gen2BellEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
- Direct Known Subclasses:
Gen2BellEvent.RollSuccessEvent
,Gen2BellEvent.SummonLegendary
public abstract class Gen2BellEvent
extends net.minecraftforge.eventbus.api.Event
-
Nested Class Summary
Modifier 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.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
Gets the player based offplayerUUID
.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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.
-