1package com.runehive.content.clanchannel;
3import com.runehive.content.clanchannel.channel.ClanChannel;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.mob.player.relations.PrivacyChatMode;
6import com.runehive.net.packet.out.SendClanDetails;
8import java.util.Objects;
9import java.util.Optional;
46 this.player = Optional.empty();
51 this.name =
player.getName();
52 this.player = Optional.of(
player);
60 for (Object
message : messages) {
71 final Optional<Player> result = speaker.
player;
73 if (!result.isPresent()) {
77 final Player playerTalking = result.get();
99 if (obj ==
this)
return true;
102 return Objects.equals(
name, other.
name)
115 return name.hashCode();
ClanRank rank
The rank of the clan member.
int playerKills
The players killed by the clan member.
void message(Object... messages)
Handles messaging the clan member.
int getValue()
Gets the value of the clan member based on their contribution.
boolean equals(Object obj)
Optional< Player > player
The player instance of the clan member .
void chat(ClanMember speaker, Object message)
Handles messaging the clan member.
ClanMember(String name)
Constructs a new ClanMember.
final String name
The name of the clan member.
double expGained
The experienced gained by the clan member.
int totalLevel
The total level of the clan member.
String joined
The join date of the clan member.
int npcKills
The npcs killed by the clan member.
ClanMember(Player player)
Constructs a new ClanMember.
Handles the clan chat channel.
This class represents a character controlled by a player.
String getName()
Gets the name of this entity.
void send(OutgoingPacket encoder)
The enum containing all the rank's data within a clan channel.