Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Is it still crashing the same way? Post the crashlog, put a breakpoint here and run it in the debugger. Figure out what is null and why. Ancilary: remove anything that doesn't have an @Override on it, unless it's being called from something that does.
  2. No no, you don't need the CombinedInvWrapper at all. Just return (T) inputSlot;
  3. If by pink you mean this color: ████████████ Then it's likely just a corner section of the MISSING_TEXTURE texture.
  4. You don't need CombinedInvWrapper. Combining one ItemHandler into one ItemHandler is meaningless.
  5. You'll probably want to genericize that at some point so you aren't casting all of your blocks to their class. Either as an interface that supplies the registerItemModels method, or another way. For example, I have this for simple blocks: private void _registerBlockResources(Block block) { Item item = Item.getItemFromBlock(block); ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(block.getRegistryName(),"normal")); }
  6. Simplify down to a single ItemHandler. Right now you have a combined wrapper that's merging two or more handlers, one of which is outputSlotWrapper which is null (crashing the combiner).
  7. Look at the ItemStack class to find the new getters and setters.
  8. CommonContainer is my own class, you would know that by checking my imports. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/api/internal/CommonContainer.java
  9. I'd just tell you to take a look at all my sifter stuff. Block, Entity, Container, GUI and GUI handler.
  10. *facepalm* No. Not even close. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/TileEntitySifter.java#L136
  11. You haven't implemented getCapability on your TE yet.
  12. Well your ContainerTestChest needs to be updated too.
  13. You mean this? this.mc.getTextureManager().bindTexture(SIFTER_GUI_TEXTURE); int x = (width - xSize) / 2; int y = (height - ySize) / 2; width, height, xSize, and ySize are all defined by the super class. You can set new values in your class if you want, though.
  14. Yeah, I know, I get it. I'm just scratching my head and hoping someone (cough, Choonster) can come along and say "have you tried..?" Best I can offer is to attempt to debug the model loading code (but it's a right pain in the arse, especially trying to figure out where to put the first breakpoint, I've only managed it when I've had an error that I can jump-to-line for and place a breakpoint there).
  15. You don't need the getTime() stuff. My TE is a "furnace" yours is a chest (I don't have a straight storage block).
  16. Yes, I understand what you're doing and what you think is happening. What I'm saying is: something isn't working right, I don't know what, and that's why you get a MISSING_MODEL.
  17. Ugh. I detest that proxy layout. An interface is AWFUL here, especially when you want something done regardless of if it needs to be done on the client or on the server, you now have to have that code duplicated. A "good" setup looks like this: public class CommonProxy { public void doStuff() { //... } } public class ClientProxy extends CommonProxy { public void doStuff() { super.doStuff(); //... } }
  18. It'd be easier if you looked at mine. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/OreGuiHandler.java
  19. Well now that's going to depend on what metadata you passed to registerItemRenderers and what metadata your item's itemstack is.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.