1package com.runehive.content.skill.impl.construction;
3import com.runehive.net.packet.out.SendItemOnInterface;
4import com.runehive.net.packet.out.SendString;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.object.GameObjectDefinition;
7import com.runehive.util.Utility;
16 click(player, -17995);
21 int index = Math.abs((-17995 - button));
25 if (index >= list.size()) {
29 display(player, list.get(index));
34 player.
send(
new SendString(
object ==
null ?
"" :
"" +
object.getName(), 47515));
39 player.
attributes.
set(
"CONSTRUCTION_BUILDOBJECT_KEY",
object);
45 for (
int index = 0; index < 50; index++) {
46 String name = index >= list.size() ?
"" : ((selected == index ?
"<col=5cf442>" :
"</col>") + list.get(index).getName());
50 player.
send(
new SendString(
"Total object: " + list.size(), 47514));
static void click(Player player, int button)
static void display(Player player, BuildableObject object)
static void open(Player player, BuildableType type)
static void refresh(Player player, int selected, BuildableType type)
final GenericAttributes attributes
void open(int identification)
Opens an interface for the player.
This class represents a character controlled by a player.
final InterfaceManager interfaceManager
void send(OutgoingPacket encoder)
Represents a single type of object.
static GameObjectDefinition forId(int id)
Gets an object definition by its id.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Handles miscellaneous methods.
static String formatDigits(final int amount)
Formats digits for integers.
public< K, E > E get(K key)
Gets a generic attribute.
public< K, E > void set(K key, E attribute)
Sets a generic attribute.
Holds all the construction buildable object.
static List< BuildableObject > get(BuildableType type)