Deprecate some unused config methods for getting type ids.

This commit is contained in:
asofold 2014-05-18 20:49:41 +02:00
parent c6dbd7330b
commit 258dbbdf84

View File

@ -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){