Interface BiomeRegistry
An interface for registering and modifying custom biomes on a Minecraft server.
- Since:
- 0.0.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuildDelegate(Biome biome) Builds a custom biome into a minecraft biome.<T extends Biome>
TgetBiome(ResourceKey key) Gets an abstract biome from the registry.default voidThis method modifies an existing biome on the Minecraft server.voidmodify(Collection<Biome> biomes) Modifies a collection of existing biomes on the Minecraft server.default voidThis method registers a custom biome to a Minecraft server.voidregister(Collection<Biome> biomes) Registers a collection of custom biomes to a Minecraft server.static BiomeRegistryregistry()This static method returns the current BiomeRegistry instance.
-
Field Details
-
WIRE
-
-
Method Details
-
registry
This static method returns the current BiomeRegistry instance.- Returns:
- the current BiomeRegistry instance.
- Since:
- 2.3.0
-
buildDelegate
-
register
-
register
Registers a collection of custom biomes to a Minecraft server.- Parameters:
biomes- The collection of Biome objects that should be registered to the server.- Since:
- 2.3.1
-
modify
This method modifies an existing biome on the Minecraft server. Another biome must already exist with the same ResourceKey. It takes a CustomBiome object as an argument.- Parameters:
biomes- The AbstractBiomes that should internally be used to modify the existing biome.- Throws:
IllegalArgumentException- if the biome does not already exist in the registry.- Since:
- 0.0.8
-
modify
Modifies a collection of existing biomes on the Minecraft server.- Parameters:
biomes- The collection of AbstractBiomes that should internally be used to modify the existing biomes.- Since:
- 2.3.1
-
getBiome
Gets an abstract biome from the registry.- Type Parameters:
T- the type of the biome- Parameters:
key- the key of the biome to get- Returns:
- the abstract biome
- Since:
- 2.3.0
-