Class RegionShape

java.lang.Object
com.sk89q.worldedit.regions.shape.ArbitraryShape
com.sk89q.worldedit.regions.shape.RegionShape

public class RegionShape extends ArbitraryShape
Generates solid and hollow shapes according to materials returned by the getMaterial(int, int, int, com.sk89q.worldedit.world.block.BaseBlock) method.
  • Constructor Details

    • RegionShape

      public RegionShape(Region extent)
  • Method Details

    • getMaterial

      protected BaseBlock getMaterial(int x, int y, int z, BaseBlock defaultMaterial)
      Description copied from class: ArbitraryShape
      Override this function to specify the shape to generate.
      Specified by:
      getMaterial in class ArbitraryShape
      Parameters:
      x - X coordinate to be queried
      y - Y coordinate to be queried
      z - Z coordinate to be queried
      defaultMaterial - The material returned by the pattern for the current block.
      Returns:
      material to place or null to not place anything.