Mergening: Erebus and Misc Pack
No files matched your search
@@ -8,4 +8,7 @@ public interface IPacksConfig {
|
||||
|
||||
boolean isForestryPackEnabled();
|
||||
|
||||
boolean isErebusPackEnabled();
|
||||
|
||||
boolean isMiscPackEnabled();
|
||||
}
|
||||
@@ -85,6 +85,8 @@ public class ConfigManager {
|
||||
public boolean enableNaturaPack;
|
||||
public boolean enableBopPack;
|
||||
public boolean enableForestryPack;
|
||||
public boolean enableErebusPack;
|
||||
public boolean enableMiscPack;
|
||||
public boolean enableTape;
|
||||
public boolean enableFallbackRecipes;
|
||||
public boolean enableFramedDrawers;
|
||||
@@ -195,6 +197,12 @@ public class ConfigManager {
|
||||
|
||||
@Override
|
||||
public boolean isForestryPackEnabled() { return cache.enableForestryPack; }
|
||||
|
||||
@Override
|
||||
public boolean isErebusPackEnabled() { return cache.enableErebusPack; }
|
||||
|
||||
@Override
|
||||
public boolean isMiscPackEnabled() { return cache.enableMiscPack; }
|
||||
}
|
||||
|
||||
private class UserConfig implements IUserConfig {
|
||||
@@ -403,6 +411,10 @@ public class ConfigManager {
|
||||
.setLanguageKey(LANG_PREFIX + "packs.enableBop").setRequiresMcRestart(true).getBoolean();
|
||||
cache.enableForestryPack = config.get(sectionPacks.getQualifiedName(), "enableForestry", true)
|
||||
.setLanguageKey(LANG_PREFIX + "packs.enableForestry").setRequiresMcRestart(true).getBoolean();
|
||||
cache.enableErebusPack = config.get(sectionPacks.getQualifiedName(), "enableErebus", true)
|
||||
.setLanguageKey(LANG_PREFIX + "packs.enableErebus").setRequiresMcRestart(true).getBoolean();
|
||||
cache.enableMiscPack = config.get(sectionPacks.getQualifiedName(), "enableMisc", true)
|
||||
.setLanguageKey(LANG_PREFIX + "packs.enableMisc").setRequiresMcRestart(true).getBoolean();
|
||||
|
||||
config.get(sectionBlocksFullDrawers1x1.getQualifiedName(), "enabled", true)
|
||||
.setLanguageKey(LANG_PREFIX + "prop.enabled").setRequiresMcRestart(true);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.erebus;
|
||||
|
||||
public class CommonProxy
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.erebus;
|
||||
|
||||
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.erebus.core.*;
|
||||
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 = StorageDrawers.MOD_VERSION, dependencies = "required-after:StorageDrawers;")
|
||||
public class StorageDrawersPack
|
||||
{
|
||||
public static final String MOD_ID = "StorageDrawersErebus";
|
||||
public static final String MOD_NAME = "Storage Drawers: Erebus Pack";
|
||||
public static final String SOURCE_PATH = "com.jaquadro.minecraft.storagedrawers.packs.erebus.";
|
||||
|
||||
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().isErebusPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
blocks.init();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init (FMLInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isErebusPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
RefinedRelocation.init();
|
||||
resolver.init();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit (FMLPostInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isErebusPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api != null) {
|
||||
api.registerStandardPackRecipes(resolver);
|
||||
api.packFactory().registerResolver(resolver);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.erebus.core;
|
||||
|
||||
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 com.jaquadro.minecraft.storagedrawers.api.pack.StandardDataResolver;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class DataResolver extends ExtendedDataResolver
|
||||
{
|
||||
public static String[] blockNames = new String[] { "Baobab", "Eucalyptus", "Mahogany", "Mossbark", "Asper", "Cypress", null, "White", "Bamboo", "Rotten", "Marshwood", null, null, null, "Scorched", "Varnished" };
|
||||
public static String[] textureNames = new String[] { "baobab", "eucalyptus", "mahogany", "mossbark", "asper", "cypress", null, "white", "bamboo", "rotten", "marshwood", null, null, null, "scorched", "varnished" };
|
||||
|
||||
public DataResolver (String modID) {
|
||||
super(modID, blockNames);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CreativeTabs getCreativeTabs (BlockType type) {
|
||||
return ModCreativeTabs.getTabStorageDrawers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName (int meta) {
|
||||
if (!isValidMetaValue(meta))
|
||||
return null;
|
||||
|
||||
return textureNames[meta];
|
||||
}
|
||||
|
||||
@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 () {
|
||||
Block planks = GameRegistry.findBlock("erebus", "planks");
|
||||
for (int i = 0, p = 0; i < 6; i++, p++)
|
||||
setPlankSlab(i, planks, p, GameRegistry.findBlock("erebus", getPlankName(getUnlocalizedName(i))), 0);
|
||||
for (int i = 7, p = 7; i < 11; i++, p++)
|
||||
setPlankSlab(i, planks, p, GameRegistry.findBlock("erebus", getPlankName(getUnlocalizedName(i))), 0);
|
||||
for (int i = 14, p = 14; i < 15; i++, p++)
|
||||
setPlankSlab(i, GameRegistry.findBlock("erebus", "planks_scorched"), p, GameRegistry.findBlock("erebus", getPlankName(getUnlocalizedName(i))), 0);
|
||||
for (int i = 15, p = 15; i < 16; i++, p++)
|
||||
setPlankSlab(i, GameRegistry.findBlock("erebus", "planks_varnished"), p, GameRegistry.findBlock("erebus", getPlankName(getUnlocalizedName(i))), 0);
|
||||
}
|
||||
|
||||
private String getPlankName (String name) {
|
||||
return "slabPlanks" + Character.toUpperCase(name.charAt(0)) + name.substring(1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.erebus.core;
|
||||
|
||||
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.packs.erebus.StorageDrawersPack;
|
||||
import cpw.mods.fml.common.registry.GameData;
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
public static String getQualifiedName (Block block) {
|
||||
return GameData.getBlockRegistry().getNameForObject(block);
|
||||
}
|
||||
|
||||
public static String makeName (String name) {
|
||||
return StorageDrawersPack.MOD_ID.toLowerCase() + "." + name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.erebus.core;
|
||||
|
||||
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;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
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("storageDrawersErebus")
|
||||
{
|
||||
@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,73 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.erebus.core;
|
||||
|
||||
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.packs.erebus.StorageDrawersPack;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.misc;
|
||||
|
||||
public class CommonProxy {
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.misc;
|
||||
|
||||
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.api.pack.IExtendedDataResolver;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.misc.core.DataResolver;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.misc.core.ModBlocks;
|
||||
import com.jaquadro.minecraft.storagedrawers.packs.misc.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 = StorageDrawers.MOD_VERSION,
|
||||
dependencies = "required-after:StorageDrawers;")
|
||||
public class StorageDrawersPack {
|
||||
|
||||
public static final String MOD_ID = "StorageDrawersMisc";
|
||||
public static final String MOD_NAME = "Storage Drawers: Misc Pack";
|
||||
public static final String SOURCE_PATH = "com.jaquadro.minecraft.storagedrawers.packs.misc.";
|
||||
|
||||
public DataResolver[] resolvers = new DataResolver[] { new DataResolver(MOD_ID, 0), new DataResolver(MOD_ID, 1) };
|
||||
|
||||
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().isMiscPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
blocks.init();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isMiscPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
RefinedRelocation.init();
|
||||
for (DataResolver resolver : resolvers) resolver.init();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
if (!StorageDrawers.config.userConfig.packsConfig().isMiscPackEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
IStorageDrawersApi api = StorageDrawersApi.instance();
|
||||
if (api != null) {
|
||||
for (IExtendedDataResolver resolver : resolvers) {
|
||||
api.registerStandardPackRecipes(resolver);
|
||||
api.packFactory().registerResolver(resolver);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.misc.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 {
|
||||
|
||||
public static String[][] textureBank = new String[][] {
|
||||
new String[] { "ebxl_redwood", "ebxl_fir", "ebxl_acacia", "ebxl_cypress", "ebxl_japanesemaple",
|
||||
"ebxl_rainboweucalyptus", "ebxl_autumn", "ebxl_baldcypress", "ebxl_sakura" },
|
||||
new String[] { "hl_yellow", "hl_white", "hl_red", "hl_grey", "tc_greatwood", "tc_silverwood",
|
||||
"witchery_rowan", "witchery_alder", "witchery_hawthorn", "immeng_treated", "botania_livingwood",
|
||||
"botania_dreamwood" } };
|
||||
|
||||
private int bank;
|
||||
|
||||
public DataResolver(String modID, int bankNumber) {
|
||||
super(modID, textureBank[bankNumber]);
|
||||
bank = bankNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CreativeTabs getCreativeTabs(BlockType type) {
|
||||
return ModCreativeTabs.getTabStorageDrawers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block getBlock(BlockConfiguration blockConfig) {
|
||||
switch (blockConfig.getBlockType()) {
|
||||
case Drawers:
|
||||
if (blockConfig.getDrawerCount() == 1 && ModBlocks.fullDrawers1 != null)
|
||||
return ModBlocks.fullDrawers1[bank];
|
||||
if (blockConfig.getDrawerCount() == 2 && !blockConfig.isHalfDepth() && ModBlocks.fullDrawers2 != null)
|
||||
return ModBlocks.fullDrawers2[bank];
|
||||
if (blockConfig.getDrawerCount() == 4 && !blockConfig.isHalfDepth() && ModBlocks.fullDrawers4 != null)
|
||||
return ModBlocks.fullDrawers4[bank];
|
||||
if (blockConfig.getDrawerCount() == 2 && blockConfig.isHalfDepth() && ModBlocks.halfDrawers2 != null)
|
||||
return ModBlocks.halfDrawers2[bank];
|
||||
if (blockConfig.getDrawerCount() == 4 && blockConfig.isHalfDepth() && ModBlocks.halfDrawers4 != null)
|
||||
return ModBlocks.halfDrawers4[bank];
|
||||
break;
|
||||
case DrawersSorting:
|
||||
if (blockConfig.getDrawerCount() == 1 && RefinedRelocation.fullDrawers1 != null)
|
||||
return RefinedRelocation.fullDrawers1[bank];
|
||||
if (blockConfig.getDrawerCount() == 2 && !blockConfig.isHalfDepth()
|
||||
&& RefinedRelocation.fullDrawers2 != null)
|
||||
return RefinedRelocation.fullDrawers2[bank];
|
||||
if (blockConfig.getDrawerCount() == 4 && !blockConfig.isHalfDepth()
|
||||
&& RefinedRelocation.fullDrawers4 != null)
|
||||
return RefinedRelocation.fullDrawers4[bank];
|
||||
if (blockConfig.getDrawerCount() == 2 && blockConfig.isHalfDepth()
|
||||
&& RefinedRelocation.halfDrawers2 != null)
|
||||
return RefinedRelocation.halfDrawers2[bank];
|
||||
if (blockConfig.getDrawerCount() == 4 && blockConfig.isHalfDepth()
|
||||
&& RefinedRelocation.halfDrawers4 != null)
|
||||
return RefinedRelocation.halfDrawers4[bank];
|
||||
break;
|
||||
case Trim:
|
||||
if (ModBlocks.trim != null) return ModBlocks.trim[bank];
|
||||
break;
|
||||
case TrimSorting:
|
||||
if (RefinedRelocation.trim != null) return RefinedRelocation.trim[bank];
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
switch (bank) {
|
||||
case 0:
|
||||
for (int i = 0, p = 0, m = 0; i < 8; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("ExtrabiomesXL", "planks"),
|
||||
p,
|
||||
GameRegistry.findBlock("ExtrabiomesXL", "woodslab"),
|
||||
m);
|
||||
for (int i = 8, p = 8, m = 0; i < 9; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("ExtrabiomesXL", "planks"),
|
||||
p,
|
||||
GameRegistry.findBlock("ExtrabiomesXL", "woodslab2"),
|
||||
m);
|
||||
break;
|
||||
case 1:
|
||||
for (int i = 0, p = 0, m = 0; i < 4; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("Highlands", "hl_woodPlanks"),
|
||||
p,
|
||||
GameRegistry.findBlock("Highlands", "hl_woodSlab"),
|
||||
m);
|
||||
for (int i = 4, p = 6, m = 0; i < 6; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("Thaumcraft", "blockWoodenDevice"),
|
||||
p,
|
||||
GameRegistry.findBlock("Thaumcraft", "blockCosmeticSlabWood"),
|
||||
m);
|
||||
for (int i = 6, p = 0, m = 0; i < 9; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("witchery", "witchwood"),
|
||||
p,
|
||||
GameRegistry.findBlock("witchery", "witchwoodslab"),
|
||||
m);
|
||||
for (int i = 9, p = 0, m = 2; i < 10; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("ImmersiveEngineering", "treatedWood"),
|
||||
p,
|
||||
GameRegistry.findBlock("ImmersiveEngineering", "woodenDecoration"),
|
||||
m);
|
||||
for (int i = 10, p = 1, m = 0; i < 11; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("Botania", "livingwood"),
|
||||
p,
|
||||
GameRegistry.findBlock("Botania", "livingwood1Slab"),
|
||||
m);
|
||||
for (int i = 11, p = 1, m = 0; i < 12; i++, p++, m++) setPlankSlab(
|
||||
i,
|
||||
GameRegistry.findBlock("Botania", "dreamwood"),
|
||||
p,
|
||||
GameRegistry.findBlock("Botania", "dreamwood1Slab"),
|
||||
m);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.misc.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.packs.misc.StorageDrawersPack;
|
||||
|
||||
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[] resolvers = StorageDrawersPack.instance.resolvers;
|
||||
|
||||
fullDrawers1 = new Block[resolvers.length];
|
||||
fullDrawers2 = new Block[resolvers.length];
|
||||
fullDrawers4 = new Block[resolvers.length];
|
||||
halfDrawers2 = new Block[resolvers.length];
|
||||
halfDrawers4 = new Block[resolvers.length];
|
||||
trim = new Block[resolvers.length];
|
||||
|
||||
for (int i = 0; i < resolvers.length; i++) {
|
||||
IPackDataResolver resolver = resolvers[i];
|
||||
|
||||
fullDrawers1[i] = factory.createBlock(BlockConfiguration.BasicFull1, resolver);
|
||||
fullDrawers2[i] = factory.createBlock(BlockConfiguration.BasicFull2, resolver);
|
||||
fullDrawers4[i] = factory.createBlock(BlockConfiguration.BasicFull4, resolver);
|
||||
halfDrawers2[i] = factory.createBlock(BlockConfiguration.BasicHalf2, resolver);
|
||||
halfDrawers4[i] = factory.createBlock(BlockConfiguration.BasicHalf4, resolver);
|
||||
trim[i] = factory.createBlock(BlockConfiguration.Trim, resolver);
|
||||
}
|
||||
|
||||
IUserConfig config = api.userConfig();
|
||||
IBlockConfig blockConfig = config.blockConfig();
|
||||
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull1))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(fullDrawers1[i], "fullDrawers1_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull2))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(fullDrawers2[i], "fullDrawers2_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull4))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(fullDrawers4[i], "fullDrawers4_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf2))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(halfDrawers2[i], "halfDrawers2_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf4))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(halfDrawers4[i], "halfDrawers4_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.Trim))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(trim[i], "trim_" + i);
|
||||
}
|
||||
|
||||
if (!config.addonConfig().showAddonItemsNEI()) {
|
||||
for (int i = 0; i < resolvers.length; i++) {
|
||||
factory.hideBlock(getQualifiedName(fullDrawers1[i]));
|
||||
factory.hideBlock(getQualifiedName(fullDrawers2[i]));
|
||||
factory.hideBlock(getQualifiedName(fullDrawers4[i]));
|
||||
factory.hideBlock(getQualifiedName(halfDrawers2[i]));
|
||||
factory.hideBlock(getQualifiedName(halfDrawers4[i]));
|
||||
factory.hideBlock(getQualifiedName(trim[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static String getQualifiedName(Block block) {
|
||||
return GameData.getBlockRegistry().getNameForObject(block);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.misc.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("storageDrawersMisc") {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Item getTabIconItem() {
|
||||
return getTabItem();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_151243_f() {
|
||||
return 5;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
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[0]);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull4)))
|
||||
return Item.getItemFromBlock(ModBlocks.fullDrawers4[0]);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicFull1)))
|
||||
return Item.getItemFromBlock(ModBlocks.fullDrawers1[0]);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf2)))
|
||||
return Item.getItemFromBlock(ModBlocks.halfDrawers2[0]);
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.BasicHalf4)))
|
||||
return Item.getItemFromBlock(ModBlocks.halfDrawers4[0]);
|
||||
|
||||
return Item.getItemFromBlock(Blocks.chest);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package com.jaquadro.minecraft.storagedrawers.packs.misc.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.packs.misc.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[] resolvers = StorageDrawersPack.instance.resolvers;
|
||||
|
||||
fullDrawers1 = new Block[resolvers.length];
|
||||
fullDrawers2 = new Block[resolvers.length];
|
||||
fullDrawers4 = new Block[resolvers.length];
|
||||
halfDrawers2 = new Block[resolvers.length];
|
||||
halfDrawers4 = new Block[resolvers.length];
|
||||
trim = new Block[resolvers.length];
|
||||
|
||||
for (int i = 0; i < resolvers.length; i++) {
|
||||
IPackDataResolver resolver = resolvers[i];
|
||||
|
||||
fullDrawers1[i] = factory.createBlock(BlockConfiguration.SortingFull1, resolver);
|
||||
fullDrawers2[i] = factory.createBlock(BlockConfiguration.SortingFull2, resolver);
|
||||
fullDrawers4[i] = factory.createBlock(BlockConfiguration.SortingFull4, resolver);
|
||||
halfDrawers2[i] = factory.createBlock(BlockConfiguration.SortingHalf2, resolver);
|
||||
halfDrawers4[i] = factory.createBlock(BlockConfiguration.SortingHalf4, resolver);
|
||||
trim[i] = factory.createBlock(BlockConfiguration.TrimSorting, resolver);
|
||||
|
||||
factory.bindSortingBlock(ModBlocks.fullDrawers1[i], fullDrawers1[i]);
|
||||
factory.bindSortingBlock(ModBlocks.fullDrawers2[i], fullDrawers2[i]);
|
||||
factory.bindSortingBlock(ModBlocks.fullDrawers4[i], fullDrawers4[i]);
|
||||
factory.bindSortingBlock(ModBlocks.halfDrawers2[i], halfDrawers2[i]);
|
||||
factory.bindSortingBlock(ModBlocks.halfDrawers4[i], halfDrawers4[i]);
|
||||
factory.bindSortingBlock(ModBlocks.trim[i], trim[i]);
|
||||
}
|
||||
|
||||
IUserConfig config = api.userConfig();
|
||||
IBlockConfig blockConfig = config.blockConfig();
|
||||
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingFull1))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(fullDrawers1[i], "fullDrawersSort1_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingFull2))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(fullDrawers2[i], "fullDrawersSort2_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingFull4))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(fullDrawers4[i], "fullDrawersSort4_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingHalf2))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(halfDrawers2[i], "halfDrawersSort2_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.SortingHalf4))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(halfDrawers4[i], "halfDrawersSort4_" + i);
|
||||
}
|
||||
if (blockConfig.isBlockEnabled(blockConfig.getBlockConfigName(BlockConfiguration.TrimSorting))) {
|
||||
for (int i = 0; i < resolvers.length; i++) factory.registerBlock(trim[i], "trimSort_" + i);
|
||||
}
|
||||
|
||||
if (!config.addonConfig().showAddonItemsNEI()) {
|
||||
for (int i = 0; i < resolvers.length; i++) {
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(fullDrawers1[i]));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(fullDrawers2[i]));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(fullDrawers4[i]));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(halfDrawers2[i]));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(halfDrawers4[i]));
|
||||
factory.hideBlock(ModBlocks.getQualifiedName(trim[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -218,3 +218,5 @@ storageDrawers.config.packs=Packs
|
||||
storageDrawers.config.packs.enableNatura=Enable Natura Pack
|
||||
storageDrawers.config.packs.enableBop=Enable Biomes O' Plenty Pack
|
||||
storageDrawers.config.packs.enableForestry=Enable Forestry Pack
|
||||
storageDrawers.config.packs.enableErebus=Enable Erebus Pack
|
||||
storageDrawers.config.packs.enableMisc=Enable Misc Pack (Botania, EXBL, Highlands, Thaumcraft, Witchery)
|
||||
@@ -0,0 +1,86 @@
|
||||
itemGroup.storageDrawersErebus=Storage Drawers: Erebus
|
||||
|
||||
# Blocks
|
||||
tile.storagedrawerserebus.fullDrawers1.baobab.name=Baobab Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.eucalyptus.name=Eucalyptus Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.mahogany.name=Mahogany Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.mossbark.name=Mossbark Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.asper.name=Asper Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.cypress.name=Cypress Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.sap.name=Sap Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.white.name=White Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.bamboo.name=Bamboo Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.rotten.name=Rotten Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.marshwood.name=Marshwood Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.scorched.name=Scorched Drawer
|
||||
tile.storagedrawerserebus.fullDrawers1.varnished.name=Varnished Drawer
|
||||
|
||||
tile.storagedrawerserebus.fullDrawers2.baobab.name=Baobab Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.eucalyptus.name=Eucalyptus Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.mahogany.name=Mahogany Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.mossbark.name=Mossbark Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.asper.name=Asper Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.cypress.name=Cypress Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.sap.name=Sap Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.white.name=White Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.bamboo.name=Bamboo Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.rotten.name=Rotten Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.marshwood.name=Marshwood Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.scorched.name=Scorched Drawers 1x2
|
||||
tile.storagedrawerserebus.fullDrawers2.varnished.name=Varnished Drawers 1x2
|
||||
|
||||
tile.storagedrawerserebus.fullDrawers4.baobab.name=Baobab Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.eucalyptus.name=Eucalyptus Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.mahogany.name=Mahogany Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.mossbark.name=Mossbark Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.asper.name=Asper Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.cypress.name=Cypress Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.sap.name=Sap Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.white.name=White Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.bamboo.name=Bamboo Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.rotten.name=Rotten Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.marshwood.name=Marshwood Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.scorched.name=Scorched Drawers 2x2
|
||||
tile.storagedrawerserebus.fullDrawers4.varnished.name=Varnished Drawers 2x2
|
||||
|
||||
tile.storagedrawerserebus.halfDrawers2.baobab.name=Compact Baobab Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.eucalyptus.name=Compact Eucalyptus Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.mahogany.name=Compact Mahogany Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.mossbark.name=Compact Mossbark Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.asper.name=Compact Asper Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.cypress.name=Compact Cypress Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.sap.name=Compact Sap Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.white.name=Compact White Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.bamboo.name=Compact Bamboo Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.rotten.name=Compact Rotten Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.marshwood.name=Compact Marshwood Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.scorched.name=Compact Scorched Drawers 1x2
|
||||
tile.storagedrawerserebus.halfDrawers2.varnished.name=Compact Varnished Drawers 1x2
|
||||
|
||||
tile.storagedrawerserebus.halfDrawers4.baobab.name=Compact Baobab Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.eucalyptus.name=Compact Eucalyptus Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.mahogany.name=Compact Mahogany Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.mossbark.name=Compact Mossbark Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.asper.name=Compact Asper Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.cypress.name=Compact Cypress Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.sap.name=Compact Sap Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.white.name=Compact White Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.bamboo.name=Compact Bamboo Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.rotten.name=Compact Rotten Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.marshwood.name=Compact Marshwood Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.scorched.name=Compact Scorched Drawers 2x2
|
||||
tile.storagedrawerserebus.halfDrawers4.varnished.name=Compact Varnished Drawers 2x2
|
||||
|
||||
tile.storagedrawerserebus.trim.baobab.name=Baobab Trim
|
||||
tile.storagedrawerserebus.trim.eucalyptus.name=Eucalyptus Trim
|
||||
tile.storagedrawerserebus.trim.mahogany.name=Mahogany Trim
|
||||
tile.storagedrawerserebus.trim.mossbark.name=Mossbark Trim
|
||||
tile.storagedrawerserebus.trim.asper.name=Asper Trim
|
||||
tile.storagedrawerserebus.trim.cypress.name=Cypress Trim
|
||||
tile.storagedrawerserebus.trim.sap.name=Sap Trim
|
||||
tile.storagedrawerserebus.trim.white.name=White Trim
|
||||
tile.storagedrawerserebus.trim.bamboo.name=Bamboo Trim
|
||||
tile.storagedrawerserebus.trim.rotten.name=Rotten Trim
|
||||
tile.storagedrawerserebus.trim.marshwood.name=Marshwood Trim
|
||||
tile.storagedrawerserebus.trim.scorched.name=Scorched Trim
|
||||
tile.storagedrawerserebus.trim.varnished.name=Varnished Trim
|
||||
@@ -0,0 +1,86 @@
|
||||
itemGroup.storageDrawersErebus=储物抽屉|Erebus
|
||||
|
||||
# Blocks
|
||||
tile.storagedrawerserebus.fullDrawers1.baobab.name=猴面包树抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.eucalyptus.name=桉树抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.mahogany.name=桃花心木抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.mossbark.name=苔皮树抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.asper.name=糙皮树抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.cypress.name=柏树抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.sap.name=Sap抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.white.name=白木抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.bamboo.name=竹抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.rotten.name=腐木抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.marshwood.name=沼泽木抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.scorched.name=焦木抽屉
|
||||
tile.storagedrawerserebus.fullDrawers1.varnished.name=漆包木抽屉
|
||||
|
||||
tile.storagedrawerserebus.fullDrawers2.baobab.name=猴面包树抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.eucalyptus.name=桉树抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.mahogany.name=桃花心木抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.mossbark.name=苔皮树抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.asper.name=糙皮树抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.cypress.name=柏树抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.sap.name=Sap抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.white.name=白木抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.bamboo.name=竹抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.rotten.name=腐木抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.marshwood.name=沼泽木抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.scorched.name=焦木抽屉(1x2)
|
||||
tile.storagedrawerserebus.fullDrawers2.varnished.name=漆包木抽屉(1x2)
|
||||
|
||||
tile.storagedrawerserebus.fullDrawers4.baobab.name=猴面包树抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.eucalyptus.name=桉树抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.mahogany.name=桃花心木抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.mossbark.name=苔皮树抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.asper.name=糙皮树抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.cypress.name=柏树抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.sap.name=Sap抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.white.name=白木抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.bamboo.name=竹抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.rotten.name=腐木抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.marshwood.name=沼泽木抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.scorched.name=焦木抽屉(2x2)
|
||||
tile.storagedrawerserebus.fullDrawers4.varnished.name=漆包木抽屉(2x2)
|
||||
|
||||
tile.storagedrawerserebus.halfDrawers2.baobab.name=小型猴面包树抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.eucalyptus.name=小型桉树抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.mahogany.name=小型桃花心木抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.mossbark.name=小型苔皮树抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.asper.name=小型糙皮树抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.cypress.name=小型柏树抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.sap.name=小型Sap抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.white.name=小型白木抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.bamboo.name=小型竹抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.rotten.name=小型腐木抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.marshwood.name=小型沼泽木抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.scorched.name=小型焦木抽屉(1x2)
|
||||
tile.storagedrawerserebus.halfDrawers2.varnished.name=小型漆包木抽屉(1x2)
|
||||
|
||||
tile.storagedrawerserebus.halfDrawers4.baobab.name=小型猴面包树抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.eucalyptus.name=小型桉树抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.mahogany.name=小型桃花心木抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.mossbark.name=小型苔皮树抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.asper.name=小型糙皮树抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.cypress.name=小型柏树抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.sap.name=小型Sap抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.white.name=小型白木抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.bamboo.name=小型竹抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.rotten.name=小型腐木抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.marshwood.name=小型沼泽木抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.scorched.name=小型焦木抽屉(2x2)
|
||||
tile.storagedrawerserebus.halfDrawers4.varnished.name=小型漆包木抽屉(2x2)
|
||||
|
||||
tile.storagedrawerserebus.trim.baobab.name=猴面包树桥接方块
|
||||
tile.storagedrawerserebus.trim.eucalyptus.name=桉树桥接方块
|
||||
tile.storagedrawerserebus.trim.mahogany.name=桃花心木桥接方块
|
||||
tile.storagedrawerserebus.trim.mossbark.name=苔皮树桥接方块
|
||||
tile.storagedrawerserebus.trim.asper.name=糙皮树桥接方块
|
||||
tile.storagedrawerserebus.trim.cypress.name=柏树桥接方块
|
||||
tile.storagedrawerserebus.trim.sap.name=Sap桥接方块
|
||||
tile.storagedrawerserebus.trim.white.name=白木桥接方块
|
||||
tile.storagedrawerserebus.trim.bamboo.name=竹桥接方块
|
||||
tile.storagedrawerserebus.trim.rotten.name=腐木桥接方块
|
||||
tile.storagedrawerserebus.trim.marshwood.name=沼泽木桥接方块
|
||||
tile.storagedrawerserebus.trim.scorched.name=焦木桥接方块
|
||||
tile.storagedrawerserebus.trim.varnished.name=漆包木桥接方块
|
||||
|
After Width: | Height: | Size: 313 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 328 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 310 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 361 B |
|
After Width: | Height: | Size: 435 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 359 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 310 B |
|
After Width: | Height: | Size: 238 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 313 B |
|
After Width: | Height: | Size: 313 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 330 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 315 B |
|
After Width: | Height: | Size: 320 B |
|
After Width: | Height: | Size: 297 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 377 B |
|
After Width: | Height: | Size: 399 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 325 B |
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 328 B |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 320 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 357 B |
|
After Width: | Height: | Size: 369 B |
|
After Width: | Height: | Size: 395 B |
|
After Width: | Height: | Size: 310 B |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 378 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 415 B |
|
After Width: | Height: | Size: 326 B |
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 343 B |
|
After Width: | Height: | Size: 346 B |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 355 B |
|
After Width: | Height: | Size: 370 B |
|
After Width: | Height: | Size: 402 B |
|
After Width: | Height: | Size: 312 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 326 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 364 B |
|
After Width: | Height: | Size: 389 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 505 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 546 B |
|
After Width: | Height: | Size: 453 B |
|
After Width: | Height: | Size: 455 B |
|
After Width: | Height: | Size: 482 B |
|
After Width: | Height: | Size: 466 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 433 B |
|
After Width: | Height: | Size: 437 B |
|
After Width: | Height: | Size: 465 B |