Examples of renderAsNormalBlock()


Examples of net.minecraft.block.Block.renderAsNormalBlock()

    }
    if(!Config.allowTileEntitiesAsPaintSource && block instanceof ITileEntityProvider) {
      return false;
    }
   
    return block.isOpaqueCube() || (block.getMaterial().isOpaque() && block.renderAsNormalBlock()) || block == Blocks.glass;
  }

  protected final Block[] validTargets;

  protected BasicPainterTemplate(Block... validTargetBlocks) {
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

        if (l != this)
        {
            if (l == null)
                return false;
            if (l.getMaterial().isOpaque() && l.renderAsNormalBlock())
                return l.getMaterial() != Material.plants;
            return (l instanceof BlockFenceGate);
        }
        else
        {
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

  {
    Block block = par1IBlockAccess.getBlock(par2, par3, par4);

    if (block != this && block != Blocks.fence_gate)
    {
      return block != null && block.getMaterial().isOpaque() && block.renderAsNormalBlock() ? block.getMaterial() != Material.gourd : false;
    }
    return true;
  }

  @SuppressWarnings({ "rawtypes", "unchecked" })
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

  public boolean canConnectFenceTo(IBlockAccess blockAccess, int x, int y, int z) {
      Block block = blockAccess.getBlock(x, y, z);
     
      boolean flag = !(block instanceof BlockFenceGate);
     
      return block != this && flag ? (block.getMaterial().isOpaque() && block.renderAsNormalBlock() ? block.getMaterial() != Material.gourd : false) : true;
  }
 

  //public Item getItemDropped(int par1, Random par2Random, int par3)
  //{
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

                        else if (this.func_150093_a(world.getBlock(x + Direction.offsetX[k1], y + 1, z + Direction.offsetZ[k1])))
                        {
                            world.setBlock(x + Direction.offsetX[k1], y, z + Direction.offsetZ[k1], this, 0, 2);
                        }
                    }
                    else if (block.getMaterial().isOpaque() && block.renderAsNormalBlock())
                    {
                        world.setBlockMetadataWithNotify(x, y, z, i1 | 1 << k1, 2);
                    }
                }
                else if (y > 1)
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

  @Override
  public boolean canConnectFenceTo(IBlockAccess world, int x, int y, int z) {
    if (!isFence(world, x, y, z)) {
      Block block = world.getBlock(x, y, z);
      return block != null && block.getMaterial().isOpaque() && block.renderAsNormalBlock() ? block.getMaterial() != Material.gourd : false;
    } else
      return true;
  }

  @Override
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

            return true;
        TileEntity tile = world.getTileEntity(i, j, k);
        if (tile instanceof TileTrack)
            if (((TileTrack) tile).getTrackInstance() instanceof TrackGated)
                return true;
        if (block != null && block.getMaterial().isOpaque() && block.renderAsNormalBlock())
            return block.getMaterial() != Material.gourd;
        return false;
    }

}
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

    public boolean isItemValid (ItemStack par1ItemStack)
    {
        if (super.isItemValid(par1ItemStack))
        {
            Block b = BlockUtils.getBlockFromItemStack(par1ItemStack);
            return b.isOpaqueCube() && b.renderAsNormalBlock();
        }

        return false;
    }
View Full Code Here

Examples of net.minecraft.block.Block.renderAsNormalBlock()

    setCreativeTab(CreativeTabBuildCraft.ITEMS.get());
  }

  public static boolean canPlaceTorch(World world, int x, int y, int z, ForgeDirection side) {
    Block block = world.getBlock(x, y, z);
    return block != null && (block.renderAsNormalBlock() && block.isOpaqueCube() || block.isSideSolid(world, x, y, z, side));
  }

  private AxisAlignedBB getBoundingBox(int meta) {
    double w = 0.15;
    double h = 0.65;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.