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 TypeMethodDescriptionvoid
Fills the 3d rectangular area with the given block.void
Fills the unit with the given block.void
fillBiome
(@NotNull RegistryKey<Biome> biome) Fills the 3d rectangular area with the given biome.void
fillHeight
(int minHeight, int maxHeight, @NotNull Block block) Fills the 3d rectangular area with the given block.void
setAll
(@NotNull UnitModifier.Supplier supplier) Sets all blocks within the unit to the block given by the supplier.void
setAllRelative
(@NotNull UnitModifier.Supplier supplier) Sets all blocks within the unit to the block given by the supplier, relative to the absolute position of the unit.void
setRelative
(int x, int y, int z, @NotNull Block block) Sets the block relative to the absolute position of the unit.Methods inherited from interface net.minestom.server.world.biome.Biome.Setter
setBiome, setBiome
Methods inherited from interface net.minestom.server.instance.block.Block.Setter
setBlock, setBlock
-
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
Fills the unit with the given block.- Parameters:
block
- the block to 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
-