Class AlcoholLore

java.lang.Object
ke.ric.api.item.AlcoholLore

public final class AlcoholLore extends Object
One presentation for alcohol, independent of brewing and mixed-drink metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    alcoholFree(org.bukkit.inventory.ItemStack item)
     
    static void
    apply(org.bukkit.inventory.ItemStack item, double abv, Integer quality, boolean separateAlcoholQuality, List<net.kyori.adventure.text.Component> details)
     
    static net.kyori.adventure.text.Component
    chemistry(double sugar, double acid, double tannins)
     
    static net.kyori.adventure.text.Component
    estimate(double abv, double servingCl)
    Single calculated estimate for a catalog preview, never usable alcohol metadata.
    static boolean
    isGeneratedQualityLine(net.kyori.adventure.text.Component line)
    Recognizes our ordinary quality rows without deleting identically worded custom components.
    static boolean
    isQualityLine(net.kyori.adventure.text.Component line)
     
    static String
    number(double value)
     
    static boolean
    ownsLine(org.bukkit.inventory.ItemStack item, net.kyori.adventure.text.Component line)
    Allows ordinary quality refresh to update the owned drink section without duplicate rows.
    static String
    quality(int level)
     
    static net.kyori.adventure.text.Component
    range(double minimumAbv, double maximumAbv, double servingCl)
    Detached preview formatting; never grants alcohol or brewing credentials.
    static boolean
    refresh(org.bukkit.inventory.ItemStack item)
    Refresh an exposed drink's generated alcohol row without creating drink credentials.
    static boolean
    refreshQuality(org.bukkit.inventory.ItemStack item)
     
    static boolean
    refreshTerminal(org.bukkit.inventory.ItemStack item)
     
    static net.kyori.adventure.text.Component
     

    Methods inherited from class Object

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

    • number

      public static String number(double value)
    • quality

      public static String quality(int level)
    • chemistry

      public static net.kyori.adventure.text.Component chemistry(double sugar, double acid, double tannins)
    • unknown

      public static net.kyori.adventure.text.Component unknown()
    • range

      public static net.kyori.adventure.text.Component range(double minimumAbv, double maximumAbv, double servingCl)
      Detached preview formatting; never grants alcohol or brewing credentials.
    • estimate

      public static net.kyori.adventure.text.Component estimate(double abv, double servingCl)
      Single calculated estimate for a catalog preview, never usable alcohol metadata.
    • apply

      public static void apply(org.bukkit.inventory.ItemStack item, double abv, Integer quality, boolean separateAlcoholQuality, List<net.kyori.adventure.text.Component> details)
    • ownsLine

      public static boolean ownsLine(org.bukkit.inventory.ItemStack item, net.kyori.adventure.text.Component line)
      Allows ordinary quality refresh to update the owned drink section without duplicate rows.
    • refreshTerminal

      public static boolean refreshTerminal(org.bukkit.inventory.ItemStack item)
    • refresh

      public static boolean refresh(org.bukkit.inventory.ItemStack item)
      Refresh an exposed drink's generated alcohol row without creating drink credentials.
    • alcoholFree

      public static void alcoholFree(org.bukkit.inventory.ItemStack item)
    • refreshQuality

      public static boolean refreshQuality(org.bukkit.inventory.ItemStack item)
    • isQualityLine

      public static boolean isQualityLine(net.kyori.adventure.text.Component line)
    • isGeneratedQualityLine

      public static boolean isGeneratedQualityLine(net.kyori.adventure.text.Component line)
      Recognizes our ordinary quality rows without deleting identically worded custom components.