Posted December 30, 20177 yr I see there is a function called getBiomeArray but I don't know how to use it to loop through all the biomes of the chunk. Thanks! New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
December 30, 20177 yr Author 15 minutes ago, diesieben07 said: See Chunk::getBiome for how to use this array. Is it efficient to loop through the biome ids byte array to see if it matches a certain biome id? Can other mods ever change the default vanilla biome ids? Edited December 30, 20177 yr by TheAwesomeGem New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
December 30, 20177 yr Author 3 minutes ago, diesieben07 said: It's the best you can do. Not other mods, but do not hardcode any IDs. If you must use them (like here), obtain them fresh from the registry. Should I do this to get the integer ID of a biome? Biome.REGISTRY.getIDForObject(Biomes.OCEAN); New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.