Class WormholeTeleportEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.WormholeTeleportEvent
- Direct Known Subclasses:
WormholeTeleportEvent.Post
,WormholeTeleportEvent.Pre
public class WormholeTeleportEvent
extends net.minecraftforge.eventbus.api.Event
WormholeTeleportEvent is an event that fires when a player collides with a wormhole and the teleport commences
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fires after a player has gone through a wormhole, cannot be cancelledstatic class
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionWormholeTeleportEvent
(net.minecraft.server.level.ServerPlayer player, WormholeEntity wormhole) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.player.Player
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
WormholeTeleportEvent
public WormholeTeleportEvent(net.minecraft.server.level.ServerPlayer player, WormholeEntity wormhole) - Parameters:
player
- - The Player being teleported by the wormholewormhole
- - The wormhole the player is being teleported by
-
-
Method Details
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer()- Returns:
- - The player being teleported by the wormhole
-
getWormhole
- Returns:
- - The wormhole the player is being teleported by
-