mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-20 23:30:29 +00:00
implementation of BiomePipeline
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package com.dfsek.terra.registry;
|
||||
|
||||
import com.dfsek.terra.config.builder.biomegrid.BiomeGridBuilder;
|
||||
import com.dfsek.terra.config.builder.biomegrid.SingleGridBuilder;
|
||||
|
||||
public class BiomeGridRegistry extends TerraRegistry<BiomeGridBuilder> {
|
||||
private final BiomeRegistry biomeRegistry;
|
||||
|
||||
public BiomeGridRegistry(BiomeRegistry biomeRegistry) {
|
||||
this.biomeRegistry = biomeRegistry;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BiomeGridBuilder get(String id) {
|
||||
if(id.startsWith("BIOME:")) return new SingleGridBuilder(biomeRegistry.get(id.substring(6)));
|
||||
return super.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(String name) {
|
||||
if(name.startsWith("BIOME:")) return biomeRegistry.contains(name.substring(6));
|
||||
return super.contains(name);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user