Class WizardTradeSetupEvent

java.lang.Object
com.binaris.wizardry.api.content.event.abstr.WizardryEvent
com.binaris.wizardry.api.content.event.WizardTradeSetupEvent
All Implemented Interfaces:
IWizardryEvent

public class WizardTradeSetupEvent extends WizardryEvent
  • Constructor Details

    • WizardTradeSetupEvent

      public WizardTradeSetupEvent(Wizard wizard, net.minecraft.world.item.trading.MerchantOffers trades)
  • Method Details

    • getWizard

      public Wizard getWizard()
      Gets the wizard whose trades are being set up.
      Returns:
      The Wizard entity.
    • getWizardLevel

      public int getWizardLevel()
      Gets the wizard's current level (1–5).
      Returns:
      The wizard level.
    • getElement

      @Nullable public Element getElement()
      Gets the wizard's element, or null if the wizard has no specific element.
      Returns:
      The wizard's Element, or null.
    • getTrades

      public net.minecraft.world.item.trading.MerchantOffers getTrades()
      Gets the mutable list of trades for this wizard. Add or remove MerchantOffers to customize what the wizard sells.
      Returns:
      The mutable MerchantOffers list.