Advertisement
Guest User

Untitled

a guest
Aug 15th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. private Packet getPacketForThisEntity() {
  2.         if (this.myEntity.isDead) {
  3.             System.out.println("Fetching addPacket for removed entity");
  4.         }
  5.  
  6.         Packet packet = mod_Test.entityHelper.getPacketForThisEntity(this);
  7.         if (packet != null)
  8.             return packet;
  9.  
  10.         if (this.myEntity instanceof EntityItem) {
  11.             EntityItem var8 = (EntityItem) this.myEntity;
  12.             Packet21PickupSpawn var9 = new Packet21PickupSpawn(var8);
  13.             var8.posX = (double) var9.xPosition / 32.0D;
  14.             var8.posY = (double) var9.yPosition / 32.0D;
  15.             var8.posZ = (double) var9.zPosition / 32.0D;
  16.             return var9;
  17.         } else if (this.myEntity instanceof EntityPlayerMP) {
  18.             return new Packet20NamedEntitySpawn((EntityPlayer) this.myEntity);
  19.         ............ more lines down
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement