Remove unused 4096, align flag values, add max flag.

This commit is contained in:
asofold 2018-08-13 09:47:43 +02:00
parent 82f50dda71
commit f6f94d4eb7
1 changed files with 43 additions and 40 deletions

View File

@ -487,10 +487,7 @@ public class BlockProperties {
/** Liquid height if no solid/full blocks are above. */
protected static final double LIQUID_HEIGHT_LOWERED = 80000002;
/** The Constant maxBlocks. */
protected static final int maxBlocks = 4096;
/** Properties by block id, might be extended to 4096 later for custom blocks.*/
/** Properties by block type.*/
protected static final Map<Material, BlockProps> blocks = new HashMap<Material, BlockProps>();
/** Map for the tool properties. */
@ -812,6 +809,12 @@ public class BlockProperties {
*/
public static final long F_VARIABLE_REDSTONE = 0x800000000L;
/**
* Indicator to start recoding towards multiple flag types (shape, moving,
* interaction, block-type/special, ...).
*/
public static final long F_MAX_FLAG = 0x80000000000000L;
// TODO: Convenience constants combining all height / minheight flags.
// TODO: When flags are out, switch to per-block classes :p.