Jump 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. Oh yes, that definitely exists. It doesn't answer the question, which was: Would anything bad happen if the has/get contract is broken? Obviously if you say "true" and return "null" then yes, but he's specifically asking for situations where has returns false. The "do I need to call has or can I just check null?" question you and I talked about before.
  2. Those are added by mods. You can't add them without a mod.
  3. I imagine that if you return false from has, then get won't even be called in most cases. In the rest, I imagine that the caller would perform a null check.
  4. You're going to need to provide more detail and/or code.
  5. A factory is a class that creates instances of another class. (What is a hammer factory? Why, its a building that builds hammers...) https://en.wikipedia.org/wiki/Factory_method_pattern
  6. You're likely doing something wrong. You should stop doing it wrong.
  7. Why is #layer0 here? This is causing the game to look for a file named testitem#layer0.json which presumably doesn't exist.
  8. Read your error:
  9. Also, you're using the arrow anti-pattern.
  10. Here, take a look at these three classes: https://github.com/Draco18s/ReasonableRealism/tree/1.12.1/src/main/java/com/draco18s/hardlib/api/capability The interface is here: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/api/interfaces/IMechanicalPower.java
  11. You should be using Capabilities, if you aren't on a version of Minecraft with Capabilities, update. As to your question: there is no Forge-supplied action that will do what you are asking.
  12. It works just fine...if you tell Minecraft how to render the item. ModelLoader.setCustomModelResourceLocation(item, meta, resource)
  13. Read your errors. Also, without your code, we can do fuckall to help you.
  14. If I understood your question correctly: Yes. But I can't tell you more because I don't know WTF you're trying to do. Also: "Whether." The weather is about whether or not you need an umbrella.
  15. It's called "threads." And treads are dangerous things.
  16. Option 1: See if they have a github Option 2: Use JD-GUI
  17. You should not be using the slot to check validity, you should have some ability outside of the inventory and slot classes to check validity. The reason the slot class has an isValid check is so that the client cannot click a stack into the slot and can make that determination without requesting any information from the server.
  18. If the item isn't allowed, return the input stack unaltered. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/entities/capabilities/SiftableItemsHandler.java#L14-L17
  19. Minecraft assumes that all gui textures are 256x256 unless otherwise specified. 64/256 = 0.25
  20. default implementation factory It would return an instance of the implementation.
  21. A factory is just a class that constructs an instance of something else. It has common parameters and returns an arbitrary object without the need for reflection.
  22. Those are vanilla style variant listings, which means they need to be alphabetical. active=false,style=red

Important Information

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

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.