Class WormholeTeleportEvent.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.WormholeTeleportEvent
com.pixelmonmod.pixelmon.api.events.WormholeTeleportEvent.Post
- Enclosing class:
- WormholeTeleportEvent
Fires after a player has gone through a wormhole, cannot be cancelled
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.WormholeTeleportEvent
WormholeTeleportEvent.Post, WormholeTeleportEvent.Pre
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
ConstructorDescriptionPost
(net.minecraft.server.level.ServerPlayer player, WormholeEntity wormhole) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.WormholeTeleportEvent
getPlayer, getWormhole
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Post
- Parameters:
player
- - The player who was teleported through the wormholewormhole
- - The wormhole a player was teleported through
-
-
Method Details
-
shouldKillPortal
public boolean shouldKillPortal()- Returns:
- - Returns true if the portal should be killed following the teleport
-
setKillPortal
public void setKillPortal(boolean killPortal) - Parameters:
killPortal
- - Sets if a portal should be killed following a teleport
-