Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. Check out what other methods are available in the Screen class, what blit calls, etc. You might find what you're looking for.
  2. Haven't ever tried to do that, so I am not sure.
  3. The button constructor now takes a lambda reference for what happens. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/client/gui/FilterGuiContainer.java#L91 I just mapped it back to actionPerformed, but because its a lambda, you can make each button take in a method that only matters for that button.
  4. With the migration the WYSIWYG editor no longer has a button for in-line code (teletype). Several other buttons may have also been lost, but TT was the only one I used regularly. Example (link preview doesn't display it, but LootModifierManager is formatted as inline code):
      • 2
      • Like
  5. It's called blit now. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/client/gui/SifterGuiContainer.java#L51
  6. https://github.com/00doggie/RareMetalsRevised/blob/master/src/main/java/com/doggie/raremetalsrevised/enchantments/AutoSmelterEnchantment.java#L78 Move this to its own class file. Make it public.
  7. I apologize I should have recognize that. I swear someone else posted about it relatively recently as well, but the issue remains that you're going to be largely on your own.
  8. I searched "ship" and this was the second through fifth results
  9. LootModifierManager is a Forge class that actually deals with the modifier loading. https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/main/java/net/minecraftforge/common/loot/LootModifierManager.java
  10. 1) Check the log for errors 2) Set a break point in the doApply method and make sure its being called 3) Set a break point in the LootModifierManager to see if it is even being registered, loaded, and applied
  11. Good luck. This sort of thing is very complicated and you're not the only person trying to do this. I think there've been two others posting about it on this very forum in the last month.
  12. So...do that thing.
  13. You're calling new on something that's private. It needs to either be in the same scope (it was private in the sample code because it was all one file) or public. Make it public, post the errors.
  14. ...what's the error?
  15. Well yeah. You didn't register the modifier. https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java#L75
  16. You need to fix your VoxelShape.
  17. TLDR: you don't. You rewrite it from scratch.
  18. You don't. There's no point. Its a forum not Stack Exchange.
  19. All of those can be accomplished others ways. There's InteractionEvents for things like "left clicking objects" and another for the player attacking and dealing damage. Pretty sure there's one regarding picking up EXP (you would then handle the effects in a Capability) and so on.
  20. You need classes that extend from TemplateStructurePiece. There are methods there for determining what parts are involved in your structure and where they should be placed. I frankly don't know much about how the system works as I haven't been able to untangle most of it, but like I said, look at what vanilla has.
  21. I'd suggest checking how how vanilla structure generation works. Start with the simple ones like the igloo before working your way up to the mansion.
  22. There's a JsonReloadListener system, but what's your use-case here?
  23. The main hand is checked. If something happens with the item or block as a result of the main hand (ItemActionResult.SUCCESS), the off hand is not checked.
  24. I don't think that information is sync'd from the server to the client.
  25. The player has two hands.
×
×
  • Create New...

Important Information

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