Java Code Examples for net.minecraft.block.material.Material.STRUCTURE_VOID

The following are Jave code examples for showing how to use STRUCTURE_VOID of the net.minecraft.block.material.Material class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Backmemed   File: BlockDynamicLiquid.java   View Source Code Vote up 4 votes
private boolean isBlocked(World worldIn, BlockPos pos, IBlockState state)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return !(block instanceof BlockDoor) && block != Blocks.STANDING_SIGN && block != Blocks.LADDER && block != Blocks.REEDS ? (block.blockMaterial != Material.PORTAL && block.blockMaterial != Material.STRUCTURE_VOID ? block.blockMaterial.blocksMovement() : true) : true;
}
 
Example 2
Project: Backmemed   File: BlockStructureVoid.java   View Source Code Vote up 4 votes
protected BlockStructureVoid()
{
    super(Material.STRUCTURE_VOID);
}
 
Example 3
Project: CustomWorldGen   File: BlockDynamicLiquid.java   View Source Code Vote up 4 votes
private boolean isBlocked(World worldIn, BlockPos pos, IBlockState state)
{
    Block block = worldIn.getBlockState(pos).getBlock();
    return !(block instanceof BlockDoor) && block != Blocks.STANDING_SIGN && block != Blocks.LADDER && block != Blocks.REEDS ? (block.blockMaterial != Material.PORTAL && block.blockMaterial != Material.STRUCTURE_VOID ? block.blockMaterial.blocksMovement() : true) : true;
}
 
Example 4
Project: CustomWorldGen   File: BlockStructureVoid.java   View Source Code Vote up 4 votes
protected BlockStructureVoid()
{
    super(Material.STRUCTURE_VOID);
}