Class WizardTradeSetupEvent
java.lang.Object
com.binaris.wizardry.api.content.event.abstr.WizardryEvent
com.binaris.wizardry.api.content.event.WizardTradeSetupEvent
- All Implemented Interfaces:
IWizardryEvent
-
Constructor Summary
ConstructorsConstructorDescriptionWizardTradeSetupEvent(Wizard wizard, net.minecraft.world.item.trading.MerchantOffers trades) -
Method Summary
Modifier and TypeMethodDescriptionGets the wizard's element, ornullif the wizard has no specific element.net.minecraft.world.item.trading.MerchantOffersGets the mutable list of trades for this wizard.Gets the wizard whose trades are being set up.intGets the wizard's current level (1–5).Methods inherited from class com.binaris.wizardry.api.content.event.abstr.WizardryEvent
canBeCanceled, isCanceled, setCanceled
-
Constructor Details
-
WizardTradeSetupEvent
-
-
Method Details
-
getWizard
Gets the wizard whose trades are being set up.- Returns:
- The
Wizardentity.
-
getWizardLevel
public int getWizardLevel()Gets the wizard's current level (1–5).- Returns:
- The wizard level.
-
getElement
Gets the wizard's element, ornullif the wizard has no specific element.- Returns:
- The wizard's
Element, ornull.
-
getTrades
public net.minecraft.world.item.trading.MerchantOffers getTrades()Gets the mutable list of trades for this wizard. Add or removeMerchantOffers to customize what the wizard sells.- Returns:
- The mutable
MerchantOfferslist.
-