Class BaseUtils

java.lang.Object
io.github.pylonmc.pylon.base.util.BaseUtils

public final class BaseUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bukkit.Color
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    animate(org.bukkit.entity.ItemDisplay display, int delay, int duration, org.joml.Matrix4f matrix)
     
    static void
    animate(org.bukkit.entity.ItemDisplay display, int duration, org.joml.Matrix4f matrix)
     
    static @NotNull org.bukkit.NamespacedKey
    baseKey(@NotNull String key)
     
    static @NotNull org.bukkit.Color
    colorFromTemperature(double celsius)
     
    static @NotNull net.kyori.adventure.text.Component
    createFluidAmountBar(double amount, double capacity, int bars, net.kyori.adventure.text.format.TextColor fluidColor)
     
    static @NotNull org.joml.Vector3d
    getDirection(@NotNull org.bukkit.Location source, @NotNull org.bukkit.Location target)
     
    static @NotNull org.joml.Vector3d
    getDisplacement(@NotNull org.bukkit.Location source, @NotNull org.bukkit.Location target)
     
    static @NotNull org.bukkit.entity.TextDisplay
    spawnUnitSquareTextDisplay(@NotNull org.bukkit.Location location, @NotNull org.bukkit.Color color)
     

    Methods inherited from class java.lang.Object

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

    • METAL_GRAY

      public static final org.bukkit.Color METAL_GRAY
  • Method Details

    • baseKey

      @NotNull public static @NotNull org.bukkit.NamespacedKey baseKey(@NotNull @NotNull String key)
    • colorFromTemperature

      @NotNull public static @NotNull org.bukkit.Color colorFromTemperature(double celsius)
    • spawnUnitSquareTextDisplay

      @NotNull public static @NotNull org.bukkit.entity.TextDisplay spawnUnitSquareTextDisplay(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.Color color)
    • getDisplacement

      @NotNull public static @NotNull org.joml.Vector3d getDisplacement(@NotNull @NotNull org.bukkit.Location source, @NotNull @NotNull org.bukkit.Location target)
    • getDirection

      @NotNull public static @NotNull org.joml.Vector3d getDirection(@NotNull @NotNull org.bukkit.Location source, @NotNull @NotNull org.bukkit.Location target)
    • createFluidAmountBar

      @NotNull public static @NotNull net.kyori.adventure.text.Component createFluidAmountBar(double amount, double capacity, int bars, net.kyori.adventure.text.format.TextColor fluidColor)
    • animate

      public static void animate(org.bukkit.entity.ItemDisplay display, int delay, int duration, org.joml.Matrix4f matrix)
    • animate

      public static void animate(org.bukkit.entity.ItemDisplay display, int duration, org.joml.Matrix4f matrix)