Merchant
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.
Methods
Return Type: boolean
Return Type: SoundEvent
Return Type: MerchantOffers
Return Type: Player?
Return Type: int
Return Type: boolean
Parameter | Type |
---|---|
Parameter offer | Type MerchantOffer |
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Parameter | Type |
---|---|
Parameter player | Type Player? |
Return Type: boolean
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name canRestock | Type boolean | Has Getter true | Has Setter false |
Name isClientSide | Type boolean | Has Getter true | Has Setter false |
Name notifyTradeSound | Type SoundEvent | Has Getter true | Has Setter false |
Name offers | Type MerchantOffers | Has Getter true | Has Setter false |
Name showProgressBar | Type boolean | Has Getter true | Has Setter false |
Name tradingPlayer | Type Merchant | Has Getter true | Has Setter true |
Name villagerXp | Type int | Has Getter true | Has Setter false |