Package net.minecraft.block.material

Examples of net.minecraft.block.material.Material


    }
    if(displacementIds.containsKey(bId))
    {
      return displacementIds.get(bId);
    }
    Material material = Block.blocksList[bId].blockMaterial;
    if(material.blocksMovement() || material == Material.portal)
    {
      return false;
    }
    return true;
  }
View Full Code Here


        Block.blocksList[bId].dropBlockAsItem(world, x, y, z, world.getBlockMetadata(x, y, z), 0);
        return true;
      }
      return false;
    }
    Material material = Block.blocksList[bId].blockMaterial;
    if(material.blocksMovement() || material == Material.portal)
    {
      return false;
    }
    Block.blocksList[bId].dropBlockAsItem(world, x, y, z, world.getBlockMetadata(x, y, z), 0);
    return true;
View Full Code Here

  {
    if(world.getBlockId(x, y, z) != blockID)
    {
      return !world.isBlockOpaqueCube(x, y, z);
    }
    Material mat = world.getBlockMaterial(x, y, z);
    return mat == this.blockMaterial ? false : super.shouldSideBeRendered(world, x, y, z, side);
  }
View Full Code Here

  protected final Class<? extends TileEntity> teClass;
  protected final String name;

  protected BlockEio(String name, Class<? extends TileEntity> teClass) {
    this(name, teClass, new Material(MapColor.ironColor));
  }
View Full Code Here

    setCreativeTab(EnderIOTab.tabEnderIO);
    random = new Random();
  }
 
  protected AbstractMachineBlock(ModObject mo, Class<T> teClass) {
    this(mo, teClass, new Material(MapColor.ironColor));
  }
View Full Code Here

  private Random rand = new Random();

  private final boolean isDouble;

  public BlockPaintedSlab(boolean isDouble) {
    super(isDouble, new Material(MapColor.stoneColor));
    this.isDouble = isDouble;
    setCreativeTab(null);
    setBlockName(ModObject.blockPaintedSlab.unlocalisedName + (isDouble ? "Double" : ""));
    setHardness(0.5F);
    setResistance(5.0F);
View Full Code Here

  }

  private Block blockOverride;

  private BlockConduitFacade() {
    super(new Material(MapColor.stoneColor));
    setHardness(0.5F);
    setStepSound(Block.soundTypeStone);
    setBlockName(ModObject.blockConduitFacade.unlocalisedName);
    setCreativeTab(null);
  }
View Full Code Here

  // Water, air, and metal blocks
  @Override
  protected void isBlockGoodForInterior(World world, int x, int y, int z) throws MultiblockValidationException {
    if(world.isAirBlock(x, y, z)) { return; } // Air is OK

    Material material = world.getBlock(x, y, z).getMaterial();
    if(material == net.minecraft.block.material.MaterialLiquid.water) {
      return;
    }
   
    Block block = world.getBlock(x, y, z);
View Full Code Here

                    && aboolean[(i1 * 16 + j2 + 1) * 8 + i2] || j2 > 0 && aboolean[(i1 * 16 + (j2 - 1)) * 8 + i2] || i2 < 7
                    && aboolean[(i1 * 16 + j2) * 8 + i2 + 1] || i2 > 0 && aboolean[(i1 * 16 + j2) * 8 + (i2 - 1)]);
           
            if(flag)
            {
              Material material = world.getBlockMaterial(x + i1, y + i2, z + j2);
             
              if(i2 >= 4 && material.isLiquid())
              {
                return false;
              }
             
              if(i2 < 4 && !material.isSolid() && world.getBlockId(x + i1, y + i2, z + j2) != _blockId)
              {
                return false;
              }
            }
          }
View Full Code Here

        return;
      }
     
      int fortune = EnchantmentHelper.getFortuneModifier(player);
      this.dropBlockAsItem(world, x, y, z, meta, fortune);
      Material var8 = world.getBlockMaterial(x, y - 1, z);
     
      if((var8.blocksMovement() || var8.isLiquid()) && meta == 0)
      {
        world.setBlock(x, y, z, Block.waterMoving.blockID);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.block.material.Material

Copyright © 2018 www.massapicom. 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.