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

public abstract class SpectateEvent extends BattleEvent
Superclass event for all spectate related events. Contains SpectateEvent.StartSpectate and SpectateEvent.StopSpectate
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    SpectateEvent(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpectateEvent

      protected SpectateEvent(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController)
  • Method Details

    • getSpectator

      public net.minecraft.server.level.ServerPlayer getSpectator()