Class SpectateEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent
- Direct Known Subclasses:
SpectateEvent.StartSpectate
,SpectateEvent.StopSpectate
Superclass event for all spectate related events. Contains
SpectateEvent.StartSpectate
and SpectateEvent.StopSpectate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event representing when a player attempts to spectate a battle.static class
Event representing when a player ceases spectating a battle.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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpectateEvent
(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleController
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
SpectateEvent
protected SpectateEvent(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController)
-
-
Method Details
-
getSpectator
public net.minecraft.server.level.ServerPlayer getSpectator()
-