Пример #1
0
 /**
  * Define a new Basic Block.
  *
  * @param name
  * @param material
  * @param tab
  * @param harvest
  * @param hard
  */
 public BlockBasic(String name, Material material, CreativeTabs tab, int harvest, int hard) {
   super(material);
   this.setBlockName(name);
   this.setCreativeTab(tab);
   this.blockHardness = hard;
   this.setHarvestLevel(UtilityCheck.getToolFromMaterial(material), harvest);
   this.setStepSound(UtilityCheck.getSoundFromMaterial(material));
   Reference.incrementBlocks();
 }
Пример #2
0
 public BlockBattery(String name) {
   super(Material.rock);
   setHardness(3.5F);
   setBlockName(name);
   Reference.incrementBlocks();
 }