Class SpectateEvent.StartSpectate
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent
com.pixelmonmod.pixelmon.api.events.battles.SpectateEvent.StartSpectate
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
SpectateEvent
public static class SpectateEvent.StartSpectate
extends SpectateEvent
implements net.neoforged.bus.api.ICancellableEvent
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 -
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController -
Constructor Summary
ConstructorsConstructorDescriptionStartSpectate(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
getSpectatorMethods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleControllerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
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)
-