Advertisement
ExpDev

Points.java

May 7th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package me.expdev.gkitpvp;
  2.  
  3. /*
  4.  * Project created by ExpDev
  5.  */
  6.  
  7. import me.expdev.gkitpvp.persist.json.JSONPoints;
  8.  
  9. public abstract class Points {
  10.  
  11.     private static Points instance = getPointsImpl();
  12.  
  13.     public static Points getInstance() {
  14.         return instance;
  15.     }
  16.  
  17.     private static Points getPointsImpl() {
  18.         return new JSONPoints();
  19.     }
  20.  
  21.     public abstract GLocation getSpawn();
  22.  
  23.     public abstract void setSpawn(GLocation loc);
  24.  
  25.     public abstract GLocation getPoint(String id);
  26.  
  27.     public abstract void addPoint(String id, GLocation loc);
  28.  
  29.     public abstract void removePoint(String id);
  30.  
  31.     // LOAD
  32.     public abstract void loadAll();
  33.  
  34.     // SAVE
  35.     public abstract void forceSaveAll();
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement