Package net.minecraft.inventory

Examples of net.minecraft.inventory.InventoryCraftResult


    private World worldObj;

    public WorkbenchContainer(InventoryPlayer inventoryplayer, World world)
    {
        craftMatrix = new InventoryCrafting(this, 3, 3);
        craftResult = new InventoryCraftResult();
        worldObj = world;
        this.addSlotToContainer(new SlotCrafting(inventoryplayer.player, craftMatrix, craftResult, 0, 124, 35));
        for (int i = 0; i < 3; i++)
        {
            for (int l = 0; l < 3; l++)
View Full Code Here


    machine.activeContainer = this;
    craftingInventory = machine.getCraftingInventory();
    internalInventory = machine.getInternalInventory();

    craftMatrix = new InventoryCraftingAuto(this, 3, 3);
    craftResult = new InventoryCraftResult();

    // Internal inventory
    for (int i = 0; i < 2; i++) {
      for (int k = 0; k < 9; k++) {
        addSlot(new Slot(internalInventory, MachineCarpenter.SLOT_INVENTORY_1 + k + i * 9, 8 + k * 18, 90 + i * 18));
 
View Full Code Here

  }

  public ContainerCarpenter(MachineCarpenter tile) {
    super(tile.getInternalInventory(), tile);
    craftMatrix = new InventoryCraftingAuto(this, 3, 3);
    craftResult = new InventoryCraftResult();
    craftingInventory = tile.getCraftingInventory();

    // Update crafting matrix with current contents of tileentity.
    for (int i = 0; i < craftMatrix.getSizeInventory(); i++) {
      craftMatrix.setInventorySlotContents(i, craftingInventory.getStackInSlot(i));
View Full Code Here

    public ContainerRollingMachine(final InventoryPlayer inventoryplayer, final TileRollingMachine tile) {
        super(tile);
        this.tile = tile;
        craftMatrix = tile.getCraftMatrix();
        craftResult = new InventoryCraftResult() {
            @Override
            public void setInventorySlotContents(int slot, ItemStack stack) {
                super.setInventorySlotContents(slot, stack);
                if (stack != null && Game.isNotHost(tile.getWorldObj()))
                    InvTools.addItemToolTip(stack, LocalizationPlugin.translate("railcraft.gui.rolling.machine.tip.craft"));
View Full Code Here

  public TileAdvancedCraftingTable() {
    craftingSlots = new CraftingGrid();
    inv.addListener(this);
    invInput = new InventoryMapper(inv, 0, 15);
    invOutput = new InventoryMapper(inv, 15, 9);
    craftResult = new InventoryCraftResult();
  }
View Full Code Here

  private ItemStack prevOutput;

  public ContainerAutoWorkbench(InventoryPlayer inventoryplayer, TileAutoWorkbench t) {
    super(t.getSizeInventory());

    craftResult = new InventoryCraftResult() {
      @Override
      public void setInventorySlotContents(int slot, ItemStack stack) {
        super.setInventorySlotContents(slot, stack);
        if (stack != null && tile.isLast() && tile.getWorldObj().isRemote) {
          InvUtils.addItemToolTip(stack, EnumChatFormatting.YELLOW + StringUtils.localize("gui.clickcraft"));
View Full Code Here

TOP

Related Classes of net.minecraft.inventory.InventoryCraftResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.