Interface UnitModifier
- All Superinterfaces:
Biome.Setter, Block.Setter
- All Known Implementing Classes:
GeneratorImpl.AreaModifierImpl, GeneratorImpl.SectionModifierImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidFills the 3d rectangular area with the given block.voidFills the unit with the given block.voidfillBiome(RegistryKey<Biome> biome) Fills the 3d rectangular area with the given biome.voidfillHeight(int minHeight, int maxHeight, Block block) Fills the 3d rectangular area with the given block.voidsetAll(UnitModifier.Supplier supplier) Sets all blocks within the unit to the block given by the supplier.voidsetAllRelative(UnitModifier.Supplier supplier) Sets all blocks within the unit to the block given by the supplier, relative to the absolute position of the unit.voidsetRelative(int x, int y, int z, Block block) Sets the block relative to the absolute position of the unit.Methods inherited from interface Biome.Setter
setBiome, setBiomeMethods inherited from interface Block.Setter
setBlock, setBlock, setBlockArea
-
Method Details
-
setRelative
Sets the block relative to the absolute position of the unit.- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinateblock- the block to set
-
setAll
Sets all blocks within the unit to the block given by the supplier.- Parameters:
supplier- the supplier of the block to set
-
setAllRelative
Sets all blocks within the unit to the block given by the supplier, relative to the absolute position of the unit.- Parameters:
supplier- the supplier of the block to set
-
fill
-
fill
-
fillHeight
Fills the 3d rectangular area with the given block.- Parameters:
minHeight- the minimum height of the areamaxHeight- the maximum height of the areablock- the block to fill
-
fillBiome
Fills the 3d rectangular area with the given biome.- Parameters:
biome- the biome to fill
-