程序包 org.bukkit

类 World.Spigot

java.lang.Object
org.bukkit.World.Spigot
封闭接口:
World

public static class World.Spigot extends Object
  • 构造器详细资料

    • Spigot

      public Spigot()
  • 方法详细资料

    • strikeLightning

      @NotNull public @NotNull LightningStrike strikeLightning(@NotNull @NotNull Location loc, boolean isSilent)
      Strikes lightning at the given Location and possibly without sound
      参数:
      loc - The location to strike lightning
      isSilent - Whether this strike makes no sound
      返回:
      The lightning entity.
    • strikeLightningEffect

      @NotNull public @NotNull LightningStrike strikeLightningEffect(@NotNull @NotNull Location loc, boolean isSilent)
      Strikes lightning at the given Location without doing damage and possibly without sound
      参数:
      loc - The location to strike lightning
      isSilent - Whether this strike makes no sound
      返回:
      The lightning entity.