Advertisement
Gamebuster

FOO.class

Sep 25th, 2016
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1.     @SideOnly(CLIENT)
  2.     public final void onKeyEvent(KeyEvent e) {
  3.         if (e.getEventType() == PUSHED){
  4.             if (e.getKeyType() == REDACT1){
  5.                 /*
  6.                     REDACTED
  7.                 */
  8.             }
  9.             else if (e.getKeyType() == REDACT2){
  10.                 /*
  11.                     REDACTED
  12.                 */
  13.             }
  14.             else if (e.getKeyType() == REDACT3){
  15.                 System.out.println("BARIFYING");
  16.                 doBar(Minecraft.getMinecraft().thePlayer);
  17.             }
  18.         }
  19.         else{
  20.             /*
  21.                 REDACTED
  22.             */
  23.         }
  24.     }
  25.  
  26.     public final void doBar(EntityPlayer p){ //only the server needs an EntityPlayer
  27.         if (SIDE == SERVER){
  28.             System.out.println("SERVER RECIEVED THAT CLIENT WANTS TO BAR");
  29.             /*
  30.                 REDACTED
  31.             */
  32.         }
  33.         else if (SIDE == CLIENT){
  34.             System.out.println("CLIENT WANTS TO BAR");
  35.             Main.NETWORK.sendToServer(new PacketRequestFOO());
  36.         }
  37.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement