Ejemplo n.º 1
0
 public BlockStairPlanks(Block block, EnumWood wood) {
   super(block, wood.ordinal());
   setHardness(2.0F);
   this.wood = wood;
   setLightOpacity(0);
   setCreativeTab(ModTabs.blocks);
   setStepSound(Block.soundTypeWood);
   setBlockName(Reference.MOD_ID + ".stairPlanks" + wood.name());
 }
Ejemplo n.º 2
0
 @Override
 public String getLocalizedName() {
   return String.format(
       StatCollector.translateToLocal("tile." + Reference.MOD_ID + ".stairPlanks.name"),
       wood.getTranslatedName());
 }