public static interface StructureCreator.ICheckBlockValidity
Modifier and Type | Method and Description |
---|---|
boolean |
canStructureGenerate(net.minecraft.block.Block block,
int meta,
Location location)
Same as
isBlockValid(Block, int, Location) except if false, the whole structure is prevented from generating. |
boolean |
isBlockValid(net.minecraft.block.Block block,
int meta,
Location location)
Checks if the block can be generated in the desired location
|
boolean isBlockValid(net.minecraft.block.Block block, int meta, Location location)
block
- The blockmeta
- The metadata for the blocklocation
- The locationboolean canStructureGenerate(net.minecraft.block.Block block, int meta, Location location)
isBlockValid(Block, int, Location)
except if false, the whole structure is prevented from generating.
Most times you just want this method to consist of:
return this.isBlockValid(block, location);