Interface UnitModifier

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

public interface UnitModifier extends Block.Setter, Biome.Setter
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fill(@NotNull Point start, @NotNull Point end, @NotNull Block block)
    Fills the 3d rectangular area with the given block.
    void
    fill(@NotNull Block block)
    Fills the unit with the given block.
    void
    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 biome.
    void
    setAll(@NotNull UnitModifier.Supplier supplier)
    Sets all blocks within the unit to the block given by the supplier.
    void
    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

      void setRelative(int x, int y, int z, @NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @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.
      Parameters:
      supplier - the supplier of the block to set
    • fill

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

      void fill(@NotNull @NotNull Point start, @NotNull @NotNull Point end, @NotNull @NotNull 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, @NotNull @NotNull Block block)
      Fills the 3d rectangular area with the given biome.
      Parameters:
      minHeight - the minimum height of the area
      maxHeight - the maximum height of the area
      block - the block to fill
    • fillBiome

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