use of mcjty.rftoolsdim.config.Settings in project RFToolsDimensions by McJty.
the class BiomeDimletType method findBiomeDimlet.
private static DimletKey findBiomeDimlet(NBTTagCompound essenceCompound) {
String biome = essenceCompound.getString("biome");
DimletKey key = new DimletKey(DimletType.DIMLET_BIOME, biome);
Settings settings = KnownDimletConfiguration.getSettings(key);
if (settings == null || !settings.isDimlet()) {
return null;
}
return key;
}
use of mcjty.rftoolsdim.config.Settings in project RFToolsDimensions by McJty.
the class FeatureDimletType method findFeatureDimlet.
private static DimletKey findFeatureDimlet(NBTTagCompound essenceCompound) {
String feature = essenceCompound.getString("feature");
DimletKey key = new DimletKey(DimletType.DIMLET_FEATURE, feature);
Settings settings = KnownDimletConfiguration.getSettings(key);
if (settings == null || !settings.isDimlet()) {
return null;
}
return key;
}
use of mcjty.rftoolsdim.config.Settings in project RFToolsDimensions by McJty.
the class LiquidDimletType method findLiquidDimlet.
private static DimletKey findLiquidDimlet(NBTTagCompound essenceCompound) {
Block block = Block.REGISTRY.getObject(new ResourceLocation(essenceCompound.getString("liquid")));
DimletKey key = new DimletKey(DimletType.DIMLET_LIQUID, block.getRegistryName() + "@0");
Settings settings = KnownDimletConfiguration.getSettings(key);
if (settings == null || !settings.isDimlet()) {
return null;
}
return key;
}
use of mcjty.rftoolsdim.config.Settings in project RFToolsDimensions by McJty.
the class MaterialDimletType method findMaterialDimlet.
private static DimletKey findMaterialDimlet(NBTTagCompound essenceCompound) {
Block block = Block.REGISTRY.getObject(new ResourceLocation(essenceCompound.getString("block")));
int meta = essenceCompound.getInteger("meta");
DimletKey key = new DimletKey(DimletType.DIMLET_MATERIAL, block.getRegistryName() + "@" + meta);
Settings settings = KnownDimletConfiguration.getSettings(key);
if (settings == null || !settings.isDimlet()) {
return null;
}
return key;
}
use of mcjty.rftoolsdim.config.Settings in project RFToolsDimensions by McJty.
the class TerrainDimletType method findTerrainDimlet.
private static DimletKey findTerrainDimlet(NBTTagCompound essenceCompound) {
String terrain = essenceCompound.getString("terrain");
DimletKey key = new DimletKey(DimletType.DIMLET_TERRAIN, terrain);
Settings settings = KnownDimletConfiguration.getSettings(key);
if (settings == null || !settings.isDimlet()) {
return null;
}
return key;
}
Aggregations