Пример #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);
        }
Пример #2
0
 public bool CheckBlockHasProperty(ushort blockId, BlockDefinition.Property property) =>
 (BlockDefinitions[blockId].Properties & property) == property;
Пример #3
0
 public HashSet <ushort> GetPropertyBucket(BlockDefinition.Property property) => _PropertiesBuckets[property];