36 player.attributes.set(
"CONSTRUCTION_BUILDTYPE_KEY", type);
37 refresh(player, 0, type);
38 click(player, -17995);
39 player.interfaceManager.
open(47500);
42 public static void click(
Player player,
int button) {
43 int index = Math.abs((-17995 - button));
47 if (index >= list.size()) {
51 display(player, list.get(index));
52 refresh(player, index, type);
56 player.send(
new SendString(
object ==
null ?
"" :
"" +
object.getName(), 47515));
61 player.attributes.set(
"CONSTRUCTION_BUILDOBJECT_KEY",
object);
67 for (
int index = 0; index < 50; index++) {
68 String name = index >= list.size() ?
"" : ((selected == index ?
"<col=5cf442>" :
"</col>") + list.get(index).getName());
69 player.send(
new SendString(name, 47541 + index));
72 player.send(
new SendString(
"Total object: " + list.size(), 47514));