Class SlotMerchantResult

java.lang.Object
net.minecraft.src.Slot
net.minecraft.src.SlotMerchantResult

public class SlotMerchantResult extends Slot
  • Constructor Details

  • Method Details

    • isItemValid

      public boolean isItemValid(ItemStack par1ItemStack)
      Check if the stack is a valid item for this slot. Always true beside for the armor slots.
      Overrides:
      isItemValid in class Slot
    • decrStackSize

      public ItemStack decrStackSize(int par1)
      Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack.
      Overrides:
      decrStackSize in class Slot
    • onCrafting

      protected void onCrafting(ItemStack par1ItemStack, int par2)
      the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood. Typically increases an internal count then calls onCrafting(item).
      Overrides:
      onCrafting in class Slot
    • onCrafting

      protected void onCrafting(ItemStack par1ItemStack)
      the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
      Overrides:
      onCrafting in class Slot
    • onPickupFromSlot

      public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
      Overrides:
      onPickupFromSlot in class Slot