All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.gen.biome.BiomeList Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
package com.parzivail.util.gen.biome;

import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;

public class BiomeList
{
	private static final BiMap BIOMES = HashBiMap.create();
	private static int index = 0;

	public static void register(TerrainBiome biome) {
		BIOMES.put(index++, biome);
	}

	public static TerrainBiome get(int id) {
		return BIOMES.get(id);
	}

	public static int getId(TerrainBiome biome) {
		return BIOMES.inverse().get(biome);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy