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
-
Method Summary
Modifier and TypeMethodDescriptionprotected BaseBlock
getMaterial
(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:ArbitraryShape
Override this function to specify the shape to generate.- Specified by:
getMaterial
in 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.
-