Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SideOnly(CLIENT)
- public final void onKeyEvent(KeyEvent e) {
- if (e.getEventType() == PUSHED){
- if (e.getKeyType() == REDACT1){
- /*
- REDACTED
- */
- }
- else if (e.getKeyType() == REDACT2){
- /*
- REDACTED
- */
- }
- else if (e.getKeyType() == REDACT3){
- System.out.println("BARIFYING");
- doBar(Minecraft.getMinecraft().thePlayer);
- }
- }
- else{
- /*
- REDACTED
- */
- }
- }
- public final void doBar(EntityPlayer p){ //only the server needs an EntityPlayer
- if (SIDE == SERVER){
- System.out.println("SERVER RECIEVED THAT CLIENT WANTS TO BAR");
- /*
- REDACTED
- */
- }
- else if (SIDE == CLIENT){
- System.out.println("CLIENT WANTS TO BAR");
- Main.NETWORK.sendToServer(new PacketRequestFOO());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement