def features(direction): """ Get a full set of edge features """ features = set() for component in carve.get_features(vec.tuples2vecs(direction)): features.update(vec.vecs2tuples(component)) return features
def __init__(self, chunk, edge, padding, height_map, block_roles): """ Takes a pymclevel chunk as an initialiser """ self.__block_roles = block_roles self.__chunk = chunk self.__height_map = height_map self.__edge = edge self.__edge_direction = vec.tuples2vecs(self.__edge.direction) self.__desert = False self.__ocean = False self.__dry = False self.__local_ids = chunk.Blocks.copy() self.__local_data = chunk.Data.copy() self.__seeder = ChunkSeed(chunk.world.RandomSeed, chunk.chunkPosition) self.__padding = padding self.__height_invalid = True self.height # Initialise the height value
def features(direction): features = set() for component in carve.get_features(vec.tuples2vecs(direction)): features.update(vec.vecs2tuples(component)) return features