Ejemplo n.º 1
0
  @Override
  public void registerItems() {
    materials = new ItemMaterial().setUnlocalizedName("materials");
    craftingItem = new ItemCrafting().setUnlocalizedName("crafting");
    batteryCopper = new ItemBattery(10000, 100, 250).setUnlocalizedName("battery.copper");
    batteryTitanium = new ItemBattery(100000, 1000, 2500).setUnlocalizedName("battery.titanium");
    food = new ItemFood().setUnlocalizedName("food");
    upgrade = new ItemUpgrade().setUnlocalizedName("upgrade");
    pearls = new ItemPearl().setUnlocalizedName("pearls");
    liquidContainers = new ItemFluidContainer().setUnlocalizedName("fluids");
    hammer = new ItemHammer(brick).setUnlocalizedName("hammer");
    worked = new ItemWorked().setUnlocalizedName("worked");

    ladle = new ItemFluidStorage(MetalRates.INGOT).setUnlocalizedName("ladle");
    bucket = new ItemFluidStorage(8000).setUnlocalizedName("bucket.titanium");

    RegistryHelper.register(
        new Object[] {
          materials,
          craftingItem,
          batteryTitanium,
          food,
          upgrade,
          pearls,
          liquidContainers,
          hammer,
          worked,
          batteryCopper,
          ladle,
          bucket
        });
  }
Ejemplo n.º 2
0
  @Override
  public void registerBlocks() {
    rocks =
        new BlockRock().setStepSound(Block.soundTypeStone).setResistance(2F).setBlockName("rocks");
    limestone =
        new BlockLimestone()
            .setStepSound(Block.soundTypeStone)
            .setResistance(1F)
            .setBlockName("limestone");
    metals =
        new BlockMetal()
            .setStepSound(Block.soundTypeMetal)
            .setResistance(5F)
            .setBlockName("metals");
    pearlBlock =
        new BlockPearlBlock("pearlBlock_")
            .setStepSound(Block.soundTypeStone)
            .setResistance(1.5F)
            .setBlockName("pearl.block");
    pearlBrick =
        new BlockPearlBlock("pearlBrick_")
            .setStepSound(Block.soundTypeStone)
            .setResistance(2F)
            .setBlockName("pearl.brick");
    machines =
        new BlockMachine()
            .setStepSound(Block.soundTypeWood)
            .setResistance(10F)
            .setBlockName("machines.single");
    multiMachines =
        new BlockMachineMulti()
            .setStepSound(Block.soundTypeStone)
            .setResistance(20F)
            .setBlockName("machines.multi");

    // TODO: Move Rendered machines over to the block basing
    renderedMachines =
        new BlockSingle()
            .setStepSound(Block.soundTypeMetal)
            .setResistance(1F)
            .setHardness(1F)
            .setBlockName("machines.single.rendered");
    renderedMultiMachines =
        new BlockDouble()
            .setStepSound(Block.soundTypeMetal)
            .setResistance(3F)
            .setHardness(3F)
            .setBlockName("machines.multi.rendered");

    glass =
        new BlockGlass().setStepSound(Block.soundTypeGlass).setResistance(5F).setBlockName("glass");
    air = new BlockAir().setBlockUnbreakable().setBlockName("air");
    woods =
        new BlockWood().setStepSound(Block.soundTypeWood).setBlockName("woods").setHardness(2.0F);
    tanks =
        new BlockTank().setStepSound(Block.soundTypeGlass).setBlockName("tanks").setHardness(1F);
    sands = new BlockGround().setBlockName("sands").setHardness(1F);
    transparent =
        new BlockTransparent()
            .setStepSound(Block.soundTypePiston)
            .setBlockName("transparent")
            .setHardness(1F);
    water =
        new BlockWater().setStepSound(Block.soundTypeSnow).setHardness(10F).setBlockName("water");

    GameRegistry.registerTileEntity(TileAirPump.class, "TileAirPump");
    GameRegistry.registerTileEntity(TileCrucible.class, "TileLiquifier");
    GameRegistry.registerTileEntity(TileBookshelf.class, "TileBookshelf");
    GameRegistry.registerTileEntity(TileTankBlock.class, "TileTankBlock");
    GameRegistry.registerTileEntity(TileVat.class, "TileVat");
    GameRegistry.registerTileEntity(TileAnvil.class, "TileAnvil");
    GameRegistry.registerTileEntity(TileIngotCaster.class, "TileIngotCaster");
    GameRegistry.registerTileEntity(TileVoidBottle.class, "TileVoidBottle");
    GameRegistry.registerTileEntity(TileOyster.class, "TileOyster");

    RegistryHelper.register(
        new Object[] {
          rocks,
          limestone,
          water,
          metals,
          sands,
          woods,
          glass,
          transparent,
          pearlBlock,
          pearlBrick,
          machines,
          multiMachines,
          renderedMultiMachines,
          renderedMachines,
          tanks,
          air
        });
  }