I am getting errors with 1.7.5 when I try to run my plugin. Code:java public void setArrowLife(Entity arrow, int lifeSet){if(arrow instanceof Arrow){CraftArrow ca = (CraftArrow)arrow;EntityArrow ea = (EntityArrow)ca.getHandle();try {Field life = ea.getClass().getDeclaredField("j");life.setAccessible(true);life.set(ea,-lifeSet);} catch(Exception e) {e.printStackTrace();}}} The error is: java.lang.NoSuchFieldException: j Anyone know that that field is now in 1.7.5? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
BillyGalbreath So?... I still am asking it. I think I found it, the new field is "h" EDIT by Moderator: merged posts, please use the edit button instead of double posting.
BillyGalbreath No offense intended, but I think questions about use of NMS are completely within the purview of these forums - particularly if you consider the amount of beginning Java questions (how do switch statements operate? Why is my control flow logic not working as intended?) that show up every day.
you have invalid NMS coding strategy. 1) Open source code 2) Read it 3) Get proper names of fields asking on forum "please open source code for me and tell me field name" is not valid.