public interface BlockValuesManager
Modifier and Type | Interface and Description |
---|---|
static class |
BlockValuesManager.SyncWorthStatus |
Modifier and Type | Method and Description |
---|---|
Key |
getBlockKey(Key key)
Get the exact key that is used in the config.
|
java.math.BigDecimal |
getBlockLevel(Key key)
Get the level value of a key.
|
java.math.BigDecimal |
getBlockWorth(Key key)
Get the worth value of a key.
|
void |
registerCustomKey(Key key,
java.math.BigDecimal worthValue,
java.math.BigDecimal levelValue)
Register a value for a key.
|
void |
registerKeyParser(CustomKeyParser customKeyParser,
Key... blockTypes)
Register a custom key parser.
|
java.math.BigDecimal getBlockWorth(Key key)
key
- The key to check.java.math.BigDecimal getBlockLevel(Key key)
key
- The key to check.Key getBlockKey(Key key)
key
- The key to check.void registerCustomKey(Key key, @Nullable java.math.BigDecimal worthValue, @Nullable java.math.BigDecimal levelValue)
key
- The key to set custom value of.worthValue
- The custom worth value of the key.levelValue
- The custom level value of the key.void registerKeyParser(CustomKeyParser customKeyParser, Key... blockTypes)
customKeyParser
- The custom key parser.blockTypes
- All the block types you want to check.