If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.entity.type.villager . Merchant;
// Merchant.canRestock as bool
Return Type:
bool
// Merchant.canRestock() as bool;
Return Type:
bool
// Merchant.isClientSide as bool
Return Type:
bool
// Merchant.isClientSide() as bool;
myMerchant . isClientSide();
Return Type:
bool
// Merchant.notifyTrade(offer as MerchantOffer);
myMerchant . notifyTrade(myMerchantOffer);
// Merchant.notifyTradeSound as SoundEvent
myMerchant . notifyTradeSound
Return Type:
SoundEvent
// Merchant.notifyTradeSound() as SoundEvent;
myMerchant . notifyTradeSound();
Return Type:
SoundEvent
// Merchant.notifyTradeUpdated(stack as ItemStack);
myMerchant . notifyTradeUpdated(myItemStack);
// Merchant.openTradingScreen(player as Player, displayName as Component, level as int);
myMerchant . openTradingScreen(myPlayer, myComponent, myInt);
// Merchant.showProgressBar as bool
myMerchant . showProgressBar
Return Type:
bool
// Merchant.showProgressBar() as bool;
myMerchant . showProgressBar();
Return Type:
bool
// Merchant.tradingPlayer as Player
Return Type:
Player
// Merchant.tradingPlayer = (player as Player);
myMerchant . tradingPlayer = myPlayer;
// Merchant.tradingPlayer(player as Player);
myMerchant . tradingPlayer(myPlayer);
// Merchant.tradingPlayer() as Player;
myMerchant . tradingPlayer();
Return Type:
Player
// Merchant.villagerXp as int
Return Type:
int
// Merchant.villagerXp() as int;
Return Type:
int