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
    Modifier and Type
    Field
    Description
    final net.minecraft.server.level.ServerPlayer
     

    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

    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
  • Field Details

    • spectator

      public final net.minecraft.server.level.ServerPlayer spectator
  • Constructor Details

    • SpectateEvent

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