mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 19:43:07 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package noppes.npcs.containers;
|
||||
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
class SlotNpcTraderItems extends Slot
|
||||
{
|
||||
|
||||
|
||||
public SlotNpcTraderItems( IInventory iinventory, int i, int j, int k)
|
||||
{
|
||||
super(iinventory, i, j, k);
|
||||
}
|
||||
public void onPickupFromSlot(ItemStack itemstack)
|
||||
{
|
||||
if(itemstack == null)
|
||||
return;
|
||||
if(getStack() == null)
|
||||
return;
|
||||
if(itemstack.getItem() != getStack().getItem())
|
||||
return;
|
||||
itemstack.stackSize--;
|
||||
//onSlotChanged();
|
||||
}
|
||||
|
||||
public int getSlotStackLimit()
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
|
||||
public boolean isItemValid(ItemStack itemstack)
|
||||
{
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user