private static boolean hasSimpleModel( IBlockState blockState ) { if( blockState.getRenderType() != EnumBlockRenderType.MODEL || blockState instanceof IExtendedBlockState ) { return false; } return blockState.isFullCube(); }
@Override public boolean isFullCube() { return state.isFullCube(); }
private static boolean isModelSupported(IBlockState state) { if (state.getRenderType() != EnumBlockRenderType.MODEL || state instanceof IExtendedBlockState) { return false; } return state.isFullCube(); }
@Override public boolean isSideSolid(BlockPos pos, EnumFacing side, boolean _default) { return this.getBlockState(pos).isFullCube(); }
public final boolean canPaneConnectToBlock(Block blockIn) { return blockIn.getDefaultState().isFullCube() || blockIn == this || blockIn == Blocks.GLASS || blockIn == Blocks.STAINED_GLASS || blockIn == Blocks.STAINED_GLASS_PANE || blockIn instanceof BlockPane; }
private boolean isEmptyBlock(BlockPos pos) { IBlockState iblockstate = this.theWorld.getBlockState(pos); Block block = iblockstate.getBlock(); return block == Blocks.AIR || !iblockstate.isFullCube(); }
private boolean isEmptyBlock(BlockPos pos) { IBlockState iblockstate = this.theWorld.getBlockState(pos); Block block = iblockstate.getBlock(); return block == Blocks.AIR || !iblockstate.isFullCube(); }
private boolean func_181065_a(BlockPos pos) { IBlockState state = this.world.getBlockState(pos); return state.getBlock() == Blocks.AIR || !state.isFullCube(); }
private boolean isEmptyBlock(BlockPos pos) { IBlockState iblockstate = this.world.getBlockState(pos); return iblockstate.getMaterial() == Material.AIR ? true : !iblockstate.isFullCube(); }
private boolean isEmptyBlock(BlockPos pos) { IBlockState iblockstate = this.world.getBlockState(pos); return iblockstate.getMaterial() == Material.AIR || !iblockstate.isFullCube(); }
private boolean canConnectTo(IBlockAccess worldIn, BlockPos pos) { IBlockState state = worldIn.getBlockState(pos); Block block = state.getBlock(); if (ModuleArboriculture.validFences.contains(block)) { return true; } if (block != Blocks.BARRIER) { Material blockMaterial = state.getMaterial(); if (block instanceof BlockFence || block instanceof BlockFenceGate || block instanceof IBlockFence) { return blockMaterial == this.blockMaterial; } if (blockMaterial.isOpaque() && state.isFullCube() && blockMaterial != Material.GOURD) { return true; } } return false; }
@Override public boolean canPlaceBlockAt(World world, BlockPos pos) { IBlockState below = world.getBlockState(pos.down()); return super.canPlaceBlockAt(world, pos) && this.canBlockStay(world, pos) && (below.isFullCube()); }
private boolean canConnectTo(IBlockAccess worldIn, BlockPos pos) { IBlockState iblockstate = worldIn.getBlockState(pos); Block block = iblockstate.getBlock(); Material material = iblockstate.getMaterial(); return block == Blocks.BARRIER ? false : block != this && !(block instanceof BlockFenceGate) ? material.isOpaque() && iblockstate.isFullCube() ? material != Material.GOURD : block instanceof BlockQuarkWall || block instanceof BlockWall ? true : false : true; }
public boolean shouldConnect(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing attachedSide) { IBlockState blockState = world.getBlockState(pos); Block block = blockState.getBlock(); return block.getMaterial(blockState).isOpaque() && blockState.isFullCube(); }
public static void sendPipeEffect(final World world, final double x, final double y, final double z) { final BlockPos position = new BlockPos(x, y, z); if (!world.isBlockLoaded(position)) { final IBlockState state = world.getBlockState(position); if (state.isFullCube()) { // Skip particle emission when inside a block where they aren't visible anyway. return; } } queueParticleEffect(world, (float) x, (float) y, (float) z); }
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos){ IBlockState state = worldIn.getBlockState(pos); Block block = state.getBlock(); return block != Blocks.BARRIER && (!(block != this && !(block instanceof BlockFenceGate)) || ((state.getMaterial().isOpaque() && state.isFullCube()) && state.getMaterial() != Material.GOURD)); }
@SuppressWarnings("deprecation") private boolean canConnectTo(IBlockAccess worldIn, BlockPos pos) { IBlockState iblockstate = worldIn.getBlockState(pos); Block block = iblockstate.getBlock(); return block == Blocks.BARRIER ? false : (!(block instanceof BlockWallErebus) && !(block instanceof BlockWall) && !(block instanceof BlockFenceGate) && !(block instanceof BlockWoodFenceGate) && !(block instanceof BlockWoodFence)? (iblockstate.getMaterial().isOpaque() && iblockstate.isFullCube() ? iblockstate.getMaterial() != Material.GOURD : false) : true); }
private boolean canConnectTo(IBlockAccess worldIn, BlockPos pos) { IBlockState worldState = worldIn.getBlockState(pos); Block block = worldState.getBlock(); return block != Blocks.BARRIER && (!(block != this && !(block instanceof BlockFenceGate)) || ((worldState.getMaterial().isOpaque() && worldState.isFullCube()) && worldState.getMaterial() != Material.GOURD)); }
public boolean canConnectFenceTo(IBlockAccess world, BlockPos pos) { IBlockState state = world.getBlockState(pos); Block block = state.getBlock(); return block == this || canConnectTo(world, pos) || block.isLeaves(state, world, pos) || (state.getMaterial().isOpaque() && state.isFullCube() && state.getMaterial() != Material.GOURD); }
private void generateRock(World world, BlockPos pos, @Nullable VeinType vein, Rock rock) { if (world.getBlockState(pos).getMaterial().isReplaceable() && !world.getBlockState(pos).getMaterial().isLiquid() && world.getBlockState(pos.down()).isFullCube()) { //noinspection ConstantConditions world.setBlockState(pos, BlocksTFC.WORLD_ITEM.getDefaultState(), 2); TEWorldItem tile = (TEWorldItem) world.getTileEntity(pos); if (tile != null) tile.inventory.setStackInSlot(0, vein == null ? ItemRock.get(rock, 1) : ItemSmallOre.get(vein.oreSpawnData.ore, 1)); } }