Advertisement
Guest User

Untitled

a guest
Apr 30th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public class KeybindMessage implements IMessage {
  2.  
  3. public boolean keybindDown;
  4.  
  5. public KeybindMessage() {
  6. }
  7.  
  8. public KeybindMessage(boolean keybindDown) {
  9. this.keybindDown = keybindDown;
  10. }
  11.  
  12. @Override
  13. public void fromBytes(ByteBuf buf) {
  14. buf.readBoolean();
  15. }
  16.  
  17. @Override
  18. public void toBytes(ByteBuf buf) {
  19. buf.writeBoolean(keybindDown);
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement