public abstract class AbstractDetection<T extends IDetectionKey<T>> extends Object implements Comparable<T>
Modifier and Type | Field and Description |
---|---|
protected Configuration |
config |
protected T |
key |
protected Material |
material |
Constructor and Description |
---|
AbstractDetection(T key,
Material material) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(T o) |
Configuration |
getConfig() |
T |
getKey()
Get the key of the actual detection
|
Material |
getMaterial()
Get the detection material which can be showed on inventory
|
String |
getName()
Get the name of the special detection
|
boolean |
isActive()
Check if the special detection if active
|
boolean |
isDisabledForBedrock() |
void |
saveConfig()
Save the configuration of the cheat
|
boolean |
setActive(boolean active)
Set if the cheat is active
Warn: this don't save the config
|
boolean |
setDisabledForBedrock(boolean b) |
protected final T extends IDetectionKey<T> key
protected final Material material
protected Configuration config
public T getKey()
public Material getMaterial()
public Configuration getConfig()
public void saveConfig()
public String getName()
public boolean isActive()
public boolean setActive(boolean active)
active
- the new valuepublic boolean isDisabledForBedrock()
public boolean setDisabledForBedrock(boolean b)
public int compareTo(T o)
compareTo
in interface Comparable<T extends IDetectionKey<T>>