public class RegisterDimensionEvent
extends net.minecraftforge.eventbus.api.Event
DimensionRegistrar
for assistance with registering a
dimension.Mod.EventBusSubscriber.Bus.FORGE
DimensionRegistrar
Constructor and Description |
---|
RegisterDimensionEvent(net.minecraft.util.registry.SimpleRegistry<net.minecraft.world.Dimension> dimensionRegistry,
net.minecraft.util.registry.Registry<net.minecraft.world.DimensionType> dimensionTypeRegistry,
net.minecraft.util.registry.Registry<net.minecraft.world.biome.Biome> biomeRegistry,
net.minecraft.util.registry.Registry<net.minecraft.world.gen.DimensionSettings> dimensionSettingsRegistry,
long seed) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.registry.Registry<net.minecraft.world.biome.Biome> |
getBiomeRegistry() |
net.minecraft.util.registry.SimpleRegistry<net.minecraft.world.Dimension> |
getDimensionRegistry() |
net.minecraft.util.registry.Registry<net.minecraft.world.gen.DimensionSettings> |
getDimensionSettingsRegistry() |
net.minecraft.util.registry.Registry<net.minecraft.world.DimensionType> |
getDimensionTypeRegistry() |
long |
getSeed()
This is the seed of the overworld.
|
void |
register(net.minecraft.util.RegistryKey<net.minecraft.world.Dimension> registryKey,
net.minecraft.world.Dimension dimension)
Registers the passed dimension to the world.
|
public RegisterDimensionEvent(net.minecraft.util.registry.SimpleRegistry<net.minecraft.world.Dimension> dimensionRegistry, net.minecraft.util.registry.Registry<net.minecraft.world.DimensionType> dimensionTypeRegistry, net.minecraft.util.registry.Registry<net.minecraft.world.biome.Biome> biomeRegistry, net.minecraft.util.registry.Registry<net.minecraft.world.gen.DimensionSettings> dimensionSettingsRegistry, long seed)
public net.minecraft.util.registry.SimpleRegistry<net.minecraft.world.Dimension> getDimensionRegistry()
public net.minecraft.util.registry.Registry<net.minecraft.world.DimensionType> getDimensionTypeRegistry()
public net.minecraft.util.registry.Registry<net.minecraft.world.biome.Biome> getBiomeRegistry()
public net.minecraft.util.registry.Registry<net.minecraft.world.gen.DimensionSettings> getDimensionSettingsRegistry()
public long getSeed()
Long
public void register(net.minecraft.util.RegistryKey<net.minecraft.world.Dimension> registryKey, net.minecraft.world.Dimension dimension)
registryKey
- dimension
-