mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Deprecate some unused config methods for getting type ids.
This commit is contained in:
parent
c6dbd7330b
commit
258dbbdf84
@ -116,9 +116,11 @@ public class RawConfigFile extends YamlConfiguration{
|
|||||||
/**
|
/**
|
||||||
* Attempt to get a type id from the path somehow, return null if nothing found.<br>
|
* Attempt to get a type id from the path somehow, return null if nothing found.<br>
|
||||||
* Will attempt to interpret strings, will return negative or out of range values.
|
* Will attempt to interpret strings, will return negative or out of range values.
|
||||||
|
* @deprecated Not used, will be replaced by getMaterial, if needed.
|
||||||
* @param path
|
* @param path
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Integer getTypeId(final String path){
|
public Integer getTypeId(final String path){
|
||||||
return getTypeId(path, null);
|
return getTypeId(path, null);
|
||||||
}
|
}
|
||||||
@ -126,10 +128,12 @@ public class RawConfigFile extends YamlConfiguration{
|
|||||||
/**
|
/**
|
||||||
* Attempt to get a type id from the path somehow, return preset if nothing found.<br>
|
* Attempt to get a type id from the path somehow, return preset if nothing found.<br>
|
||||||
* Will attempt to interpret strings, will return negative or out of range values.
|
* Will attempt to interpret strings, will return negative or out of range values.
|
||||||
|
* @deprecated Not used, will be replaced by getMaterial, if needed.
|
||||||
* @param path
|
* @param path
|
||||||
* @param preset
|
* @param preset
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Integer getTypeId(final String path, final Integer preset){
|
public Integer getTypeId(final String path, final Integer preset){
|
||||||
String content = getString(path, null);
|
String content = getString(path, null);
|
||||||
if (content != null){
|
if (content != null){
|
||||||
|
Loading…
Reference in New Issue
Block a user