类 PlayerSchedulerUtil

java.lang.Object
cn.handyplus.lib.adapter.PlayerSchedulerUtil

public class PlayerSchedulerUtil extends Object
玩家相关调度器
从以下版本开始:
1.0.4
作者:
handy
  • 方法概要

    修饰符和类型
    方法
    说明
    static void
    addPotionEffects(org.bukkit.entity.LivingEntity entity, List<org.bukkit.potion.PotionEffect> potionEffectList)
    实体添加药水效果 同步
    static void
    addPotionEffects(org.bukkit.entity.LivingEntity entity, org.bukkit.potion.PotionEffect potionEffect)
    实体添加药水效果 同步
    static void
    控制台执行命令
    static void
    performCommand(org.bukkit.entity.Player player, String command)
    玩家执行命令 chat方式
    static void
    performOpCommand(org.bukkit.entity.Player player, String command)
    玩家已OP身份执行命令 chat方式
    static void
    playerPerformCommand(org.bukkit.entity.Player player, String command)
    玩家执行命令 performCommand 方式
    static void
    playerPerformOpCommand(org.bukkit.entity.Player player, String command)
    玩家已OP身份执行命令 performCommand 方式
    static void
    playSound(org.bukkit.entity.Player player, org.bukkit.Sound sound, float volume, float pitch)
    播放声音 同步
    static void
    removePotionEffect(org.bukkit.entity.LivingEntity entity, org.bukkit.potion.PotionEffectType potionEffect)
    实体添加药水效果 同步
    static void
    控制台执行命令 同步
    static void
    syncPerformCommand(org.bukkit.entity.Player player, String command)
    玩家执行命令 chat方式 同步
    static void
    syncPerformOpCommand(org.bukkit.entity.Player player, String command)
    玩家已OP身份执行命令 chat方式 同步
    static void
    syncPerformReplaceCommand(org.bukkit.entity.Player player, String command)
    玩家执行替换命令 同步
    static void
    syncPlayerPerformCommand(org.bukkit.entity.Player player, String command)
    玩家执行命令 performCommand 方式 同步
    static void
    syncPlayerPerformOpCommand(org.bukkit.entity.Player player, String command)
    玩家已OP身份执行命令 performCommand 方式 同步
    static void
    syncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target)
    传送实体 同步
    static void
    syncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
    传送实体 同步
    static boolean
    teleport(org.bukkit.entity.Entity entity, org.bukkit.Location target)
    传送实体
    static boolean
    teleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
    传送实体

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • teleport

      public static boolean teleport(org.bukkit.entity.Entity entity, org.bukkit.Location target)
      传送实体
      参数:
      entity - 需要传送的实体
      target - 目的地
      返回:
      传送结果
    • teleport

      public static boolean teleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
      传送实体
      参数:
      entity - 需要传送的实体
      target - 传送目的地
      cause - 传送原因
      返回:
      传送结果
    • syncTeleport

      public static void syncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target)
      传送实体 同步
      参数:
      entity - 需要传送的实体
      target - 传送目的地
    • syncTeleport

      public static void syncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause)
      传送实体 同步
      参数:
      entity - 需要传送的实体
      target - 传送目的地
      cause - 传送原因
    • addPotionEffects

      public static void addPotionEffects(org.bukkit.entity.LivingEntity entity, List<org.bukkit.potion.PotionEffect> potionEffectList)
      实体添加药水效果 同步
      参数:
      entity - 实体
      potionEffectList - 药水效果
    • addPotionEffects

      public static void addPotionEffects(org.bukkit.entity.LivingEntity entity, org.bukkit.potion.PotionEffect potionEffect)
      实体添加药水效果 同步
      参数:
      entity - 实体
      potionEffect - 药水效果
      从以下版本开始:
      1.1.2
    • removePotionEffect

      public static void removePotionEffect(org.bukkit.entity.LivingEntity entity, org.bukkit.potion.PotionEffectType potionEffect)
      实体添加药水效果 同步
      参数:
      entity - 实体
      potionEffect - 药水效果
    • playSound

      public static void playSound(org.bukkit.entity.Player player, org.bukkit.Sound sound, float volume, float pitch)
      播放声音 同步
      参数:
      player - 玩家
      sound - 声音
      volume - 音量
      pitch - 音调
      从以下版本开始:
      1.0.7
    • performCommand

      public static void performCommand(org.bukkit.entity.Player player, String command)
      玩家执行命令 chat方式
      参数:
      player - 玩家
      command - 命令
    • syncPerformCommand

      public static void syncPerformCommand(org.bukkit.entity.Player player, String command)
      玩家执行命令 chat方式 同步
      参数:
      player - 玩家
      command - 命令
    • playerPerformCommand

      public static void playerPerformCommand(org.bukkit.entity.Player player, String command)
      玩家执行命令 performCommand 方式
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.2
    • syncPlayerPerformCommand

      public static void syncPlayerPerformCommand(org.bukkit.entity.Player player, String command)
      玩家执行命令 performCommand 方式 同步
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.5
    • performOpCommand

      public static void performOpCommand(org.bukkit.entity.Player player, String command)
      玩家已OP身份执行命令 chat方式
      参数:
      player - 玩家
      command - 命令
    • syncPerformOpCommand

      public static void syncPerformOpCommand(org.bukkit.entity.Player player, String command)
      玩家已OP身份执行命令 chat方式 同步
      参数:
      player - 玩家
      command - 命令
    • playerPerformOpCommand

      public static void playerPerformOpCommand(org.bukkit.entity.Player player, String command)
      玩家已OP身份执行命令 performCommand 方式
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.5
    • syncPlayerPerformOpCommand

      public static void syncPlayerPerformOpCommand(org.bukkit.entity.Player player, String command)
      玩家已OP身份执行命令 performCommand 方式 同步
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.5
    • dispatchCommand

      public static void dispatchCommand(String command)
      控制台执行命令
      参数:
      command - 命令
      从以下版本开始:
      1.1.4
    • syncDispatchCommand

      public static void syncDispatchCommand(String command)
      控制台执行命令 同步
      参数:
      command - 命令
      从以下版本开始:
      1.1.4
    • syncPerformReplaceCommand

      public static void syncPerformReplaceCommand(org.bukkit.entity.Player player, String command)
      玩家执行替换命令 同步
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.0.8