daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to make constructor templates for specific superclasses?
  2. package lessur.engine.net.packets;
  3.  
  4. import java.io.IOException;
  5.  
  6. import lessur.engine.net.GamePacket;
  7. import lessur.engine.net.LessurConnectedNode;
  8.  
  9. public class PacketTemplate extends GamePacket {
  10.  
  11.     public PacketTemplate(LessurConnectedNode c) {
  12.         super(-1, c);  
  13.     }
  14.  
  15.     public PacketTemplate(){
  16.         super(-1, null);
  17.     }
  18.  
  19.     @Override
  20.     public byte[] getData() throws IOException {
  21.         return baos.toByteArray();
  22.     }
  23.  
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top