Search in sources :

Example 26 with Settings

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;
}
Also used : DimletKey(mcjty.rftoolsdim.dimensions.dimlets.DimletKey) Settings(mcjty.rftoolsdim.config.Settings)

Example 27 with Settings

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;
}
Also used : DimletKey(mcjty.rftoolsdim.dimensions.dimlets.DimletKey) Settings(mcjty.rftoolsdim.config.Settings)

Example 28 with Settings

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;
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) Block(net.minecraft.block.Block) DimletKey(mcjty.rftoolsdim.dimensions.dimlets.DimletKey) Settings(mcjty.rftoolsdim.config.Settings)

Example 29 with Settings

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;
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) Block(net.minecraft.block.Block) DimletKey(mcjty.rftoolsdim.dimensions.dimlets.DimletKey) Settings(mcjty.rftoolsdim.config.Settings)

Example 30 with Settings

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;
}
Also used : DimletKey(mcjty.rftoolsdim.dimensions.dimlets.DimletKey) Settings(mcjty.rftoolsdim.config.Settings)

Aggregations

Settings (mcjty.rftoolsdim.config.Settings)33 DimletKey (mcjty.rftoolsdim.dimensions.dimlets.DimletKey)16 ItemStack (net.minecraft.item.ItemStack)9 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)6 ArrayList (java.util.ArrayList)5 Block (net.minecraft.block.Block)5 ResourceLocation (net.minecraft.util.ResourceLocation)5 Filter (mcjty.rftoolsdim.config.Filter)3 DimensionDescriptor (mcjty.rftoolsdim.dimensions.description.DimensionDescriptor)3 IBlockState (net.minecraft.block.state.IBlockState)3 ImmutableMap (com.google.common.collect.ImmutableMap)2 DimletType (mcjty.rftoolsdim.dimensions.dimlets.types.DimletType)2 BlockLiquid (net.minecraft.block.BlockLiquid)2 IProperty (net.minecraft.block.properties.IProperty)2 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 SortedMap (java.util.SortedMap)1 IFilterBuilder (mcjty.rftoolsdim.api.dimlet.IFilterBuilder)1 ISettingsBuilder (mcjty.rftoolsdim.api.dimlet.ISettingsBuilder)1