类 BukkitUtils

java.lang.Object
io.github.lijinhong11.mittellib.utils.BukkitUtils

public class BukkitUtils extends Object
  • 构造器详细资料

    • BukkitUtils

      public BukkitUtils()
  • 方法详细资料

    • getMaterial

      @Nullable public static @Nullable Material getMaterial(@NotNull @NotNull String name)
    • getMaterialDef

      @NotNull public static @NotNull Material getMaterialDef(@NotNull @NotNull String name)
    • getMaterial

      @Contract("_, !null -> !null") @Nullable public static @Nullable Material getMaterial(@NotNull @NotNull String name, @Nullable @Nullable Material def)
    • getProfileSkinURL

      @Nullable public static @Nullable String getProfileSkinURL(@NotNull @NotNull ItemStack itemStack)
    • setProfileBySkinURL

      public static void setProfileBySkinURL(@NotNull @NotNull ItemStack itemStack, @NotNull @NotNull String url)
    • getNamespacedKey

      @Nullable public static @Nullable NamespacedKey getNamespacedKey(@Nullable @Nullable String input)
    • getNamespacedKeys

      @NotNull public static @NotNull List<NamespacedKey> getNamespacedKeys(@NotNull @NotNull Iterable<String> keys)
    • readPotionEffect

      @Nullable public static @Nullable PotionEffect readPotionEffect(@NotNull @NotNull ConfigurationSection cs)
    • readPotionEffect

      @Nullable public static @Nullable PotionEffect readPotionEffect(@NotNull @NotNull Map<String,Object> map)
    • writePotionEffect

      @NotNull public static @NotNull Map<String,Object> writePotionEffect(@NotNull @NotNull PotionEffect effect)
    • toColors

      @NotNull public static @NotNull List<Color> toColors(@NotNull @NotNull List<Map<?,?>> maps)
    • writeColors

      @NotNull public static @NotNull List<Map<String,Integer>> writeColors(@NotNull @NotNull List<Color> colors)
    • writeLocationSection

      public static void writeLocationSection(@NotNull @NotNull ConfigurationSection cs, @Nullable @Nullable Location loc)
    • readLocation

      @Nullable public static @Nullable Location readLocation(@NotNull @NotNull ConfigurationSection cs)