类 PlayerSchedulerUtil
java.lang.Object
cn.handyplus.lib.adapter.PlayerSchedulerUtil
玩家相关调度器
- 从以下版本开始:
- 1.0.4
- 作者:
- handy
-
方法概要
修饰符和类型方法说明static voidaddPotionEffects(org.bukkit.entity.LivingEntity entity, List<org.bukkit.potion.PotionEffect> potionEffectList) 实体添加药水效果 同步static voidperformCommand(org.bukkit.entity.Player player, String command) 玩家执行命令static voidperformOpCommand(org.bukkit.entity.Player player, String command) 玩家执行命令static voidplaySound(org.bukkit.entity.Player player, org.bukkit.Sound sound, float volume, float pitch) 播放声音static voidremovePotionEffect(org.bukkit.entity.LivingEntity entity, org.bukkit.potion.PotionEffectType potionEffect) 实体添加药水效果 同步static voidsyncPerformCommand(org.bukkit.entity.Player player, String command) 玩家执行命令 同步static voidsyncPerformOpCommand(org.bukkit.entity.Player player, String command) 玩家执行命令 同步static voidsyncPerformReplaceCommand(org.bukkit.entity.Player player, String command) 玩家执行替换命令 同步static voidsyncPlaySound(org.bukkit.entity.Player player, org.bukkit.Sound sound, float volume, float pitch) 播放声音static voidsyncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target) 传送实体 同步static voidsyncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) 传送实体 同步static booleanteleport(org.bukkit.entity.Entity entity, org.bukkit.Location target) 传送实体static booleanteleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) 传送实体
-
方法详细资料
-
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- 传送原因
-
performCommand
玩家执行命令- 参数:
player- 玩家command- 命令
-
syncPerformCommand
玩家执行命令 同步- 参数:
player- 玩家command- 命令
-
syncPerformReplaceCommand
玩家执行替换命令 同步- 参数:
player- 玩家command- 命令- 从以下版本开始:
- 1.0.8
-
performOpCommand
玩家执行命令- 参数:
player- 玩家command- 命令
-
syncPerformOpCommand
玩家执行命令 同步- 参数:
player- 玩家command- 命令
-
addPotionEffects
public static void addPotionEffects(org.bukkit.entity.LivingEntity entity, List<org.bukkit.potion.PotionEffect> potionEffectList) 实体添加药水效果 同步- 参数:
entity- 实体potionEffectList- 药水效果
-
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
-
syncPlaySound
public static void syncPlaySound(org.bukkit.entity.Player player, org.bukkit.Sound sound, float volume, float pitch) 播放声音- 参数:
player- 玩家sound- 声音volume- 音量pitch- 音调- 从以下版本开始:
- 1.0.7
-