Search in sources :

Example 1 with SpongeChunkRegenerateFlag

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));
    });
}
Also used : SpongeChunkRegenerateFlag(org.spongepowered.common.world.SpongeChunkRegenerateFlag)

Aggregations

SpongeChunkRegenerateFlag (org.spongepowered.common.world.SpongeChunkRegenerateFlag)1