Advertisement
mrkirby153

Untitled

Aug 30th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.79 KB | None | 0 0
  1. package me.mrkirby153.KCNerfer.proxy;
  2.  
  3. import me.mrkirby153.KCNerfer.voting.VoteHandler;
  4.  
  5. import java.util.HashMap;
  6.  
  7. // Server Proxy
  8. public class CommonProxy {
  9.  
  10.  
  11.  
  12.     public boolean isSinglePlayer(){
  13.         return false;
  14.     }
  15.  
  16.     public void registerRender(){}
  17.  
  18.     public float getSaturation(){
  19.         throw new RuntimeException("This method should be called on the client!");
  20.     }
  21.  
  22.     public void setSaturation(float f){
  23.         throw new RuntimeException("This method should be called on the client only.");
  24.     }
  25.  
  26.     public void setShowSat(boolean b){
  27.         throw new RuntimeException("Called on the wrong side!");
  28.     }
  29.  
  30.     public boolean getShowSat(){
  31.         throw new RuntimeException("Called on the wrong side!");
  32.     }
  33.     public void setEndVoteTime(VoteHandler.Condition c, long endTime){
  34.         throw new RuntimeException("Called on the wrong side!");
  35.     }
  36.     public HashMap<VoteHandler.Condition, Long> getEndVoteTime(){
  37.         throw new RuntimeException("Called on wrong side!");
  38.     }
  39.  
  40.     public void setCooldownTime(VoteHandler.Condition c, long cooldownTime){
  41.         throw new RuntimeException("Called on wrong side!");
  42.     }
  43.  
  44.     public HashMap<VoteHandler.Condition, Long> getCooldownTime(){
  45.         throw new RuntimeException("Called on wrong side!");
  46.     }
  47.  
  48.     public boolean checkCooldownTimer(VoteHandler.Condition c){
  49.         throw new RuntimeException("Called on wrong side!");
  50.     }
  51.  
  52.     public void cancelVote(VoteHandler.Condition c){
  53.         throw new RuntimeException("Called on wrong side!");
  54.     }
  55.     public boolean showVotes() {
  56.         throw new RuntimeException("Called on wrong side!");
  57.     }
  58.  
  59.     public void setShowVotes(boolean showVotes) {
  60.         throw new RuntimeException("Called on wrong side!");
  61.     }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement