Example #1
0
        public static bool HasProperty(this BlockDefinition.Property property, BlockDefinition.Property flag)
        {
            int intProperty = (int)property;
            int intFlag     = (int)flag;

            return((intProperty & intFlag) == intFlag);
        }
Example #2
0
 public bool CheckBlockHasProperty(ushort blockId, BlockDefinition.Property property) =>
 (BlockDefinitions[blockId].Properties & property) == property;
Example #3
0
 public HashSet <ushort> GetPropertyBucket(BlockDefinition.Property property) => _PropertiesBuckets[property];