Class RegionShape
java.lang.Object
com.sk89q.worldedit.regions.shape.ArbitraryShape
com.sk89q.worldedit.regions.shape.RegionShape
Generates solid and hollow shapes according to materials returned by the
getMaterial(int, int, int, com.sk89q.worldedit.world.block.BaseBlock) method.-
Field Summary
Fields inherited from class com.sk89q.worldedit.regions.shape.ArbitraryShape
extent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseBlockgetMaterial(int x, int y, int z, BaseBlock defaultMaterial) Override this function to specify the shape to generate.Methods inherited from class com.sk89q.worldedit.regions.shape.ArbitraryShape
generate, getExtent
-
Constructor Details
-
RegionShape
-
-
Method Details
-
getMaterial
Description copied from class:ArbitraryShapeOverride this function to specify the shape to generate.- Specified by:
getMaterialin classArbitraryShape- Parameters:
x- X coordinate to be queriedy- Y coordinate to be queriedz- Z coordinate to be querieddefaultMaterial- The material returned by the pattern for the current block.- Returns:
- material to place or null to not place anything.
-