Interface UnitModifier

All Superinterfaces:
Biome.Setter, Block.Setter
All Known Implementing Classes:
GeneratorImpl.AreaModifierImpl, GeneratorImpl.SectionModifierImpl

public interface UnitModifier extends Block.Setter, Biome.Setter
  • Method Details

    • setRelative

      void setRelative(int x, int y, int z, Block block)
      Sets the block relative to the absolute position of the unit.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      block - the block to set
    • setAll

      void setAll(UnitModifier.Supplier supplier)
      Sets all blocks within the unit to the block given by the supplier.
      Parameters:
      supplier - the supplier of the block to set
    • setAllRelative

      void setAllRelative(UnitModifier.Supplier supplier)
      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

      void fill(Block block)
      Fills the unit with the given block.
      Parameters:
      block - the block to fill
    • fill

      void fill(Point start, Point end, Block block)
      Fills the 3d rectangular area with the given block.
      Parameters:
      start - the start (min) point of the area
      end - the end (max) point of the area
      block - the block to fill
    • fillHeight

      void fillHeight(int minHeight, int maxHeight, Block block)
      Fills the 3d rectangular area with the given block.
      Parameters:
      minHeight - the minimum height of the area
      maxHeight - the maximum height of the area
      block - the block to fill
    • fillBiome

      void fillBiome(RegistryKey<Biome> biome)
      Fills the 3d rectangular area with the given biome.
      Parameters:
      biome - the biome to fill