コード例 #1
0
  @Override
  public void register() {
    super.register();
    GameRegistry.registerTileEntity(ThermalRecyclerTileEntity.class, "thermalRecyclerTileEntity");

    final ShapedOreRecipe recipe =
        new ShapedOreRecipe(
            BlockManager.thermalRecycler,
            "PSP",
            "BMB",
            "GRG",
            'P',
            Blocks.piston,
            'S',
            Blocks.chest,
            'B',
            ItemStackHelper.getItemStack("ThermalExpansion:wrench"),
            'M',
            ItemStackHelper.getItemStack("ThermalExpansion:Frame"),
            'G',
            "gearCopper",
            'R',
            ItemStackHelper.getItemStack("ThermalExpansion:material:1"));

    GameRegistry.addRecipe(recipe);
  }
コード例 #2
0
  public This secondaryInput(final String item, final int quantity) {

    assert item != null;
    assert quantity > 0;

    return secondaryInput(ItemStackHelper.getItemStack(item, quantity).get());
  }