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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fires after a player has gone through a wormhole, cannot be cancelled
    static 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

    Constructors
    Constructor
    Description
    WormholeTeleportEvent(net.minecraft.server.level.ServerPlayer player, WormholeEntity wormhole)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.player.Player
     
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WormholeTeleportEvent

      public WormholeTeleportEvent(net.minecraft.server.level.ServerPlayer player, WormholeEntity wormhole)
      Parameters:
      player - - The Player being teleported by the wormhole
      wormhole - - 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

      public WormholeEntity getWormhole()
      Returns:
      - The wormhole the player is being teleported by