Java Code Examples for net.minecraft.init.Blocks.powered_repeater()

The following are Jave code examples for showing how to use powered_repeater() of the net.minecraft.init.Blocks 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: DecompiledMinecraft   File: BlockRedstoneWire.java   View Source Code Vote up 5 votes
private boolean func_176339_d(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
{
    BlockPos blockpos = pos.offset(side);
    IBlockState iblockstate = worldIn.getBlockState(blockpos);
    Block block = iblockstate.getBlock();
    boolean flag = block.isNormalCube();
    boolean flag1 = worldIn.getBlockState(pos.up()).getBlock().isNormalCube();
    return !flag1 && flag && canConnectUpwardsTo(worldIn, blockpos.up()) ? true : (canConnectTo(iblockstate, side) ? true : (block == Blocks.powered_repeater && iblockstate.getValue(BlockRedstoneDiode.FACING) == side ? true : !flag && canConnectUpwardsTo(worldIn, blockpos.down())));
}
 
Example 2
Project: DecompiledMinecraft   File: BlockRedstoneWire.java   View Source Code Vote up 5 votes
private boolean func_176339_d(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
{
    BlockPos blockpos = pos.offset(side);
    IBlockState iblockstate = worldIn.getBlockState(blockpos);
    Block block = iblockstate.getBlock();
    boolean flag = block.isNormalCube();
    boolean flag1 = worldIn.getBlockState(pos.up()).getBlock().isNormalCube();
    return !flag1 && flag && canConnectUpwardsTo(worldIn, blockpos.up()) ? true : (canConnectTo(iblockstate, side) ? true : (block == Blocks.powered_repeater && iblockstate.getValue(BlockRedstoneDiode.FACING) == side ? true : !flag && canConnectUpwardsTo(worldIn, blockpos.down())));
}
 
Example 3
Project: BaseClient   File: BlockRedstoneWire.java   View Source Code Vote up 5 votes
private boolean func_176339_d(IBlockAccess worldIn, BlockPos pos, EnumFacing side) {
	BlockPos blockpos = pos.offset(side);
	IBlockState iblockstate = worldIn.getBlockState(blockpos);
	Block block = iblockstate.getBlock();
	boolean flag = block.isNormalCube();
	boolean flag1 = worldIn.getBlockState(pos.up()).getBlock().isNormalCube();
	return !flag1 && flag
			&& canConnectUpwardsTo(worldIn, blockpos.up())
					? true
					: (canConnectTo(iblockstate, side) ? true
							: (block == Blocks.powered_repeater
									&& iblockstate.getValue(BlockRedstoneDiode.FACING) == side ? true
											: !flag && canConnectUpwardsTo(worldIn, blockpos.down())));
}
 
Example 4
Project: BaseClient   File: BlockRedstoneWire.java   View Source Code Vote up 5 votes
private boolean func_176339_d(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
{
    BlockPos blockpos = pos.offset(side);
    IBlockState iblockstate = worldIn.getBlockState(blockpos);
    Block block = iblockstate.getBlock();
    boolean flag = block.isNormalCube();
    boolean flag1 = worldIn.getBlockState(pos.up()).getBlock().isNormalCube();
    return !flag1 && flag && canConnectUpwardsTo(worldIn, blockpos.up()) ? true : (canConnectTo(iblockstate, side) ? true : (block == Blocks.powered_repeater && iblockstate.getValue(BlockRedstoneDiode.FACING) == side ? true : !flag && canConnectUpwardsTo(worldIn, blockpos.down())));
}