public abstract class Special extends AbstractDetection<SpecialKeys>
config, key, material
Constructor and Description |
---|
Special(SpecialKeys key,
Material material)
Create a special detection and load his config
|
Modifier and Type | Method and Description |
---|---|
static Special |
forKey(String key)
Get special detection from the key
|
static Special |
fromString(String name)
Get special detection from the name
|
static void |
loadSpecial()
Load all special detection
Support reload
|
static List<Special> |
values() |
compareTo, getConfig, getKey, getMaterial, getName, isActive, isDisabledForBedrock, saveConfig, setActive
public Special(SpecialKeys key, Material material)
key
- the key of the special detectionneedPacket
- if it need packet to workalias
- all alias of the special detectionpublic static Special fromString(String name)
name
- the special detection namepublic static Special forKey(String key)
key
- the special keypublic static void loadSpecial()