Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.63 KB | None | 0 0
  1.     public static void onAffixedToHookShotRope(int ropeEntID)
  2.     {
  3.         mc = Minecraft.getMinecraft();
  4.         localPlayer = mc.thePlayer;
  5.         if (localPlayer != null && localPlayer.worldObj != null)
  6.         {
  7.             Entity ent = localPlayer.worldObj.getEntityByID(ropeEntID);
  8.             System.out.println("found client rope: "+ent);
  9.             if (ent != null && ent instanceof EntityFreeFormRope)
  10.             {
  11.                 ((EntityFreeFormRope) ent).setShooter(localPlayer);
  12.             }
  13.         }
  14.     }
  15.  
  16. [18:11:46] [Server thread/INFO] [STDOUT]: [atomicstryker.ropesplus.common.ItemHookshot:onPlayerStoppedUsing:89]: Hookshot hit: HitResult{type=BLOCK, blockpos=BlockPos{x=220, y=69, z=70}, f=south, pos=(220.1816197011283, 69.49878270506935, 71.0), entity=null}
  17. [18:11:46] [Server thread/INFO] [STDOUT]: [atomicstryker.ropesplus.common.ItemHookshot:onPlayerStoppedUsing:99]: Setting server rope 424 for shooter: EntityPlayerMP['AtomicStryker'/276, l='New World', x=216,22, y=64,00, z=77,74]
  18. [18:11:46] [Server thread/INFO] [STDOUT]: [atomicstryker.ropesplus.common.EntityFreeFormRope:setShooter:60]: rope EntityFreeFormRope['Hookshot Line'/424, l='New World', x=220,50, y=69,00, z=70,50] has shooter: EntityPlayerMP['AtomicStryker'/276, l='New World', x=216,22, y=64,00, z=77,74]
  19. HookshotPacket [220|69|70], ropeID 424
  20. [18:11:46] [Netty Local Client IO #0/INFO] [STDOUT]: [atomicstryker.ropesplus.client.RopesPlusClient:onAffixedToHookShotRope:378]: found client rope: null
  21. rope EntityFreeFormRope['Hookshot Line'/424, l='MpServer', x=220,50, y=69,00, z=70,50], [216,64,77] is not anchor: net.minecraft.block.BlockAir@776a6d9b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement