public static bool HasProperty(this BlockDefinition.Property property, BlockDefinition.Property flag) { int intProperty = (int)property; int intFlag = (int)flag; return((intProperty & intFlag) == intFlag); }
public bool CheckBlockHasProperty(ushort blockId, BlockDefinition.Property property) => (BlockDefinitions[blockId].Properties & property) == property;
public HashSet <ushort> GetPropertyBucket(BlockDefinition.Property property) => _PropertiesBuckets[property];