public ContainerDispenser(net.minecraft.src.IInventory iinventory, net.minecraft.src.TileEntityDispenser
                           tileentitydispenser)
 {
     // Referenced classes of package net.minecraft.src:
     //            Container, Slot, TileEntityDispenser, IInventory,
     //            EntityPlayer
     field_21133_a = tileentitydispenser;
     for (int i = 0; i < 3; i++)
     {
         for (int l = 0; l < 3; l++)
         {
             AddSlot(new net.minecraft.src.Slot(tileentitydispenser, l + i * 3, 62 + l * 18, 17
                                                + i * 18));
         }
     }
     for (int j = 0; j < 3; j++)
     {
         for (int i1 = 0; i1 < 9; i1++)
         {
             AddSlot(new net.minecraft.src.Slot(iinventory, i1 + j * 9 + 9, 8 + i1 * 18, 84 +
                                                j * 18));
         }
     }
     for (int k = 0; k < 9; k++)
     {
         AddSlot(new net.minecraft.src.Slot(iinventory, k, 8 + k * 18, 142));
     }
 }
        public ContainerChest(net.minecraft.src.IInventory iinventory, net.minecraft.src.IInventory
                              iinventory1)
        {
            // Referenced classes of package net.minecraft.src:
            //            Container, IInventory, Slot, ItemStack,
            //            EntityPlayer
            field_20137_a = iinventory1;
            field_27088_b = iinventory1.GetSizeInventory() / 9;
            int i = (field_27088_b - 4) * 18;

            for (int j = 0; j < field_27088_b; j++)
            {
                for (int i1 = 0; i1 < 9; i1++)
                {
                    AddSlot(new net.minecraft.src.Slot(iinventory1, i1 + j * 9, 8 + i1 * 18, 18 + j *
                                                       18));
                }
            }
            for (int k = 0; k < 3; k++)
            {
                for (int j1 = 0; j1 < 9; j1++)
                {
                    AddSlot(new net.minecraft.src.Slot(iinventory, j1 + k * 9 + 9, 8 + j1 * 18, 103 +
                                                       k * 18 + i));
                }
            }
            for (int l = 0; l < 9; l++)
            {
                AddSlot(new net.minecraft.src.Slot(iinventory, l, 8 + l * 18, 161 + i));
            }
        }
Exemple #3
0
 public Slot(net.minecraft.src.IInventory iinventory, int i, int j, int k)
 {
     // Referenced classes of package net.minecraft.src:
     //            IInventory, ItemStack
     inventory        = iinventory;
     slotIndex        = i;
     xDisplayPosition = j;
     yDisplayPosition = k;
 }
 public InventoryLargeChest(string s, net.minecraft.src.IInventory iinventory, net.minecraft.src.IInventory
                            iinventory1)
 {
     // Referenced classes of package net.minecraft.src:
     //            IInventory, ItemStack, EntityPlayer
     name       = s;
     upperChest = iinventory;
     lowerChest = iinventory1;
 }
 public SlotFurnace(net.minecraft.src.EntityPlayer entityplayer, net.minecraft.src.IInventory
                    iinventory, int i, int j, int k)
     : base(iinventory, i, j, k)
 {
     // Referenced classes of package net.minecraft.src:
     //            Slot, EntityPlayer, ItemStack, Item,
     //            AchievementList, IInventory
     field_27007_d = entityplayer;
 }
 public SlotCrafting(net.minecraft.src.EntityPlayer entityplayer, net.minecraft.src.IInventory
                     iinventory, net.minecraft.src.IInventory iinventory1, int i, int j, int k)
     : base(iinventory1, i, j, k)
 {
     // Referenced classes of package net.minecraft.src:
     //            Slot, EntityPlayer, ItemStack, Block,
     //            AchievementList, Item, IInventory
     field_25004_e = entityplayer;
     craftMatrix   = iinventory;
 }
Exemple #7
0
 public override void DisplayGUIChest(net.minecraft.src.IInventory iinventory)
 {
     GetNextWidowId();
     netServerHandler.SendPacket(new net.minecraft.src.Packet100OpenWindow(currentWindowId
                                                                           , 0, iinventory.GetInvName(), iinventory.GetSizeInventory()));
     currentCraftingInventory = new net.minecraft.src.ContainerChest(inventory, iinventory
                                                                     );
     currentCraftingInventory.windowId = currentWindowId;
     currentCraftingInventory.OnCraftGuiOpened(this);
 }
Exemple #8
0
 internal SlotArmor(net.minecraft.src.ContainerPlayer containerplayer, net.minecraft.src.IInventory
                    iinventory, int i, int j, int k, int l)
     : base(iinventory, i, j, k)
 {
     // Referenced classes of package net.minecraft.src:
     //            Slot, ItemStack, ItemArmor, Item,
     //            Block, ContainerPlayer, IInventory
     field_20101_b = containerplayer;
     field_20102_a = l;
 }
Exemple #9
0
 public virtual net.minecraft.src.Slot Func_20127_a(net.minecraft.src.IInventory iinventory
                                                    , int i)
 {
     for (int j = 0; j < inventorySlots.Count; j++)
     {
         net.minecraft.src.Slot slot = (net.minecraft.src.Slot)inventorySlots[j];
         if (slot.IsHere(iinventory, i))
         {
             return(slot);
         }
     }
     return(null);
 }
Exemple #10
0
 public virtual void OnCraftMatrixChanged(net.minecraft.src.IInventory iinventory)
 {
     UpdateCraftingMatrix();
 }
Exemple #11
0
 public virtual bool IsHere(net.minecraft.src.IInventory iinventory, int i)
 {
     return(iinventory == inventory && i == slotIndex);
 }
 public override void OnCraftMatrixChanged(net.minecraft.src.IInventory iinventory)
 {
     //TODO: Bukkit fix???
     craftResult.SetInventorySlotContents(0, net.minecraft.src.CraftingManager.GetInstance().FindMatchingRecipe(craftMatrix));
 }
Exemple #13
0
 public virtual void DisplayGUIChest(net.minecraft.src.IInventory iinventory)
 {
 }