create pipeline BiomeDelegate

This commit is contained in:
dfsek 2021-12-05 16:58:03 -07:00
parent 95c5e7022e
commit 3bb52b5cfe

View File

@ -0,0 +1,23 @@
package com.dfsek.terra.addons.biome.pipeline.api;
import com.dfsek.terra.api.util.StringIdentifiable;
import com.dfsek.terra.api.world.biome.Biome;
public interface BiomeDelegate extends StringIdentifiable {
Biome getBiome();
static BiomeDelegate ephemeral(String id) {
return new BiomeDelegate() {
@Override
public Biome getBiome() {
throw new UnsupportedOperationException("Cannot get biome from ephemeral delegate");
}
@Override
public String getID() {
return id;
}
};
}
}