Advertisement
drinfernoo

ServerPacketHandler.java

Nov 25th, 2012
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. package com.drin.mods;
  2.  
  3. import java.io.ByteArrayInputStream;
  4. import java.io.DataInputStream;
  5.  
  6. import net.minecraft.src.EntityPlayer;
  7. import net.minecraft.src.NetworkManager;
  8. import net.minecraft.src.Packet250CustomPayload;
  9. import cpw.mods.fml.common.network.IPacketHandler;
  10. import cpw.mods.fml.common.network.Player;
  11.  
  12. public class ServerPacketHandler implements IPacketHandler {
  13.  
  14.     @Override
  15.     public void onPacketData(NetworkManager manager, Packet250CustomPayload payload, Player player) {
  16.         DataInputStream data = new DataInputStream(new ByteArrayInputStream(payload.data));
  17.         EntityPlayer sender = (EntityPlayer) player;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement