use of org.spongepowered.common.world.SpongeChunkRegenerateFlag in project SpongeCommon by SpongePowered.
the class SpongeRegistryLoaders method chunkRegenerateFlag.
public static RegistryLoader<ChunkRegenerateFlag> chunkRegenerateFlag() {
return RegistryLoader.of(l -> {
l.add(ChunkRegenerateFlags.NONE, k -> new SpongeChunkRegenerateFlag(false, false));
l.add(ChunkRegenerateFlags.CREATE, k -> new SpongeChunkRegenerateFlag(true, false));
l.add(ChunkRegenerateFlags.ENTITIES, k -> new SpongeChunkRegenerateFlag(false, true));
l.add(ChunkRegenerateFlags.ALL, k -> new SpongeChunkRegenerateFlag(true, true));
});
}
Aggregations