Class AlcoholLore
java.lang.Object
ke.ric.api.item.AlcoholLore
One presentation for alcohol, independent of brewing and mixed-drink metadata.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidalcoholFree(org.bukkit.inventory.ItemStack item) static voidapply(org.bukkit.inventory.ItemStack item, double abv, Integer quality, boolean separateAlcoholQuality, List<net.kyori.adventure.text.Component> details) static net.kyori.adventure.text.Componentchemistry(double sugar, double acid, double tannins) static net.kyori.adventure.text.Componentestimate(double abv, double servingCl) Single calculated estimate for a catalog preview, never usable alcohol metadata.static booleanisGeneratedQualityLine(net.kyori.adventure.text.Component line) Recognizes our ordinary quality rows without deleting identically worded custom components.static booleanisQualityLine(net.kyori.adventure.text.Component line) static Stringnumber(double value) static booleanownsLine(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 Stringquality(int level) static net.kyori.adventure.text.Componentrange(double minimumAbv, double maximumAbv, double servingCl) Detached preview formatting; never grants alcohol or brewing credentials.static booleanrefresh(org.bukkit.inventory.ItemStack item) Refresh an exposed drink's generated alcohol row without creating drink credentials.static booleanrefreshQuality(org.bukkit.inventory.ItemStack item) static booleanrefreshTerminal(org.bukkit.inventory.ItemStack item) static net.kyori.adventure.text.Componentunknown()
-
Method Details
-
number
-
quality
-
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
-
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.
-