1package com.runehive.content.clanchannel.content;
3import com.runehive.content.clanchannel.channel.ClanChannel;
4import com.runehive.content.clanchannel.channel.ClanChannelHandler;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.items.Item;
7import com.runehive.game.world.items.ItemDefinition;
8import com.runehive.net.packet.out.SendItemOnInterface;
9import com.runehive.net.packet.out.SendMessage;
10import com.runehive.net.packet.out.SendString;
12import java.util.ArrayList;
58 player.send(
new SendMessage(
"You should select an item first."));
70 player.send(
new SendMessage(
"You have successfully changed your showcase."));
74 if (!player.interfaceManager.isInterfaceOpen(57700))
78 player.send(
new SendMessage(
"You should select an item first."));
83 player.send(
new SendMessage(
"You need a minimum of 3 showcase items. This action can not be performed."));
87 player.dialogueFactory.sendStatement(
89 "Once this action is performed it can not be undone!")
90 .sendOption(
"Yes", () -> {
93 player.send(
new SendMessage(
"You have successfully removed that item from your showcase."));
94 },
"Nevermind", () -> player.dialogueFactory.clear()).execute();
The handler for the clan channel.
static void manage(Player player)
Handles the clan chat channel.
List< Integer > showcaseItems
ClanShowcase(ClanChannel channel)
void select(Player player, int item, int slot)
final ClanChannel channel
void openShowcase(Player player, int slot)
boolean isInterfaceOpen(int id)
Checks if a certain interface is enter.
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 all of an in-game Item's attributes.
static ItemDefinition get(int id)
Gets an item definition.
String getName()
Gets the item name.
The container class that represents an item that can be interacted with.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.