Class SpectateEvent.StartSpectate

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
SpectateEvent

public static class SpectateEvent.StartSpectate extends SpectateEvent
Event representing when a player attempts to spectate a battle.
Cancelling this event will prevent them from spectating
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent

    SpectateEvent.StartSpectate, SpectateEvent.StopSpectate

    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
    Constructor
    Description
    StartSpectate(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController, net.minecraft.world.entity.Entity target)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.Entity
     
    void
    setTarget(net.minecraft.world.entity.Entity target)
     

    Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent

    getSpectator

    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

    • StartSpectate

      public StartSpectate(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController, net.minecraft.world.entity.Entity target)
  • Method Details

    • getTarget

      public net.minecraft.world.entity.Entity getTarget()
    • setTarget

      public void setTarget(net.minecraft.world.entity.Entity target)