mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
implement PropertyHolder in TerraBiome
This commit is contained in:
+7
@@ -1,5 +1,6 @@
|
|||||||
package com.dfsek.terra.addons.biome;
|
package com.dfsek.terra.addons.biome;
|
||||||
|
|
||||||
|
import com.dfsek.terra.api.properties.Context;
|
||||||
import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
||||||
import com.dfsek.terra.api.world.World;
|
import com.dfsek.terra.api.world.World;
|
||||||
import com.dfsek.terra.api.world.biome.Biome;
|
import com.dfsek.terra.api.world.biome.Biome;
|
||||||
@@ -19,6 +20,7 @@ public class UserDefinedBiome implements TerraBiome {
|
|||||||
private final int color;
|
private final int color;
|
||||||
private final Set<String> tags;
|
private final Set<String> tags;
|
||||||
|
|
||||||
|
private final Context context = new Context();
|
||||||
|
|
||||||
public UserDefinedBiome(ProbabilityCollection<Biome> vanilla, UserDefinedGenerator gen, BiomeTemplate config) {
|
public UserDefinedBiome(ProbabilityCollection<Biome> vanilla, UserDefinedGenerator gen, BiomeTemplate config) {
|
||||||
this.vanilla = vanilla;
|
this.vanilla = vanilla;
|
||||||
@@ -68,4 +70,9 @@ public class UserDefinedBiome implements TerraBiome {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return "{BIOME:" + getID() + "}";
|
return "{BIOME:" + getID() + "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Context getContext() {
|
||||||
|
return context;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.dfsek.terra.api.world.biome;
|
package com.dfsek.terra.api.world.biome;
|
||||||
|
|
||||||
|
|
||||||
|
import com.dfsek.terra.api.properties.PropertyHolder;
|
||||||
import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
||||||
import com.dfsek.terra.api.world.World;
|
import com.dfsek.terra.api.world.World;
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ import java.util.Set;
|
|||||||
/**
|
/**
|
||||||
* Represents a custom biome
|
* Represents a custom biome
|
||||||
*/
|
*/
|
||||||
public interface TerraBiome {
|
public interface TerraBiome extends PropertyHolder {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Vanilla biome to represent the custom biome.
|
* Gets the Vanilla biome to represent the custom biome.
|
||||||
|
|||||||
Reference in New Issue
Block a user