Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Draco18s

Members
  • Content Count

    16092
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by Draco18s

  1. Ignore that stuff. It's not relevant. This. These are accessible from your code.
  2. Ignore the operational code and think about what the class exposes to other classes. What fields and properties does it have?
  3. You can't remove an item from a list when you are in a for-each loop. That's why it's throwing a concurrent modification exception. Concurrent with iteration the list was modified. If you need this, either use an Iterator or use an indexed for loop.
  4. Whether or not it actually uses the alpha value depends on various other factors. (And of course it accepts 0xffffff: that's a valid integer literal)
  5. The number you see is in decimal. If you convert it to hexidecimal you will get a familiar 0xAARRGGBB
  6. Sorry, I'm telepathetic, not telepathic. You're going to explain this to your local rubber duck.
  7. That makes no sense. Why would you want to clear the data just because the player logged out and logged back in again?
  8. Create the channel on the server side. When the client connects, if they don't create that same channel, they cannot connect. You don't have to do anything besides create the channel.
  9. The fuck is this class name? https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/aa.java#L23 Use proper CamelCase naming convention. https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/aa.java#L77 This condition will never be true. https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/aa.java#L85 Beyond that I'm not sure, I've not messed with entity loot modifiers myself.
  10. Yes, on like 136 in your code you are returning the wrong thing.
  11. The only way to change a large amount of data is to change each piece of data one at a time. I don't know why you'd think there was a solution to this faster than O(n)
  12. Why the fuck are you here and not using the "help & support" link in that site's footer?
  13. D7 said stop making jar mods, that is, mods that modify the vanilla files directly and are installed by opening up the minecraft.jar in a zip editor. You're free to make Forge mods (this is the Forge forums).
  14. Yeah I have no idea why you're asking on the Forge forums about how to mod with Bukkit. You also appear to be modding for 1.12:
  15. Look at the SlabBlock to see how it handles becoming a double slab.
  16. That sounds like something that should be easy to fix. You add license information to your mcmod.info file.
  17. Looks like z-fighting to me. Check to make sure that you don't have two surfaces in the same place.
  18. To serialize: Store the length of the array. Push all serialized BlockPos values. To deserialize: Read the length of the array. Deserialize that many BlockPos values.
  19. Oy vey. This will always return true. As will this and this. Use orElseThrow here, that's why it exists. You know what Capabilities are and yet, you did this. Your tool is effective on nothing. This is an unchecked cast. Other mods may have items with an inventories too. This code will crash the server if you hold one of their inventory-capable items and use your keybind.
  20. Yeah, that's wrong. https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/resources/data/harderores
  21. The first build of 1.16.5 is 1.16.5-36.0.0 Official mappings were added in 1.16.5-36.0.48:
  22. Gui Screens are never on the server. As emphasized by the fact that the Screen class is in the client namespace.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.