public class PrimedPendantConfig
extends org.cyclops.cyclopscore.config.extendedconfig.ItemConfig
PrimedPendant.| Modifier and Type | Class and Description |
|---|---|
static class |
PrimedPendantConfig.PotionMultipliersChanged
Callback for when the multipliers property is changed.
|
| Modifier and Type | Field and Description |
|---|---|
static PrimedPendantConfig |
_instance
The unique instance.
|
static int |
capacity
The capacity of the pendant.
|
static java.lang.String[] |
potionMultipliers
Usage multipliers.
|
static int |
usage
The amount of Blood to drain after one effect application.
|
| Constructor and Description |
|---|
PrimedPendantConfig()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getMultiplier(int potionId) |
void |
registerFromConfig(java.lang.String[] config)
Register the usage multipliers config from the given string array.
|
getFullUnlocalizedName, getHolderType, getItemInstance, getModelName, getOreDictionaryId, getTargetTab, getUnlocalizedName, initSubInstance, onRegistered, registerDynamicModelcompareTo, downCast, getComment, getConfigPropertyPrefix, getElement, getMod, getNamedId, getSubInstance, getSubUniqueName, isDisableable, isEnabled, isHardDisabled, onInit, save, setEnabled, showDoubleInitErrorpublic static PrimedPendantConfig _instance
public static int capacity
public static int usage
public static java.lang.String[] potionMultipliers
public void registerFromConfig(java.lang.String[] config)
config - The config where each element is in the form 'potionid:multiplier'.public java.lang.Double getMultiplier(int potionId)