Configs
This commit is contained in:
parent
fedabca931
commit
5fdc1d8b93
4 changed files with 26 additions and 14 deletions
|
@ -1,18 +1,10 @@
|
|||
package ru.betterend.config;
|
||||
|
||||
public class Configs {
|
||||
public static final IdConfig ITEM_CONFIG = new IdConfig("items", (itemId, category) -> {
|
||||
return new ConfigKey(itemId.getNamespace(), category, itemId.getPath());
|
||||
});
|
||||
public static final IdConfig BLOCK_CONFIG = new IdConfig("blocks", (blockId, category) -> {
|
||||
return new ConfigKey(blockId.getNamespace(), category, blockId.getPath());
|
||||
});
|
||||
public static final IdConfig BIOME_CONFIG = new IdConfig("biomes", (biomeId, entry) -> {
|
||||
return new ConfigKey(biomeId.getNamespace(), biomeId.getPath(), entry);
|
||||
});
|
||||
public static final IdConfig ENTITY_CONFIG = new IdConfig("entities", (entityId, category) -> {
|
||||
return new ConfigKey(entityId.getNamespace(), category, entityId.getPath());
|
||||
});
|
||||
public static final IdConfig ITEM_CONFIG = new CategoryConfig("items");
|
||||
public static final IdConfig BLOCK_CONFIG = new CategoryConfig("blocks");
|
||||
public static final IdConfig ENTITY_CONFIG = new CategoryConfig("entities");
|
||||
public static final IdConfig BIOME_CONFIG = new EntryConfig("biomes");
|
||||
public static final SimpleConfig GENERATOR_CONFIG = new SimpleConfig("generator");
|
||||
|
||||
public static void saveConfigs() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue