Mergening: Natura
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.api.config;
|
||||
|
||||
public interface IPacksConfig {
|
||||
|
||||
boolean isNaturaPackEnabled();
|
||||
|
||||
}
|
||||
@@ -19,4 +19,9 @@ public interface IUserConfig {
|
||||
* Configuration options related to third party mod integration.
|
||||
*/
|
||||
IIntegrationConfig integrationConfig();
|
||||
|
||||
/**
|
||||
* Configuration options related to extra drawer packs.
|
||||
*/
|
||||
IPacksConfig packsConfig();
|
||||
}
|
||||
@@ -6,13 +6,14 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraftforge.common.config.ConfigCategory;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IAddonConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IBlockConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IIntegrationConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IPacksConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IUserConfig;
|
||||
import net.minecraftforge.common.config.ConfigCategory;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockConfiguration;
|
||||
|
||||
public class ConfigManager {
|
||||
@@ -81,6 +82,7 @@ public class ConfigManager {
|
||||
public boolean enableThermalFoundationIntegration;
|
||||
public boolean enableChiselIntegration;
|
||||
public boolean enableGTNHIntegration;
|
||||
public boolean enableNaturaPack;
|
||||
public boolean enableTape;
|
||||
public boolean enableFallbackRecipes;
|
||||
public boolean enableFramedDrawers;
|
||||
@@ -181,6 +183,12 @@ public class ConfigManager {
|
||||
}
|
||||
}
|
||||
|
||||
private class PacksConfig implements IPacksConfig {
|
||||
|
||||
@Override
|
||||
public boolean isNaturaPackEnabled() { return cache.enableNaturaPack; }
|
||||
}
|
||||
|
||||
private class UserConfig implements IUserConfig {
|
||||
|
||||
@Override
|
||||
@@ -197,6 +205,9 @@ public class ConfigManager {
|
||||
public IIntegrationConfig integrationConfig() {
|
||||
return integrationConfig;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPacksConfig packsConfig() { return packsConfig; }
|
||||
}
|
||||
|
||||
private static final String LANG_PREFIX = "storageDrawers.config.";
|
||||
@@ -207,6 +218,7 @@ public class ConfigManager {
|
||||
public final List<ConfigSection> sections = new ArrayList<ConfigSection>();
|
||||
public final ConfigSection sectionGeneral = new ConfigSection(sections, "general", "general");
|
||||
public final ConfigSection sectionIntegration = new ConfigSection(sections, "integration", "integration");
|
||||
public final ConfigSection sectionPacks = new ConfigSection(sections, "packs", "packs");
|
||||
public final ConfigSection sectionBlocks = new ConfigSection(sections, "blocks", "blocks");
|
||||
public final ConfigSection sectionUpgrades = new ConfigSection(sections, "upgrades", "upgrades");
|
||||
public final ConfigSection sectionAddons = new ConfigSection(sections, "addons", "addons");
|
||||
@@ -263,6 +275,7 @@ public class ConfigManager {
|
||||
public IAddonConfig addonConfig = new AddonConfig();
|
||||
public IBlockConfig blockConfig = new BlockConfig();
|
||||
public IIntegrationConfig integrationConfig = new IntegrationConfig();
|
||||
public IPacksConfig packsConfig = new PacksConfig();
|
||||
public IUserConfig userConfig = new UserConfig();
|
||||
|
||||
// private Property itemRenderType;
|
||||
@@ -376,6 +389,9 @@ public class ConfigManager {
|
||||
cache.enableGTNHIntegration = config.get(sectionIntegration.getQualifiedName(), "enableGTNH", true)
|
||||
.setLanguageKey(LANG_PREFIX + "integration.enableGTNH").setRequiresMcRestart(true).getBoolean();
|
||||
|
||||
cache.enableNaturaPack = config.get(sectionPacks.getQualifiedName(), "enableNatura", true)
|
||||
.setLanguageKey(LANG_PREFIX + "packs.enableNatura").setRequiresMcRestart(true).getBoolean();
|
||||
|
||||
config.get(sectionBlocksFullDrawers1x1.getQualifiedName(), "enabled", true)
|
||||
.setLanguageKey(LANG_PREFIX + "prop.enabled").setRequiresMcRestart(true);
|
||||
config.get(sectionBlocksFullDrawers1x1.getQualifiedName(), "baseStorage", 32)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.natura;
|
||||
|
||||
public class CommonProxy {
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.natura;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.StorageDrawers;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.IStorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.StorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.natura.core.DataResolver;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.natura.core.ModBlocks;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.natura.core.RefinedRelocation;
|
||||
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
@Mod(
|
||||
modid = StorageDrawersPack.MOD_ID,
|
||||
name = StorageDrawersPack.MOD_NAME,
|
||||
version = StorageDrawersPack.MOD_VERSION,
|
||||
dependencies = "required-after:StorageDrawers;")
|
||||
public class StorageDrawersPack {
|
||||
|
||||
public static final String MOD_ID = "StorageDrawersNatura";
|
||||
public static final String MOD_NAME = "Storage Drawers: Natura Pack";
|
||||
public static final String MOD_VERSION = "GRADLETOKEN_VERSION";
|
||||
public static final String SOURCE_PATH = "com.jaquadro.minecraft.storagedrawers.packs.natura.";
|
||||
|
||||
public DataResolver resolver = new DataResolver(MOD_ID);
|
||||
|
||||
public ModBlocks blocks = new ModBlocks();
|
||||
|
||||
@Mod.Instance(MOD_ID)
|
||||
public static StorageDrawersPack instance;
|
||||
|
||||
@SidedProxy(clientSide = SOURCE_PATH + "CommonProxy", serverSide = SOURCE_PATH + "CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isNaturaPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
blocks.init();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isNaturaPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
RefinedRelocation.init();
|
||||
resolver.init();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isNaturaPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api != null) {
|
||||
api.registerStandardPackRecipes(resolver);
|
||||
api.packFactory().registerResolver(resolver);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.natura.core;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockConfiguration;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockType;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.ExtendedDataResolver;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class DataResolver extends ExtendedDataResolver {
|
||||
|
||||
private static String[] textureNames = new String[] { "eucalyptus", "sakura", "ghostwood", "redwood", "bloodwood",
|
||||
"hopseed", "maple", "silverbell", "purpleheart", "tigerwood", "willow", "darkwood", "fusewood" };
|
||||
|
||||
public DataResolver(String modID) {
|
||||
super(modID, textureNames);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CreativeTabs getCreativeTabs(BlockType type) {
|
||||
return ModCreativeTabs.getTabStorageDrawers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block getBlock(BlockConfiguration blockConfig) {
|
||||
switch (blockConfig.getBlockType()) {
|
||||
case Drawers:
|
||||
if (blockConfig.getDrawerCount() == 1) return ModBlocks.fullDrawers1;
|
||||
if (blockConfig.getDrawerCount() == 2 && !blockConfig.isHalfDepth()) return ModBlocks.fullDrawers2;
|
||||
if (blockConfig.getDrawerCount() == 4 && !blockConfig.isHalfDepth()) return ModBlocks.fullDrawers4;
|
||||
if (blockConfig.getDrawerCount() == 2 && blockConfig.isHalfDepth()) return ModBlocks.halfDrawers2;
|
||||
if (blockConfig.getDrawerCount() == 4 && blockConfig.isHalfDepth()) return ModBlocks.halfDrawers4;
|
||||
break;
|
||||
case DrawersSorting:
|
||||
if (blockConfig.getDrawerCount() == 1) return RefinedRelocation.fullDrawers1;
|
||||
if (blockConfig.getDrawerCount() == 2 && !blockConfig.isHalfDepth())
|
||||
return RefinedRelocation.fullDrawers2;
|
||||
if (blockConfig.getDrawerCount() == 4 && !blockConfig.isHalfDepth())
|
||||
return RefinedRelocation.fullDrawers4;
|
||||
if (blockConfig.getDrawerCount() == 2 && blockConfig.isHalfDepth())
|
||||
return RefinedRelocation.halfDrawers2;
|
||||
if (blockConfig.getDrawerCount() == 4 && blockConfig.isHalfDepth())
|
||||
return RefinedRelocation.halfDrawers4;
|
||||
break;
|
||||
case Trim:
|
||||
return ModBlocks.trim;
|
||||
case TrimSorting:
|
||||
return RefinedRelocation.trim;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
for (int i = 0, p = 0, m = 0; i < 8; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("Natura", "planks"),
|
||||
p,
|
||||
GameRegistry.findBlock("Natura", "plankSlab1"),
|
||||
m);
|
||||
for (int i = 8, p = 8, m = 0; i < textureNames.length; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("Natura", "planks"),
|
||||
p,
|
||||
GameRegistry.findBlock("Natura", "plankSlab2"),
|
||||
m);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.natura.core;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.api.IStorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.StorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IBlockConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IUserConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockConfiguration;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.IPackBlockFactory;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.IPackDataResolver;
|
||||
import com.jaquadro.minecraft.storagedrawers.block.tile.TileEntityDrawersStandard;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.natura.StorageDrawersPack;
|
||||
|
||||
import cpw.mods.fml.common.ObfuscationReflectionHelper;
|
||||
import cpw.mods.fml.common.registry.GameData;
|
||||
|
||||
public class ModBlocks {
|
||||
|
||||
public static Block fullDrawers1;
|
||||
public static Block fullDrawers2;
|
||||
public static Block fullDrawers4;
|
||||
public static Block halfDrawers2;
|
||||
public static Block halfDrawers4;
|
||||
public static Block trim;
|
||||
|
||||
public void init() {
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api == null) return;
|
||||
|
||||
IPackBlockFactory factory = api.packFactory();
|
||||
IPackDataResolver resolver = StorageDrawersPack.instance.resolver;
|
||||
|
||||
fullDrawers1 = factory.createBlock(BlockConfiguration.BasicFull1, resolver);
|
||||
fullDrawers2 = factory.createBlock(BlockConfiguration.BasicFull2, resolver);
|
||||
fullDrawers4 = factory.createBlock(BlockConfiguration.BasicFull4, resolver);
|
||||
halfDrawers2 = factory.createBlock(BlockConfiguration.BasicHalf2, resolver);
|
||||
halfDrawers4 = factory.createBlock(BlockConfiguration.BasicHalf4, resolver);
|
||||
trim = factory.createBlock(BlockConfiguration.Trim, resolver);
|
||||
|
||||
IUserConfig config = api.userConfig();
|
||||
IBlockConfig blockConfig = config.blockConfig();
|
||||
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull1)))
|
||||
factory.registerBlock(fullDrawers1, "fullDrawers1");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull2)))
|
||||
factory.registerBlock(fullDrawers2, "fullDrawers2");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull4)))
|
||||
factory.registerBlock(fullDrawers4, "fullDrawers4");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf2)))
|
||||
factory.registerBlock(halfDrawers2, "halfDrawers2");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf4)))
|
||||
factory.registerBlock(halfDrawers4, "halfDrawers4");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.Trim)))
|
||||
factory.registerBlock(trim, "trim");
|
||||
|
||||
if (!config.addonConfig().showAddonItemsNEI()) {
|
||||
factory.hideBlock(getQualifiedName(fullDrawers1));
|
||||
factory.hideBlock(getQualifiedName(fullDrawers2));
|
||||
factory.hideBlock(getQualifiedName(fullDrawers4));
|
||||
factory.hideBlock(getQualifiedName(halfDrawers2));
|
||||
factory.hideBlock(getQualifiedName(halfDrawers4));
|
||||
factory.hideBlock(getQualifiedName(trim));
|
||||
}
|
||||
|
||||
addAlternativeTileEntityMappings(
|
||||
TileEntityDrawersStandard.class,
|
||||
getQualifiedName(fullDrawers1),
|
||||
getQualifiedName(fullDrawers2),
|
||||
getQualifiedName(fullDrawers4),
|
||||
getQualifiedName(halfDrawers2),
|
||||
getQualifiedName(halfDrawers4));
|
||||
}
|
||||
|
||||
public static String getQualifiedName(Block block) {
|
||||
return GameData.getBlockRegistry().getNameForObject(block);
|
||||
}
|
||||
|
||||
public static void addAlternativeTileEntityMappings(Class<? extends TileEntity> tileEntityClass,
|
||||
String... alternatives) {
|
||||
Map<String, Class<?>> teMappings = ObfuscationReflectionHelper
|
||||
.getPrivateValue(TileEntity.class, null, "field_" + "145855_i", "nameToClassMap");
|
||||
for (String s : alternatives) {
|
||||
if (!teMappings.containsKey(s)) {
|
||||
teMappings.put(s, tileEntityClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.natura.core;
|
||||
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.api.IStorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.StorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IBlockConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IUserConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockConfiguration;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public final class ModCreativeTabs {
|
||||
|
||||
private ModCreativeTabs() {}
|
||||
|
||||
private static CreativeTabs tabStorageDrawers = null;
|
||||
|
||||
public static CreativeTabs getTabStorageDrawers() {
|
||||
if (tabStorageDrawers != null) return tabStorageDrawers;
|
||||
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api == null) return null;
|
||||
|
||||
IUserConfig config = api.userConfig();
|
||||
if (config.addonConfig().addonItemsUseSeparateTab() && config.addonConfig().showAddonItemsVanilla()) {
|
||||
tabStorageDrawers = new CreativeTabs("storageDrawersNatura") {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Item getTabIconItem() {
|
||||
return getTabItem();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return tabStorageDrawers;
|
||||
}
|
||||
|
||||
private static Item getTabItem() {
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api == null) return Item.getItemFromBlock(Blocks.chest);
|
||||
|
||||
IBlockConfig blockConfig = api.userConfig().blockConfig();
|
||||
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull2)))
|
||||
return Item.getItemFromBlock(ModBlocks.fullDrawers2);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull4)))
|
||||
return Item.getItemFromBlock(ModBlocks.fullDrawers4);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull1)))
|
||||
return Item.getItemFromBlock(ModBlocks.fullDrawers1);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf2)))
|
||||
return Item.getItemFromBlock(ModBlocks.halfDrawers2);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf4)))
|
||||
return Item.getItemFromBlock(ModBlocks.halfDrawers4);
|
||||
|
||||
return Item.getItemFromBlock(Blocks.chest);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.natura.core;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
import com.jaquadro.minecraft.storagedrawers.api.IStorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.StorageDrawersApi;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IBlockConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.config.IUserConfig;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockConfiguration;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.IPackBlockFactory;
|
||||
import com.jaquadro.minecraft.storagedrawers.api.pack.IPackDataResolver;
|
||||
import com.jaquadro.minecraft.storagedrawers.integration.refinedrelocation.TileSortingDrawersStandard;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.natura.StorageDrawersPack;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
public class RefinedRelocation {
|
||||
|
||||
public static Block fullDrawers1;
|
||||
public static Block fullDrawers2;
|
||||
public static Block fullDrawers4;
|
||||
public static Block halfDrawers2;
|
||||
public static Block halfDrawers4;
|
||||
public static Block trim;
|
||||
|
||||
public static void init() {
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api == null) return;
|
||||
|
||||
if (!Loader.isModLoaded("RefinedRelocation")
|
||||
|| !api.userConfig().integrationConfig().isRefinedRelocationEnabled())
|
||||
return;
|
||||
|
||||
IPackBlockFactory factory = api.packFactory();
|
||||
IPackDataResolver resolver = StorageDrawersPack.instance.resolver;
|
||||
|
||||
fullDrawers1 = factory.createBlock(BlockConfiguration.SortingFull1, resolver);
|
||||
fullDrawers2 = factory.createBlock(BlockConfiguration.SortingFull2, resolver);
|
||||
fullDrawers4 = factory.createBlock(BlockConfiguration.SortingFull4, resolver);
|
||||
halfDrawers2 = factory.createBlock(BlockConfiguration.SortingHalf2, resolver);
|
||||
halfDrawers4 = factory.createBlock(BlockConfiguration.SortingHalf4, resolver);
|
||||
trim = factory.createBlock(BlockConfiguration.TrimSorting, resolver);
|
||||
|
||||
factory.bindSortingBlock(ModBlocks.fullDrawers1, fullDrawers1);
|
||||
factory.bindSortingBlock(ModBlocks.fullDrawers2, fullDrawers2);
|
||||
factory.bindSortingBlock(ModBlocks.fullDrawers4, fullDrawers4);
|
||||
factory.bindSortingBlock(ModBlocks.halfDrawers2, halfDrawers2);
|
||||
factory.bindSortingBlock(ModBlocks.halfDrawers4, halfDrawers4);
|
||||
factory.bindSortingBlock(ModBlocks.trim, trim);
|
||||
|
||||
IUserConfig config = api.userConfig();
|
||||
IBlockConfig blockConfig = config.blockConfig();
|
||||
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingFull1)))
|
||||
factory.registerBlock(fullDrawers1, "fullDrawersSort1");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingFull2)))
|
||||
factory.registerBlock(fullDrawers2, "fullDrawersSort2");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingFull4)))
|
||||
factory.registerBlock(fullDrawers4, "fullDrawersSort4");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingHalf2)))
|
||||
factory.registerBlock(halfDrawers2, "halfDrawersSort2");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingHalf4)))
|
||||
factory.registerBlock(halfDrawers4, "halfDrawersSort4");
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.TrimSorting)))
|
||||
factory.registerBlock(trim, "trimSort");
|
||||
|
||||
if (!config.addonConfig().showAddonItemsNEI()) {
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(fullDrawers1));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(fullDrawers2));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(fullDrawers4));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(halfDrawers2));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(halfDrawers4));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(trim));
|
||||
}
|
||||
|
||||
ModBlocks.addAlternativeTileEntityMappings(
|
||||
TileSortingDrawersStandard.class,
|
||||
ModBlocks.getQualifiedName(fullDrawers1),
|
||||
ModBlocks.getQualifiedName(fullDrawers2),
|
||||
ModBlocks.getQualifiedName(fullDrawers4),
|
||||
ModBlocks.getQualifiedName(halfDrawers2),
|
||||
ModBlocks.getQualifiedName(halfDrawers4));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
itemGroup.storageDrawersNatura=Storage Drawers: Natura Pack
|
||||
|
||||
# Blocks
|
||||
tile.storagedrawersnatura.fullDrawers1.eucalyptus.name=Eucalyptus Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.sakura.name=Sakura Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.ghostwood.name=Ghostwood Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.redwood.name=Redwood Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.bloodwood.name=Blood Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.hopseed.name=Hopseed Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.maple.name=Maple Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.silverbell.name=Silverbell Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.purpleheart.name=Amaranth Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.tigerwood.name=Tigerwood Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.willow.name=Willow Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.darkwood.name=Darkwood Drawer
|
||||
tile.storagedrawersnatura.fullDrawers1.fusewood.name=Fusewood Drawer
|
||||
|
||||
tile.storagedrawersnatura.fullDrawers2.eucalyptus.name=Eucalyptus Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.sakura.name=Sakura Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.ghostwood.name=Ghostwood Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.redwood.name=Redwood Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.bloodwood.name=Blood Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.hopseed.name=Hopseed Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.maple.name=Maple Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.silverbell.name=Silverbell Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.purpleheart.name=Amaranth Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.tigerwood.name=Tigerwood Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.willow.name=Willow Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.darkwood.name=Darkwood Drawers 1x2
|
||||
tile.storagedrawersnatura.fullDrawers2.fusewood.name=Fusewood Drawers 1x2
|
||||
|
||||
tile.storagedrawersnatura.fullDrawers4.eucalyptus.name=Eucalyptus Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.sakura.name=Sakura Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.ghostwood.name=Ghostwood Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.redwood.name=Redwood Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.bloodwood.name=Blood Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.hopseed.name=Hopseed Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.maple.name=Maple Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.silverbell.name=Silverbell Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.purpleheart.name=Amaranth Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.tigerwood.name=Tigerwood Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.willow.name=Willow Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.darkwood.name=Darkwood Drawers 2x2
|
||||
tile.storagedrawersnatura.fullDrawers4.fusewood.name=Fusewood Drawers 2x2
|
||||
|
||||
tile.storagedrawersnatura.halfDrawers2.eucalyptus.name=Compact Eucalyptus Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.sakura.name=Compact Sakura Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.ghostwood.name=Compact Ghostwood Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.redwood.name=Compact Redwood Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.bloodwood.name=Compact Blood Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.hopseed.name=Compact Hopseed Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.maple.name=Compact Maple Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.silverbell.name=Compact Silverbell Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.purpleheart.name=Compact Amaranth Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.tigerwood.name=Compact Tigerwood Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.willow.name=Compact Willow Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.darkwood.name=Compact Darkwood Drawers 1x2
|
||||
tile.storagedrawersnatura.halfDrawers2.fusewood.name=Compact Fusewood Drawers 1x2
|
||||
|
||||
tile.storagedrawersnatura.halfDrawers4.eucalyptus.name=Compact Eucalyptus Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.sakura.name=Compact Sakura Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.ghostwood.name=Compact Ghostwood Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.redwood.name=Compact Redwood Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.bloodwood.name=Compact Blood Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.hopseed.name=Compact Hopseed Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.maple.name=Compact Maple Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.silverbell.name=Compact Silverbell Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.purpleheart.name=Compact Amaranth Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.tigerwood.name=Compact Tigerwood Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.willow.name=Compact Willow Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.darkwood.name=Compact Darkwood Drawers 2x2
|
||||
tile.storagedrawersnatura.halfDrawers4.fusewood.name=Compact Fusewood Drawers 2x2
|
||||
|
||||
tile.storagedrawersnatura.trim.eucalyptus.name=Eucalyptus Trim
|
||||
tile.storagedrawersnatura.trim.sakura.name=Sakura Trim
|
||||
tile.storagedrawersnatura.trim.ghostwood.name=Ghostwood Trim
|
||||
tile.storagedrawersnatura.trim.redwood.name=Redwood Trim
|
||||
tile.storagedrawersnatura.trim.bloodwood.name=Blood Trim
|
||||
tile.storagedrawersnatura.trim.hopseed.name=Hopseed Trim
|
||||
tile.storagedrawersnatura.trim.maple.name=Maple Trim
|
||||
tile.storagedrawersnatura.trim.silverbell.name=Silverbell Trim
|
||||
tile.storagedrawersnatura.trim.purpleheart.name=Amaranth Trim
|
||||
tile.storagedrawersnatura.trim.tigerwood.name=Tigerwood Trim
|
||||
tile.storagedrawersnatura.trim.willow.name=Willow Trim
|
||||
tile.storagedrawersnatura.trim.darkwood.name=Darkwood Trim
|
||||
tile.storagedrawersnatura.trim.fusewood.name=Fusewood Trim
|
||||
@@ -0,0 +1,86 @@
|
||||
itemGroup.storageDrawersNatura=储物抽屉|Natura
|
||||
|
||||
|
||||
tile.storagedrawersnatura.fullDrawers1.eucalyptus.name=桉树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.sakura.name=樱花树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.ghostwood.name=幽魂树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.redwood.name=红木树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.bloodwood.name=血树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.hopseed.name=车桑子树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.maple.name=枫树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.silverbell.name=银铃树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.purpleheart.name=紫檀树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.tigerwood.name=核桃树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.willow.name=柳树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.darkwood.name=黑暗树抽屉
|
||||
tile.storagedrawersnatura.fullDrawers1.fusewood.name=熔融树抽屉
|
||||
|
||||
tile.storagedrawersnatura.fullDrawers2.eucalyptus.name=桉树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.sakura.name=樱花树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.ghostwood.name=幽魂树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.redwood.name=红木树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.bloodwood.name=血树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.hopseed.name=车桑子树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.maple.name=枫树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.silverbell.name=银铃树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.purpleheart.name=紫檀树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.tigerwood.name=核桃树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.willow.name=柳树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.darkwood.name=黑暗树抽屉(1x2)
|
||||
tile.storagedrawersnatura.fullDrawers2.fusewood.name=熔融树抽屉(1x2)
|
||||
|
||||
tile.storagedrawersnatura.fullDrawers4.eucalyptus.name=桉树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.sakura.name=樱花树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.ghostwood.name=幽魂树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.redwood.name=红木树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.bloodwood.name=血树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.hopseed.name=车桑子树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.maple.name=枫树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.silverbell.name=银铃树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.purpleheart.name=紫檀树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.tigerwood.name=核桃树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.willow.name=柳树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.darkwood.name=黑暗树抽屉(2x2)
|
||||
tile.storagedrawersnatura.fullDrawers4.fusewood.name=熔融树抽屉(2x2)
|
||||
|
||||
tile.storagedrawersnatura.halfDrawers2.eucalyptus.name=小型桉树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.sakura.name=小型樱花树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.ghostwood.name=小型幽魂树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.redwood.name=小型红木树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.bloodwood.name=小型血树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.hopseed.name=小型车桑子树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.maple.name=小型枫树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.silverbell.name=小型银铃树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.purpleheart.name=小型紫檀树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.tigerwood.name=小型核桃树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.willow.name=小型柳树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.darkwood.name=小型黑暗树抽屉(1x2)
|
||||
tile.storagedrawersnatura.halfDrawers2.fusewood.name=小型熔融树抽屉(1x2)
|
||||
|
||||
tile.storagedrawersnatura.halfDrawers4.eucalyptus.name=小型桉树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.sakura.name=小型樱花树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.ghostwood.name=小型幽魂树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.redwood.name=小型红木树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.bloodwood.name=小型血树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.hopseed.name=小型车桑子树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.maple.name=小型枫树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.silverbell.name=小型银铃树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.purpleheart.name=小型紫檀树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.tigerwood.name=小型核桃树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.willow.name=小型柳树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.darkwood.name=小型黑暗树抽屉(2x2)
|
||||
tile.storagedrawersnatura.halfDrawers4.fusewood.name=小型熔融树抽屉(2x2)
|
||||
|
||||
tile.storagedrawersnatura.trim.eucalyptus.name=桉树桥接方块
|
||||
tile.storagedrawersnatura.trim.sakura.name=樱花树桥接方块
|
||||
tile.storagedrawersnatura.trim.ghostwood.name=幽魂树桥接方块
|
||||
tile.storagedrawersnatura.trim.redwood.name=红木树桥接方块
|
||||
tile.storagedrawersnatura.trim.bloodwood.name=血树桥接方块
|
||||
tile.storagedrawersnatura.trim.hopseed.name=车桑子树桥接方块
|
||||
tile.storagedrawersnatura.trim.maple.name=枫树桥接方块
|
||||
tile.storagedrawersnatura.trim.silverbell.name=银铃树桥接方块
|
||||
tile.storagedrawersnatura.trim.purpleheart.name=紫檀树桥接方块
|
||||
tile.storagedrawersnatura.trim.tigerwood.name=核桃树桥接方块
|
||||
tile.storagedrawersnatura.trim.willow.name=柳树桥接方块
|
||||
tile.storagedrawersnatura.trim.darkwood.name=黑暗树桥接方块
|
||||
tile.storagedrawersnatura.trim.fusewood.name=熔融树桥接方块
|
||||
|
After Width: | Height: | Size: 656 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 408 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 572 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 802 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 687 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 675 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 681 B |
|
After Width: | Height: | Size: 698 B |
|
After Width: | Height: | Size: 705 B |
|
After Width: | Height: | Size: 643 B |
|
After Width: | Height: | Size: 647 B |
|
After Width: | Height: | Size: 661 B |
|
After Width: | Height: | Size: 657 B |
|
After Width: | Height: | Size: 556 B |
|
After Width: | Height: | Size: 351 B |
|
After Width: | Height: | Size: 362 B |
|
After Width: | Height: | Size: 391 B |
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 320 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 323 B |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 368 B |
|
After Width: | Height: | Size: 382 B |
|
After Width: | Height: | Size: 409 B |
|
After Width: | Height: | Size: 323 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 335 B |
|
After Width: | Height: | Size: 330 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 348 B |
|
After Width: | Height: | Size: 360 B |
|
After Width: | Height: | Size: 388 B |
|
After Width: | Height: | Size: 312 B |
|
After Width: | Height: | Size: 316 B |
|
After Width: | Height: | Size: 324 B |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 303 B |
|
After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 344 B |
|
After Width: | Height: | Size: 368 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 303 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 293 B |
|
After Width: | Height: | Size: 640 B |
|
After Width: | Height: | Size: 647 B |
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 562 B |
|
After Width: | Height: | Size: 568 B |
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 534 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 369 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 326 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 343 B |
|
After Width: | Height: | Size: 356 B |
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 310 B |
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 315 B |