public static class StructureCreator.DefaultValidityChecker extends java.lang.Object implements StructureCreator.ICheckBlockValidity
| Constructor and Description |
|---|
StructureCreator.DefaultValidityChecker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStructureGenerate(net.minecraft.block.Block block,
int meta,
Location location)
Same as
StructureCreator.ICheckBlockValidity.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
|
public StructureCreator.DefaultValidityChecker()
public boolean isBlockValid(net.minecraft.block.Block block,
int meta,
Location location)
StructureCreator.ICheckBlockValidityisBlockValid in interface StructureCreator.ICheckBlockValidityblock - The blockmeta - The metadata for the blocklocation - The locationpublic boolean canStructureGenerate(net.minecraft.block.Block block,
int meta,
Location location)
StructureCreator.ICheckBlockValidityStructureCreator.ICheckBlockValidity.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);canStructureGenerate in interface StructureCreator.ICheckBlockValidity