Small fixes, custom biome data
This commit is contained in:
parent
6487efb3de
commit
6e882d08d9
4 changed files with 48 additions and 11 deletions
|
@ -1,8 +1,10 @@
|
|||
package ru.bclib.world.biomes;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.particles.ParticleOptions;
|
||||
|
@ -50,6 +52,7 @@ public class BCLBiomeDef {
|
|||
private final List<CarverInfo> carvers = Lists.newArrayList();
|
||||
private final List<SpawnInfo> mobs = Lists.newArrayList();
|
||||
private final List<SpawnerData> spawns = Lists.newArrayList();
|
||||
private final Map<String, Object> customData = Maps.newHashMap();
|
||||
|
||||
private final ResourceLocation id;
|
||||
|
||||
|
@ -369,4 +372,12 @@ public class BCLBiomeDef {
|
|||
carvers.add(info);
|
||||
return this;
|
||||
}
|
||||
|
||||
public void addCustomData(String name, Object value) {
|
||||
customData.put(name, value);
|
||||
}
|
||||
|
||||
protected Map<String, Object> getCustomData() {
|
||||
return customData;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue