| Package | Description |
|---|---|
| fr.maxlego08.zauctionhouse.auction | |
| fr.maxlego08.zauctionhouse.event | |
| fr.maxlego08.zauctionhouse.event.events | |
| fr.maxlego08.zauctionhouse.transaction |
| Modifier and Type | Method and Description |
|---|---|
AuctionItem |
Auction.getByID(long id)
Search the item only in the list of items for sales
|
AuctionItem |
Auction.getByUniqueID(long id)
Search for items in all lists
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AuctionItem> |
Auction.getBuyingItems()
List of items purchased
|
java.util.List<AuctionItem> |
Auction.getBuyingItems(org.bukkit.entity.Player player)
List of items purchased for a player
|
java.util.List<AuctionItem> |
Auction.getExpiredItems()
List of items expired
|
java.util.List<AuctionItem> |
Auction.getExpiredItems(org.bukkit.entity.Player player)
List of items expired for a player
|
java.util.List<AuctionItem> |
Auction.getItems()
List of items for sale
|
java.util.List<AuctionItem> |
Auction.getItems(Category category)
List of items according to a category
|
java.util.List<AuctionItem> |
Auction.getItems(Category category,
org.bukkit.entity.Player player)
List of items according to a category
|
java.util.List<AuctionItem> |
Auction.getItems(org.bukkit.entity.Player player)
List of items for sale for a player
|
java.util.List<AuctionItem> |
Auction.getItems(Sorting shorting)
List of items for sale
|
java.util.List<AuctionItem> |
Auction.getItemsFromSearch(java.lang.String name)
List of items according to a category
|
java.util.List<AuctionItem> |
Auction.getItemsSort(org.bukkit.entity.Player player) |
| Modifier and Type | Method and Description |
|---|---|
void |
Auction.addItem(AuctionItem item,
ItemType type)
Stores an item
|
void |
Auction.buyItem(AuctionItem item,
org.bukkit.entity.Player player)
Buy an item
|
boolean |
Auction.canBuy(org.bukkit.entity.Player player,
AuctionItem item)
Check if the player can buy the item
|
boolean |
Auction.canSell(AuctionItem item)
Check if item time has expired or not
|
java.lang.String |
Auction.getPrice(AuctionItem item)
Price of the item with the correct currency
|
java.lang.String |
Auction.getPrice(AuctionItem item,
long price)
Price of the item with the correct currency
|
void |
Auction.giveItem(AuctionItem item,
org.bukkit.entity.Player player,
ItemType type,
boolean updateInventory)
Give an item to the player
|
void |
Auction.remove(AuctionItem item,
ItemType type)
Removes an item from storage
|
void |
Auction.remove(AuctionItem item,
org.bukkit.entity.Player player,
boolean admin)
Removes an item from sales
|
| Modifier and Type | Method and Description |
|---|---|
int |
Auction.getMaxPage(java.util.List<AuctionItem> item)
Maximum number of pages for an item list
|
void |
Auction.setBuyingItems(java.util.List<AuctionItem> buyingItems)
Put the list of purchased items
|
void |
Auction.setExpiredItems(java.util.List<AuctionItem> expiredItems)
Put the list of items expired
|
void |
Auction.setItems(java.util.List<AuctionItem> items)
Put the list of items
|
| Modifier and Type | Method and Description |
|---|---|
AuctionItem |
AuctionEvent.getItem() |
| Constructor and Description |
|---|
AuctionEvent(AuctionItem item,
org.bukkit.entity.Player player) |
| Constructor and Description |
|---|
AuctionBuyEvent(AuctionItem item,
org.bukkit.entity.Player player,
long price) |
AuctionItemExpireEvent(AuctionItem item,
org.bukkit.entity.Player player,
ItemType type) |
AuctionRemoveItemEvent(AuctionItem item,
org.bukkit.entity.Player player) |
AuctionRetrieveEvent(AuctionItem item,
org.bukkit.entity.Player player,
boolean b) |
AuctionSellEvent(AuctionItem item,
org.bukkit.entity.Player player,
long price) |
| Modifier and Type | Method and Description |
|---|---|
void |
Transaction.addTransaction(org.bukkit.entity.Player buyer,
java.lang.String seller,
long price,
org.bukkit.inventory.ItemStack itemStack,
AuctionItem auctionItem)
Permet d'ajouter une transaction entre un joueur
|