A claim plugin based on FTB Chunks
at master 1.7 kB view raw
1package dev.keii.keiichunks.api; 2 3import java.sql.Timestamp; 4 5public class ApiChunk { 6 private long id; 7 private long userID; 8 private int chunkX; 9 private int chunkZ; 10 private Timestamp createdAt; 11 private Timestamp updatedAt; 12 private boolean allowExplosions; 13 14 public ApiChunk(long id, long userID, int chunkX, int chunkZ, Timestamp createdAt, Timestamp updatedAt, boolean allowExplosions) { 15 this.id = id; 16 this.userID = userID; 17 this.chunkZ = chunkZ; 18 this.chunkX = chunkX; 19 this.createdAt = createdAt; 20 this.updatedAt = updatedAt; 21 this.allowExplosions = allowExplosions; 22 } 23 24 public long getId() { 25 return id; 26 } 27 28 public void setId(long id) { 29 this.id = id; 30 } 31 32 public long getUserID() { 33 return userID; 34 } 35 36 public void setUserID(long userID) { 37 this.userID = userID; 38 } 39 40 public int getChunkX() { 41 return chunkX; 42 } 43 44 public void setChunkX(int chunkX) { 45 this.chunkX = chunkX; 46 } 47 48 public int getChunkZ() { 49 return chunkZ; 50 } 51 52 public void setChunkZ(int chunkZ) { 53 this.chunkZ = chunkZ; 54 } 55 56 public Timestamp getCreatedAt() { 57 return createdAt; 58 } 59 60 public void setCreatedAt(Timestamp createdAt) { 61 this.createdAt = createdAt; 62 } 63 64 public Timestamp getUpdatedAt() { 65 return updatedAt; 66 } 67 68 public void setUpdatedAt(Timestamp updatedAt) { 69 this.updatedAt = updatedAt; 70 } 71 72 public boolean isAllowExplosions() { 73 return allowExplosions; 74 } 75 76 public void setAllowExplosions(boolean allowExplosions) { 77 this.allowExplosions = allowExplosions; 78 } 79}