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

public static class WormholeTeleportEvent.Post extends WormholeTeleportEvent
Fires after a player has gone through a wormhole, cannot be cancelled
  • Constructor Details

    • Post

      public Post(net.minecraft.server.level.ServerPlayer player, WormholeEntity wormhole)
      Parameters:
      player - - The player who was teleported through the wormhole
      wormhole - - 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