mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-15 08:28:10 +02:00
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:
parent
98f101e9ff
commit
785de7c0f4
@ -36,6 +36,7 @@ import fr.neatmonster.nocheatplus.logging.LogUtil;
|
|||||||
* - reading (all) the default properties from a file too.
|
* - reading (all) the default properties from a file too.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public class BlockProperties {
|
public class BlockProperties {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -447,8 +448,8 @@ public class BlockProperties {
|
|||||||
|
|
||||||
tools.put(359, new ToolProps(ToolType.SHEARS, MaterialBase.NONE));
|
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);
|
Arrays.fill(blocks, null);
|
||||||
// Initalize block flags
|
// Initalize block flags
|
||||||
// Generic initialization.
|
// Generic initialization.
|
||||||
|
Loading…
Reference in New Issue
Block a user