| Modifier and Type | Method and Description |
|---|---|
void |
disableSlot(int slot)
prevent an item from being sold on that slot
|
void |
disableSlot(int slot,
IPlayer player)
disables the slot for this player
|
void |
enableSlot(int slot)
allow an item to be sold on that slot
|
void |
enableSlot(int slot,
IPlayer player)
enables the slot for this player
|
IItemStack[] |
getCurrency(int slot) |
java.lang.String |
getMarket() |
int |
getPurchaseNum(int slot) |
int |
getPurchaseNum(int slot,
IPlayer player) |
IItemStack |
getSellOption(int slot) |
boolean |
isSlotEnabled(int slot) |
boolean |
isSlotEnabled(int slot,
IPlayer player) |
void |
removeSellOption(int slot) |
void |
resetPurchaseNum()
Sets the purchase count of all slots to 0
|
void |
resetPurchaseNum(int slot)
sets the purchase num for that slot to 0
|
void |
resetPurchaseNum(int slot,
IPlayer player)
sets the purchase num for that slot and player to 0
|
void |
setMarket(java.lang.String name) |
void |
setSellOption(int slot,
IItemStack currency,
IItemStack sold) |
void |
setSellOption(int slot,
IItemStack currency,
IItemStack currency2,
IItemStack sold) |
void setSellOption(int slot,
IItemStack currency,
IItemStack currency2,
IItemStack sold)
slot - Slot number 0-17currency - Currency itemcurrency2 - Currency item number twosold - Item to be sold by this npcvoid setSellOption(int slot,
IItemStack currency,
IItemStack sold)
slot - Slot number 0-17currency - Currency itemsold - Item to be sold by this npcIItemStack getSellOption(int slot)
slot - IItemStack[] getCurrency(int slot)
slot - void removeSellOption(int slot)
slot - Slot number 0-17void setMarket(java.lang.String name)
name - The trader Linked Market namejava.lang.String getMarket()
int getPurchaseNum(int slot)
slot - int getPurchaseNum(int slot,
IPlayer player)
slot - player - void resetPurchaseNum()
void resetPurchaseNum(int slot)
slot - void resetPurchaseNum(int slot,
IPlayer player)
slot - player - boolean isSlotEnabled(int slot)
slot - boolean isSlotEnabled(int slot,
IPlayer player)
slot - player - void disableSlot(int slot)
slot - void disableSlot(int slot,
IPlayer player)
slot - player - void enableSlot(int slot)
slot - void enableSlot(int slot,
IPlayer player)
slot - player -