Posted November 16, 20168 yr I can see it right here..... I don't know what's going on here... So I figured I'd ask... I am in need of this. public static final DecimalFormat DECIMALFORMAT = new DecimalFormat("#.##"); /** Size of the stack. */ private int stackSize; /** Number of animation frames to go when receiving an item (by walking into it, for example). */ private int animationsToGo;
November 16, 20168 yr you nee to use public void func_190917_f(int p_190917_1_) { this.func_190920_e(this.stackSize + p_190917_1_); } public void func_190918_g(int p_190918_1_) { this.func_190917_f(-p_190918_1_); }
November 16, 20168 yr Author func_190920_e ⇒ setStackSize func_190917_f ⇒ increaseStackSize func_190918_g ⇒ decreaseStackSize meh..... I hope I can get this to start working.... The item shows up in the named tab but when I throw it, it disappears and doesn't render... It flies through the air and can hit things like entities and do damage and make noise, but its invisible.... edit: New mdk update... i'll see how it goes *fingers crossed* edit2: Its cool. (please keep this going on EntityRegistry.registerModEntity( 64, 107, true);
November 17, 20168 yr Just in case somebody failed to see the obvious in the OP: private int stackSize; "Private" means that the field can't be seen outside of its own class (not even extensions can see it). The solution was to find a public method that would divulge it. In this version, the public method is camouflaged (obfuscated) by its SRG name. Expect that to change to a friendlier name by the next time you update your mod. In fact, you should do your future self a favor by leaving a comment to yourself in your code. The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
November 17, 20168 yr there's one more function that's missing func_190916_E = get stack size 1.10 stack.stackSize 1.11 stack.func_190916_E() and no it's not same as func_190920_e= set stack size haha close but not quite Disclaimer: I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.