Java Code Examples for net.minecraft.init.Blocks#BARRIER

The following examples show how to use net.minecraft.init.Blocks#BARRIER . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
protected static boolean isExcepBlockForAttachWithPiston(Block p_194143_0_)
    return Block.isExceptBlockForAttachWithPiston(p_194143_0_) || p_194143_0_ == Blocks.BARRIER || p_194143_0_ == Blocks.MELON_BLOCK || p_194143_0_ == Blocks.PUMPKIN || p_194143_0_ == Blocks.LIT_PUMPKIN;
Example 2
Source Project: Cyberware   File:    License: MIT License 4 votes vote down vote up
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos)
	IBlockState iblockstate = worldIn.getBlockState(pos);
	Block block = iblockstate.getBlock();
	return block == Blocks.BARRIER ? false : ((!(block instanceof BlockBeaconPost) || block.getMaterial(iblockstate) != this.blockMaterial) && !(block instanceof BlockFenceGate) ? (block.getMaterial(iblockstate).isOpaque() && iblockstate.isFullCube() ? block.getMaterial(iblockstate) != Material.GOURD : false) : true);