Class WrapperPlayServerMerchantOffers

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerMerchantOffers>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerMerchantOffers

public class WrapperPlayServerMerchantOffers extends PacketWrapper<WrapperPlayServerMerchantOffers>
  • Constructor Details

    • WrapperPlayServerMerchantOffers

      public WrapperPlayServerMerchantOffers(PacketSendEvent event)
    • WrapperPlayServerMerchantOffers

      public WrapperPlayServerMerchantOffers(int containerId, List<MerchantOffer> merchantOffers, int villagerLevel, int villagerXp, boolean showProgress, boolean canRestock)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayServerMerchantOffers>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayServerMerchantOffers>
    • copy

      public void copy(WrapperPlayServerMerchantOffers wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayServerMerchantOffers>
    • getContainerId

      public int getContainerId()
    • setContainerId

      public void setContainerId(int containerId)
    • getMerchantOffers

      public List<MerchantOffer> getMerchantOffers()
    • setMerchantOffers

      public void setMerchantOffers(List<MerchantOffer> merchantOffers)
    • getVillagerLevel

      public int getVillagerLevel()
    • setVillagerLevel

      public void setVillagerLevel(int villagerLevel)
    • getVillagerXp

      public int getVillagerXp()
    • setVillagerXp

      public void setVillagerXp(int villagerXp)
    • isShowProgress

      public boolean isShowProgress()
    • setShowProgress

      public void setShowProgress(boolean showProgress)
    • isCanRestock

      public boolean isCanRestock()
    • setCanRestock

      public void setCanRestock(boolean canRestock)