Class TeleportUtils

java.lang.Object
com.mclds.plugins.customplugin.utils.TeleportUtils

public class TeleportUtils extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<org.bukkit.entity.Player,Boolean>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    checkBeforeTeleport(org.bukkit.entity.Player player, org.bukkit.Location location)
     
    static boolean
    checkWhenTeleport(org.bukkit.entity.Player player, org.bukkit.Location startLocationMark)
     
    static boolean
    preloadLocation(org.bukkit.entity.Player player, org.bukkit.Location location)
    预加载区块
    static void
    tp(org.bukkit.entity.Player from, org.bukkit.entity.Player to)
     
    static void
    tp(org.bukkit.entity.Player from, org.bukkit.entity.Player to, double delaySecond, @Nullable TeleportUtils.TeleportFinishCallback callback, io.papermc.paper.entity.TeleportFlag... flags)
     
    static void
    tp(org.bukkit.entity.Player from, org.bukkit.Location to, double delaySecond)
     
    static void
    tp(org.bukkit.entity.Player from, org.bukkit.Location to, double delaySecond, @Nullable TeleportUtils.TeleportFinishCallback callback, io.papermc.paper.entity.TeleportFlag... flags)
     
    static void
    tp(org.bukkit.entity.Player from, org.bukkit.Location to, @Nullable TeleportUtils.TeleportFinishCallback callback, io.papermc.paper.entity.TeleportFlag... flags)
     
    static void
    tp(org.bukkit.entity.Player from, org.bukkit.Location to, io.papermc.paper.entity.TeleportFlag... flags)
     

    Methods inherited from class java.lang.Object

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

    • teleportingMap

      public static final Map<org.bukkit.entity.Player,Boolean> teleportingMap
  • Constructor Details

    • TeleportUtils

      public TeleportUtils()
  • Method Details

    • tp

      public static void tp(org.bukkit.entity.Player from, org.bukkit.entity.Player to)
    • tp

      public static void tp(org.bukkit.entity.Player from, org.bukkit.entity.Player to, double delaySecond, @Nullable @Nullable TeleportUtils.TeleportFinishCallback callback, io.papermc.paper.entity.TeleportFlag... flags)
    • tp

      public static void tp(org.bukkit.entity.Player from, org.bukkit.Location to, @Nullable @Nullable TeleportUtils.TeleportFinishCallback callback, io.papermc.paper.entity.TeleportFlag... flags)
    • tp

      public static void tp(org.bukkit.entity.Player from, org.bukkit.Location to, io.papermc.paper.entity.TeleportFlag... flags)
    • tp

      public static void tp(org.bukkit.entity.Player from, org.bukkit.Location to, double delaySecond)
    • tp

      public static void tp(org.bukkit.entity.Player from, org.bukkit.Location to, double delaySecond, @Nullable @Nullable TeleportUtils.TeleportFinishCallback callback, io.papermc.paper.entity.TeleportFlag... flags)
    • checkBeforeTeleport

      public static boolean checkBeforeTeleport(org.bukkit.entity.Player player, org.bukkit.Location location)
    • checkWhenTeleport

      public static boolean checkWhenTeleport(org.bukkit.entity.Player player, org.bukkit.Location startLocationMark)
    • preloadLocation

      public static boolean preloadLocation(org.bukkit.entity.Player player, org.bukkit.Location location)
      预加载区块