Class NPCsConfig

All Implemented Interfaces:
Config

@ConfigSerializable public class NPCsConfig extends AbstractYamlConfig
  • Constructor Details

    • NPCsConfig

      public NPCsConfig()
  • Method Details

    • isTradersReusable

      public boolean isTradersReusable()
      Returns:
      Whether traders are reusable.
    • getMovesPerTutor

      public int getMovesPerTutor()
      Returns:
      The number of moves a tutor can teach.
    • isLimitShopKeeperStackSize

      public boolean isLimitShopKeeperStackSize()
      Returns:
      Limit shopkeeper buy maxsize to stacksize
    • getShopMaxStackSize

      public int getShopMaxStackSize(net.minecraft.world.item.ItemStack stack)
      Gets the maximum buable items a shopkeeper item can contain in one purchase
      Parameters:
      stack - The base ItemStack that is being purchased
      Returns:
      the maximum size allowed from this stack