Examples of SlotCrafting


Examples of net.minecraft.inventory.SlotCrafting

    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++)
            {
                this.addSlotToContainer(new Slot(craftMatrix, l + i * 3, 30 + l * 18, 17 + i * 18));
 
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

        baubles.setEventHandler(this);
        if (!player.worldObj.isRemote) {
          baubles.stackList = PlayerHandler.getPlayerBaubles(player).stackList;
        }
       
        this.addSlotToContainer(new SlotCrafting(playerInv.player, this.craftMatrix, this.craftResult, 0, 144, 36));
        int i;
        int j;

        for (i = 0; i < 2; ++i)
        {
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

    result = cache.getCraftingResult(crafter);
    if(fake == null) {
      fake = MainProxy.getFakePlayer(this);
    }
    result = result.copy();
    SlotCrafting craftingSlot = new SlotCrafting(fake, crafter, resultInv, 0, 0, 0);
    craftingSlot.onPickupFromSlot(fake, result);
    for(int i=0;i<9;i++) {
      ItemStack left = crafter.getStackInSlot(i);
      crafter.setInventorySlotContents(i, null);
      if(left != null) {
        left.stackSize = inv.addCompressed(left, false);
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

    result = cache.getCraftingResult(crafter);
    if(fake == null) {
      fake = MainProxy.getFakePlayer(this.container);
    }
    result = result.copy();
    SlotCrafting craftingSlot = new SlotCrafting(fake, crafter, resultInv, 0, 0, 0);
    craftingSlot.onPickupFromSlot(fake, result);
    for(int i=0;i<9;i++) {
      ItemStack left = crafter.getStackInSlot(i);
      crafter.setInventorySlotContents(i, null);
      if(left != null) {
        left.stackSize = inv.addCompressed(left, false);
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

      IRecipe rr = Platform.findMatchingRecipe( real, p.worldObj );

      if ( rr == r && Platform.isSameItemPrecise( rr.getCraftingResult( real ), is ) )
      {
        SlotCrafting sc = new SlotCrafting( p, real, cOut, 0, 0, 0 );
        sc.onPickupFromSlot( p, is );

        for (int x = 0; x < real.getSizeInventory(); x++)
        {
          ItemStack failed = playerInv.addItems( real.getStackInSlot( x ) );
          if ( failed != null )
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

    public IInventory craftResult = new InventoryCraftResult();
    private EntityCartWork cart;

    public ContainerWorkCart(InventoryPlayer inv, EntityCartWork cart) {
        this.cart = cart;
        this.addSlot(new SlotCrafting(inv.player, this.craftMatrix, this.craftResult, 0, 124, 35));
        int var6;
        int var7;

        for (var6 = 0; var6 < 3; ++var6) {
            for (var7 = 0; var7 < 3; ++var7) {
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

    }

    balanceSlots();

    if (craftSlot == null) {
      craftSlot = new SlotCrafting(getInternalPlayer().get(), craftMatrix, craftResult, 0, 0, 0);
    }
    if (resultInv.getStackInSlot(SLOT_RESULT) != null) {
      return;
    }
    update++;
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting

      return;
    }

    if (internalInventoryCrafting == null) {
      internalInventoryCrafting = new InternalInventoryCrafting();
      craftSlot = new SlotCrafting(getInternalPlayer().get(), internalInventoryCrafting, craftResult, 0, 0, 0);
      updateRecipe();
    }
    if (worldObj.isRemote) {
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.