public class BlockTurretBaseTierTwo extends BlockAbstractTurretBase {
  public final int MaxCharge = ConfigHandler.getBaseTierTwoMaxCharge();
  public final int MaxIO = ConfigHandler.getBaseTierTwoMaxIo();

  public BlockTurretBaseTierTwo() {
    super();

    this.setBlockName(Names.Blocks.unlocalisedTurretBaseTierTwo);
    this.setBlockTextureName(ModInfo.ID + ":turretBaseTierTwo");
  }

  @Override
  public void registerBlockIcons(IIconRegister p_149651_1_) {
    super.registerBlockIcons(p_149651_1_);

    blockIcon = p_149651_1_.registerIcon(ModInfo.ID.toLowerCase() + ":turretBaseTierTwo");
  }

  @Override
  public TileEntity createNewTileEntity(World world, int par2) {
    return new TurretBaseTierTwoTileEntity(this.MaxCharge, this.MaxIO);
  }
}
 @Override
 public void addInformation(
     ItemStack p_77624_1_, EntityPlayer p_77624_2_, List p_77624_3_, boolean p_77624_4_) {
   p_77624_3_.add("");
   p_77624_3_.add(EnumChatFormatting.RED + StatCollector.translateToLocal("turret.addon.label"));
   p_77624_3_.add("");
   p_77624_3_.add(
       StatCollector.translateToLocal("turret.addon.potentia.a")
           + ConfigHandler.getPotentiaToRFRatio()
           + " "
           + StatCollector.translateToLocal("turret.addon.potentia.b"));
   p_77624_3_.add("");
   p_77624_3_.add(
       StatCollector.translateToLocal("turret.addon.potentia.c")
           + ConfigHandler.getPotentiaAddonCapacity()
           + ".");
   p_77624_3_.add("");
   p_77624_3_.add(StatCollector.translateToLocal("turret.addon.potentia.d"));
   p_77624_3_.add(StatCollector.translateToLocal("turret.addon.potentia.e"));
   p_77624_3_.add("");
   p_77624_3_.add(
       EnumChatFormatting.DARK_GRAY
           + StatCollector.translateToLocal("turret.addon.potentia.flavour"));
 }
Пример #3
0
 @EventHandler
 public void preInit(FMLPreInitializationEvent event) {
   ConfigHandler.init(event.getSuggestedConfigurationFile());
   networking = NetworkingHandler.initNetworking();
 }