Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minefs.MineStrike.Map;
- import org.bukkit.Location;
- import net.minefs.MineStrike.Handler.GameTeam.Role;
- public class MapItem {
- // Biểu tượng
- private byte[][] icon;
- // Vị trí thực
- private Location l;
- // Thời gian kết thúc render
- private long expire;
- // Team sẽ nhìn thấy, nếu là null thì cả 2 team đều thấy
- private Role role;
- public MapItem(byte[][] icon, Location l, long expire, Role role) {
- this.icon = icon;
- this.l = l;
- this.expire = expire;
- this.role = role;
- }
- public byte[][] getIcon() {
- return icon;
- }
- public Location getLocation() {
- return l;
- }
- public long getExpire() {
- return expire;
- }
- public boolean isExpired() {
- return expire <= System.currentTimeMillis();
- }
- public Role getRole() {
- return role;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment