mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 21:20:04 +00:00
Auction System Implementation
This commit is contained in:
1 parent
9cbd9fd3eb
commit
5afa1c8959
60 files changed
+6187
-589
No files matched your search
@@ -14,6 +14,11 @@ import net.minecraftforge.common.util.FakePlayer;
|
||||
import noppes.npcs.api.IWorld;
|
||||
import noppes.npcs.blocks.tiles.TileNpcContainer;
|
||||
import noppes.npcs.constants.EnumGuiType;
|
||||
import noppes.npcs.containers.ContainerAuction;
|
||||
import noppes.npcs.containers.ContainerAuctionBidding;
|
||||
import noppes.npcs.containers.ContainerAuctionTrades;
|
||||
import noppes.npcs.containers.ContainerAuctionListing;
|
||||
import noppes.npcs.containers.ContainerAuctionSell;
|
||||
import noppes.npcs.containers.ContainerAnvilRepair;
|
||||
import noppes.npcs.containers.ContainerCarpentryBench;
|
||||
import noppes.npcs.containers.ContainerCrate;
|
||||
@@ -92,6 +97,18 @@ public class CommonProxy implements IGuiHandler {
|
||||
if (gui == EnumGuiType.PlayerTrader)
|
||||
return new ContainerNPCTrader(npc, player);
|
||||
|
||||
if (gui == EnumGuiType.PlayerAuction)
|
||||
return new ContainerAuctionListing(npc, player);
|
||||
|
||||
if (gui == EnumGuiType.PlayerAuctionSell)
|
||||
return new ContainerAuctionSell(npc, player);
|
||||
|
||||
if (gui == EnumGuiType.PlayerAuctionTrades)
|
||||
return new ContainerAuctionTrades(npc, player);
|
||||
|
||||
if (gui == EnumGuiType.PlayerAuctionBidding)
|
||||
return new ContainerAuctionBidding(npc, player);
|
||||
|
||||
if (gui == EnumGuiType.PlayerCarpentryBench)
|
||||
return new ContainerCarpentryBench(player.inventory, player.worldObj, x, y, z);
|
||||
|
||||
|
||||
Reference in new issue
Block a user