Suppress deprecation warnings for BlockProperties.

Access by id may or may not be changed internally, depending on what
happens on the API side.

For performance reasons we might like to do without passing on extra
stuff like Material, or even do String-comparison.

If ids will become more expensive to use than other ways, or if it will
be possible/accepted that ids get reused during runtime, then we will
have to change all internals.
This commit is contained in:
asofold 2014-06-14 20:39:32 +02:00
parent 98f101e9ff
commit 785de7c0f4

View File

@ -36,6 +36,7 @@ import fr.neatmonster.nocheatplus.logging.LogUtil;
* - reading (all) the default properties from a file too.
*
*/
@SuppressWarnings("deprecation")
public class BlockProperties {
/**
@ -447,8 +448,8 @@ public class BlockProperties {
tools.put(359, new ToolProps(ToolType.SHEARS, MaterialBase.NONE));
}
private static void initBlocks(final MCAccess mcAccess, final WorldConfigProvider<?> worldConfigProvider) {
private static void initBlocks(final MCAccess mcAccess, final WorldConfigProvider<?> worldConfigProvider) {
Arrays.fill(blocks, null);
// Initalize block flags
// Generic initialization.