MerchantOffer
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Constructors
Parameter | Type |
---|---|
Parameter baseCostA | Type ItemStack |
Parameter result | Type ItemStack |
Parameter maxUses | Type int |
Parameter xp | Type int |
Parameter priceMultiplier | Type float |
Parameter | Type |
---|---|
Parameter baseCostA | Type ItemStack |
Parameter costB | Type ItemStack |
Parameter result | Type ItemStack |
Parameter maxUses | Type int |
Parameter xp | Type int |
Parameter priceMultiplier | Type float |
Parameter | Type |
---|---|
Parameter baseCostA | Type ItemStack |
Parameter costB | Type ItemStack |
Parameter result | Type ItemStack |
Parameter uses | Type int |
Parameter maxUses | Type int |
Parameter xp | Type int |
Parameter priceMultiplier | Type float |
Parameter | Type |
---|---|
Parameter baseCostA | Type ItemStack |
Parameter costB | Type ItemStack |
Parameter result | Type ItemStack |
Parameter uses | Type int |
Parameter maxUses | Type int |
Parameter xp | Type int |
Parameter priceMultiplier | Type float |
Parameter demand | Type int |
Methods
Parameter | Type |
---|---|
Parameter specialPriceDiff | Type int |
Return Type: IItemStack
Return Type: IData
Return Type: IItemStack
Return Type: IItemStack
Return Type: IItemStack
Return Type: int
Return Type: int
Return Type: float
Return Type: IItemStack
Return Type: int
Return Type: int
Return Type: int
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter a | Type IItemStack |
Parameter b | Type IItemStack |
Parameter | Type |
---|---|
Parameter specialPriceDiff | Type int |
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter a | Type IItemStack |
Parameter b | Type IItemStack |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name baseCostA | Type IItemStack | Has Getter true | Has Setter false |
Name costA | Type IItemStack | Has Getter true | Has Setter false |
Name costB | Type IItemStack | Has Getter true | Has Setter false |
Name demand | Type int | Has Getter true | Has Setter false |
Name maxUses | Type int | Has Getter true | Has Setter false |
Name needsRestock | Type boolean | Has Getter true | Has Setter false |
Name outOfStock | Type boolean | Has Getter true | Has Setter false |
Name priceMultiplier | Type float | Has Getter true | Has Setter false |
Name result | Type IItemStack | Has Getter true | Has Setter false |
Name shouldRewardExp | Type boolean | Has Getter true | Has Setter false |
Name specialPriceDiff | Type int | Has Getter true | Has Setter true |
Name uses | Type int | Has Getter true | Has Setter false |
Name xp | Type int | Has Getter true | Has Setter false |