mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-20 23:24:42 +00:00
64 lines
1.4 KiB
Java
64 lines
1.4 KiB
Java
package com.projectkorra.ProjectKorra;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
public class BendingPlayer {
|
|
|
|
public static ConcurrentHashMap<String, BendingPlayer> players = new ConcurrentHashMap<String, BendingPlayer>();
|
|
public static ConcurrentHashMap<String, Long> blockedChi = new ConcurrentHashMap<String, Long>();
|
|
|
|
UUID uuid;
|
|
String player;
|
|
ArrayList<Element> elements;
|
|
HashMap<Integer, String> abilities;
|
|
boolean permaRemoved;
|
|
boolean isToggled;
|
|
|
|
public BendingPlayer(UUID uuid, String player, ArrayList<Element> elements, HashMap<Integer, String> abilities, boolean permaRemoved) {
|
|
this.uuid = uuid;
|
|
this.player = player;
|
|
this.elements = elements;
|
|
this.abilities = abilities;
|
|
this.permaRemoved = permaRemoved;
|
|
isToggled = true;
|
|
|
|
players.put(player, this);
|
|
}
|
|
|
|
public UUID getUUID() {
|
|
return this.uuid;
|
|
}
|
|
|
|
public String getPlayerName() {
|
|
return this.player;
|
|
}
|
|
|
|
public List<Element> getElements() {
|
|
return this.elements;
|
|
}
|
|
|
|
public HashMap<Integer, String> getAbilities() {
|
|
return this.abilities;
|
|
}
|
|
|
|
public boolean isPermaRemoved() {
|
|
return this.permaRemoved;
|
|
}
|
|
|
|
public void addElement(Element e) {
|
|
this.elements.add(e);
|
|
}
|
|
|
|
public boolean hasElement(Element e) {
|
|
return this.elements.contains(e);
|
|
}
|
|
|
|
public void setElement(Element e) {
|
|
this.elements.clear();
|
|
this.elements.add(e);
|
|
}
|
|
}
|