mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-09 17:01:51 +01:00
Slightly improved the Blueprint Bundle Editor panel
Added icons for world's dimensions, and made the "separator" glass panes have an empty name instead of a '-'.
This commit is contained in:
parent
44354175e4
commit
01df19c424
@ -169,7 +169,7 @@ public class BlueprintManagementPanel {
|
|||||||
});
|
});
|
||||||
|
|
||||||
for (int i = 9; i < 18; i++) {
|
for (int i = 9; i < 18; i++) {
|
||||||
pb.item(i, new PanelItemBuilder().icon(Material.BLACK_STAINED_GLASS_PANE).name("-").build());
|
pb.item(i, new PanelItemBuilder().icon(Material.BLACK_STAINED_GLASS_PANE).name(" ").build());
|
||||||
}
|
}
|
||||||
blueprints.entrySet().stream().limit(18).forEach(b -> pb.item(getBlueprintItem(addon, b.getKey(), bb, b.getValue())));
|
blueprints.entrySet().stream().limit(18).forEach(b -> pb.item(getBlueprintItem(addon, b.getKey(), bb, b.getValue())));
|
||||||
// Buttons for non-default bundle
|
// Buttons for non-default bundle
|
||||||
@ -244,10 +244,16 @@ public class BlueprintManagementPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private PanelItem getWorldInstrTile(Environment env) {
|
private PanelItem getWorldInstrTile(Environment env) {
|
||||||
|
Material icon;
|
||||||
|
if (env.equals(Environment.NORMAL)) icon = Material.GRASS_BLOCK;
|
||||||
|
else if (env.equals(Environment.NETHER)) icon = Material.NETHERRACK;
|
||||||
|
else icon = Material.END_STONE;
|
||||||
|
|
||||||
return new PanelItemBuilder()
|
return new PanelItemBuilder()
|
||||||
.name(t("world-name-syntax", TextVariables.NAME, Util.prettifyText(env.name())))
|
.name(t("world-name-syntax", TextVariables.NAME, Util.prettifyText(env.name())))
|
||||||
.description(t("world-instructions"))
|
.description(t("world-instructions"))
|
||||||
.icon(Material.GRAY_STAINED_GLASS_PANE)
|
.glow(true)
|
||||||
|
.icon(icon)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user