Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/18/17 in all areas

  1. I'm fairly sure that starting 1.11 you want to register it in PreInit(), and your renderer in your client proxy PreInit(), but now that I've re-read I've noticed you're in 1.12, however, I'm not sure how to delete this post. edit: nevermind. I'm thinking about the wrong version.
    1 point
  2. What you want to do is make a GUI/Overlay. There's a million tutorials for that even if you're not going to look at the forge src docs Now you'll want Forge to look for World.getBiome with a position. you'll want to take player.getPos for this. Then, whenever your previous World.getBiome is different from your current one, make your Gui Element appear with the correct name. That part should be as simple as a few if statements.
    1 point
  3. Your question is analogous to asking 'Is there any benefit to using java.util.List over using java.util.Map for indexed data storage?` as NBTTagCompound and NBTTagList are internally backed by a Map and a List respectively. The answer to the question is yes. java.util.List is designed for indexed data storage, java.util.Map is not. Consequently, using java.util.Map for indexed data storage is a terrible idea as it was not designed with that purpose in mind. If you have a problem, use a class that is meant to solve that problem rather than abusing another to do the job. The latter may be functional, but the former is both functional and more efficient. So please use NBTTagList, not NBTTagCompound for your purpose.
    1 point
×
×
  • Create New...

Important Information

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