public interface NucleusServerShopService
Modifier and Type | Method and Description |
---|---|
Optional<Double> |
getBuyPrice(org.spongepowered.api.block.BlockState type)
Gets the buy price of an item (that is, how much a server will sell an item to a player for).
|
default Optional<Double> |
getBuyPrice(org.spongepowered.api.item.inventory.ItemStack itemStack)
Gets the buy price of an item (that is, how much a server will sell an item to a player for).
|
Optional<Double> |
getBuyPrice(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStackSnapshot)
Gets the buy price of an item (that is, how much a server will sell an item to a player for).
|
default Optional<Double> |
getBuyPrice(org.spongepowered.api.item.ItemType type)
Gets the buy price of an item (that is, how much a server will sell an item to a player for).
|
Map<org.spongepowered.api.CatalogType,Double> |
getBuyPrices()
Gets all the server buy prices.
|
Optional<Double> |
getSellPrice(org.spongepowered.api.block.BlockState type)
Gets the sell price of an item (that is, how much a server will buy an item from a player for).
|
default Optional<Double> |
getSellPrice(org.spongepowered.api.item.inventory.ItemStack itemStack)
Gets the sell price of an item (that is, how much a server will buy an item from a player for).
|
Optional<Double> |
getSellPrice(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStackSnapshot)
Gets the sell price of an item (that is, how much a server will buy an item from a player for).
|
default Optional<Double> |
getSellPrice(org.spongepowered.api.item.ItemType type)
Gets the sell price of an item (that is, how much a server will buy an item from a player for).
|
Map<org.spongepowered.api.CatalogType,Double> |
getSellPrices()
Gets all the server sell prices.
|
Map<org.spongepowered.api.CatalogType,Double> getBuyPrices()
Note that the CatalogType
could either be an ItemType
or a BlockState
Map<org.spongepowered.api.CatalogType,Double> getSellPrices()
Note that the CatalogType
could either be an ItemType
or a BlockState
default Optional<Double> getBuyPrice(org.spongepowered.api.item.ItemType type)
type
- The item to check.Optional
if not being sold.Optional<Double> getBuyPrice(org.spongepowered.api.block.BlockState type) throws NucleusException
type
- The item to check.Optional
if not being sold.NucleusException
- if the BlockState
does not map to an item.default Optional<Double> getBuyPrice(org.spongepowered.api.item.inventory.ItemStack itemStack)
itemStack
- The item to check.Optional
if not being sold.Optional<Double> getBuyPrice(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStackSnapshot)
itemStackSnapshot
- The item to check.Optional
if not being sold.default Optional<Double> getSellPrice(org.spongepowered.api.item.ItemType type)
type
- The item to check.Optional
if not being bought.Optional<Double> getSellPrice(org.spongepowered.api.block.BlockState type) throws NucleusException
type
- The item to check.Optional
if not being bought.NucleusException
- if the BlockState
does not map to an item.default Optional<Double> getSellPrice(org.spongepowered.api.item.inventory.ItemStack itemStack)
itemStack
- The item to check.Optional
if not being bought.Optional<Double> getSellPrice(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStackSnapshot)
itemStackSnapshot
- The item to check.Optional
if not being bought.