Class TeleportEvent


public class TeleportEvent extends CommonEvent
Fired on the server when a teleport is about to be applied by JourneyMap. Cancellable.
  • Constructor Details

    • TeleportEvent

      public TeleportEvent(net.minecraft.entity.player.EntityPlayerMP player, @Nullable Waypoint waypoint, net.minecraft.util.math.BlockPos pos, int fromLevel, int destinationLevel)
  • Method Details

    • getPlayer

      public net.minecraft.entity.player.EntityPlayerMP getPlayer()
      The player being teleported. Non-null; this event only fires server-side for a concrete teleport request.
    • getWaypoint

      @Nullable public Waypoint getWaypoint()
      This will be null for context menu teleporting on the fullscreen map.
    • getPos

      public net.minecraft.util.math.BlockPos getPos()
    • getFromLevel

      public int getFromLevel()
    • getDestinationLevel

      public int getDestinationLevel()