Guest User

Untitled

a guest
Aug 27th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. package net.minefs.MineStrike.Map;
  2.  
  3. import org.bukkit.Location;
  4.  
  5. import net.minefs.MineStrike.Handler.GameTeam.Role;
  6.  
  7. public class MapItem {
  8.    
  9.     // Biểu tượng
  10.     private byte[][] icon;
  11.    
  12.     // Vị trí thực
  13.     private Location l;
  14.    
  15.     // Thời gian kết thúc render
  16.     private long expire;
  17.    
  18.     // Team sẽ nhìn thấy, nếu là null thì cả 2 team đều thấy
  19.     private Role role;
  20.  
  21.     public MapItem(byte[][] icon, Location l, long expire, Role role) {
  22.         this.icon = icon;
  23.         this.l = l;
  24.         this.expire = expire;
  25.         this.role = role;
  26.     }
  27.  
  28.     public byte[][] getIcon() {
  29.         return icon;
  30.     }
  31.  
  32.     public Location getLocation() {
  33.         return l;
  34.     }
  35.  
  36.     public long getExpire() {
  37.         return expire;
  38.     }
  39.  
  40.     public boolean isExpired() {
  41.         return expire <= System.currentTimeMillis();
  42.     }
  43.  
  44.     public Role getRole() {
  45.         return role;
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment