Class NPCsConfig
java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
com.pixelmonmod.pixelmon.api.config.NPCsConfig
- All Implemented Interfaces:
Config
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
base, config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getShopMaxStackSize
(net.minecraft.world.item.ItemStack stack) Gets the maximum buable items a shopkeeper item can contain in one purchaseboolean
boolean
Methods inherited from class com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
getNode, save
-
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
-