Class WrapperPlayServerOpenWindowMerchant

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerOpenWindowMerchant

public class WrapperPlayServerOpenWindowMerchant extends AbstractPacket
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerOpenWindowMerchant

      public WrapperPlayServerOpenWindowMerchant()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerOpenWindowMerchant

      public WrapperPlayServerOpenWindowMerchant(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getContainerId

      public int getContainerId()
      Retrieves the value of field 'containerId'
      Returns:
      'containerId'
    • setContainerId

      public void setContainerId(int value)
      Sets the value of field 'containerId'
      Parameters:
      value - New value for field 'containerId'
    • getOffers

      public List<org.bukkit.inventory.MerchantRecipe> getOffers()
      Retrieves the value of field 'offers'
      Returns:
      'offers'
    • setOffers

      public void setOffers(List<org.bukkit.inventory.MerchantRecipe> value)
      Sets the value of field 'offers'
      Parameters:
      value - New value for field 'offers'
    • getVillagerLevel

      public int getVillagerLevel()
      Retrieves the value of field 'villagerLevel'
      Returns:
      'villagerLevel'
    • setVillagerLevel

      public void setVillagerLevel(int value)
      Sets the value of field 'villagerLevel'
      Parameters:
      value - New value for field 'villagerLevel'
    • getVillagerXp

      public int getVillagerXp()
      Retrieves the value of field 'villagerXp'
      Returns:
      'villagerXp'
    • setVillagerXp

      public void setVillagerXp(int value)
      Sets the value of field 'villagerXp'
      Parameters:
      value - New value for field 'villagerXp'
    • getShowProgress

      public boolean getShowProgress()
      Retrieves the value of field 'showProgress'
      Returns:
      'showProgress'
    • setShowProgress

      public void setShowProgress(boolean value)
      Sets the value of field 'showProgress'
      Parameters:
      value - New value for field 'showProgress'
    • getCanRestock

      public boolean getCanRestock()
      Retrieves the value of field 'canRestock'
      Returns:
      'canRestock'
    • setCanRestock

      public void setCanRestock(boolean value)
      Sets the value of field 'canRestock'
      Parameters:
      value - New value for field 'canRestock'