Auction System Implementation

This commit is contained in:
Kam committed 2026-01-23 21:53:12 -05:00
1 parent 9cbd9fd3eb
commit 5afa1c8959
60 files changed
+6187 -589

No files matched your search

@@ -0,0 +1,31 @@
package noppes.npcs.containers;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
/**
* A display-only slot for auction listings.
* Items cannot be placed or taken from this slot.
*/
public class SlotAuctionDisplay extends Slot {
public SlotAuctionDisplay(IInventory inventory, int slotIndex, int x, int y) {
super(inventory, slotIndex, x, y);
}
@Override
public boolean isItemValid(ItemStack stack) {
return false;
}
@Override
public boolean canTakeStack(EntityPlayer player) {
return false;
}
@Override
public int getSlotStackLimit() {
return 64;
}
}