Rollback fluent setters in PositionedStack added in #1106 (#1110) (#1135)

Co-authored-by: slprime <[email protected]>
This commit is contained in:
boubou19andslprime authored and GitHub committed 2026-11-19 07:50:30 +01:00
1 parent 2590eec44a
commit 8d118cb132
1 file changed
+4 -8
@@ -88,23 +88,20 @@ public class PositionedStack implements Cloneable {
return this.acceptsLabel;
}
public PositionedStack setBadges(List<Badge> badges) {
public void setBadges(List<Badge> badges) {
this.badges = badges;
return this;
}
public List<Badge> getBadges() {
return this.badges;
}
public PositionedStack setTooltip(List<String> tooltip) {
public void setTooltip(List<String> tooltip) {
this.tooltip = tooltip == null ? null : item -> tooltip;
return this;
}
public PositionedStack setTooltipProvider(Function<ItemStack, List<String>> provider) {
public void setTooltipProvider(Function<ItemStack, List<String>> provider) {
this.tooltip = provider;
return this;
}
public List<String> getTooltip() {
@@ -115,9 +112,8 @@ public class PositionedStack implements Cloneable {
return this.chance;
}
public PositionedStack setChance(int chance) {
public void setChance(int chance) {
this.chance = chance;
return this;
}
public PositionedStack copy() {