Class SpectateEvent.StartSpectate
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent
com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent.StartSpectate
- Enclosing class:
- SpectateEvent
Event representing when a player attempts to spectate a battle.
Cancelling this event will prevent them from spectating
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
ConstructorDescriptionStartSpectate
(net.minecraft.server.level.ServerPlayer spectator, BattleController battleController, net.minecraft.world.entity.Entity target) -
Method Summary
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
-
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)
-