Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
980df8516a | ||
|
|
cddada359b | ||
|
|
9b30535265 | ||
|
|
7456c20fb5 | ||
|
|
73bbe09c6b | ||
|
|
bb0db68866 | ||
|
|
c781dd4231 | ||
|
|
91e7a95fbc | ||
|
|
6ce578c7cb | ||
|
|
7cac8bdd7d | ||
|
|
e77a74544d | ||
|
|
6ec2fe0d3d | ||
|
|
80cb4c94d6 | ||
|
|
2f971ac8e3 | ||
|
|
7d63503645 | ||
|
|
42d1bd07e1 | ||
|
|
6d05bc4dfe | ||
|
|
028f5ef031 | ||
|
|
805553e04e | ||
|
|
facff8752d | ||
|
|
63f04556e2 | ||
|
|
d229201b90 | ||
|
|
5869418115 | ||
|
|
2e2b2ef941 | ||
|
|
be6fc768f8 | ||
|
|
9a1a1bbf3f |
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/bin/
|
||||
#General use .gitignore for Minecraft modding.
|
||||
|
||||
#Folders
|
||||
@@ -25,6 +26,7 @@
|
||||
*.classpath
|
||||
*.project
|
||||
*.lock
|
||||
*.log
|
||||
|
||||
#Specific files
|
||||
MCFPost.txt
|
||||
@@ -42,4 +44,4 @@ Thumbs.db
|
||||
|
||||
#Vim backups
|
||||
*~
|
||||
*.bat
|
||||
*.bat
|
||||
@@ -9,6 +9,12 @@ buildscript {
|
||||
}
|
||||
|
||||
apply plugin: 'forge'
|
||||
apply plugin: 'signing'
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
ext.configFile = file "build.properties"
|
||||
configFile.withReader {
|
||||
@@ -24,7 +30,9 @@ archivesBaseName = config.mod_name
|
||||
minecraft {
|
||||
version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version
|
||||
runDir = "run"
|
||||
|
||||
replaceIn "EMT.java"
|
||||
replace "@version@", config.mod_version
|
||||
|
||||
if (project.hasProperty('mappings_version'))
|
||||
mappings = project.mappings_version
|
||||
}
|
||||
@@ -61,4 +69,19 @@ tasks.build.dependsOn sourceJar, deobfJar
|
||||
|
||||
tasks.withType(JavaCompile) { task ->
|
||||
task.options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
task signJar(dependsOn: 'reobf'){
|
||||
doLast {
|
||||
ant.signjar(
|
||||
destDir: jar.destinationDir,
|
||||
jar: jar.getArchivePath(),
|
||||
alias: findProperty('keyStoreAlias') ?: '',
|
||||
keystore: findProperty('keyStore') ?: '',
|
||||
storepass: findProperty('keyStorePass') ?: '',
|
||||
digestalg: findProperty('signDigestAlg') ?: '',
|
||||
tsaurl: findProperty('signTSAurl') ?: '',
|
||||
verbose: true
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
package_group=emt
|
||||
mc_version=1.7.10
|
||||
forge_version=10.13.4.1614
|
||||
mod_version=1.2.6.7
|
||||
mod_version=1.2.7.5
|
||||
mod_name=ElectroMagicTools
|
||||
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
@@ -2,8 +2,6 @@ package emt;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
import cpw.mods.fml.common.Mod.Instance;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
@@ -14,14 +12,13 @@ import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import emt.command.CommandOutputs;
|
||||
import emt.init.EMTEntities;
|
||||
import emt.init.Registry;
|
||||
import emt.init.EMTResearches;
|
||||
import emt.init.Registry;
|
||||
import emt.network.PacketEMTKeys;
|
||||
import emt.proxy.CommonProxy;
|
||||
import emt.util.*;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@@ -32,80 +29,92 @@ import org.apache.logging.log4j.Logger;
|
||||
guiFactory = EMT.GUI_FACTORY,
|
||||
dependencies = EMT.DEPENDS
|
||||
)
|
||||
public class EMT {
|
||||
public static final String NAME = "Electro-Magic Tools";
|
||||
public static final String MOD_ID = "EMT";
|
||||
public static final String VERSION = "1.2.6.6";
|
||||
public static final String TEXTURE_PATH = "emt";
|
||||
public static final String GUI_FACTORY = "emt.client.gui.config.EMTGuiFactory";
|
||||
public static final String CLIENT_PROXY = "emt.proxy.ClientProxy";
|
||||
public static final String COMMON_PROXY = "emt.proxy.CommonProxy";
|
||||
public static final String CHANNEL = "EMT";
|
||||
public static final String DEPENDS = "required-after:Thaumcraft ; required-after:IC2";
|
||||
|
||||
@SidedProxy(
|
||||
clientSide = CLIENT_PROXY,
|
||||
serverSide = COMMON_PROXY
|
||||
)
|
||||
public static CommonProxy proxy;
|
||||
public static final CreativeTabs TAB = new EMTCreativeTab(MOD_ID + ".creativeTab");
|
||||
public static final Logger LOGGER = LogManager.getLogger(NAME);
|
||||
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(CHANNEL);
|
||||
|
||||
public boolean isSimulating()
|
||||
{
|
||||
return !FMLCommonHandler.instance().getEffectiveSide().isClient();
|
||||
}
|
||||
|
||||
@Instance(MOD_ID)
|
||||
public static EMT instance;
|
||||
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
LOGGER.info("Starting planning the world domination");
|
||||
EMTConfigHandler.init(event.getSuggestedConfigurationFile());
|
||||
FMLCommonHandler.instance().bus().register(new EMTEventHandler());
|
||||
if(FMLCommonHandler.instance().getSide().isClient())
|
||||
FMLCommonHandler.instance().bus().register(new EMTClientEventHandler());
|
||||
Registry.register();
|
||||
EMTEssentiasOutputs.addPrimalOutputs();
|
||||
EMTEssentiasOutputs.addOutputs();
|
||||
registerPackets();
|
||||
LOGGER.info("Planning complete");
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void load(FMLInitializationEvent event) {
|
||||
LOGGER.info("Gathering allies");
|
||||
LOGGER.info("Loading the proxies");
|
||||
proxy.load();
|
||||
LOGGER.info("Making mobs drop additional items");
|
||||
MinecraftForge.EVENT_BUS.register(new EMTEventHandler());
|
||||
if(FMLCommonHandler.instance().getSide().isClient())
|
||||
MinecraftForge.EVENT_BUS.register(new EMTClientEventHandler());
|
||||
LOGGER.info("Adding dungeon loot");
|
||||
EMTDungeonChestGenerator.generateLoot();
|
||||
LOGGER.info("Registering entities");
|
||||
EMTEntities.registerEMTEntities();
|
||||
LOGGER.info("Registering the GUI Handler");
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(this, proxy);
|
||||
LOGGER.info("Allies gathered.");
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
LOGGER.info("Starting the world takeover");
|
||||
Registry.registerLate();
|
||||
EMTResearches.register();
|
||||
LOGGER.info("World takeover complete. Enjoy!");
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onFMLServerStart(FMLServerStartingEvent event) {
|
||||
event.registerServerCommand(new CommandOutputs());
|
||||
}
|
||||
|
||||
public void registerPackets() {
|
||||
INSTANCE.registerMessage(PacketEMTKeys.class, PacketEMTKeys.class, 0, Side.SERVER);
|
||||
}
|
||||
public class EMT
|
||||
{
|
||||
public static final String NAME = "Electro-Magic Tools";
|
||||
public static final String MOD_ID = "EMT";
|
||||
public static final String VERSION = "@version@";
|
||||
public static final String TEXTURE_PATH = "emt";
|
||||
public static final String GUI_FACTORY = "emt.client.gui.config.EMTGuiFactory";
|
||||
public static final String CLIENT_PROXY = "emt.proxy.ClientProxy";
|
||||
public static final String COMMON_PROXY = "emt.proxy.CommonProxy";
|
||||
public static final String CHANNEL = "EMT";
|
||||
public static final String DEPENDS =
|
||||
"required-after:Thaumcraft;" +
|
||||
"required-after:IC2;" +
|
||||
"required-after:gregtech;"+
|
||||
"after:Avaritia;"+
|
||||
"after:MagicBees;"+
|
||||
"after:ForbiddenMagic;";
|
||||
@SidedProxy(clientSide="emt.proxy.ClientProxy", serverSide="emt.proxy.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
public static final CreativeTabs TAB = new EMTCreativeTab("EMT.creativeTab");
|
||||
public static final Logger LOGGER = LogManager.getLogger("Electro-Magic Tools");
|
||||
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("EMT");
|
||||
@Mod.Instance("EMT")
|
||||
public static EMT instance;
|
||||
|
||||
public boolean isSimulating()
|
||||
{
|
||||
return !FMLCommonHandler.instance().getEffectiveSide().isClient();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
LOGGER.info("Starting planning the world domination|start preinit");
|
||||
EMTConfigHandler.init(event.getSuggestedConfigurationFile());
|
||||
FMLCommonHandler.instance().bus().register(new EMTEventHandler());
|
||||
if (FMLCommonHandler.instance().getSide().isClient()) {
|
||||
FMLCommonHandler.instance().bus().register(new EMTClientEventHandler());
|
||||
}
|
||||
Registry.registerPreInit();
|
||||
EMTEssentiasOutputs.addPrimalOutputs();
|
||||
//EMTEssentiasOutputs.addOutputs();
|
||||
registerPackets();
|
||||
LOGGER.info("Planning complete|end preinit");
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void load(FMLInitializationEvent event)
|
||||
{
|
||||
LOGGER.info("Execute the plan|start init");
|
||||
Registry.registerInit();
|
||||
//LOGGER.info("Gathering allies");
|
||||
//LOGGER.info("Loading the proxies");
|
||||
proxy.load();
|
||||
//LOGGER.info("Making mobs drop additional items");
|
||||
MinecraftForge.EVENT_BUS.register(new EMTEventHandler());
|
||||
if (FMLCommonHandler.instance().getSide().isClient()) {
|
||||
MinecraftForge.EVENT_BUS.register(new EMTClientEventHandler());
|
||||
}
|
||||
//LOGGER.info("Adding dungeon loot");
|
||||
EMTDungeonChestGenerator.generateLoot();
|
||||
//LOGGER.info("Registering entities");
|
||||
EMTEntities.registerEMTEntities();
|
||||
//LOGGER.info("Registering the GUI Handler");
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(this, proxy);
|
||||
LOGGER.info("Allies gathered.|end init");
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event)
|
||||
{
|
||||
LOGGER.info("Starting the world takeover|start postinit");
|
||||
EMTEssentiasOutputs.addOutputs();
|
||||
Registry.registerLate();
|
||||
EMTResearches.register();
|
||||
LOGGER.info("World takeover complete. Enjoy!|end postinit");
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void onFMLServerStart(FMLServerStartingEvent event)
|
||||
{
|
||||
event.registerServerCommand(new CommandOutputs());
|
||||
}
|
||||
|
||||
public void registerPackets()
|
||||
{
|
||||
INSTANCE.registerMessage(PacketEMTKeys.class, PacketEMTKeys.class, 0, Side.SERVER);
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.particle.EntitySmokeFX;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
@@ -19,8 +20,10 @@ import java.util.Random;
|
||||
|
||||
public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
|
||||
private static int subtypes=6;
|
||||
|
||||
public BlockEssentiaGenerators(String name) {
|
||||
super(name, Material.iron, soundTypeMetal, 5, 4.0F);
|
||||
super(name, Material.iron, soundTypeMetal, subtypes, 4.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -29,7 +32,7 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
super.registerBlockIcons(ir);
|
||||
this.blockIcon = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/top");
|
||||
|
||||
for (int meta = 0; meta < 5; meta++) {
|
||||
for (int meta = 0; meta < subtypes; meta++) {
|
||||
iconSets[meta].top = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/top");
|
||||
iconSets[meta].bottom = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/top");
|
||||
iconSets[meta].side = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/side");
|
||||
@@ -40,6 +43,7 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
iconSets[2].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/auramfront");
|
||||
iconSets[3].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/arborfront");
|
||||
iconSets[4].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/aerfront");
|
||||
iconSets[5].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":essentiagenerator/aerfront");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -49,6 +53,7 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
list.add(new ItemStack(id, 1, 2));
|
||||
list.add(new ItemStack(id, 1, 3));
|
||||
list.add(new ItemStack(id, 1, 4));
|
||||
list.add(new ItemStack(id, 1, 5));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -64,6 +69,8 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
return new TileEntityArborGenerator();
|
||||
case 4:
|
||||
return new TileEntityAerGenerator();
|
||||
case 5:
|
||||
return new TileEntityLucrumGenerator();
|
||||
}
|
||||
return super.createTileEntity(world, meta);
|
||||
}
|
||||
@@ -82,4 +89,19 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
Minecraft.getMinecraft().effectRenderer.addEffect(fx);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int s, float f1, float f2, float f3)
|
||||
{
|
||||
if (player.isSneaking()) {
|
||||
return false;
|
||||
}
|
||||
if (world.isRemote) {
|
||||
return true;
|
||||
}
|
||||
TileEntity tileentity = world.getTileEntity(i, j, k);
|
||||
if (tileentity != null) {
|
||||
player.openGui(emt.EMT.instance, 1, world, i, j, k);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package emt.block;
|
||||
|
||||
import emt.gthandler.common.implementations.automation.EssentiaFiller;
|
||||
import ic2.api.item.IC2Items;
|
||||
|
||||
import java.util.List;
|
||||
@@ -26,7 +27,7 @@ import emt.tile.TileEntityIndustrialWandRecharge;
|
||||
public class BlockMachines extends BlockBaseContainer {
|
||||
|
||||
public BlockMachines(String name) {
|
||||
super(name, Material.iron, soundTypeMetal, 2, 4.0F);
|
||||
super(name, Material.iron, soundTypeMetal, 3, 4.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -38,24 +39,30 @@ public class BlockMachines extends BlockBaseContainer {
|
||||
|
||||
iconSets[0].top = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/top");
|
||||
iconSets[1].top = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratortop");
|
||||
iconSets[2].top = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratortop");
|
||||
|
||||
iconSets[0].bottom = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/side");
|
||||
iconSets[1].bottom = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmacerator");
|
||||
iconSets[2].bottom = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratortop");
|
||||
|
||||
iconSets[0].side = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/side");
|
||||
iconSets[1].side = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmacerator");
|
||||
iconSets[2].side = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratortop");
|
||||
|
||||
iconSets[0].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/wandcharger");
|
||||
iconSets[1].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratorfront");
|
||||
iconSets[2].frontOff = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratortop");
|
||||
|
||||
iconSets[0].frontOn = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/wandcharger");
|
||||
iconSets[1].frontOn = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratorfrontactive");
|
||||
iconSets[2].frontOn = ir.registerIcon(EMT.TEXTURE_PATH + ":machines/etherealmaceratortop");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(Item id, CreativeTabs tab, List list) {
|
||||
list.add(new ItemStack(id, 1, 0));
|
||||
list.add(new ItemStack(id, 1, 1));
|
||||
list.add(new ItemStack(id, 1, 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -63,9 +70,12 @@ public class BlockMachines extends BlockBaseContainer {
|
||||
if (meta == 0) {
|
||||
return new TileEntityIndustrialWandRecharge();
|
||||
}
|
||||
if (meta == 1) {
|
||||
else if (meta == 1) {
|
||||
return new TileEntityEtherealMacerator();
|
||||
}
|
||||
else if (meta == 2){
|
||||
return new EssentiaFiller();
|
||||
}
|
||||
return super.createTileEntity(world, meta);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
package emt.block;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import emt.tile.generator.TileEntityBaseGenerator;
|
||||
import emt.tile.generator.TileEntityReflexionGen;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.particle.EntitySmokeFX;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockReflectedGen
|
||||
extends BlockBaseContainer
|
||||
{
|
||||
private int subtypes;
|
||||
private static int overalltypes = TileEntityReflexionGen.L.size();
|
||||
public static short Set;
|
||||
private int[] posInList;
|
||||
|
||||
public BlockReflectedGen(String name, short Set)
|
||||
{
|
||||
super(name, Material.iron, soundTypeMetal, 16, 4.0F);
|
||||
this.Set = Set;
|
||||
this.subtypes = 16;
|
||||
|
||||
if ((Set*16) > overalltypes)
|
||||
subtypes= ((Set-1)*16)+overalltypes-((Set-1)*16);
|
||||
|
||||
posInList= new int[subtypes];
|
||||
if ((Set*16) < overalltypes)
|
||||
for (int i=0; i<subtypes;++i) {
|
||||
posInList[i]=(Set*16)+i;
|
||||
}
|
||||
else if ((Set*16) > overalltypes)
|
||||
for (int i=0; i<subtypes;++i) {
|
||||
posInList[i]=((Set-1)*16)+overalltypes-((Set-1)*16)+i;
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister ir)
|
||||
{
|
||||
super.registerBlockIcons(ir);
|
||||
this.blockIcon = ir.registerIcon("emt:machines/top");
|
||||
for (int meta = 0; meta < this.subtypes; meta++)
|
||||
{
|
||||
this.iconSets[meta].top = ir.registerIcon("emt:essentiagenerator/top");
|
||||
this.iconSets[meta].bottom = ir.registerIcon("emt:essentiagenerator/top");
|
||||
this.iconSets[meta].side = ir.registerIcon("emt:essentiagenerator/side");
|
||||
}
|
||||
for (int i = 0; i < this.subtypes; i++) {
|
||||
this.iconSets[i].frontOff = ir.registerIcon("emt:essentiagenerator/side");
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(Item id, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int i = 0; i < this.subtypes; i++) {
|
||||
list.add(new ItemStack(id, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
public TileEntity createTileEntity(World world, int meta)
|
||||
{
|
||||
return TileEntityReflexionGen.Gens[posInList[meta]];
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void randomDisplayTick(World world, int x, int y, int z, Random random)
|
||||
{
|
||||
TileEntityBaseGenerator te = (TileEntityBaseGenerator)world.getTileEntity(x, y, z);
|
||||
if (te.isActive)
|
||||
{
|
||||
int color = te.aspect.getColor();
|
||||
float r = (color >> 16 & 0xFF) / 255.0F;
|
||||
float g = (color >> 8 & 0xFF) / 255.0F;
|
||||
float b = (color & 0xFF) / 255.0F;
|
||||
|
||||
EntitySmokeFX fx = new EntitySmokeFX(world, x + 0.5F, y + 1.1D, z + 0.5F, 0.0D, 0.1D, 0.0D, 3.0F);
|
||||
fx.setRBGColorF(r, g, b);
|
||||
Minecraft.getMinecraft().effectRenderer.addEffect(fx);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int s, float f1, float f2, float f3)
|
||||
{
|
||||
if (player.isSneaking()) {
|
||||
return false;
|
||||
}
|
||||
if (world.isRemote) {
|
||||
return true;
|
||||
}
|
||||
TileEntity tileentity = world.getTileEntity(i, j, k);
|
||||
if (tileentity != null) {
|
||||
player.openGui(EMT.instance, 1, world, i, j, k);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
@@ -223,4 +224,20 @@ public class BlockSolars extends BlockBaseContainer {
|
||||
world.removeTileEntity(x, y, z);
|
||||
super.breakBlock(world, x, y, z, block, meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int s, float f1, float f2, float f3)
|
||||
{
|
||||
if (player.isSneaking()) {
|
||||
return false;
|
||||
}
|
||||
if (world.isRemote) {
|
||||
return true;
|
||||
}
|
||||
TileEntity tileentity = world.getTileEntity(i, j, k);
|
||||
if (tileentity != null) {
|
||||
player.openGui(emt.EMT.instance, 1, world, i, j, k);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package emt.client.gui;
|
||||
|
||||
import emt.EMT;
|
||||
import emt.client.gui.container.ConainerGenerator;
|
||||
import emt.tile.generator.TileEntityBaseGenerator;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GuiGenerator extends GuiContainer {
|
||||
|
||||
private static ResourceLocation tex = new ResourceLocation(EMT.TEXTURE_PATH, "textures/guis/generator.png");
|
||||
|
||||
TileEntityBaseGenerator tileentity;
|
||||
private boolean allowUserInput;
|
||||
private int xSize;
|
||||
private int ySize;
|
||||
|
||||
public GuiGenerator(InventoryPlayer invPlayer, TileEntityBaseGenerator entity) {
|
||||
super(new ConainerGenerator(invPlayer, entity));
|
||||
this.tileentity = entity;
|
||||
this.allowUserInput = false;
|
||||
this.xSize = 194;
|
||||
this.ySize = 168;
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(int par1, int par2)
|
||||
{
|
||||
String formatPanelName = I18n.format(this.tileentity.getInventoryName(), new Object[0]);
|
||||
int nmPos = (this.xSize - this.fontRendererObj.getStringWidth(formatPanelName)) / 2;
|
||||
this.fontRendererObj.drawStringWithShadow(formatPanelName, nmPos, 7, 6618118);
|
||||
|
||||
String storageString = I18n.format("emt.Storage", new Object[0]);
|
||||
String fuel=I18n.format("emt.Fuel", new Object[0]);
|
||||
if (this.tileentity.maxstorage<1000)
|
||||
this.fontRendererObj.drawString(storageString + this.tileentity.storage + "/" + this.tileentity.maxstorage +"EU", 36, 22, 0);
|
||||
else if (10000 <= this.tileentity.maxstorage && this.tileentity.maxstorage < 10000000)
|
||||
this.fontRendererObj.drawString(storageString + (this.tileentity.mpshownstroage) + "/" + (this.tileentity.maxstorage/1000) +"kEU", 36, 22, 0);
|
||||
else if (10000000 <= this.tileentity.maxstorage && this.tileentity.maxstorage < 1000000000)
|
||||
this.fontRendererObj.drawString(storageString + (this.tileentity.mpshownstroage/1000) + "/" + (this.tileentity.maxstorage/1000000) +"MEU", 36, 22, 0);
|
||||
else if (1000000000 <= this.tileentity.maxstorage)
|
||||
this.fontRendererObj.drawString(storageString + (this.tileentity.mpshownstroage/1000000) + "/" + (this.tileentity.maxstorage/1000000000) +"GEU", 36, 22, 0);
|
||||
if(this.tileentity.isActive)
|
||||
this.fontRendererObj.drawString(I18n.format("emt.Generating",new Object[0])+Double.toString(this.tileentity.generating/20/20)+" EU/t", 36, 35, 0);
|
||||
else
|
||||
this.fontRendererObj.drawString(I18n.format("emt.Generating",new Object[0])+"0 EU/t",36, 35, 0);
|
||||
this.fontRendererObj.drawString(fuel+": "+Integer.toString(this.tileentity.fuel),36,48,0);
|
||||
this.fontRendererObj.drawString(fuel+"/t: "+Integer.toString((this.tileentity.fuel*20*20)-this.tileentity.tick),36,63,0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
||||
{
|
||||
// GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
this.mc.renderEngine.bindTexture(tex);
|
||||
|
||||
int h = (this.width - this.xSize) / 2;
|
||||
int k = (this.height - this.ySize) / 2;
|
||||
drawTexturedModalRect(h, k, 0, 0, this.xSize, this.ySize);
|
||||
if (this.tileentity.storage > 0)
|
||||
{
|
||||
int l = this.tileentity.gaugeEnergyScaled(33);
|
||||
drawTexturedModalRect(h + 18, k + 23, 195, 0, l, 14);
|
||||
}
|
||||
|
||||
if (this.tileentity.fuel > 0)
|
||||
{
|
||||
int l = this.tileentity.gaugeFuelScaled(33);
|
||||
drawTexturedModalRect(h + 18, k + 42, 195, 0, l, 14);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package emt.client.gui;
|
||||
|
||||
import emt.EMT;
|
||||
import emt.client.gui.container.ContainerSolars;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class GuiSolar extends GuiContainer {
|
||||
|
||||
private static ResourceLocation tex = new ResourceLocation(EMT.TEXTURE_PATH, "textures/guis/solar.png");
|
||||
|
||||
TileEntitySolarBase tileentity;
|
||||
private boolean allowUserInput;
|
||||
private int xSize;
|
||||
private int ySize;
|
||||
private String color;
|
||||
private int cColor;
|
||||
|
||||
public GuiSolar(InventoryPlayer invPlayer, TileEntitySolarBase entity) {
|
||||
super(new ContainerSolars(invPlayer, entity));
|
||||
this.tileentity = entity;
|
||||
this.allowUserInput = false;
|
||||
this.xSize = 194;
|
||||
this.ySize = 168;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
|
||||
{
|
||||
color = this.tileentity.getInventoryName().replaceAll("Solar", "").replaceAll("Compressed", "").replaceAll("Triple", "").replaceAll("Double", "").trim();
|
||||
if (color != null)
|
||||
switch (color)
|
||||
{
|
||||
case "Aer": {
|
||||
GL11.glColor4f(1.0f, 0.86f, 0.0f, 1.0f);
|
||||
break;
|
||||
}
|
||||
case "Terra": {
|
||||
GL11.glColor4f(0.0f, 0.66f, 0.08f, 1.0f);
|
||||
cColor=8224255;
|
||||
break;
|
||||
}
|
||||
case "Ordo": {
|
||||
GL11.glColor4f(0.8f, 0.8f, 0.8f, 1.0f);
|
||||
break;
|
||||
}
|
||||
case "Perditio": {
|
||||
GL11.glColor4f(0.33F, 0.33F, 0.33F, 1.0F);
|
||||
break;
|
||||
}
|
||||
case "Ignis": {
|
||||
GL11.glColor4f(0.82f, 0.11f, 0.11f, 1.0f);
|
||||
break;
|
||||
}
|
||||
case "Aqua": {
|
||||
GL11.glColor4f(0.27f, 0.65f, 1.0f, 1.0f);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
|
||||
this.mc.renderEngine.bindTexture(tex);
|
||||
|
||||
int h = (this.width - this.xSize) / 2;
|
||||
int k = (this.height - this.ySize) / 2;
|
||||
drawTexturedModalRect(h, k, 0, 0, this.xSize, this.ySize);
|
||||
if (this.tileentity.mp_storage > 0)
|
||||
{
|
||||
int l = this.tileentity.gaugeEnergyScaled(33);
|
||||
drawTexturedModalRect(h + 18, k + 23, 195, 0, l, 14);
|
||||
}
|
||||
if (this.tileentity.generating>9)
|
||||
drawTexturedModalRect(h + 18, k + 42, 195, 20, 11, 14);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer(int par1, int par2)
|
||||
{
|
||||
String formatPanelName = I18n.format(this.tileentity.getInventoryName(), new Object[0]);
|
||||
int nmPos = (this.xSize - this.fontRendererObj.getStringWidth(formatPanelName)) / 2;
|
||||
|
||||
if(!color.equals("Terra"))
|
||||
this.fontRendererObj.drawStringWithShadow(formatPanelName, 0, 7, 6618118);
|
||||
else
|
||||
this.fontRendererObj.drawStringWithShadow(formatPanelName, 0, 7, cColor);
|
||||
|
||||
String storageString = I18n.format("emt.Storage", new Object[0]);
|
||||
|
||||
if (this.tileentity.maxstorage<1000)
|
||||
this.fontRendererObj.drawString(storageString + this.tileentity.storage + "/" + this.tileentity.maxstorage +"EU", 36, 22, 0);
|
||||
else if (10000 <= this.tileentity.maxstorage && this.tileentity.maxstorage < 10000000)
|
||||
this.fontRendererObj.drawString(storageString + (this.tileentity.mp_storage) + "/" + (this.tileentity.maxstorage/1000) +"kEU", 36, 22, 0);
|
||||
else if (10000000 <= this.tileentity.maxstorage && this.tileentity.maxstorage < 1000000000)
|
||||
this.fontRendererObj.drawString(storageString + (this.tileentity.mp_storage/1000) + "/" + (this.tileentity.maxstorage/1000000) +"MEU", 36, 22, 0);
|
||||
else if (1000000000 <= this.tileentity.maxstorage)
|
||||
this.fontRendererObj.drawString(storageString + (this.tileentity.mp_storage/1000000) + "/" + (this.tileentity.maxstorage/1000000000) +"GEU", 36, 22, 0);
|
||||
if(this.tileentity.isActive)
|
||||
if (Double.toString(this.tileentity.generating).length()>5)
|
||||
this.fontRendererObj.drawString(I18n.format("emt.Generating",new Object[0])+Double.toString(this.tileentity.generating).substring(0, 4)+" EU/t", 36, 35, 0);
|
||||
else
|
||||
this.fontRendererObj.drawString(I18n.format("emt.Generating",new Object[0])+Double.toString(this.tileentity.generating)+" EU/t", 36, 35, 0);
|
||||
else
|
||||
this.fontRendererObj.drawString(I18n.format("emt.Generating",new Object[0])+"0 EU/t",36, 35, 0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package emt.client.gui.container;
|
||||
|
||||
import emt.tile.generator.TileEntityBaseGenerator;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.ICrafting;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ConainerGenerator
|
||||
extends Container
|
||||
{
|
||||
private TileEntityBaseGenerator tileentity;
|
||||
|
||||
public ConainerGenerator(InventoryPlayer inventoryplayer, TileEntityBaseGenerator tileentity)
|
||||
{
|
||||
this.tileentity = tileentity;
|
||||
}
|
||||
|
||||
public void addCraftingToCrafters(ICrafting icrafting)
|
||||
{
|
||||
|
||||
super.addCraftingToCrafters(icrafting);
|
||||
icrafting.sendProgressBarUpdate(this, 0, (short) (this.tileentity.generating/400));
|
||||
icrafting.sendProgressBarUpdate(this, 1, (byte) this.tileentity.fuel);
|
||||
icrafting.sendProgressBarUpdate(this, 2, (short) this.tileentity.mpshownstroage);
|
||||
}
|
||||
|
||||
public void detectAndSendChanges()
|
||||
{
|
||||
super.detectAndSendChanges();
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting)this.crafters.get(i);
|
||||
|
||||
icrafting.sendProgressBarUpdate(this, 0, (short) (this.tileentity.generating/400));
|
||||
icrafting.sendProgressBarUpdate(this, 1, (byte) this.tileentity.fuel);
|
||||
icrafting.sendProgressBarUpdate(this, 2, (short) (this.tileentity.storage/1000));
|
||||
}
|
||||
}
|
||||
|
||||
public void updateProgressBar(int i, int j)
|
||||
{
|
||||
if (i == 0) {
|
||||
this.tileentity.generating = (((int)j)*400);
|
||||
}
|
||||
if (i == 1) {
|
||||
this.tileentity.fuel=((byte) j);
|
||||
}
|
||||
if (i == 2) {
|
||||
this.tileentity.mpshownstroage=(short) j;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean canInteractWith(EntityPlayer entityplayer)
|
||||
{
|
||||
this.detectAndSendChanges();
|
||||
return this.tileentity.isUseableByPlayer(entityplayer);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package emt.client.gui.container;
|
||||
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.ICrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ContainerSolars
|
||||
extends Container
|
||||
{
|
||||
private TileEntitySolarBase tileentity;
|
||||
|
||||
public ContainerSolars(InventoryPlayer inventoryplayer, TileEntitySolarBase tileentity)
|
||||
{
|
||||
this.tileentity = tileentity;
|
||||
}
|
||||
|
||||
public void addCraftingToCrafters(ICrafting icrafting)
|
||||
{
|
||||
super.addCraftingToCrafters(icrafting);
|
||||
icrafting.sendProgressBarUpdate(this, 0, (short) this.tileentity.generating);
|
||||
icrafting.sendProgressBarUpdate(this, 1, (short) this.tileentity.mp_storage);
|
||||
}
|
||||
|
||||
public void detectAndSendChanges()
|
||||
{
|
||||
super.detectAndSendChanges();
|
||||
short help = 0;
|
||||
if (this.tileentity.generating < 326D && this.tileentity.generating > 9D)
|
||||
help = (short) (this.tileentity.generating*100*-1);
|
||||
else
|
||||
help = (short) (this.tileentity.generating);
|
||||
|
||||
for (int i = 0; i < this.crafters.size(); i++)
|
||||
{
|
||||
ICrafting icrafting = (ICrafting)this.crafters.get(i);
|
||||
|
||||
icrafting.sendProgressBarUpdate(this, 0, help);
|
||||
icrafting.sendProgressBarUpdate(this, 1, (short) (this.tileentity.getSourceStored()/1000));
|
||||
}
|
||||
}
|
||||
|
||||
public void updateProgressBar(int i, int j)
|
||||
{
|
||||
|
||||
if (i == 0) {
|
||||
if (j < 0) {
|
||||
double help= j;
|
||||
help=help/100*-1;
|
||||
this.tileentity.generating = help;
|
||||
}
|
||||
else
|
||||
this.tileentity.generating=j;
|
||||
}
|
||||
if (i == 1) {
|
||||
this.tileentity.mp_storage = (short) (j);
|
||||
}
|
||||
}
|
||||
|
||||
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean canInteractWith(EntityPlayer entityplayer)
|
||||
{
|
||||
this.detectAndSendChanges();
|
||||
return this.tileentity.isUseableByPlayer(entityplayer);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package emt.command;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import emt.util.EMTTextHelper;
|
||||
import net.minecraft.command.CommandBase;
|
||||
import net.minecraft.command.ICommand;
|
||||
import net.minecraft.command.ICommandSender;
|
||||
@@ -10,16 +12,11 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.nbt.NBTTagString;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import emt.util.EMTTextHelper;
|
||||
|
||||
public class CommandOutputs extends CommandBase {
|
||||
|
||||
public String text;
|
||||
|
||||
@Override
|
||||
public String getCommandName() {
|
||||
return "emt_outputs";
|
||||
@@ -51,37 +48,70 @@ public class CommandOutputs extends CommandBase {
|
||||
|
||||
@Override
|
||||
public void processCommand(ICommandSender command, String[] astring) {
|
||||
text = EMTTextHelper.localize("gui.EMT.book.aspect.output.essentia.eu") + ": ";
|
||||
Collection<Aspect> aspectCollection = Aspect.aspects.values();
|
||||
for (Aspect aspect : aspectCollection) {
|
||||
String text2 = addStrings(text, (aspect.getTag() + ": " + String.valueOf(EMTEssentiasOutputs.outputs.get(aspect.getTag())) + "\n"));
|
||||
text = text2;
|
||||
}
|
||||
addOutputsBook(EMTTextHelper.localize("gui.EMT.book.aspect.output.eu.title"), text, command, astring);
|
||||
}
|
||||
|
||||
public void addOutputsBook(String title, String text, ICommandSender command, String[] astring) {
|
||||
ItemStack book = new ItemStack(Items.written_book);
|
||||
book.setTagInfo("author", new NBTTagString("Tombenpotter"));
|
||||
book.setTagInfo("title", new NBTTagString(title));
|
||||
NBTTagCompound nbttagcompound = book.getTagCompound();
|
||||
NBTTagList bookPages = new NBTTagList();
|
||||
|
||||
bookPages.appendTag(new NBTTagString(text.substring(0, 237)));
|
||||
bookPages.appendTag(new NBTTagString(text.substring(237, 476)));
|
||||
bookPages.appendTag(new NBTTagString(text.substring(476, 709)));
|
||||
bookPages.appendTag(new NBTTagString(text.substring(709)));
|
||||
|
||||
nbttagcompound.setTag("pages", bookPages);
|
||||
|
||||
System.out.println(text.length());
|
||||
ItemStack book = mkbook();
|
||||
|
||||
if (!command.getEntityWorld().getPlayerEntityByName(command.getCommandSenderName()).inventory.addItemStackToInventory(book))
|
||||
command.getEntityWorld().getPlayerEntityByName(command.getCommandSenderName()).entityDropItem(book, 0);
|
||||
|
||||
}
|
||||
|
||||
public String addStrings(String string1, String string2) {
|
||||
String result = string1 + string2;
|
||||
return result;
|
||||
public static ItemStack mkbook(){
|
||||
String text = EMTTextHelper.localize("gui.EMT.book.aspect.output.essentia.eu") + ": \n";
|
||||
String text2 = EMTTextHelper.localize("gui.EMT.book.aspect.output.essentia.eu") + " /t: \n";
|
||||
String text3 = EMTTextHelper.localize("gui.EMT.book.aspect.output.essentia.eu") + " /t singleblock: \n";
|
||||
|
||||
final String title = EMTTextHelper.localize("gui.EMT.book.aspect.output.eu.title");
|
||||
|
||||
final ArrayList<String> singleblock = new ArrayList<String>();
|
||||
final ArrayList<String> bookL = new ArrayList<String>();
|
||||
final ArrayList<String> bookL2 = new ArrayList<String>();
|
||||
|
||||
byte counter = 0;
|
||||
|
||||
for (final Aspect aspect : Aspect.aspects.values()) {
|
||||
++counter;
|
||||
|
||||
if (aspect.equals(Aspect.ENERGY)||aspect.equals(Aspect.TREE)||aspect.equals(Aspect.FIRE)||aspect.equals(Aspect.AURA)||aspect.equals(Aspect.GREED)||aspect.equals(Aspect.AIR))
|
||||
text3 = text3 + aspect.getTag() + ": " + String.valueOf(EMTEssentiasOutputs.outputs.get(aspect.getTag())/20D/20D) + "EU\n";
|
||||
|
||||
if (counter < 12){
|
||||
text2 = text2 + aspect.getTag() + ": " + String.valueOf(EMTEssentiasOutputs.outputs.get(aspect.getTag())/20D) + "EU/t\n";
|
||||
text = text + aspect.getTag() + ": " + String.valueOf(EMTEssentiasOutputs.outputs.get(aspect.getTag())) + "EU\n";
|
||||
}
|
||||
else {
|
||||
text2 = text2+ aspect.getTag() + ": " + String.valueOf(EMTEssentiasOutputs.outputs.get(aspect.getTag())/20D) + "EU\n";
|
||||
text = text + aspect.getTag() + ": " + String.valueOf(EMTEssentiasOutputs.outputs.get(aspect.getTag())) + "EU\n";
|
||||
bookL.add(text);
|
||||
bookL2.add(text2);
|
||||
text2 = new String("");
|
||||
text = new String("");
|
||||
counter = 0;
|
||||
}
|
||||
}
|
||||
|
||||
singleblock.add(text3);
|
||||
|
||||
if (counter != 0){
|
||||
bookL.add(text);
|
||||
bookL2.add(text2);
|
||||
}
|
||||
|
||||
final ItemStack book = new ItemStack(Items.written_book);
|
||||
book.setTagInfo("author", new NBTTagString("Tombenpotter, bartimaeusnek"));
|
||||
book.setTagInfo("title", new NBTTagString(title));
|
||||
final NBTTagCompound nbttagcompound = book.getTagCompound();
|
||||
final NBTTagList bookPages = new NBTTagList();
|
||||
|
||||
for (int i = 0; i < singleblock.size(); i++) {
|
||||
bookPages.appendTag(new NBTTagString(singleblock.get(i)));
|
||||
}
|
||||
for (int i = 0; i < bookL.size(); i++) {
|
||||
bookPages.appendTag(new NBTTagString(bookL.get(i)));
|
||||
}
|
||||
for (int i = 0; i < bookL2.size(); i++) {
|
||||
bookPages.appendTag(new NBTTagString(bookL2.get(i)));
|
||||
}
|
||||
nbttagcompound.setTag("pages", bookPages);
|
||||
return book;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
package emt.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -19,6 +17,8 @@ import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class EntityEnergyBall extends Entity implements IProjectile, IEntityAdditionalSpawnData {
|
||||
public static final int RADIUS = 8;
|
||||
public static final int MAX_TICKS_IN_TILE = 60;
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
package emt.gthandler.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class EMT_GT_Block extends Block {
|
||||
|
||||
public EMT_GT_Block(String name, String[] texture) {
|
||||
super(Material.anvil);
|
||||
this.setHardness(15.0F);
|
||||
this.setResistance(30.0F);
|
||||
this.name = name;
|
||||
this.textureNames=texture;
|
||||
this.setCreativeTab(EMT.TAB);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] texture;
|
||||
private String[] textureNames;
|
||||
private String name;
|
||||
|
||||
@Override
|
||||
public int damageDropped(final int meta) {
|
||||
return meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubBlocks(final Item item, final CreativeTabs tab, final List list) {
|
||||
for (int i = 0; i < textureNames.length; i ++) {
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
return meta < texture.length ? texture[meta] : texture[1];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister par1IconRegister){
|
||||
texture = new IIcon[textureNames.length];
|
||||
for (int i = 0; i < textureNames.length; i++) {
|
||||
texture[i] = par1IconRegister.registerIcon(textureNames[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(){
|
||||
return name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
package emt.gthandler.common.implementations;
|
||||
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.interfaces.ITexture;
|
||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
||||
import gregtech.api.metatileentity.MetaTileEntity;
|
||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
public class EssentiaHatch extends GT_MetaTileEntity_Hatch_Input {
|
||||
|
||||
private AspectList current = new AspectList();
|
||||
private static int ApTe = (int) Math.ceil(Aspect.aspects.size()/GT_Values.V.length);
|
||||
|
||||
public boolean addAspectList(final AspectList A){
|
||||
|
||||
if ((this.mTier+1)*ApTe > A.size()+current.size()){
|
||||
if (current.visSize() + A.visSize() < (this.mTier+1)*ApTe*64)
|
||||
current.add(A);
|
||||
return true;
|
||||
}else
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
public EssentiaHatch(int aID, String aName, String aNameRegional, int aTier) {
|
||||
super(aID, aName, aNameRegional, aTier);
|
||||
}
|
||||
|
||||
public EssentiaHatch(String aName, int aTier, String aDescription, ITexture[][][] aTextures) {
|
||||
super(aName, aTier, aDescription, aTextures);
|
||||
}
|
||||
|
||||
public EssentiaHatch(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures) {
|
||||
super(aName, aTier, aDescription, aTextures);
|
||||
}
|
||||
|
||||
public void setCurrent(AspectList List){
|
||||
this.current = List;
|
||||
}
|
||||
|
||||
public AspectList getAspects() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
|
||||
return new EssentiaHatch("Essentia Hatch "+ GT_Values.VN[this.mTier],this.mTier,this.getDescription(),this.mTextures);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
||||
//TODO: new GUI.
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
|
||||
//TODO: new contanier GUI.
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
ArrayList<String> list = new ArrayList<String>();
|
||||
list.add("This Essentia-Hatch contains:");
|
||||
for (final Aspect A : this.current.aspects.keySet())
|
||||
list.add(A.getName()+": "+Integer.toString(current.getAmount(A)));
|
||||
|
||||
String[] ret = new String[list.size()];
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
ret[i]=list.get(i);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
/*String[] old = super.getInfoData();
|
||||
if (old.length!=0) {
|
||||
String[] newDescription = new String[old.length + 1];
|
||||
for (int i = 0; i < old.length; i++) {
|
||||
newDescription[i] = old[i];
|
||||
}
|
||||
newDescription[old.length] = "This Contains: " + current.size() + " different Aspects";
|
||||
return newDescription;
|
||||
}else
|
||||
return new String[]{"This Contains: " + current.size() + " different Aspects"};*/
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getDescription(){ //this is the fucking tooltip -_-'
|
||||
return new String[] {
|
||||
"Essentia Hatch for usage in Multiblocks",
|
||||
"Can only be filled with the Essentia Filler",
|
||||
"Can hold "+Integer.toString((ApTe*(mTier+1)))+" Different Essentia Types",
|
||||
"Can hold "+Integer.toString((64*ApTe*(mTier+1)))+" Essentia in total"
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isGivingInformation() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveNBTData(NBTTagCompound var1){
|
||||
|
||||
NBTTagList tlist = new NBTTagList();
|
||||
var1.setTag("Aspects", tlist);
|
||||
Aspect[] aspectA = current.getAspects();
|
||||
|
||||
for(int i = 0; i < aspectA.length; ++i) {
|
||||
Aspect aspect = aspectA[i];
|
||||
if (aspect != null) {
|
||||
NBTTagCompound f = new NBTTagCompound();
|
||||
f.setString("key", aspect.getTag());
|
||||
f.setInteger("amount", current.getAmount(aspect));
|
||||
tlist.appendTag(f);
|
||||
}
|
||||
}
|
||||
|
||||
super.saveNBTData(var1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadNBTData(NBTTagCompound var1){
|
||||
current = new AspectList();
|
||||
NBTTagList tlist = var1.getTagList("Aspects", 10);
|
||||
|
||||
for(int j = 0; j < tlist.tagCount(); ++j) {
|
||||
NBTTagCompound rs = tlist.getCompoundTagAt(j);
|
||||
if (rs.hasKey("key")) {
|
||||
current.add(Aspect.getAspect(rs.getString("key")), rs.getInteger("amount"));
|
||||
}
|
||||
}
|
||||
|
||||
super.loadNBTData(var1);
|
||||
}
|
||||
|
||||
public int fuelleft() {
|
||||
int ret = 0;
|
||||
for (final Aspect A : current.aspects.keySet()){
|
||||
ret += current.getAmount(A);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
public boolean isFluidInputAllowed(FluidStack aFluid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getCapacity() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
package emt.gthandler.common.implementations.automation;
|
||||
|
||||
import emt.gthandler.common.implementations.EssentiaHatch;
|
||||
import emt.tile.TileEntityEMT;
|
||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import thaumcraft.api.ThaumcraftApiHelper;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.aspects.IAspectContainer;
|
||||
import thaumcraft.api.aspects.IEssentiaTransport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class EssentiaFiller extends TileEntityEMT implements IAspectContainer, IEssentiaTransport {
|
||||
|
||||
private AspectList current = new AspectList();
|
||||
private byte tick = 0;
|
||||
|
||||
@Override
|
||||
public void updateEntity(){
|
||||
++tick;
|
||||
fillfrompipe();
|
||||
if (tick %20 == 0){
|
||||
TileEntity T = this.worldObj.getTileEntity(xCoord,yCoord+1,zCoord);
|
||||
if (checkTE(T)){
|
||||
tick = 0;
|
||||
return;
|
||||
}
|
||||
if (T == null)
|
||||
T = this.worldObj.getTileEntity(xCoord+1,yCoord,zCoord);
|
||||
if (checkTE(T)) {
|
||||
tick = 0;
|
||||
return;
|
||||
}
|
||||
if (T == null)
|
||||
T = this.worldObj.getTileEntity(xCoord,yCoord,zCoord+1);
|
||||
if (checkTE(T)) {
|
||||
tick = 0;
|
||||
return;
|
||||
}
|
||||
if (T == null)
|
||||
T = this.worldObj.getTileEntity(xCoord,yCoord-1,zCoord);
|
||||
if (checkTE(T)) {
|
||||
tick = 0;
|
||||
return;
|
||||
}
|
||||
if (T == null)
|
||||
T = this.worldObj.getTileEntity(xCoord-1,yCoord,zCoord);
|
||||
if (checkTE(T)) {
|
||||
tick = 0;
|
||||
return;
|
||||
}
|
||||
if (T == null)
|
||||
T = this.worldObj.getTileEntity(xCoord,yCoord,zCoord-1);
|
||||
if (checkTE(T)) {
|
||||
tick = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean checkTE(final TileEntity T){
|
||||
if (T == null)
|
||||
return false;
|
||||
if (this.current.visSize() > 0)
|
||||
if (T instanceof IGregTechTileEntity) {
|
||||
IMetaTileEntity M = ((IGregTechTileEntity) T).getMetaTileEntity();
|
||||
if (M instanceof EssentiaHatch){
|
||||
if (((EssentiaHatch)M).addAspectList(current))
|
||||
this.current=new AspectList();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void fillfrompipe()
|
||||
{
|
||||
TileEntity[] te = new TileEntity[ForgeDirection.VALID_DIRECTIONS.length];
|
||||
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++)
|
||||
{
|
||||
te[i] = ThaumcraftApiHelper.getConnectableTile(this.worldObj, this.xCoord, this.yCoord, this.zCoord, ForgeDirection.VALID_DIRECTIONS[i]);
|
||||
if (te[i] != null)
|
||||
{
|
||||
IEssentiaTransport pipe = (IEssentiaTransport)te[i];
|
||||
if (!pipe.canOutputTo(ForgeDirection.VALID_DIRECTIONS[i])) {
|
||||
return;
|
||||
}
|
||||
if ((pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]) != null) && (pipe.getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i]) < getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i]))) {
|
||||
addToContainer(pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]), pipe.takeEssentia(pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]), 1, ForgeDirection.VALID_DIRECTIONS[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AspectList getAspects() {
|
||||
return current;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAspects(AspectList aspectList) {
|
||||
this.current.add(aspectList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesContainerAccept(Aspect aspect) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int addToContainer(Aspect aspect, int i) {
|
||||
current.add(aspect,i);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean takeFromContainer(Aspect aspect, int i) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean takeFromContainer(AspectList aspectList) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesContainerContainAmount(Aspect aspect, int i) {
|
||||
return current.aspects.containsKey(aspect) && i <= current.getAmount(aspect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesContainerContain(AspectList aspectList) {
|
||||
ArrayList<Boolean> ret = new ArrayList<Boolean>();
|
||||
for (Aspect a : aspectList.aspects.keySet())
|
||||
if (current.aspects.containsKey(a)) {
|
||||
ret.add(true);
|
||||
}else
|
||||
ret.add(false);
|
||||
return !ret.contains(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int containerContains(Aspect aspect) {
|
||||
return current.aspects.containsKey(aspect) ? current.getAmount(aspect) : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isConnectable(ForgeDirection forgeDirection) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInputFrom(ForgeDirection forgeDirection) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canOutputTo(ForgeDirection forgeDirection) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSuction(Aspect aspect, int i) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Aspect getSuctionType(ForgeDirection forgeDirection) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSuctionAmount(ForgeDirection forgeDirection) {
|
||||
return 256;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int takeEssentia(Aspect aspect, int i, ForgeDirection forgeDirection) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int addEssentia(Aspect aspect, int i, ForgeDirection forgeDirection) {
|
||||
current.add(aspect,i);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Aspect getEssentiaType(ForgeDirection forgeDirection) {
|
||||
return current.getAspects()[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEssentiaAmount(ForgeDirection forgeDirection) {
|
||||
int ret = 0;
|
||||
for (final Aspect A : current.aspects.keySet()){
|
||||
ret += current.getAmount(A);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinimumSuction() {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderExtendedTube() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package emt.gthandler.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import emt.gthandler.common.blocks.EMT_GT_Block;
|
||||
import gregtech.api.util.GT_LanguageManager;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class EMT_CasingBlock extends ItemBlock {
|
||||
|
||||
public static final Block[] EMT_GT_BLOCKS = {new EMT_GT_Block("EMT_GTBLOCK_CASEING", new String[]
|
||||
{
|
||||
EMT.TEXTURE_PATH+":machines/side",
|
||||
EMT.TEXTURE_PATH+":machines/GT/inner",
|
||||
EMT.TEXTURE_PATH+":machines/GT/siderawI",
|
||||
EMT.TEXTURE_PATH+":machines/GT/rawcoreI",
|
||||
EMT.TEXTURE_PATH+":machines/GT/siderawII",
|
||||
EMT.TEXTURE_PATH+":machines/GT/rawcoreII",
|
||||
}
|
||||
)};
|
||||
|
||||
public EMT_CasingBlock(final Block par1){
|
||||
super(par1);
|
||||
this.setMaxDamage(0);
|
||||
this.setHasSubtypes(true);
|
||||
this.setCreativeTab(EMT.TAB);
|
||||
}
|
||||
|
||||
protected final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
|
||||
protected final String mNoTileEntityToolTip = GT_LanguageManager.addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!");
|
||||
|
||||
@Override
|
||||
public int getMetadata(final int aMeta) {
|
||||
return aMeta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(final ItemStack aStack) {
|
||||
return this.field_150939_a.getUnlocalizedName() + "." + this.getDamage(aStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(final ItemStack aStack, final EntityPlayer aPlayer, final List aList, final boolean aF3_H) {
|
||||
aList.add(this.mNoMobsToolTip);
|
||||
aList.add(this.mNoTileEntityToolTip);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(ItemStack stack, int pass) {
|
||||
return this.field_150939_a.getIcon(0,stack.getItemDamage());
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) {
|
||||
return getIcon(stack, renderPass);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamageForRenderPass(int p_77618_1_, int p_77618_2_) {
|
||||
return this.field_150939_a.getIcon(0,p_77618_2_);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package emt.gthandler.common.loader;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import emt.gthandler.common.implementations.EssentiaHatch;
|
||||
import emt.gthandler.common.items.EMT_CasingBlock;
|
||||
import emt.gthandler.common.tileentities.machines.multi.generator.EMT_Large_Essentia_Gen;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.OrePrefixes;
|
||||
import gregtech.api.util.GT_ModHandler;
|
||||
import gregtech.api.util.GT_OreDictUnificator;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
|
||||
import static emt.command.CommandOutputs.mkbook;
|
||||
|
||||
public class EMT_GT_Loader implements Runnable {
|
||||
|
||||
|
||||
public static final int TIERS = GT_Values.VN.length;
|
||||
public static int aIDoffset = 13000-TIERS-1;
|
||||
public static ItemStack[] EHatch = new ItemStack[TIERS];
|
||||
public static ItemStack LEG;
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
for (int i = 0; i < TIERS; i++) {
|
||||
EHatch[i] = new EssentiaHatch(aIDoffset+i,"Essentia Hatch "+ GT_Values.VN[i],"Essentia Hatch "+ GT_Values.VN[i],i).getStackForm(1L);
|
||||
}
|
||||
GameRegistry.registerBlock(EMT_CasingBlock.EMT_GT_BLOCKS[0],EMT_CasingBlock.class,"EMT_GTBLOCK_CASEING");
|
||||
LEG = new EMT_Large_Essentia_Gen(aIDoffset+TIERS+1,"Large Essentia Generator","Large Essentia Generator").getStackForm(1L);
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{GT_OreDictUnificator.get(OrePrefixes.frameGt,Materials.Indium,1L),GT_OreDictUnificator.get(OrePrefixes.stickLong,Materials.Tungsten,4L)},Materials.SolderingAlloy.getMolten(576L), new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,3),100, (int)(GT_Values.V[5]-(GT_Values.V[5]/10)));
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,3),GT_OreDictUnificator.get(OrePrefixes.plate,Materials.Iridium,8L)},Materials.Osmiridium.getMolten(576L), new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,5),100, (int)(GT_Values.V[5]-(GT_Values.V[5]/10)));
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{GT_OreDictUnificator.get(OrePrefixes.frameGt,Materials.Iridium,1L),GT_OreDictUnificator.get(OrePrefixes.stickLong,Materials.Osmiridium,4L)},Materials.SolderingAlloy.getMolten(576L), new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,2),100, (int)(GT_Values.V[5]-(GT_Values.V[5]/10)));
|
||||
if (Loader.isModLoaded("ThaumicTinkerer"))
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,2), GT_ModHandler.getModItem("ThaumicTinkerer","kamiResource",2L,2)},Materials.Concrete.getMolten(2304L), new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,4),100, (int)(GT_Values.V[5]-(GT_Values.V[5]/10)));
|
||||
else
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,2), Materials.ElectrumFlux.getPlates(8)},Materials.Concrete.getMolten(2304L), new ItemStack(EMT_CasingBlock.EMT_GT_BLOCKS[0],1,4),100, (int)(GT_Values.V[5]-(GT_Values.V[5]/10)));
|
||||
|
||||
for (int i = 0; i < ItemList.HATCHES_INPUT.length; i++)
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{ItemList.HATCHES_INPUT[i].get(1L), new ItemStack(ConfigBlocks.blockTube,1,4)},Materials.Thaumium.getMolten(288L),EHatch[i],100,(int)(GT_Values.V[i]-(GT_Values.V[i]/10)));
|
||||
}
|
||||
|
||||
public void runlate(){
|
||||
GT_Values.RA.addAssemblerRecipe(new ItemStack[]{new ItemStack(Items.book), GT_OreDictUnificator.get(OrePrefixes.circuit,Materials.Basic,1L), new ItemStack(ConfigItems.itemShard,1, OreDictionary.WILDCARD_VALUE)},GT_Values.NF,mkbook(),128,64);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,416 @@
|
||||
package emt.gthandler.common.tileentities.machines.multi.generator;
|
||||
|
||||
import emt.gthandler.common.implementations.EssentiaHatch;
|
||||
import emt.gthandler.common.items.EMT_CasingBlock;
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import emt.util.EMTTextHelper;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.Textures;
|
||||
import gregtech.api.interfaces.ITexture;
|
||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
|
||||
import gregtech.api.objects.GT_RenderedTexture;
|
||||
import gregtech.api.objects.XSTR;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.visnet.VisNetHandler;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class EMT_Large_Essentia_Gen extends GT_MetaTileEntity_MultiBlockBase {
|
||||
|
||||
public ArrayList<EssentiaHatch> mEssentiaHatches = new ArrayList();
|
||||
private static final byte CASING_INDEX = 2;
|
||||
private byte tick = 0;
|
||||
private boolean has_lube = false;
|
||||
|
||||
public EMT_Large_Essentia_Gen(int aID, String aName, String aNameRegional) {
|
||||
super(aID, aName, aNameRegional);
|
||||
}
|
||||
|
||||
public EMT_Large_Essentia_Gen(String aName) {
|
||||
super(aName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getDescription() {
|
||||
return new String[]{
|
||||
"Controller Block for the Large Essentia Generator.",
|
||||
"Produces energy from magical essentia decay.",
|
||||
"Size(WxHxD): 7x4x7, Controller (Bottom, Center)",
|
||||
"Top-Middle 5x1x5 layer are Muffler Hatches",
|
||||
"Middle 5x2x5 layer are Essentia Diffusion Cells",
|
||||
"Everything from here on goes either in the bottom or on the sides",
|
||||
"1x Fluid Input Hatch",
|
||||
"1x Essentia Input Hatch",
|
||||
"1x Dynamo Hatches",
|
||||
"1x Maintenance Hatch",
|
||||
"The outer hull is made out of Magic Containing Casings",
|
||||
"Produces 20x more than the singleblock generator per essentia",
|
||||
"Causes magical and serious conventional pollution",
|
||||
"Needs 1L Lubricant per second or will cause way more conventional pollution",
|
||||
"Needs 10 " + EMTTextHelper.LIGHT_BLUE +"Aqua"+ EMTTextHelper.LIGHT_GRAY +" cVis per second or will cause way more magical pollution",
|
||||
"Added by EMT",
|
||||
"Made by bartimaeusnek"
|
||||
};
|
||||
}
|
||||
|
||||
public int getCurrentEfficiency(ItemStack itemStack) {
|
||||
return this.mEfficiency - (this.getIdealStatus() - this.getRepairStatus()) * this.getMaxEfficiency(itemStack) / 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone){
|
||||
if (aSide == aFacing) {
|
||||
return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[CASING_INDEX], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER)};
|
||||
}
|
||||
return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[CASING_INDEX]};
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMetaTileEntity newMetaEntity(IGregTechTileEntity arg0) {
|
||||
return new EMT_Large_Essentia_Gen(this.mName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getAccessibleSlotsFromSide(int p_94128_1_) {
|
||||
// TODO Auto-generated method stub
|
||||
return new int[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInsertItem(int p_102007_1_, ItemStack p_102007_2_, int p_102007_3_) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExtractItem(int p_102008_1_, ItemStack p_102008_2_, int p_102008_3_) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSizeInventory() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int p_70301_1_) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
// TODO Auto-generated method stub
|
||||
return this.mName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCustomInventoryName() {
|
||||
// TODO Auto-generated method stub
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInventoryStackLimit() {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markDirty() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
||||
// TODO Auto-generated method stub
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openInventory() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeInventory() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack arg1) {
|
||||
|
||||
final int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX * 3;
|
||||
final int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ * 3;
|
||||
|
||||
for (int x = -3; x <= 3; x++) {
|
||||
for (int z = -3; z <= 3; z++) {
|
||||
for (int h = 0; h <= 3; h++) {
|
||||
final IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + x, h, zDir + z);
|
||||
|
||||
if (!((x == -3) || (x == 3) || (z == -3) || (z == 3))) {
|
||||
// Muffler on top.
|
||||
if ((h == 3)) {
|
||||
if (!this.addMufflerToMachineList(tTileEntity, CASING_INDEX)) {
|
||||
return false;
|
||||
}
|
||||
} else if (h != 0) {
|
||||
//inside Special Blocks
|
||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z) != EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
||||
return false;
|
||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 1))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
if (!(this.addEssetiaHatchToList(tTileEntity,CASING_INDEX)||this.addDynamoToMachineList(tTileEntity,CASING_INDEX)||this.addMaintenanceToMachineList(tTileEntity,CASING_INDEX)||this.addInputToMachineList(tTileEntity,CASING_INDEX)))
|
||||
//ground still casings
|
||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z) != EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
||||
return false;
|
||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 0))
|
||||
return false;
|
||||
|
||||
}
|
||||
else if (h != 0) {
|
||||
//walls
|
||||
if (!(this.addEssetiaHatchToList(tTileEntity,CASING_INDEX)||this.addDynamoToMachineList(tTileEntity,CASING_INDEX)||this.addMaintenanceToMachineList(tTileEntity,CASING_INDEX)||this.addInputToMachineList(tTileEntity,CASING_INDEX)))
|
||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z) != EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
||||
return false;
|
||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 0))
|
||||
return false;
|
||||
}
|
||||
else if (h == 0 ){
|
||||
//top and bottom corners
|
||||
if (!(this.addEssetiaHatchToList(tTileEntity,CASING_INDEX)||this.addDynamoToMachineList(tTileEntity,CASING_INDEX)||this.addMaintenanceToMachineList(tTileEntity,CASING_INDEX)||this.addInputToMachineList(tTileEntity,CASING_INDEX)))
|
||||
if (((xDir + x) != 0) || ((zDir + z) != 0)) //controller
|
||||
if (aBaseMetaTileEntity.getBlockOffset(xDir + x, h, zDir + z) != EMT_CasingBlock.EMT_GT_BLOCKS[0])
|
||||
return false;
|
||||
else if ((aBaseMetaTileEntity.getMetaIDOffset(xDir + x, h, zDir + z) != 0))
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.mDynamoHatches.size() != 1)
|
||||
return false;
|
||||
|
||||
if (this.mInputHatches.size() != 1)
|
||||
return false;
|
||||
|
||||
if (this.mMaintenanceHatches.size() != 1)
|
||||
return false;
|
||||
|
||||
/*
|
||||
//repair shit debug shit
|
||||
this.mWrench = true;
|
||||
this.mScrewdriver = true;
|
||||
this.mSoftHammer = true;
|
||||
this.mHardHammer = true;
|
||||
this.mSolderingTool = true;
|
||||
this.mCrowbar = true;
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean addEssetiaHatchToList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex){
|
||||
if (aTileEntity == null) {
|
||||
return false;
|
||||
} else {
|
||||
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
|
||||
if (aMetaTileEntity == null) {
|
||||
return false;
|
||||
} else if (aMetaTileEntity instanceof EssentiaHatch) {
|
||||
((EssentiaHatch)aMetaTileEntity).updateTexture(aBaseCasingIndex);
|
||||
return this.mEssentiaHatches.add((EssentiaHatch)aMetaTileEntity);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void make_energy(){
|
||||
AspectList fuel = this.mEssentiaHatches.get(0).getAspects();
|
||||
double cached = 0;
|
||||
|
||||
++tick;
|
||||
|
||||
//make energy
|
||||
for (final Aspect A : fuel.aspects.keySet()) {
|
||||
if (fuel.getAmount(A) > 0 ) {
|
||||
double burnvalue = EMTEssentiasOutputs.outputs.get(A.getTag()).doubleValue();
|
||||
cached += (burnvalue / 20D);
|
||||
cached = Math.ceil(cached);
|
||||
|
||||
if (tick % 20 == 0) { //every second consume 1 essentia
|
||||
//consume essentia and remove it from the Aspect List if its 0
|
||||
this.mEssentiaHatches.get(0).getAspects().reduce(A, 1);
|
||||
if (this.mEssentiaHatches.get(0).getAspects().getAmount(A)==0)
|
||||
this.mEssentiaHatches.get(0).getAspects().remove(A);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (tick % 20 == 0){
|
||||
//consume lubricant
|
||||
if (has_lube)
|
||||
this.mInputHatches.get(0).getFluid().amount -= 1;
|
||||
|
||||
tick = 0; //reset ticktimer
|
||||
}
|
||||
|
||||
//transfer energy into mEU
|
||||
this.mEUt = (int) Math.ceil(cached);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkRecipe(ItemStack arg0) {
|
||||
/*
|
||||
if (!this.getBaseMetaTileEntity().isActive())
|
||||
if (this.mEfficiency > 100)
|
||||
this.mEfficiency -= 8;
|
||||
else
|
||||
this.mEfficiency = 100;
|
||||
*/
|
||||
if (this.mEssentiaHatches.get(0).fuelleft() > 0){
|
||||
this.mMaxProgresstime=1;
|
||||
this.mProgresstime=0;
|
||||
}
|
||||
|
||||
return this.mEssentiaHatches.get(0).fuelleft() > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onRunningTick(ItemStack aStack) {
|
||||
|
||||
if (tick % 20 == 0) {//every second
|
||||
//highers eff to max by 0.16% every running tick = 3,2% every second
|
||||
if (this.mEfficiency < this.getMaxEfficiency(null) - 320)
|
||||
this.mEfficiency += 320;
|
||||
else
|
||||
this.mEfficiency = getMaxEfficiency(null);
|
||||
|
||||
//check for Lubricant
|
||||
this.has_lube = this.mInputHatches.get(0).getFluid() != null && this.mInputHatches.get(0).getFluid().isFluidEqual(Materials.Lubricant.getFluid(1L)) && this.mInputHatches.get(0).getFluidAmount() > 0;
|
||||
}
|
||||
|
||||
|
||||
if (tick % 2 == 0) {//every 2nd tick
|
||||
|
||||
final XSTR R = new XSTR();
|
||||
final World WORLD=this.getBaseMetaTileEntity().getWorld();
|
||||
int x = this.getBaseMetaTileEntity().getXCoord();
|
||||
int y = this.getBaseMetaTileEntity().getYCoord();
|
||||
int z = this.getBaseMetaTileEntity().getZCoord();
|
||||
|
||||
//if out of aqua, make much flux but to not stop.
|
||||
boolean outOfcVis = VisNetHandler.drainVis(WORLD, x, y, z, Aspect.WATER, 10) <= 9;
|
||||
|
||||
//Random Change of a bit of Flux Gas.
|
||||
final int RANDOMHATCH = R.nextInt(this.mMufflerHatches.size());
|
||||
|
||||
//gets a chanche to release flux gas based on missing efficiency, min 1%
|
||||
if ((R.nextInt(getMaxEfficiency(null)) > (this.mEfficiency > 100 ? this.mEfficiency : 100)) || outOfcVis) {
|
||||
x = this.mMufflerHatches.get(RANDOMHATCH).getBaseMetaTileEntity().getXCoord();
|
||||
y = this.mMufflerHatches.get(RANDOMHATCH).getBaseMetaTileEntity().getYCoord() + 1;
|
||||
z = this.mMufflerHatches.get(RANDOMHATCH).getBaseMetaTileEntity().getZCoord();
|
||||
WORLD.setBlock(x, y, z, ConfigBlocks.blockFluxGas, R.nextInt(8), 3);
|
||||
}
|
||||
}
|
||||
|
||||
make_energy();
|
||||
++this.mProgresstime;
|
||||
return super.onRunningTick(aStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean explodesOnComponentBreak(ItemStack arg0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDamageToComponent(ItemStack arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxEfficiency(ItemStack arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
return 10000;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPollutionPerTick(ItemStack arg0) {
|
||||
return has_lube ? 50 : 1000;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCorrectMachinePart(ItemStack arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isGivingInformation() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
String[] old = super.getInfoData();
|
||||
old[2]="Produces "+EMTTextHelper.RED+mEUt+EMTTextHelper.WHITE+"EU/t";
|
||||
return old;
|
||||
}
|
||||
|
||||
/* @Override
|
||||
public void explodeMultiblock() {
|
||||
|
||||
final World WORLD=this.getBaseMetaTileEntity().getWorld();
|
||||
final int xDir = ForgeDirection.getOrientation(this.getBaseMetaTileEntity().getBackFacing()).offsetX * 3;
|
||||
final int zDir = ForgeDirection.getOrientation(this.getBaseMetaTileEntity().getBackFacing()).offsetZ * 3;
|
||||
|
||||
for (int x = -3; x <= 3; x++)
|
||||
for (int z = -3; z <= 3; z++)
|
||||
for (int h = 0; h <= 3; h++)
|
||||
WORLD.setBlock(xDir+x, this.getBaseMetaTileEntity().getYCoord()+h, zDir+z, ConfigBlocks.blockFluxGas, 8, 3);
|
||||
super.explodeMultiblock();
|
||||
}*/
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package emt.init;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import emt.block.BlockReflectedGen;
|
||||
import emt.tile.generator.TileEntityBaseGenerator;
|
||||
import emt.tile.generator.TileEntityReflexionGen;
|
||||
|
||||
public class EMTAutogeneratedGens
|
||||
implements Runnable
|
||||
{
|
||||
public static BlockReflectedGen[] BRG;
|
||||
public static TileEntityReflexionGen TFG = new TileEntityReflexionGen();
|
||||
private static short sets;
|
||||
|
||||
public void run()
|
||||
{
|
||||
sets = (short)(TileEntityReflexionGen.L.size() / 16);
|
||||
if (TileEntityReflexionGen.L.size() % 16 != 0) {
|
||||
sets = (short)(sets + 1);
|
||||
}
|
||||
BRG = new BlockReflectedGen[sets];
|
||||
for (short i = 0; i < sets; ++i) {
|
||||
BRG[i] = new BlockReflectedGen("EGenerator.Set." + Short.toString(i), i);
|
||||
}
|
||||
// for (int i = 0; i < TileEntityReflexionGen.L.size(); i++) {
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "TileEntityBaseGenerator");// + TileEntityReflexionGen.L.get(i));
|
||||
//}
|
||||
for (short i = 0; i < sets; i = (short)(i + 1)) {
|
||||
GameRegistry.registerBlock(BRG[i], "EGenerator.Set." + Short.toString(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import static thaumcraft.api.ThaumcraftApi.*;
|
||||
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.crafting.CrucibleRecipe;
|
||||
import thaumcraft.api.crafting.InfusionRecipe;
|
||||
@@ -154,6 +155,9 @@ public class EMTRecipes {
|
||||
|
||||
public static void registerLateRecipes() {
|
||||
/** Infusion Recipes **/
|
||||
lucrumGenerator = addInfusionCraftingRecipe("Lucrum Generator", new ItemStack(EMTBlocks.essentiaGens, 1, 5), 10, new AspectList().add(Aspect.GREED, 64).add(Aspect.EXCHANGE, 128), new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
new ItemStack[] {new ItemStack(Blocks.gold_block),new ItemStack(Blocks.gold_block),new ItemStack(Blocks.gold_block),new ItemStack(Blocks.gold_block),new ItemStack(Blocks.gold_block),new ItemStack(Blocks.gold_block)});
|
||||
|
||||
thaumiumDrill = addInfusionCraftingRecipe("Thaumium Drill", getChargedItem(EMTItems.thaumiumDrill, 10), 5, EMTCraftingAspects.thaumiumDrillCrafting, new ItemStack(IC2Items.getItem("diamondDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE),
|
||||
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.diamond), new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron") });
|
||||
|
||||
@@ -452,6 +456,7 @@ public class EMTRecipes {
|
||||
public static InfusionRecipe armorChargingRing;
|
||||
public static InfusionRecipe nanoWings;
|
||||
public static InfusionRecipe quantumWings;
|
||||
public static InfusionRecipe lucrumGenerator;
|
||||
|
||||
public static ShapelessArcaneRecipe diamondOmnitool;
|
||||
public static ShapelessArcaneRecipe tinyUranium;
|
||||
|
||||
@@ -122,6 +122,12 @@ public class EMTResearches {
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.lucrumGeneratorResearch) {
|
||||
new EMTResearchItem("Lucrum Generator", EMTResearchAspects.lucrumGeneratorResearch, -2, 2, 1, new ItemStack(EMTBlocks.essentiaGens, 1, 5)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem().setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.lucrumGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.aerGeneratorResearch) {
|
||||
new EMTResearchItem("Aer Generator", EMTResearchAspects.aerGenerator, -2, 6, 1, new ItemStack(EMTBlocks.essentiaGens, 1, 4)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem().setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.aerGenerator));
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package emt.init;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import emt.gthandler.common.implementations.automation.EssentiaFiller;
|
||||
import emt.tile.TileElectricCloud;
|
||||
import emt.tile.TileEntityEtherealMacerator;
|
||||
import emt.tile.TileEntityIndustrialWandRecharge;
|
||||
@@ -9,6 +10,7 @@ import emt.tile.generator.TileEntityAerGenerator;
|
||||
import emt.tile.generator.TileEntityArborGenerator;
|
||||
import emt.tile.generator.TileEntityAuramGenerator;
|
||||
import emt.tile.generator.TileEntityIgnisGenerator;
|
||||
import emt.tile.generator.TileEntityLucrumGenerator;
|
||||
import emt.tile.generator.TileEntityPotentiaGenerator;
|
||||
import emt.tile.solar.air.TileEntityAirSolar;
|
||||
import emt.tile.solar.air.TileEntityDoubleAirSolar;
|
||||
@@ -34,18 +36,25 @@ import emt.tile.solar.water.TileEntityWaterSolar;
|
||||
|
||||
public class EMTTiles {
|
||||
|
||||
public static void registerTiles() {
|
||||
GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode");
|
||||
public static void registerTileEntities() {
|
||||
|
||||
//Essentia Gens
|
||||
GameRegistry.registerTileEntity(TileEntityPotentiaGenerator.class, "tileentitypotentiagenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityIgnisGenerator.class, "tileentityignisgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityAuramGenerator.class, "tileentityauramgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityArborGenerator.class, "tileentityarborgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityAerGenerator.class, "tileentityaergenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityLucrumGenerator.class, "tileentitylucrumgenerator");
|
||||
|
||||
//Machinery
|
||||
GameRegistry.registerTileEntity(TileEntityIndustrialWandRecharge.class, "tileentityindustrialwandrecharge");
|
||||
GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator");
|
||||
GameRegistry.registerTileEntity(EssentiaFiller.class,"EssentiaFillerTE");
|
||||
|
||||
//Solars
|
||||
GameRegistry.registerTileEntity(TileEntityCompressedSolar.class, "tileentitycompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntityDoubleCompressedSolar.class, "tileentitydoublecompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntityTripleCompressedSolar.class, "tileentitytriplecompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator");
|
||||
GameRegistry.registerTileEntity(TileEntityWaterSolar.class, "tileentitywatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntityDoubleWaterSolar.class, "tileentitydoublewatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntityTripleWaterSolar.class, "tileentitytriplewatersolar");
|
||||
@@ -64,6 +73,9 @@ public class EMTTiles {
|
||||
GameRegistry.registerTileEntity(TileEntityEarthSolar.class, "tileentityearthsolar");
|
||||
GameRegistry.registerTileEntity(TileEntityDoubleEarthSolar.class, "tileentitydoubleearthsolar");
|
||||
GameRegistry.registerTileEntity(TileEntityTripleEarthSolar.class, "tileentitytripleearthsolar");
|
||||
|
||||
//Random Stuff
|
||||
GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode");
|
||||
GameRegistry.registerTileEntity(TileElectricCloud.class, "tileEntityElectricCloud");
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,29 @@
|
||||
package emt.init;
|
||||
|
||||
public class Registry {
|
||||
public static void register() {
|
||||
EMTBlocks.registerBlocks();
|
||||
EMTItems.registerItems();
|
||||
EMTTiles.registerTiles();
|
||||
EMTRecipes.registerEarlyRecipes();
|
||||
}
|
||||
import emt.gthandler.common.loader.EMT_GT_Loader;
|
||||
|
||||
public static void registerLate() {
|
||||
EMTBlocks.addAspects();
|
||||
EMTRecipes.registerLateRecipes();
|
||||
EMTRecipes.registerUUMInfusionRecipes();
|
||||
}
|
||||
public class Registry
|
||||
{
|
||||
private static final EMT_GT_Loader gtloader = new EMT_GT_Loader();
|
||||
public static void registerPreInit() {
|
||||
}
|
||||
|
||||
public static void registerInit()
|
||||
{
|
||||
EMTBlocks.registerBlocks();
|
||||
EMTItems.registerItems();
|
||||
EMTTiles.registerTileEntities();
|
||||
gtloader.run();
|
||||
EMTRecipes.registerEarlyRecipes();
|
||||
}
|
||||
|
||||
public static void registerLate()
|
||||
{
|
||||
EMTBlocks.addAspects();
|
||||
gtloader.runlate();
|
||||
EMTRecipes.registerLateRecipes();
|
||||
EMTRecipes.registerUUMInfusionRecipes();
|
||||
// new EMTAutogeneratedGens().run();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ public class ItemElectricScribingTools extends ItemInkwell implements IElectricI
|
||||
|
||||
@Override
|
||||
public int getTier(ItemStack itemStack) {
|
||||
return 1;
|
||||
return 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -15,11 +15,12 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class ItemIC2Baubles extends ItemBase implements IBauble {
|
||||
public class ItemIC2Baubles extends ItemBase implements IBauble, IRunicArmor {
|
||||
|
||||
public IIcon[] icon = new IIcon[16];
|
||||
public static int wornTick;
|
||||
@@ -133,4 +134,9 @@ public class ItemIC2Baubles extends ItemBase implements IBauble {
|
||||
public boolean canUnequip(ItemStack stack, EntityLivingBase player) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -17,12 +17,13 @@ import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.util.IIcon;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
import thaumcraft.api.IWarpingGear;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear
|
||||
public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRunicArmor
|
||||
{
|
||||
private static final String NBT_TAG_FORGE_DATA = "EMT";
|
||||
private static final String NBT_TAG_MIND_CORRUPTION = "MindCorruption";
|
||||
@@ -238,5 +239,9 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear
|
||||
return tRet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,6 @@ import emt.util.EMTTextHelper;
|
||||
import ic2.api.item.ElectricItem;
|
||||
import ic2.api.item.IElectricItem;
|
||||
import ic2.api.item.IMetalArmor;
|
||||
import ic2.core.item.ElectricItemManager;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -24,13 +23,14 @@ import net.minecraftforge.common.ISpecialArmor;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.living.LivingEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingFallEvent;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
import thaumcraft.api.IVisDiscountGear;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ItemElectricBootsTraveller extends ItemArmor implements IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor {
|
||||
public class ItemElectricBootsTraveller extends ItemArmor implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor {
|
||||
|
||||
public int maxCharge = 100000;
|
||||
public int energyPerDamage = 1000;
|
||||
@@ -254,4 +254,9 @@ public class ItemElectricBootsTraveller extends ItemArmor implements IElectricIt
|
||||
public Item getEmptyItem(ItemStack itemStack) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -36,8 +36,9 @@ import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.living.LivingFallEvent;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
|
||||
public class ItemInfusedQuantumChestplate extends ItemArmorElectric {
|
||||
public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements IRunicArmor {
|
||||
|
||||
public final byte NONE = 0;
|
||||
public final byte JETPACK = 1;
|
||||
@@ -540,4 +541,9 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric {
|
||||
player.fallDistance = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -20,13 +20,14 @@ import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ISpecialArmor;
|
||||
import thaumcraft.api.IGoggles;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
import thaumcraft.api.IVisDiscountGear;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.nodes.IRevealer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ItemElectricGoggles extends ItemArmor implements IElectricItem, IVisDiscountGear, IGoggles, IRevealer, IMetalArmor, ISpecialArmor {
|
||||
public class ItemElectricGoggles extends ItemArmor implements IRunicArmor, IElectricItem, IVisDiscountGear, IGoggles, IRevealer, IMetalArmor, ISpecialArmor {
|
||||
|
||||
public double maxCharge = 100000;
|
||||
public double transferLimit = 100;
|
||||
@@ -189,4 +190,9 @@ public class ItemElectricGoggles extends ItemArmor implements IElectricItem, IVi
|
||||
public Item getEmptyItem(ItemStack itemStack) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,9 @@ import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import thaumcraft.api.IRunicArmor;
|
||||
|
||||
public class ItemFeatherWing extends ItemArmor {
|
||||
public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
||||
public int visDiscount = 0;
|
||||
|
||||
public ItemFeatherWing(ArmorMaterial material, int par3, int par4) {
|
||||
@@ -114,4 +115,9 @@ public class ItemFeatherWing extends ItemArmor {
|
||||
player.motionY *= 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,6 @@ package emt.item.armor.wings;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.item.ElectricItem;
|
||||
import ic2.api.item.IElectricItem;
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
package emt.item.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
|
||||
public class ItemBlockEssentiaGenerator extends ItemBlock {
|
||||
|
||||
public ItemBlockEssentiaGenerator(Block id) {
|
||||
super(id);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,24 @@
|
||||
package emt.item.block;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import emt.util.EMTTextHelper;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class ItemBlockEssentiaGenerators extends ItemBlock {
|
||||
|
||||
public ItemBlockEssentiaGenerators(Block id) {
|
||||
super(id);
|
||||
public ItemBlockEssentiaGenerators(Block block) {
|
||||
super(block);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@@ -30,6 +41,9 @@ public class ItemBlockEssentiaGenerators extends ItemBlock {
|
||||
case 4:
|
||||
name = "aer";
|
||||
break;
|
||||
case 5:
|
||||
name = "lucrum";
|
||||
break;
|
||||
default:
|
||||
name = "nothing";
|
||||
}
|
||||
@@ -40,4 +54,56 @@ public class ItemBlockEssentiaGenerators extends ItemBlock {
|
||||
public int getMetadata(int meta) {
|
||||
return meta;
|
||||
}
|
||||
|
||||
private long getOutputAmperage(double EU) {
|
||||
return (long) (1L + (EU / 20.0D / 20.0D / GT_Values.V[2]));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack is, EntityPlayer player, List list, boolean flag) {
|
||||
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
||||
switch (is.getItemDamage()) {
|
||||
case 0:
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Generating")+EMTTextHelper.LIGHT_GRAY+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.ENERGY.getTag())/20/20)) +" EU/t");
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Output")+EMTTextHelper.LIGHT_GRAY+"128 EU/t @ "+getOutputAmperage(EMTEssentiasOutputs.outputs.get(Aspect.ENERGY.getTag()))+" A");
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN+StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+EMTTextHelper.LIGHT_GRAY+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.ENERGY.getTag()))) +" EU");
|
||||
break;
|
||||
|
||||
case 1:
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Generating")+EMTTextHelper.LIGHT_GRAY+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag())/20/20)) +" EU/t");
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Output")+EMTTextHelper.LIGHT_GRAY+"128 EU/t @ "+getOutputAmperage(EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag()))+" A");
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN+StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+EMTTextHelper.LIGHT_GRAY+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag()))) +" EU");
|
||||
break;
|
||||
|
||||
case 2:
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Generating")+EMTTextHelper.LIGHT_GRAY+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.AURA.getTag())/20/20)) +" EU/t");
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Output")+EMTTextHelper.LIGHT_GRAY+"128 EU/t @ "+getOutputAmperage(EMTEssentiasOutputs.outputs.get(Aspect.AURA.getTag()))+" A");
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN+StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+EMTTextHelper.LIGHT_GRAY+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.AURA.getTag()))) +" EU");
|
||||
break;
|
||||
|
||||
case 3:
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Generating")+EMTTextHelper.LIGHT_GRAY+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.TREE.getTag())/20/20)) +" EU/t");
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Output")+EMTTextHelper.LIGHT_GRAY+"128 EU/t @ "+getOutputAmperage(EMTEssentiasOutputs.outputs.get(Aspect.TREE.getTag()))+" A");
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN+StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+EMTTextHelper.LIGHT_GRAY+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag()))) +" EU");
|
||||
break;
|
||||
|
||||
case 4:
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Generating")+EMTTextHelper.LIGHT_GRAY+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.AIR.getTag())/20/20)) +" EU/t");
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Output")+EMTTextHelper.LIGHT_GRAY+"128 EU/t @ "+getOutputAmperage(EMTEssentiasOutputs.outputs.get(Aspect.AIR.getTag()))+" A");
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN+StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+EMTTextHelper.LIGHT_GRAY+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.AIR.getTag()))) +" EU");
|
||||
break;
|
||||
|
||||
case 5:
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Generating")+EMTTextHelper.LIGHT_GRAY+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.GREED.getTag())/20/20)) +" EU/t");
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE+StatCollector.translateToLocal("emt.Output")+EMTTextHelper.LIGHT_GRAY+"128 EU/t @ "+getOutputAmperage(EMTEssentiasOutputs.outputs.get(Aspect.GREED.getTag()))+" A");
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN+StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+EMTTextHelper.LIGHT_GRAY+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.GREED.getTag()))) +" EU");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
list.add(EMTTextHelper.YELLOW+StatCollector.translateToLocal("emt.Storage")+EMTTextHelper.LIGHT_GRAY+Double.toString(EMTConfigHandler.EssentiaGeneratorStorage)+" EU");
|
||||
} else
|
||||
list.add(StatCollector.translateToLocal("emt.PressShift"));
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
package emt.item.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ItemBlockMachines extends ItemBlock {
|
||||
|
||||
public ItemBlockMachines(Block id) {
|
||||
@@ -23,7 +26,11 @@ public class ItemBlockMachines extends ItemBlock {
|
||||
name = "etheralprocessor";
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
case 2:{
|
||||
name = "essentiafiller";
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
name = "raindispeller";
|
||||
break;
|
||||
}
|
||||
@@ -37,4 +44,16 @@ public class ItemBlockMachines extends ItemBlock {
|
||||
public int getMetadata(int par1) {
|
||||
return par1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List p_77624_3_, boolean p_77624_4_) {
|
||||
switch (p_77624_1_.getItemDamage()) {
|
||||
case 2: {
|
||||
p_77624_3_.add("Connects between Essentia Hatches and the Pipe Network");
|
||||
p_77624_3_.add("Looses its Essentia on Restart");
|
||||
p_77624_3_.add("Added by bartimaeusnek");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,19 @@
|
||||
package emt.item.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import static emt.util.EMTTextHelper.localize;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import emt.block.BlockBaseContainer;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTTextHelper;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class ItemBlockSolars extends ItemBlock {
|
||||
|
||||
@@ -137,6 +139,7 @@ public class ItemBlockSolars extends ItemBlock {
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean advancedItemTooltips) {
|
||||
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
||||
if (instance == 0) {
|
||||
switch (itemstack.getItemDamage()) {
|
||||
case 0: {
|
||||
@@ -151,65 +154,81 @@ public class ItemBlockSolars extends ItemBlock {
|
||||
list.add(EMTConfigHandler.tripleCompressedSolarOutput + localize("tooltip.EMT.euPerTick"));
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.raining"));
|
||||
case 3: {//aqua
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.underwater"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (3F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.raining"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (6F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.thunder"));
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.raining"));
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.underwater"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (3F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.raining"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (6F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.thunder"));
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.raining"));
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.underwater"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (3F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.raining"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (6F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.thunder"));
|
||||
break;
|
||||
}
|
||||
case 6: {
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
|
||||
case 6: {//dark
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + (0.75F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.day"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
break;
|
||||
}
|
||||
case 7: {
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + (0.75F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.day"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
break;
|
||||
}
|
||||
case 8: {
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + (0.75F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.day"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
break;
|
||||
}
|
||||
case 9: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.triple"));
|
||||
case 9: {//ordo
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.day"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (0.75F * EMTConfigHandler.compressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.triple"));
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.day"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (0.75F * EMTConfigHandler.doubleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
break;
|
||||
}
|
||||
|
||||
case 11: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.triple"));
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + (2F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.day"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + (0.75F * EMTConfigHandler.tripleCompressedSolarOutput) + " " + localize("tooltip.EMT.euPerTick") + " " + localize("tooltip.EMT.night"));
|
||||
break;
|
||||
}
|
||||
case 12: {
|
||||
case 12: {//fire
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.triple") + " " + localize("tooltip.EMT.output.double.lava"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double") + " " + localize("tooltip.EMT.output.double.nether"));
|
||||
break;
|
||||
}
|
||||
case 13: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.triple") + " " + localize("tooltip.EMT.output.double.lava"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double") + " " + localize("tooltip.EMT.output.double.nether"));
|
||||
break;
|
||||
}
|
||||
case 14: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double") + " " + localize("tooltip.EMT.output.double.lava"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.triple") + " " + localize("tooltip.EMT.output.double.lava"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double") + " " + localize("tooltip.EMT.output.double.nether"));
|
||||
break;
|
||||
}
|
||||
case 15: {
|
||||
case 15: {//aer
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half") + " " + localize("tooltip.EMT.output.double.half.height"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half.height"));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -223,27 +242,27 @@ public class ItemBlockSolars extends ItemBlock {
|
||||
switch (itemstack.getItemDamage()) {
|
||||
case 0: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half") + " " + localize("tooltip.EMT.output.double.half.height"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half.height"));
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half") + " " + localize("tooltip.EMT.output.double.half.height"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half.height"));
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
case 2: {//terra
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.compressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half") + " " + localize("tooltip.EMT.output.double.half.low"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half.low"));
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.doubleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half") + " " + localize("tooltip.EMT.output.double.half.low"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half.low"));
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
list.add(EMTTextHelper.BRIGHT_BLUE + localize("tooltip.EMT.normalConditions") + ": " + EMTTextHelper.LIGHT_GRAY + EMTConfigHandler.tripleCompressedSolarOutput + " " + localize("tooltip.EMT.euPerTick"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half") + " " + localize("tooltip.EMT.output.double.half.low"));
|
||||
list.add(EMTTextHelper.BRIGHT_GREEN + localize("tooltip.EMT.specialEffect") + ": " + EMTTextHelper.LIGHT_GRAY + localize("tooltip.EMT.output.double.half.low"));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -252,5 +271,7 @@ public class ItemBlockSolars extends ItemBlock {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
list.add(StatCollector.translateToLocal("emt.PressShift"));
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,5 @@
|
||||
package emt.item.focus;
|
||||
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import emt.item.focus.ItemBaseFocus;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.item.ElectricItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -12,6 +9,8 @@ import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.wands.FocusUpgradeType;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
|
||||
import java.util.Map.Entry;
|
||||
|
||||
public class ItemWandChargingFocus extends ItemBaseFocus {
|
||||
|
||||
AspectList visCost = new AspectList().add(Aspect.FIRE, 10).add(Aspect.WATER, 10).add(Aspect.AIR, 10).add(Aspect.EARTH, 10).add(Aspect.ORDER, 10).add(Aspect.ENTROPY, 10);
|
||||
|
||||
@@ -8,13 +8,10 @@ import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import thaumcraft.api.IRepairable;
|
||||
import thaumcraft.common.entities.projectile.EntityAlumentum;
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.entities.EntityFollowingItem;
|
||||
import thaumcraft.common.lib.utils.BlockUtils;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.Locale;
|
||||
@@ -36,7 +35,6 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
||||
|
||||
private static final Block[] isEffective = { Blocks.nether_brick, Blocks.netherrack, Blocks.glowstone, Blocks.iron_block, Blocks.gold_block, Blocks.diamond_block, Blocks.lapis_block, Blocks.redstone_block, Blocks.redstone_ore, Blocks.emerald_ore, Blocks.emerald_block, Blocks.stonebrick, Blocks.glass, Blocks.stone, Blocks.gold_ore, Blocks.iron_ore, Blocks.coal_ore, Blocks.cobblestone,
|
||||
Blocks.diamond_ore, Blocks.lapis_ore, Blocks.dirt, Blocks.gravel, Blocks.sand, Blocks.sandstone, Blocks.soul_sand, Blocks.clay, Blocks.grass, Blocks.snow_layer, Blocks.snow, Blocks.farmland, Blocks.hardened_clay, Blocks.stained_hardened_clay, Blocks.mossy_cobblestone };
|
||||
public Icon icon;
|
||||
int side;
|
||||
public int searchCost = 1000;
|
||||
public int hitCost = 400;
|
||||
|
||||
@@ -2,11 +2,17 @@ package emt.proxy;
|
||||
|
||||
import cpw.mods.fml.common.network.IGuiHandler;
|
||||
import emt.client.gui.GuiEtherealMacerator;
|
||||
import emt.client.gui.GuiGenerator;
|
||||
import emt.client.gui.GuiIndustrialWandRecharger;
|
||||
import emt.client.gui.GuiSolar;
|
||||
import emt.client.gui.container.ConainerGenerator;
|
||||
import emt.client.gui.container.ContainerEtheralMacerator;
|
||||
import emt.client.gui.container.ContainerIndustrialWandRecharge;
|
||||
import emt.client.gui.container.ContainerSolars;
|
||||
import emt.tile.TileEntityEtherealMacerator;
|
||||
import emt.tile.TileEntityIndustrialWandRecharge;
|
||||
import emt.tile.generator.TileEntityBaseGenerator;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
@@ -34,6 +40,12 @@ public class CommonProxy implements IGuiHandler {
|
||||
if (entity != null && entity instanceof TileEntityEtherealMacerator) {
|
||||
return new ContainerEtheralMacerator(player.inventory, (TileEntityEtherealMacerator) entity);
|
||||
}
|
||||
else if (entity != null && entity instanceof TileEntityBaseGenerator) {
|
||||
return new ConainerGenerator(player.inventory, (TileEntityBaseGenerator) entity);
|
||||
}
|
||||
else if (entity != null && entity instanceof TileEntitySolarBase) {
|
||||
return new ContainerSolars(player.inventory, (TileEntitySolarBase) entity);
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
@@ -52,6 +64,12 @@ public class CommonProxy implements IGuiHandler {
|
||||
if (entity != null && entity instanceof TileEntityEtherealMacerator) {
|
||||
return new GuiEtherealMacerator(player.inventory, (TileEntityEtherealMacerator) entity);
|
||||
}
|
||||
else if (entity != null && entity instanceof TileEntityBaseGenerator) {
|
||||
return new GuiGenerator(player.inventory, (TileEntityBaseGenerator) entity);
|
||||
}
|
||||
else if (entity != null && entity instanceof TileEntitySolarBase) {
|
||||
return new GuiSolar(player.inventory, (TileEntitySolarBase) entity);
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
package emt.tile;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class DefinitelyNotAIC2Source extends TileEntity {
|
||||
public final TileEntity parent;
|
||||
protected double capacity;
|
||||
protected byte tier;
|
||||
protected double power;
|
||||
protected double energyStored;
|
||||
protected boolean addedToEnet;
|
||||
|
||||
public DefinitelyNotAIC2Source(TileEntity parent1, double capacity1, int tier1) {
|
||||
double power = (double) GT_Values.V[tier1];
|
||||
this.parent = parent1;
|
||||
this.capacity = capacity1 < power ? power : capacity1;
|
||||
this.tier = (byte) tier1;
|
||||
this.power = power;
|
||||
}
|
||||
|
||||
public void updateEntity() {
|
||||
if (!this.addedToEnet && !FMLCommonHandler.instance().getEffectiveSide().isClient()) {
|
||||
this.worldObj = this.parent.getWorldObj();
|
||||
this.xCoord = this.parent.xCoord;
|
||||
this.yCoord = this.parent.yCoord;
|
||||
this.zCoord = this.parent.zCoord;
|
||||
this.addedToEnet = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void invalidate() {
|
||||
super.invalidate();
|
||||
this.onChunkUnload();
|
||||
}
|
||||
|
||||
public void onChunkUnload() {
|
||||
if (this.addedToEnet) {
|
||||
this.addedToEnet = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound tag) {
|
||||
super.readFromNBT(tag);
|
||||
NBTTagCompound data = tag.getCompoundTag("EMTGTSource");
|
||||
this.energyStored = data.getDouble("energy");
|
||||
}
|
||||
|
||||
public void writeToNBT(NBTTagCompound tag) {
|
||||
try {
|
||||
super.writeToNBT(tag);
|
||||
} catch (RuntimeException var3) {
|
||||
}
|
||||
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
data.setDouble("energy", this.energyStored);
|
||||
tag.setTag("EMTGTSource", data);
|
||||
}
|
||||
|
||||
public double getCapacity() {
|
||||
return this.capacity;
|
||||
}
|
||||
|
||||
public void setCapacity(double capacity1) {
|
||||
if (capacity1 < this.power) {
|
||||
capacity1 = this.power;
|
||||
}
|
||||
|
||||
this.capacity = capacity1;
|
||||
}
|
||||
|
||||
public double getEnergyStored() {
|
||||
return this.energyStored;
|
||||
}
|
||||
|
||||
public void setEnergyStored(double amount) {
|
||||
this.energyStored = amount;
|
||||
}
|
||||
|
||||
public double addEnergy(double amount) {
|
||||
if (FMLCommonHandler.instance().getEffectiveSide().isClient()) {
|
||||
return 0.0D;
|
||||
} else {
|
||||
if (amount > this.capacity - this.energyStored) {
|
||||
amount = this.capacity - this.energyStored;
|
||||
}
|
||||
|
||||
this.energyStored += amount;
|
||||
return amount;
|
||||
}
|
||||
}
|
||||
|
||||
public void drawEnergy(double amount) {
|
||||
this.energyStored -= amount;
|
||||
}
|
||||
|
||||
public byte getSourceTier() {
|
||||
return this.tier;
|
||||
}
|
||||
}
|
||||
@@ -6,47 +6,47 @@ import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public abstract class TileEntityEMT extends TileEntity {
|
||||
|
||||
public int facing;
|
||||
public boolean isOn;
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tagCompound) {
|
||||
super.readFromNBT(tagCompound);
|
||||
|
||||
facing = tagCompound.getInteger("facing");
|
||||
isOn = tagCompound.getBoolean("isOn");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound tagCompound) {
|
||||
super.writeToNBT(tagCompound);
|
||||
|
||||
tagCompound.setInteger("facing", facing);
|
||||
tagCompound.setBoolean("isOn", isOn);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Packet getDescriptionPacket() {
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
writeToNBT(nbt);
|
||||
S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, nbt);
|
||||
return packet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) {
|
||||
NBTTagCompound nbt = pkt.func_148857_g();
|
||||
readFromNBT(nbt);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markDirty() {
|
||||
super.markDirty();
|
||||
if (worldObj.isRemote) {
|
||||
return;
|
||||
}
|
||||
this.worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
public class TileEntityEMT
|
||||
extends TileEntity
|
||||
{
|
||||
public int facing;
|
||||
public boolean isOn;
|
||||
|
||||
public void readFromNBT(NBTTagCompound tagCompound)
|
||||
{
|
||||
super.readFromNBT(tagCompound);
|
||||
|
||||
this.facing = tagCompound.getInteger("facing");
|
||||
this.isOn = tagCompound.getBoolean("isOn");
|
||||
}
|
||||
|
||||
public void writeToNBT(NBTTagCompound tagCompound)
|
||||
{
|
||||
tagCompound.setInteger("facing", this.facing);
|
||||
tagCompound.setBoolean("isOn", this.isOn);
|
||||
super.writeToNBT(tagCompound);
|
||||
}
|
||||
|
||||
public final Packet getDescriptionPacket()
|
||||
{
|
||||
NBTTagCompound nbt = new NBTTagCompound();
|
||||
writeToNBT(nbt);
|
||||
S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 0, nbt);
|
||||
return packet;
|
||||
}
|
||||
|
||||
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt)
|
||||
{
|
||||
NBTTagCompound nbt = pkt.func_148857_g();
|
||||
readFromNBT(nbt);
|
||||
}
|
||||
|
||||
public void markDirty()
|
||||
{
|
||||
super.markDirty();
|
||||
if (this.worldObj.isRemote) {
|
||||
return;
|
||||
}
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
package emt.tile;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.TileEntityEMT;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.item.IC2Items;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityAerGenerator extends TileEntityBaseGenerator {
|
||||
|
||||
public TileEntityAerGenerator() {
|
||||
aspect = Aspect.AIR;
|
||||
output = EMTEssentiasOutputs.outputs.get(aspect.getTag());
|
||||
}
|
||||
}
|
||||
public class TileEntityAerGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityAerGenerator()
|
||||
{
|
||||
super(Aspect.AIR);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityArborGenerator extends TileEntityBaseGenerator {
|
||||
|
||||
public TileEntityArborGenerator() {
|
||||
aspect = Aspect.TREE;
|
||||
output = EMTEssentiasOutputs.outputs.get(aspect.getTag());
|
||||
}
|
||||
public class TileEntityArborGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityArborGenerator()
|
||||
{
|
||||
super(Aspect.TREE);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityAuramGenerator extends TileEntityBaseGenerator {
|
||||
|
||||
public TileEntityAuramGenerator() {
|
||||
aspect = Aspect.AURA;
|
||||
output = EMTEssentiasOutputs.outputs.get(aspect.getTag());
|
||||
}
|
||||
public class TileEntityAuramGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityAuramGenerator()
|
||||
{
|
||||
super(Aspect.AURA);
|
||||
}
|
||||
}
|
||||
@@ -1,83 +1,728 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.TileEntityEMT;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.interfaces.tileentity.IBasicEnergyContainer;
|
||||
import gregtech.api.interfaces.tileentity.IEnergyConnected;
|
||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
||||
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
||||
import gregtech.api.net.GT_Packet_Block_Event;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.IFluidHandler;
|
||||
import thaumcraft.api.ThaumcraftApiHelper;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.aspects.IAspectContainer;
|
||||
import thaumcraft.api.aspects.IAspectSource;
|
||||
import thaumcraft.api.aspects.IEssentiaTransport;
|
||||
import thaumcraft.common.lib.network.PacketHandler;
|
||||
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
||||
|
||||
public abstract class TileEntityBaseGenerator extends TileEntityEMT {
|
||||
public class TileEntityBaseGenerator
|
||||
extends TileEntityEMT
|
||||
implements IInventory, IAspectContainer, IEssentiaTransport, IHasWorldObjectAndCoords, IEnergyConnected, IBasicEnergyContainer {
|
||||
public DefinitelyNotAIC2Source energySource = new DefinitelyNotAIC2Source(this, 100000.0D, 2);
|
||||
public Aspect aspect;
|
||||
public double generating;
|
||||
public int tick = 0;
|
||||
public boolean isActive = false;
|
||||
public int tier;
|
||||
public int storage;
|
||||
public short mpshownstroage;
|
||||
public int maxstorage;
|
||||
public byte maxfuel;
|
||||
public byte fuel;
|
||||
public byte refuel;
|
||||
public long timer = 0L;
|
||||
public boolean dead = true;
|
||||
public byte color;
|
||||
private boolean side;
|
||||
|
||||
public BasicSource energySource = new BasicSource(this, 1000000000, 3);
|
||||
public Aspect aspect;
|
||||
public double output;
|
||||
public int tick = 0;
|
||||
public boolean isActive = false;
|
||||
Random rnd = new Random();
|
||||
public TileEntityBaseGenerator(Aspect aspect) {
|
||||
super();
|
||||
this.energySource.setCapacity(EMTConfigHandler.EssentiaGeneratorStorage);
|
||||
this.maxstorage = ((int) this.energySource.getCapacity());
|
||||
this.maxfuel = 64;
|
||||
this.fuel = 0;
|
||||
this.storage = 0;
|
||||
this.refuel = 1;
|
||||
this.aspect = aspect;
|
||||
this.generating = ((Double) EMTEssentiasOutputs.outputs.get(aspect.getTag())).doubleValue();
|
||||
this.color = -1;
|
||||
}
|
||||
|
||||
public TileEntityBaseGenerator() {
|
||||
output = 2000;
|
||||
}
|
||||
public void updateEntity() {
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
if (tick > 0)
|
||||
tick--;
|
||||
this.side = !this.worldObj.isRemote ? FMLCommonHandler.instance().getEffectiveSide().isServer() : FMLCommonHandler.instance().getSide().isServer();
|
||||
this.dead = false;
|
||||
this.timer += 1L;
|
||||
if (this.timer <= Long.MAX_VALUE - 1)
|
||||
this.timer = 0L;
|
||||
storeFuel();
|
||||
fillfrompipe();
|
||||
createEnergy();
|
||||
inputintoGTnet();
|
||||
this.energySource.updateEntity();
|
||||
}
|
||||
|
||||
if (tick == 0) {
|
||||
energySource.updateEntity();
|
||||
isActive = false;
|
||||
createEnergy();
|
||||
tick = 20;
|
||||
}
|
||||
}
|
||||
|
||||
public void createEnergy() {
|
||||
int count = 0;
|
||||
for (int x = this.xCoord - 4; x < this.xCoord + 4; x++) {
|
||||
for (int y = this.yCoord - 4; y < this.yCoord + 4; y++) {
|
||||
for (int z = this.zCoord - 4; z < this.zCoord + 4; z++) {
|
||||
TileEntity tile = this.worldObj.getTileEntity(x, y, z);
|
||||
if (tile != null && tile instanceof IAspectSource) {
|
||||
IAspectSource as = (IAspectSource) tile;
|
||||
if (as.doesContainerContainAmount(aspect, 1)) {
|
||||
if (as.takeFromContainer(aspect, 1)) {
|
||||
isActive = true;
|
||||
PacketHandler.INSTANCE.sendToAllAround(new PacketFXEssentiaSource(xCoord, yCoord, zCoord, (byte) (xCoord - x), (byte) (yCoord - y), (byte) (zCoord - z), aspect.getColor()), new cpw.mods.fml.common.network.NetworkRegistry.TargetPoint(this.getWorldObj().provider.dimensionId, xCoord, yCoord, zCoord, 32.0D));
|
||||
energySource.addEnergy(output / 30D);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public void storeFuel() {
|
||||
if (this.fuel < this.maxfuel) {
|
||||
for (int x = this.xCoord - 4; x < this.xCoord + 4; x++) {
|
||||
for (int y = this.yCoord - 4; y < this.yCoord + 4; y++) {
|
||||
for (int z = this.zCoord - 4; z < this.zCoord + 4; z++) {
|
||||
TileEntity tile = this.worldObj.getTileEntity(x, y, z);
|
||||
if ((tile != null) && ((tile instanceof IAspectSource))) {
|
||||
IAspectSource as = (IAspectSource) tile;
|
||||
if ((as.doesContainerContainAmount(this.aspect, this.refuel)) &&
|
||||
(as.takeFromContainer(this.aspect, this.refuel))) {
|
||||
PacketHandler.INSTANCE.sendToAllAround(new PacketFXEssentiaSource(this.xCoord, this.yCoord, this.zCoord, (byte) (this.xCoord - x), (byte) (this.yCoord - y), (byte) (this.zCoord - z), this.aspect.getColor()), new NetworkRegistry.TargetPoint(getWorldObj().provider.dimensionId, this.xCoord, this.yCoord, this.zCoord, 32.0D));
|
||||
addToContainer(this.aspect, this.refuel);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChunkUnload() {
|
||||
energySource.onChunkUnload();
|
||||
}
|
||||
public void fillfrompipe() {
|
||||
TileEntity[] te = new TileEntity[ForgeDirection.VALID_DIRECTIONS.length];
|
||||
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
|
||||
te[i] = ThaumcraftApiHelper.getConnectableTile(this.worldObj, this.xCoord, this.yCoord, this.zCoord, ForgeDirection.VALID_DIRECTIONS[i]);
|
||||
if (te[i] != null) {
|
||||
IEssentiaTransport pipe = (IEssentiaTransport) te[i];
|
||||
if (!pipe.canOutputTo(ForgeDirection.VALID_DIRECTIONS[i])) {
|
||||
return;
|
||||
}
|
||||
if ((pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]) != null) && (pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i]).equals(this.aspect)) && (pipe.getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i]) < getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i]))) {
|
||||
addToContainer(this.aspect, pipe.takeEssentia(this.aspect, 1, ForgeDirection.VALID_DIRECTIONS[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invalidate() {
|
||||
energySource.invalidate();
|
||||
super.invalidate();
|
||||
}
|
||||
public String getInventoryName() {
|
||||
return StatCollector.translateToLocal("tile.EMT.essentia." + this.aspect.getTag() + ".name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tag) {
|
||||
super.readFromNBT(tag);
|
||||
energySource.readFromNBT(tag);
|
||||
}
|
||||
public void createEnergy() {
|
||||
if (this.fuel > 0) {
|
||||
if (this.storage + this.generating / 20.0D / 20.0D < this.maxstorage) {
|
||||
this.isActive = true;
|
||||
if (side) {
|
||||
this.energySource.addEnergy(this.generating / 20.0D / 20.0D);
|
||||
this.storage = ((int) this.energySource.getEnergyStored());
|
||||
}
|
||||
this.tick += 1;
|
||||
if (this.tick == 400) {
|
||||
this.fuel -= 1;
|
||||
this.tick = 0;
|
||||
}
|
||||
} else if (this.storage == this.maxstorage) {
|
||||
this.isActive = false;
|
||||
} else if ((this.storage + this.generating / 20.0D / 20.0D > this.maxstorage) && (this.storage != this.maxstorage)) {
|
||||
this.isActive = true;
|
||||
if (side) {
|
||||
this.energySource.setEnergyStored(this.maxstorage);
|
||||
this.storage = this.maxstorage;
|
||||
}
|
||||
this.tick += 1;
|
||||
if (this.tick == 400) {
|
||||
this.fuel -= 1;
|
||||
this.tick = 0;
|
||||
}
|
||||
this.isActive = false;
|
||||
}
|
||||
} else {
|
||||
this.isActive = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound tag) {
|
||||
super.writeToNBT(tag);
|
||||
energySource.writeToNBT(tag);
|
||||
}
|
||||
public void onChunkUnload() {
|
||||
this.energySource.onChunkUnload();
|
||||
}
|
||||
|
||||
public void invalidate() {
|
||||
this.energySource.invalidate();
|
||||
super.invalidate();
|
||||
}
|
||||
|
||||
public void readFromNBT(NBTTagCompound tag) {
|
||||
super.readFromNBT(tag);
|
||||
this.energySource.readFromNBT(tag);
|
||||
if (tag.getInteger("storage") > this.storage) {
|
||||
this.storage = tag.getInteger("storage");
|
||||
}
|
||||
if (tag.getByte("fuel") > this.fuel) {
|
||||
this.fuel = tag.getByte("fuel");
|
||||
}
|
||||
}
|
||||
|
||||
public void writeToNBT(NBTTagCompound tag) {
|
||||
tag.setInteger("storage", this.storage);
|
||||
tag.setInteger("fuel", this.fuel);
|
||||
super.writeToNBT(tag);
|
||||
this.energySource.writeToNBT(tag);
|
||||
}
|
||||
|
||||
public int getSizeInventory() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
public ItemStack getStackInSlot(int i) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {
|
||||
}
|
||||
|
||||
public boolean hasCustomInventoryName() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getInventoryStackLimit() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void openInventory() {
|
||||
}
|
||||
|
||||
public void closeInventory() {
|
||||
}
|
||||
|
||||
public int gaugeEnergyScaled(int i) {
|
||||
return this.mpshownstroage * 1000 * i / this.maxstorage;
|
||||
}
|
||||
|
||||
public int gaugeFuelScaled(int i) {
|
||||
return this.fuel * i / this.maxfuel;
|
||||
}
|
||||
|
||||
public boolean isItemValidForSlot(int i, ItemStack Stack) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public AspectList getAspects() {
|
||||
return new AspectList().add(this.aspect, this.fuel);
|
||||
}
|
||||
|
||||
public void setAspects(AspectList aspects) {
|
||||
}
|
||||
|
||||
public boolean doesContainerAccept(Aspect tag) {
|
||||
return tag.equals(this.aspect);
|
||||
}
|
||||
|
||||
public int addToContainer(Aspect tag, int amount) {
|
||||
if ((!tag.equals(this.aspect)) || (amount < 0)) {
|
||||
return amount;
|
||||
}
|
||||
if (amount + this.fuel < this.maxfuel) {
|
||||
this.fuel += amount;
|
||||
return 0;
|
||||
}
|
||||
this.fuel += amount - (amount - (this.maxfuel - this.fuel));
|
||||
return amount - (this.maxfuel - this.fuel);
|
||||
}
|
||||
|
||||
public boolean takeFromContainer(Aspect tag, int amount) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean takeFromContainer(AspectList ot) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean doesContainerContainAmount(Aspect tag, int amount) {
|
||||
return (tag.equals(this.aspect)) && (amount <= this.fuel);
|
||||
}
|
||||
|
||||
public boolean doesContainerContain(AspectList ot) {
|
||||
return ot.aspects.containsKey(this.aspect);
|
||||
}
|
||||
|
||||
public int containerContains(Aspect tag) {
|
||||
return tag == this.aspect ? this.fuel : 0;
|
||||
}
|
||||
|
||||
public boolean isConnectable(ForgeDirection face) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canInputFrom(ForgeDirection face) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canOutputTo(ForgeDirection face) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setSuction(Aspect aspect, int amount) {
|
||||
}
|
||||
|
||||
public Aspect getSuctionType(ForgeDirection face) {
|
||||
return this.aspect;
|
||||
}
|
||||
|
||||
public int getSuctionAmount(ForgeDirection face) {
|
||||
return 128;
|
||||
}
|
||||
|
||||
public int takeEssentia(Aspect aspect, int amount, ForgeDirection face) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int addEssentia(Aspect aspect, int amount, ForgeDirection face) {
|
||||
if (amount < this.maxfuel - this.fuel) {
|
||||
return amount;
|
||||
}
|
||||
return this.maxfuel - addToContainer(aspect, amount);
|
||||
}
|
||||
|
||||
public Aspect getEssentiaType(ForgeDirection face) {
|
||||
return this.aspect;
|
||||
}
|
||||
|
||||
public int getEssentiaAmount(ForgeDirection face) {
|
||||
return this.fuel;
|
||||
}
|
||||
|
||||
public int getMinimumSuction() {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
public boolean renderExtendedTube() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void inputintoGTnet() {
|
||||
for (byte i = 0; i < 6; i = (byte) (i + 1)) {
|
||||
if (getIGregTechTileEntityAtSide(i) != null) {
|
||||
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits(i, getOutputVoltage(), tEU);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public byte getColorization() {
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public byte setColorization(byte aColor) {
|
||||
this.color = aColor;
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public boolean isUniversalEnergyStored(long aEnergyAmount) {
|
||||
return aEnergyAmount < this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public long getUniversalEnergyStored() {
|
||||
return (long) this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public long getUniversalEnergyCapacity() {
|
||||
return (long) this.energySource.getCapacity();
|
||||
}
|
||||
|
||||
public long getOutputAmperage() {
|
||||
if (this.generating / 20.0D / 20.0D <= GT_Values.V[this.energySource.getSourceTier()]) {
|
||||
return 1L;
|
||||
}
|
||||
if (this.generating / 20.0D / 20.0D % GT_Values.V[this.energySource.getSourceTier()] == 0.0D) {
|
||||
return (long) (this.generating / 20.0D / 20.0D / GT_Values.V[this.energySource.getSourceTier()]);
|
||||
}
|
||||
return (long) (1L + (this.generating / 20.0D / 20.0D / GT_Values.V[this.energySource.getSourceTier()]));
|
||||
}
|
||||
|
||||
public long getOutputVoltage() {
|
||||
return GT_Values.V[this.energySource.getSourceTier()];
|
||||
}
|
||||
|
||||
public long getInputAmperage() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getInputVoltage() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public boolean decreaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooLessEnergy) {
|
||||
if (this.energySource.getEnergyStored() > aEnergy) {
|
||||
this.energySource.drawEnergy(aEnergy);
|
||||
this.storage = ((int) this.energySource.getEnergyStored());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean increaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooMuchEnergy) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
|
||||
return decreaseStoredEnergyUnits(aVoltage * aAmperage, this.energySource.getEnergyStored() > aVoltage * aAmperage);
|
||||
}
|
||||
|
||||
public long getAverageElectricInput() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getAverageElectricOutput() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getStoredEU() {
|
||||
return (long) this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public long getEUCapacity() {
|
||||
return (long) this.energySource.getCapacity();
|
||||
}
|
||||
|
||||
public long getStoredSteam() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getSteamCapacity() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public boolean increaseStoredSteam(long aEnergy, boolean aIgnoreTooMuchEnergy) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public boolean inputEnergyFrom(byte aSide) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean outputsEnergyTo(byte aSide) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean energyStateReady() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public World getWorld() {
|
||||
return this.worldObj;
|
||||
}
|
||||
|
||||
public int getXCoord() {
|
||||
return this.xCoord;
|
||||
}
|
||||
|
||||
public short getYCoord() {
|
||||
return (short) this.yCoord;
|
||||
}
|
||||
|
||||
public int getZCoord() {
|
||||
return this.zCoord;
|
||||
}
|
||||
|
||||
public boolean isServerSide() {
|
||||
return !worldObj.isRemote;
|
||||
}
|
||||
|
||||
public boolean isClientSide() {
|
||||
return worldObj.isRemote;
|
||||
}
|
||||
|
||||
public int getRandomNumber(int aRange) {
|
||||
return this.worldObj.rand.nextInt(aRange);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntity(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getTileEntity(aX, aY, aZ);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntityOffset(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getTileEntity(aX + this.xCoord, aY + this.yCoord, aZ + this.zCoord);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntityAtSide(byte aSide) {
|
||||
if ((aSide < 0) || (aSide >= 6)) {
|
||||
return null;
|
||||
}
|
||||
int tX = getOffsetX(aSide, 1);
|
||||
int tY = getOffsetY(aSide, 1);
|
||||
int tZ = getOffsetZ(aSide, 1);
|
||||
return this.worldObj.getTileEntity(tX, tY, tZ);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntityAtSideAndDistance(byte aSide, int aDistance) {
|
||||
if (aDistance == 1) {
|
||||
return getTileEntityAtSide(aSide);
|
||||
}
|
||||
return getTileEntity(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public IInventory getIInventory(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IInventory getIInventoryOffset(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IInventory getIInventoryAtSide(byte aSide) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IInventory getIInventoryAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainer(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainerOffset(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainerAtSide(byte aSide) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainerAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntity(int aX, int aY, int aZ) {
|
||||
TileEntity tTileEntity = getTileEntity(aX, aY, aZ);
|
||||
if ((tTileEntity instanceof IGregTechTileEntity)) {
|
||||
return (IGregTechTileEntity) tTileEntity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntityOffset(int aX, int aY, int aZ) {
|
||||
return getIGregTechTileEntity(aX + this.xCoord, aY + this.yCoord, aZ + this.zCoord);
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntityAtSide(byte aSide) {
|
||||
TileEntity tTileEntity = getTileEntityAtSide(aSide);
|
||||
if ((tTileEntity instanceof IGregTechTileEntity)) {
|
||||
return (IGregTechTileEntity) tTileEntity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(byte aSide, int aDistance) {
|
||||
TileEntity tTileEntity = getTileEntityAtSideAndDistance(aSide, aDistance);
|
||||
if ((tTileEntity instanceof IGregTechTileEntity)) {
|
||||
return (IGregTechTileEntity) tTileEntity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Block getBlock(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getBlock(aX, aY, aZ);
|
||||
}
|
||||
|
||||
public Block getBlockOffset(int aX, int aY, int aZ) {
|
||||
return getBlock(this.xCoord + aX, this.yCoord + aY, this.zCoord + aZ);
|
||||
}
|
||||
|
||||
public Block getBlockAtSide(byte aSide) {
|
||||
if ((aSide < 0) || (aSide >= 6)) {
|
||||
return null;
|
||||
}
|
||||
int tX = getOffsetX(aSide, 1);
|
||||
int tY = getOffsetY(aSide, 1);
|
||||
int tZ = getOffsetZ(aSide, 1);
|
||||
return this.worldObj.getBlock(tX, tY, tZ);
|
||||
}
|
||||
|
||||
public Block getBlockAtSideAndDistance(byte aSide, int aDistance) {
|
||||
if (aDistance == 1) {
|
||||
return getBlockAtSide(aSide);
|
||||
}
|
||||
return getBlock(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public byte getMetaID(int aX, int aY, int aZ) {
|
||||
return (byte) this.worldObj.getBlockMetadata(aX, aY, aZ);
|
||||
}
|
||||
|
||||
public byte getMetaIDOffset(int aX, int aY, int aZ) {
|
||||
return getMetaID(this.xCoord + aX, this.yCoord + aY, this.zCoord + aZ);
|
||||
}
|
||||
|
||||
public byte getMetaIDAtSide(byte aSide) {
|
||||
int tX = getOffsetX(aSide, 1);
|
||||
int tY = getOffsetY(aSide, 1);
|
||||
int tZ = getOffsetZ(aSide, 1);
|
||||
return (byte) this.worldObj.getBlockMetadata(tX, tY, tZ);
|
||||
}
|
||||
|
||||
public byte getMetaIDAtSideAndDistance(byte aSide, int aDistance) {
|
||||
if (aDistance == 1) {
|
||||
return getMetaIDAtSide(aSide);
|
||||
}
|
||||
return getMetaID(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public byte getLightLevel(int aX, int aY, int aZ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte getLightLevelOffset(int aX, int aY, int aZ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte getLightLevelAtSide(byte aSide) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte getLightLevelAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean getOpacity(int aX, int aY, int aZ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getOpacityOffset(int aX, int aY, int aZ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getOpacityAtSide(byte aSide) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getOpacityAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getSky(int aX, int aY, int aZ) {
|
||||
boolean sky = true;
|
||||
do {
|
||||
if (!this.worldObj.getBlock(aX, ++aY, aZ).equals(Blocks.air)) {
|
||||
sky = false;
|
||||
}
|
||||
} while ((sky) && (aY < 256));
|
||||
return sky;
|
||||
}
|
||||
|
||||
public boolean getSkyOffset(int aX, int aY, int aZ) {
|
||||
return getSky(aX + this.xCoord, aY + this.yCoord, aZ + this.zCoord);
|
||||
}
|
||||
|
||||
public boolean getSkyAtSide(byte aSide) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getSkyAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getAir(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getBlock(aX, aY, aZ).equals(Blocks.air);
|
||||
}
|
||||
|
||||
public boolean getAirOffset(int aX, int aY, int aZ) {
|
||||
return getAir(this.xCoord + aX, this.yCoord + aY, this.zCoord + aZ);
|
||||
}
|
||||
|
||||
public boolean getAirAtSide(byte aSide) {
|
||||
return getAirAtSideAndDistance(aSide, 1);
|
||||
}
|
||||
|
||||
public boolean getAirAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return getAir(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public BiomeGenBase getBiome() {
|
||||
return this.worldObj.getBiomeGenForCoords(this.xCoord, this.zCoord);
|
||||
}
|
||||
|
||||
public BiomeGenBase getBiome(int aX, int aZ) {
|
||||
return this.worldObj.getBiomeGenForCoords(aX, aZ);
|
||||
}
|
||||
|
||||
public int getOffsetX(byte aSide, int aMultiplier) {
|
||||
return this.xCoord + ForgeDirection.getOrientation(aSide).offsetX * aMultiplier;
|
||||
}
|
||||
|
||||
public short getOffsetY(byte aSide, int aMultiplier) {
|
||||
return (short) (this.yCoord + ForgeDirection.getOrientation(aSide).offsetY * aMultiplier);
|
||||
}
|
||||
|
||||
public int getOffsetZ(byte aSide, int aMultiplier) {
|
||||
return this.zCoord + ForgeDirection.getOrientation(aSide).offsetZ * aMultiplier;
|
||||
}
|
||||
|
||||
public boolean isDead() {
|
||||
return this.dead;
|
||||
}
|
||||
|
||||
public void sendBlockEvent(byte aID, byte aValue) {
|
||||
GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Block_Event(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue), this.xCoord, this.zCoord);
|
||||
}
|
||||
|
||||
public long getTimer() {
|
||||
return this.timer;
|
||||
}
|
||||
|
||||
public void setLightValue(byte aLightValue) {
|
||||
}
|
||||
|
||||
public boolean isInvalidTileEntity() {
|
||||
return this.tileEntityInvalid;
|
||||
}
|
||||
|
||||
public boolean openGUI(EntityPlayer aPlayer, int aID) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean openGUI(EntityPlayer aPlayer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean outputsEnergyTo(byte b, boolean b1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean inputEnergyFrom(byte b, boolean b1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public abstract class TileEntityCompressedGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityCompressedGenerator(Aspect aspect)
|
||||
{
|
||||
super(aspect);
|
||||
this.energySource = new DefinitelyNotAIC2Source(this, 1000000.0D, 3);
|
||||
this.energySource.setCapacity(EMTConfigHandler.EssentiaGeneratorStorage * 10.0D);
|
||||
this.maxfuel *= 10;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityIgnisGenerator extends TileEntityBaseGenerator {
|
||||
|
||||
public TileEntityIgnisGenerator() {
|
||||
aspect = Aspect.FIRE;
|
||||
output = EMTEssentiasOutputs.outputs.get(aspect.getTag());
|
||||
}
|
||||
public class TileEntityIgnisGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityIgnisGenerator()
|
||||
{
|
||||
super(Aspect.FIRE);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityLucrumGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityLucrumGenerator()
|
||||
{
|
||||
super(Aspect.GREED);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityPotentiaGenerator extends TileEntityBaseGenerator {
|
||||
|
||||
public TileEntityPotentiaGenerator() {
|
||||
aspect = Aspect.ENERGY;
|
||||
output = EMTEssentiasOutputs.outputs.get(aspect.getTag());
|
||||
}
|
||||
public class TileEntityPotentiaGenerator
|
||||
extends TileEntityBaseGenerator
|
||||
{
|
||||
public TileEntityPotentiaGenerator()
|
||||
{
|
||||
super(Aspect.ENERGY);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package emt.tile.generator;
|
||||
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class TileEntityReflexionGen
|
||||
{
|
||||
public static List L = new ArrayList(EMTEssentiasOutputs.outputs.keySet());
|
||||
public static Class<? extends TileEntity>[] GensS = new Class[L.size()];
|
||||
public static TileEntityBaseGenerator[] Gens = new TileEntityBaseGenerator[L.size()];
|
||||
|
||||
public TileEntityReflexionGen()
|
||||
{
|
||||
for (int i = 0; i < L.size(); i++)
|
||||
{
|
||||
GensS[i] = TileEntityBaseGenerator.class;
|
||||
Gens[i] = new TileEntityBaseGenerator((Aspect)Aspect.aspects.get(L.get(i)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,106 +1,606 @@
|
||||
package emt.tile.solar;
|
||||
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.TileEntityEMT;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.interfaces.tileentity.IBasicEnergyContainer;
|
||||
import gregtech.api.interfaces.tileentity.IEnergyConnected;
|
||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
||||
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
||||
import gregtech.api.net.GT_Packet_Block_Event;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.IFluidHandler;
|
||||
|
||||
public abstract class TileEntitySolarBase extends TileEntityEMT implements IWrenchable {
|
||||
public abstract class TileEntitySolarBase extends TileEntityEMT implements IInventory, IWrenchable, IHasWorldObjectAndCoords, IEnergyConnected, IBasicEnergyContainer {
|
||||
|
||||
public BasicSource energySource;
|
||||
public static Random random = new Random();
|
||||
public boolean initialized;
|
||||
public boolean theSunIsVisible;
|
||||
public boolean canRain;
|
||||
public boolean noSunlight;
|
||||
public int tick;
|
||||
public double output = 0;
|
||||
public boolean initialized;
|
||||
public boolean theSunIsVisible;
|
||||
public boolean canRain;
|
||||
public int tick;
|
||||
public double output = 0;
|
||||
public long timer = 0L;
|
||||
public boolean dead = true;
|
||||
public double generating;
|
||||
public short mp_storage = 0;
|
||||
public byte color = (-1);
|
||||
public int storage;
|
||||
public long maxstorage = 0;
|
||||
public boolean isActive = false;
|
||||
protected DefinitelyNotAIC2Source energySource;
|
||||
protected boolean side;
|
||||
|
||||
public TileEntitySolarBase() {
|
||||
this.tick = random.nextInt(64);
|
||||
}
|
||||
public TileEntitySolarBase() {
|
||||
this.tick = 10;
|
||||
this.storage = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
energySource.updateEntity();
|
||||
checkConditions();
|
||||
}
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
this.side = !this.worldObj.isRemote ? FMLCommonHandler.instance().getEffectiveSide().isServer() : FMLCommonHandler.instance().getSide().isServer();
|
||||
this.dead = false;
|
||||
this.timer = +1L;
|
||||
inputintoGTnet();
|
||||
energySource.updateEntity();
|
||||
checkConditions();
|
||||
}
|
||||
|
||||
public void checkConditions() {
|
||||
if (!initialized && worldObj != null) {
|
||||
canRain = worldObj.getWorldChunkManager().getBiomeGenAt(xCoord, zCoord).getIntRainfall() > 0;
|
||||
noSunlight = worldObj.provider.hasNoSky;
|
||||
initialized = true;
|
||||
}
|
||||
if (noSunlight) {
|
||||
return;
|
||||
}
|
||||
if (tick-- == 0) {
|
||||
updateSunState();
|
||||
tick = 64;
|
||||
}
|
||||
createEnergy();
|
||||
}
|
||||
public abstract float calc_multi();
|
||||
|
||||
public void createEnergy() {
|
||||
if (theSunIsVisible) {
|
||||
energySource.addEnergy(output);
|
||||
}
|
||||
}
|
||||
public double getSourceStored() {
|
||||
return this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public void updateSunState() {
|
||||
boolean isRaining = canRain && (worldObj.isRaining() || worldObj.isThundering());
|
||||
theSunIsVisible = worldObj.isDaytime() && !isRaining && worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord);
|
||||
}
|
||||
public void checkConditions() {
|
||||
initialized = true;
|
||||
if (tick-- == 0) {
|
||||
updateSunState();
|
||||
tick = 64;
|
||||
}
|
||||
createEnergy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChunkUnload() {
|
||||
energySource.onChunkUnload();
|
||||
}
|
||||
public void createEnergy() {
|
||||
if (theSunIsVisible) {
|
||||
isActive = true;
|
||||
if (side) {
|
||||
this.energySource.addEnergy(this.output * calc_multi());
|
||||
this.generating = output * calc_multi();
|
||||
}
|
||||
} else {
|
||||
isActive = false;
|
||||
this.generating = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invalidate() {
|
||||
energySource.invalidate();
|
||||
super.invalidate();
|
||||
}
|
||||
public void updateSunState() {
|
||||
boolean isRaining = canRain && (worldObj.isRaining() || worldObj.isThundering());
|
||||
theSunIsVisible = worldObj.isDaytime() && !isRaining && worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbttagcompound) {
|
||||
super.writeToNBT(nbttagcompound);
|
||||
energySource.writeToNBT(nbttagcompound);
|
||||
}
|
||||
@Override
|
||||
public void onChunkUnload() {
|
||||
energySource.onChunkUnload();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
||||
super.readFromNBT(nbttagcompound);
|
||||
energySource.readFromNBT(nbttagcompound);
|
||||
}
|
||||
@Override
|
||||
public void invalidate() {
|
||||
energySource.invalidate();
|
||||
super.invalidate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbttagcompound) {
|
||||
super.writeToNBT(nbttagcompound);
|
||||
energySource.writeToNBT(nbttagcompound);
|
||||
}
|
||||
|
||||
@Override
|
||||
public short getFacing() {
|
||||
return 0;
|
||||
}
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
||||
super.readFromNBT(nbttagcompound);
|
||||
energySource.readFromNBT(nbttagcompound);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFacing(short facing) {
|
||||
}
|
||||
public int getSizeInventory() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
|
||||
return true;
|
||||
}
|
||||
public ItemStack getStackInSlot(int i) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getWrenchDropRate() {
|
||||
return 1;
|
||||
}
|
||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {
|
||||
}
|
||||
|
||||
public boolean hasCustomInventoryName() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getInventoryName() {
|
||||
return StatCollector.translateToLocal("tile.EMT.solar." + getInventoryName().replaceAll(" ", "").toLowerCase() + ".name");
|
||||
}
|
||||
|
||||
public int getInventoryStackLimit() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void openInventory() {
|
||||
}
|
||||
|
||||
public void closeInventory() {
|
||||
}
|
||||
|
||||
public int gaugeEnergyScaled(int i) {
|
||||
return (int) (this.mp_storage * 1000 * i / (int) this.maxstorage);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public short getFacing() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFacing(short facing) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getWrenchDropRate() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void inputintoGTnet() {
|
||||
for (byte i = 0; i < 6; i = (byte) (i + 1)) {
|
||||
if (getIGregTechTileEntityAtSide(i) != null) {
|
||||
if (isUniversalEnergyStored(getOutputVoltage() * getOutputAmperage())) {
|
||||
long tEU = IEnergyConnected.Util.emitEnergyToNetwork(getOutputVoltage(), getOutputAmperage(), this);
|
||||
drainEnergyUnits(i, getOutputVoltage(), tEU);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public byte getColorization() {
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public byte setColorization(byte aColor) {
|
||||
this.color = aColor;
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public boolean isUniversalEnergyStored(long aEnergyAmount) {
|
||||
return aEnergyAmount < this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public long getUniversalEnergyStored() {
|
||||
return (long) this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public long getUniversalEnergyCapacity() {
|
||||
return (long) this.energySource.getCapacity();
|
||||
}
|
||||
|
||||
public long getOutputAmperage() {
|
||||
long ret;
|
||||
if (this.energySource.getSourceTier() <= 4) {
|
||||
if (this.generating <= GT_Values.V[this.energySource.getSourceTier() - 2]) {
|
||||
ret = 1L;
|
||||
}
|
||||
if (this.generating % GT_Values.V[this.energySource.getSourceTier() - 2] == 0.0D) {
|
||||
ret = (long) (this.generating / GT_Values.V[this.energySource.getSourceTier() - 2]);
|
||||
} else
|
||||
ret = (long) (1L + (this.generating / GT_Values.V[this.energySource.getSourceTier() - 2]));
|
||||
} else {
|
||||
if (this.generating <= GT_Values.V[this.energySource.getSourceTier() - 1]) {
|
||||
ret = 1L;
|
||||
}
|
||||
if (this.generating % GT_Values.V[this.energySource.getSourceTier()] == 0.0D) {
|
||||
ret = (long) (this.generating / GT_Values.V[this.energySource.getSourceTier() - 1]);
|
||||
} else
|
||||
ret = (long) (1L + (this.generating / GT_Values.V[this.energySource.getSourceTier() - 1]));
|
||||
}
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
public long getOutputVoltage() {
|
||||
if (this.energySource.getSourceTier() <= 4)
|
||||
return GT_Values.V[(this.energySource.getSourceTier() - 2)];
|
||||
else
|
||||
return GT_Values.V[(this.energySource.getSourceTier() - 1)];
|
||||
}
|
||||
|
||||
public long getInputAmperage() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getInputVoltage() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public boolean decreaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooLessEnergy) {
|
||||
if (this.energySource.getEnergyStored() > aEnergy) {
|
||||
this.energySource.drawEnergy(aEnergy);
|
||||
this.storage = ((int) this.energySource.getEnergyStored());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean increaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooMuchEnergy) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
|
||||
return decreaseStoredEnergyUnits(aVoltage * aAmperage, this.energySource.getEnergyStored() > aVoltage * aAmperage);
|
||||
}
|
||||
|
||||
public long getAverageElectricInput() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getAverageElectricOutput() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getStoredEU() {
|
||||
return (long) this.energySource.getEnergyStored();
|
||||
}
|
||||
|
||||
public long getEUCapacity() {
|
||||
return (long) this.energySource.getCapacity();
|
||||
}
|
||||
|
||||
public long getStoredSteam() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public long getSteamCapacity() {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public boolean increaseStoredSteam(long aEnergy, boolean aIgnoreTooMuchEnergy) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage) {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public boolean inputEnergyFrom(byte aSide) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean outputsEnergyTo(byte aSide) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean energyStateReady() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public World getWorld() {
|
||||
return this.worldObj;
|
||||
}
|
||||
|
||||
public int getXCoord() {
|
||||
return this.xCoord;
|
||||
}
|
||||
|
||||
public short getYCoord() {
|
||||
return (short) this.yCoord;
|
||||
}
|
||||
|
||||
public int getZCoord() {
|
||||
return this.zCoord;
|
||||
}
|
||||
|
||||
public boolean isServerSide() {
|
||||
return side;
|
||||
}
|
||||
|
||||
public boolean isClientSide() {
|
||||
return side;
|
||||
}
|
||||
|
||||
public int getRandomNumber(int aRange) {
|
||||
return this.worldObj.rand.nextInt(aRange);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntity(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getTileEntity(aX, aY, aZ);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntityOffset(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getTileEntity(aX + this.xCoord, aY + this.yCoord, aZ + this.zCoord);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntityAtSide(byte aSide) {
|
||||
if ((aSide < 0) || (aSide >= 6)) {
|
||||
return null;
|
||||
}
|
||||
int tX = getOffsetX(aSide, 1);
|
||||
int tY = getOffsetY(aSide, 1);
|
||||
int tZ = getOffsetZ(aSide, 1);
|
||||
return this.worldObj.getTileEntity(tX, tY, tZ);
|
||||
}
|
||||
|
||||
public TileEntity getTileEntityAtSideAndDistance(byte aSide, int aDistance) {
|
||||
if (aDistance == 1) {
|
||||
return getTileEntityAtSide(aSide);
|
||||
}
|
||||
return getTileEntity(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public IInventory getIInventory(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IInventory getIInventoryOffset(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IInventory getIInventoryAtSide(byte aSide) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IInventory getIInventoryAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainer(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainerOffset(int aX, int aY, int aZ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainerAtSide(byte aSide) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IFluidHandler getITankContainerAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntity(int aX, int aY, int aZ) {
|
||||
TileEntity tTileEntity = getTileEntity(aX, aY, aZ);
|
||||
if ((tTileEntity instanceof IGregTechTileEntity)) {
|
||||
return (IGregTechTileEntity) tTileEntity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntityOffset(int aX, int aY, int aZ) {
|
||||
return getIGregTechTileEntity(aX + this.xCoord, aY + this.yCoord, aZ + this.zCoord);
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntityAtSide(byte aSide) {
|
||||
TileEntity tTileEntity = getTileEntityAtSide(aSide);
|
||||
if ((tTileEntity instanceof IGregTechTileEntity)) {
|
||||
return (IGregTechTileEntity) tTileEntity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(byte aSide, int aDistance) {
|
||||
TileEntity tTileEntity = getTileEntityAtSideAndDistance(aSide, aDistance);
|
||||
if ((tTileEntity instanceof IGregTechTileEntity)) {
|
||||
return (IGregTechTileEntity) tTileEntity;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Block getBlock(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getBlock(aX, aY, aZ);
|
||||
}
|
||||
|
||||
public Block getBlockOffset(int aX, int aY, int aZ) {
|
||||
return getBlock(this.xCoord + aX, this.yCoord + aY, this.zCoord + aZ);
|
||||
}
|
||||
|
||||
public Block getBlockAtSide(byte aSide) {
|
||||
if ((aSide < 0) || (aSide >= 6)) {
|
||||
return null;
|
||||
}
|
||||
int tX = getOffsetX(aSide, 1);
|
||||
int tY = getOffsetY(aSide, 1);
|
||||
int tZ = getOffsetZ(aSide, 1);
|
||||
return this.worldObj.getBlock(tX, tY, tZ);
|
||||
}
|
||||
|
||||
public Block getBlockAtSideAndDistance(byte aSide, int aDistance) {
|
||||
if (aDistance == 1) {
|
||||
return getBlockAtSide(aSide);
|
||||
}
|
||||
return getBlock(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public byte getMetaID(int aX, int aY, int aZ) {
|
||||
return (byte) this.worldObj.getBlockMetadata(aX, aY, aZ);
|
||||
}
|
||||
|
||||
public byte getMetaIDOffset(int aX, int aY, int aZ) {
|
||||
return getMetaID(this.xCoord + aX, this.yCoord + aY, this.zCoord + aZ);
|
||||
}
|
||||
|
||||
public byte getMetaIDAtSide(byte aSide) {
|
||||
int tX = getOffsetX(aSide, 1);
|
||||
int tY = getOffsetY(aSide, 1);
|
||||
int tZ = getOffsetZ(aSide, 1);
|
||||
return (byte) this.worldObj.getBlockMetadata(tX, tY, tZ);
|
||||
}
|
||||
|
||||
public byte getMetaIDAtSideAndDistance(byte aSide, int aDistance) {
|
||||
if (aDistance == 1) {
|
||||
return getMetaIDAtSide(aSide);
|
||||
}
|
||||
return getMetaID(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public byte getLightLevel(int aX, int aY, int aZ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte getLightLevelOffset(int aX, int aY, int aZ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte getLightLevelAtSide(byte aSide) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public byte getLightLevelAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean getOpacity(int aX, int aY, int aZ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getOpacityOffset(int aX, int aY, int aZ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getOpacityAtSide(byte aSide) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getOpacityAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getSky(int aX, int aY, int aZ) {
|
||||
boolean sky = true;
|
||||
do {
|
||||
if (!this.worldObj.getBlock(aX, ++aY, aZ).getMaterial().equals(Material.air)) {
|
||||
sky = false;
|
||||
}
|
||||
} while ((sky) && (aY < 256));
|
||||
return sky;
|
||||
}
|
||||
|
||||
public boolean getSkyOffset(int aX, int aY, int aZ) {
|
||||
return getSky(aX + this.xCoord, aY + this.yCoord, aZ + this.zCoord);
|
||||
}
|
||||
|
||||
public boolean getSkyAtSide(byte aSide) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getSkyAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getAir(int aX, int aY, int aZ) {
|
||||
return this.worldObj.getBlock(aX, aY, aZ).equals(Blocks.air);
|
||||
}
|
||||
|
||||
public boolean getAirOffset(int aX, int aY, int aZ) {
|
||||
return getAir(this.xCoord + aX, this.yCoord + aY, this.zCoord + aZ);
|
||||
}
|
||||
|
||||
public boolean getAirAtSide(byte aSide) {
|
||||
return getAirAtSideAndDistance(aSide, 1);
|
||||
}
|
||||
|
||||
public boolean getAirAtSideAndDistance(byte aSide, int aDistance) {
|
||||
return getAir(getOffsetX(aSide, aDistance), getOffsetY(aSide, aDistance), getOffsetZ(aSide, aDistance));
|
||||
}
|
||||
|
||||
public BiomeGenBase getBiome() {
|
||||
return this.worldObj.getBiomeGenForCoords(this.xCoord, this.zCoord);
|
||||
}
|
||||
|
||||
public BiomeGenBase getBiome(int aX, int aZ) {
|
||||
return this.worldObj.getBiomeGenForCoords(aX, aZ);
|
||||
}
|
||||
|
||||
public int getOffsetX(byte aSide, int aMultiplier) {
|
||||
return this.xCoord + ForgeDirection.getOrientation(aSide).offsetX * aMultiplier;
|
||||
}
|
||||
|
||||
public short getOffsetY(byte aSide, int aMultiplier) {
|
||||
return (short) (this.yCoord + ForgeDirection.getOrientation(aSide).offsetY * aMultiplier);
|
||||
}
|
||||
|
||||
public int getOffsetZ(byte aSide, int aMultiplier) {
|
||||
return this.zCoord + ForgeDirection.getOrientation(aSide).offsetZ * aMultiplier;
|
||||
}
|
||||
|
||||
public boolean isDead() {
|
||||
return this.dead;
|
||||
}
|
||||
|
||||
public void sendBlockEvent(byte aID, byte aValue) {
|
||||
GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Block_Event(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue), this.xCoord, this.zCoord);
|
||||
}
|
||||
|
||||
public long getTimer() {
|
||||
return this.timer;
|
||||
}
|
||||
|
||||
public void setLightValue(byte aLightValue) {
|
||||
}
|
||||
|
||||
public boolean isInvalidTileEntity() {
|
||||
return this.tileEntityInvalid;
|
||||
}
|
||||
|
||||
public boolean openGUI(EntityPlayer aPlayer, int aID) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean openGUI(EntityPlayer aPlayer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean outputsEnergyTo(byte b, boolean b1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean inputEnergyFrom(byte b, boolean b1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.air;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,22 +11,29 @@ public class TileEntityAirSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityAirSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
}
|
||||
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
};
|
||||
|
||||
@Override
|
||||
public void createEnergy() {
|
||||
if (theSunIsVisible && this.yCoord >= 160) {
|
||||
energySource.addEnergy(output * 2.5);
|
||||
}
|
||||
else if (theSunIsVisible) {
|
||||
energySource.addEnergy(output);
|
||||
}
|
||||
}
|
||||
public float calc_multi() {
|
||||
if (this.yCoord<5)
|
||||
return 1F;
|
||||
else if (this.yCoord>220)
|
||||
return 3F;
|
||||
else
|
||||
return (float) ((41D/43D) + ((2D/215D) * (double) this.yCoord));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 15);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Aer Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.air;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -10,12 +10,18 @@ public class TileEntityDoubleAirSolar extends TileEntityAirSolar {
|
||||
|
||||
public TileEntityDoubleAirSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 100000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars2, 1, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Aer Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.air;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,11 +11,17 @@ public class TileEntityTripleAirSolar extends TileEntityAirSolar {
|
||||
public TileEntityTripleAirSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars2, 1, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Aer Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.compressed;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,12 +11,23 @@ public class TileEntityCompressedSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityCompressedSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
}
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
};
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
return 1F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.compressed;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,12 +11,23 @@ public class TileEntityDoubleCompressedSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityDoubleCompressedSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 100000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
return 1F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.compressed;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -12,11 +12,22 @@ public class TileEntityTripleCompressedSolar extends TileEntitySolarBase {
|
||||
public TileEntityTripleCompressedSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
return 1F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.dark;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,19 +11,39 @@ public class TileEntityDarkSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityDarkSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
}
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
};
|
||||
|
||||
@Override
|
||||
public void createEnergy() {
|
||||
if (worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord) && !worldObj.isDaytime() && !worldObj.isRaining() && !worldObj.isThundering()) {
|
||||
energySource.addEnergy(output);
|
||||
}
|
||||
if ((this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord + 1, this.zCoord)) && (!this.worldObj.isRaining()) && (!this.worldObj.isThundering())) {
|
||||
isActive=true;
|
||||
if (side) {
|
||||
this.generating=output*calc_multi();
|
||||
this.energySource.addEnergy(this.output*calc_multi());
|
||||
}
|
||||
}else {
|
||||
isActive = false;
|
||||
this.generating=0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
if (this.worldObj.isDaytime())
|
||||
return 0.75F;
|
||||
else return 2F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 6);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Perditio Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.dark;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -10,12 +10,19 @@ public class TileEntityDoubleDarkSolar extends TileEntityDarkSolar {
|
||||
|
||||
public TileEntityDoubleDarkSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 100000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 7);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Perditio Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.dark;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,11 +11,18 @@ public class TileEntityTripleDarkSolar extends TileEntityDarkSolar {
|
||||
public TileEntityTripleDarkSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 8);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Perditio Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.earth;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -10,12 +10,19 @@ public class TileEntityDoubleEarthSolar extends TileEntityEarthSolar {
|
||||
|
||||
public TileEntityDoubleEarthSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 100000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars2, 1, 3);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Terra Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.earth;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,22 +11,28 @@ public class TileEntityEarthSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityEarthSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createEnergy() {
|
||||
if (theSunIsVisible && this.yCoord <= 10) {
|
||||
energySource.addEnergy(output * 2.5);
|
||||
}
|
||||
else if (theSunIsVisible) {
|
||||
energySource.addEnergy(output);
|
||||
}
|
||||
public float calc_multi() {
|
||||
if (this.yCoord<5)
|
||||
return 3F;
|
||||
else if (this.yCoord>220)
|
||||
return 1F;
|
||||
else
|
||||
return (float) ((-2D)/215D*(double)this.yCoord + 131D/43D);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars2, 1, 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Terra Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.earth;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,11 +11,18 @@ public class TileEntityTripleEarthSolar extends TileEntityEarthSolar {
|
||||
public TileEntityTripleEarthSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars2, 1, 4);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Terra Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.fire;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -10,12 +10,19 @@ public class TileEntityDoubleFireSolar extends TileEntityFireSolar {
|
||||
|
||||
public TileEntityDoubleFireSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 13);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Ignis Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,40 +1,66 @@
|
||||
package emt.tile.solar.fire;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.visnet.VisNetHandler;
|
||||
|
||||
public class TileEntityFireSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityFireSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkConditions() {
|
||||
if (!initialized && worldObj != null) {
|
||||
canRain = worldObj.getWorldChunkManager().getBiomeGenAt(xCoord, zCoord).getIntRainfall() > 0;
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
if (worldObj.provider.dimensionId == -1) {
|
||||
energySource.addEnergy(output * 2);
|
||||
boolean ignis = ((this.worldObj.provider.dimensionId == (-1)) || (theSunIsVisible));
|
||||
if(ignis) {
|
||||
this.isActive=true;
|
||||
if (side) {
|
||||
this.generating=output*calc_multi();
|
||||
this.energySource.addEnergy(this.output*calc_multi());
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (tick-- == 0) {
|
||||
updateSunState();
|
||||
tick = 64;
|
||||
isActive = false;
|
||||
this.generating=0;
|
||||
}
|
||||
/*if (!ignis && VisNetHandler.drainVis(worldObj, xCoord, yCoord, zCoord, Aspect.FIRE, 10)>=10) {
|
||||
if (FMLCommonHandler.instance().getEffectiveSide().isServer()) {
|
||||
energySource.addEnergy(15F);
|
||||
this.generating=15D;
|
||||
}
|
||||
}*/
|
||||
if (tick-- == 0) {
|
||||
updateSunState();
|
||||
tick = 64;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
if (VisNetHandler.drainVis(worldObj, xCoord, yCoord, zCoord, Aspect.FIRE, 10)>=10)
|
||||
return 3F;
|
||||
else if (this.worldObj.provider.dimensionId == (-1))
|
||||
return 2F;
|
||||
else
|
||||
return 1F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 12);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Ignis Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.fire;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,11 +11,18 @@ public class TileEntityTripleFireSolar extends TileEntityFireSolar {
|
||||
public TileEntityTripleFireSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 14);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Ignis Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.order;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -10,12 +10,18 @@ public class TileEntityDoubleOrderSolar extends TileEntityOrderSolar {
|
||||
|
||||
public TileEntityDoubleOrderSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 100000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 10);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Ordo Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package emt.tile.solar.order;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,19 +11,39 @@ public class TileEntityOrderSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityOrderSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createEnergy() {
|
||||
if (theSunIsVisible) {
|
||||
energySource.addEnergy(output * 3);
|
||||
}
|
||||
if ((this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord + 1, this.zCoord)) && (!this.worldObj.isRaining()) && (!this.worldObj.isThundering())) {
|
||||
isActive = true;
|
||||
if (side) {
|
||||
this.energySource.addEnergy(this.output*calc_multi());
|
||||
this.generating=output*calc_multi();
|
||||
}
|
||||
}else {
|
||||
isActive = false;
|
||||
this.generating=0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
if (this.worldObj.isDaytime())
|
||||
return 2F;
|
||||
else return 0.75F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 9);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Ordo Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.order;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,11 +11,18 @@ public class TileEntityTripleOrderSolar extends TileEntityOrderSolar {
|
||||
public TileEntityTripleOrderSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 11);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Ordo Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.water;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -10,12 +10,19 @@ public class TileEntityDoubleWaterSolar extends TileEntityWaterSolar {
|
||||
|
||||
public TileEntityDoubleWaterSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 4);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 100000, 4);
|
||||
output = EMTConfigHandler.doubleCompressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 4);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Double Compressed Aqua Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package emt.tile.solar.water;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -11,11 +11,18 @@ public class TileEntityTripleWaterSolar extends TileEntityWaterSolar {
|
||||
public TileEntityTripleWaterSolar() {
|
||||
super();
|
||||
output = EMTConfigHandler.tripleCompressedSolarOutput;
|
||||
energySource = new BasicSource(this, 40000, 5);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 1000000, 5);
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 5);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Triple Compressed Aqua Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,34 @@
|
||||
package emt.tile.solar.water;
|
||||
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.solar.TileEntitySolarBase;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.energy.prefab.BasicSource;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class TileEntityWaterSolar extends TileEntitySolarBase {
|
||||
|
||||
public TileEntityWaterSolar() {
|
||||
super();
|
||||
energySource = new BasicSource(this, 10000, 3);
|
||||
energySource = new DefinitelyNotAIC2Source(this, 10000, 3);
|
||||
output = EMTConfigHandler.compressedSolarOutput;
|
||||
this.maxstorage=this.getEUCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createEnergy() {
|
||||
if (worldObj.isRaining() && worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord) || worldObj.isThundering() && worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord)) {
|
||||
energySource.addEnergy(output);
|
||||
if (theSunIsVisible || this.calc_multi()>1F && this.worldObj.isDaytime() || this.calc_multi() == 6F ){
|
||||
isActive = true;
|
||||
if (super.side) {
|
||||
this.generating=output*calc_multi();
|
||||
energySource.addEnergy(output*calc_multi());
|
||||
}
|
||||
}
|
||||
else {
|
||||
isActive = false;
|
||||
this.generating=0D;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,4 +36,22 @@ public class TileEntityWaterSolar extends TileEntitySolarBase {
|
||||
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
|
||||
return new ItemStack(EMTBlocks.emtSolars, 1, 3);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float calc_multi() {
|
||||
if (worldObj.isThundering())
|
||||
return 6F;
|
||||
else if (worldObj.isRaining())
|
||||
return 3F;
|
||||
else if (!worldObj.isThundering() && !worldObj.isRaining() && worldObj.getBlock(xCoord, yCoord+1, zCoord).equals(Blocks.water))
|
||||
return 2F;
|
||||
else
|
||||
return 1F;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInventoryName() {
|
||||
return "Compressed Aqua Solar";
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package emt.util;
|
||||
|
||||
import emt.gthandler.common.loader.EMT_GT_Loader;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import java.io.File;
|
||||
@@ -36,6 +38,8 @@ public class EMTConfigHandler {
|
||||
public static double quantumBootsMinDrop;
|
||||
public static double quantumBootsMaxDrop;
|
||||
|
||||
public static double EssentiaGeneratorStorage;
|
||||
|
||||
/** Essentias **/
|
||||
public static double fireOutput;
|
||||
public static double waterOutput;
|
||||
@@ -79,6 +83,7 @@ public class EMTConfigHandler {
|
||||
public static boolean ignisGeneratorResearch;
|
||||
public static boolean auramGeneratorResearch;
|
||||
public static boolean arborGeneratorResearch;
|
||||
public static boolean lucrumGeneratorResearch;
|
||||
public static boolean wandChargingSationResearch;
|
||||
public static boolean tinyUraniumResearch;
|
||||
public static boolean thorHammerResearch;
|
||||
@@ -143,6 +148,9 @@ public class EMTConfigHandler {
|
||||
entropyOutput = config.get(OUTPUTS, "Perditio Output", 10000).getDouble(entropyOutput);
|
||||
earthOutput = config.get(OUTPUTS, "Terra Output", 2000).getDouble(earthOutput);
|
||||
outputCap = config.get(OUTPUTS, "Output Cap", -1).getDouble(outputCap);
|
||||
|
||||
EssentiaGeneratorStorage=config.get(VALUES,"Essentia Generator Storage",1000000,"This is the number you have to modify if you want to change the size of the "+"internal buffer of the Essentia Generator").getDouble(EssentiaGeneratorStorage);
|
||||
EMT_GT_Loader.aIDoffset=config.get(VALUES,"aID offset for Gregetch Machinery",(13000-GT_Values.VN.length-1),"This Mod will use "+Integer.toString(GT_Values.VN.length+1)+" IDs, do not change if you dont know what you are doing!").getInt(13000-GT_Values.VN.length-1);
|
||||
|
||||
wandChargerConsumption = config.get(VALUES, "Wand Charging Station Consumption", 50000, "This is the number you have to modify if you want to make the Industrial Wand Charging " + "Station use more or less EU to charge 1 unit of Vis on your wand.").getDouble(wandChargerConsumption);
|
||||
compressedSolarOutput = config.get(VALUES, "Compressed Solar Panel Output", 10, "This is the number you have to modify if you want to make the Compressed Solar Panel yield " + "more or less EU per tick. Really, you shouldn't touch that, " + "since it's pretty balanced as it is.").getDouble(compressedSolarOutput);
|
||||
@@ -163,7 +171,7 @@ public class EMTConfigHandler {
|
||||
nanoBootsMinDrop = config.get(VALUES, "Nano Boots of the Traveller minimum drop", 6.0, "The distance allowed to fall without any damage").getDouble(nanoBootsMinDrop);
|
||||
nanoBootsMaxDrop = config.get(VALUES, "Nano Boots of the Traveller maximum healthy drop", 35.0, "Energy amount drained will tripled if player drops more than this amount of blocks").getDouble(nanoBootsMaxDrop);
|
||||
quantumBootsMinDrop = config.get(VALUES, "Quantum Boots of the Traveller minimum drop", 10.0, "The distance allowed to fall without any damage").getDouble(quantumBootsMinDrop);
|
||||
quantumBootsMaxDrop = config.get(VALUES, "Quantum Boots of the Traveller maximum healthy drop", 100.0, "Energy amount drained will tripled if player drops more than this amount of blocks").getDouble(quantumBootsMaxDrop);
|
||||
quantumBootsMaxDrop = config.get(VALUES, "Quantum Boots of the Traveller maximum healthy drop", 100.0, "Energy amount drained will tripled if player drops more than this amount of blocks").getDouble(quantumBootsMaxDrop);
|
||||
|
||||
thaumiumDrillResearch = config.get(RESEARCH, "Thaumium Drill", false).getBoolean(thaumiumDrillResearch);
|
||||
thaumiumChainsawResearch = config.get(RESEARCH, "Thaumium Chainsaw", false).getBoolean(thaumiumChainsawResearch);
|
||||
@@ -184,6 +192,7 @@ public class EMTConfigHandler {
|
||||
ignisGeneratorResearch = config.get(RESEARCH, "Ignis Generator", false).getBoolean(ignisGeneratorResearch);
|
||||
auramGeneratorResearch = config.get(RESEARCH, "Auram Generator", false).getBoolean(auramGeneratorResearch);
|
||||
arborGeneratorResearch = config.get(RESEARCH, "Arbor Generator", false).getBoolean(arborGeneratorResearch);
|
||||
lucrumGeneratorResearch = config.get(RESEARCH, "Lucrum Generator", false).getBoolean(lucrumGeneratorResearch);
|
||||
wandChargingSationResearch = config.get(RESEARCH, "Industrial Wand Charging Station", false).getBoolean(wandChargingSationResearch);
|
||||
tinyUraniumResearch = config.get(RESEARCH, "Tiny Piles of Uranium", false).getBoolean(tinyUraniumResearch);
|
||||
thorHammerResearch = config.get(RESEARCH, "Mjolnir", false).getBoolean(thorHammerResearch);
|
||||
|
||||
@@ -8,7 +8,7 @@ public class EMTCreativeTab extends CreativeTabs {
|
||||
|
||||
public EMTCreativeTab(String tabLabel) {
|
||||
super(tabLabel);
|
||||
setBackgroundImageName("emt.png");
|
||||
//setBackgroundImageName("emt.png");
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ public class EMTCreativeTab extends CreativeTabs {
|
||||
return EMTItems.electricThorHammer;
|
||||
}
|
||||
|
||||
/*
|
||||
@Override
|
||||
public boolean hasSearchBar() {
|
||||
return true;
|
||||
@@ -25,5 +26,5 @@ public class EMTCreativeTab extends CreativeTabs {
|
||||
@Override
|
||||
public int getSearchbarWidth() {
|
||||
return 60;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
@@ -20,6 +20,7 @@ public class EMTResearchAspects {
|
||||
public static AspectList ignisGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.FIRE, 3);
|
||||
public static AspectList auramGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.AURA, 3);
|
||||
public static AspectList arborGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.TREE, 3);
|
||||
public static AspectList lucrumGeneratorResearch = new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.GREED, 3);
|
||||
public static AspectList streamChainsawResearch = new AspectList().add(Aspect.TOOL, 3).add(Aspect.TREE, 3).add(Aspect.WATER, 6).add(Aspect.ENERGY, 4);
|
||||
public static AspectList rockbreakerDrillResearch = new AspectList().add(Aspect.ENERGY, 3).add(Aspect.FIRE, 2).add(Aspect.MINE, 3);
|
||||
public static AspectList shieldBlockResearch = new AspectList().add(Aspect.ARMOR, 3).add(Aspect.TRAP, 2);
|
||||
|
||||
@@ -0,0 +1,379 @@
|
||||
#=============Creative Tab Name=============
|
||||
itemGroup.EMT.creativeTab=Electro-Magic Tools
|
||||
|
||||
#=============Thaumonomicon Tab Name=============
|
||||
tc.research_category.EMT=Electro-Magic Tools
|
||||
|
||||
#=============GUI=============
|
||||
gui.EMT.config.title=Electro-Magic Tools Einstellungen
|
||||
gui.EMT.etherealMacerator.title=Ätherischer Verarbeiter
|
||||
gui.EMT.wandRecharge.title=Industrie Stab-Auflade-Station
|
||||
gui.EMT.inventory=Inventar
|
||||
gui.EMT.book.aspect.output.eu.title=Essentia Ausgabe Buch
|
||||
gui.EMT.book.aspect.output.essentia.eu=EU Leistung per Essentia
|
||||
gui.EMT.key.unequip=Ausziehen
|
||||
emt.Output=Ausgabe:
|
||||
emt.Storage=Speicher:
|
||||
emt.PressShift=<Drücke SHIFT>
|
||||
emt.Generating=Erzeugt:
|
||||
emt.Fuel=Brennstoff
|
||||
|
||||
#=============Tooltips=============
|
||||
#This comes after a player name. The 's is depicting ownership.
|
||||
tooltip.EMT.hammer.broken.The Hammer of Thor=Der Hammer des Thors
|
||||
tooltip.EMT.hammer.electric=Der Hammer des %player%s
|
||||
tooltip.EMT.hammer.broken.thor=Dies war einmal der Hammer des Thors.
|
||||
tooltip.EMT.hammer.broken.danger=Nun ist er sehr gefährlich.
|
||||
tooltip.EMT.hammer.broken.plsNoRightClick=Drücke NICHT die rechte Maustaste.
|
||||
tooltip.EMT.hammer.broken.plsRightClick=Drücke die rechte Maustaste.
|
||||
tooltip.EMT.visDiscount=Vis Ersparnis
|
||||
tooltip.EMT.specialEffect=Spezieller Effekt
|
||||
tooltip.EMT.normalConditions=Normaler Effekt
|
||||
tooltip.EMT.euPerTick=EU/t
|
||||
tooltip.EMT.night=bei Nacht
|
||||
tooltip.EMT.forget=Habe ich einen tooltip vergessen?
|
||||
tooltip.EMT.raining=während des Regens.
|
||||
tooltip.EMT.thunder=während eines Gewitters
|
||||
tooltip.EMT.output.triple=Leistung mit 3 multipliziert
|
||||
tooltip.EMT.output.double=Leistung mit 2 multipliziert
|
||||
tooltip.EMT.output.double.half=Leistung mit 2.5 multipliziert
|
||||
tooltip.EMT.output.double.nether=wenn es im Nether steht
|
||||
tooltip.EMT.output.double.lava=wenn mit Ignis Centivis befüllt
|
||||
tooltip.EMT.output.double.half.height=höhere Leistung in Höhen (x1 bei y=5, x3 bei y=220)
|
||||
tooltip.EMT.output.double.half.low=höhere Leistung in Tiefen (x1 bei y=220, x3 bei y=5)
|
||||
|
||||
#=============Entity Names=============
|
||||
entity.EMT.laser.name=Laser
|
||||
entity.EMT.archer.name=Wächterschneemann
|
||||
entity.EMT.shield.name=Schield
|
||||
|
||||
#=============Item Names=============
|
||||
item.EMT.oreClusterUranium=Nativer Uranium Cluster
|
||||
item.EMT.crushedOreAmber.name=Zerkleinertes Bernstein Erz
|
||||
item.EMT.purifiedOreAmber.name=Gesäubertes Bernstein Erz
|
||||
item.EMT.crushedOreCinnabar.name=Zerkleinerter Zinnober
|
||||
item.EMT.purifiedOreCinnabar.name=Gesäuberter Zinnober
|
||||
item.EMT.thaumiumPlate.name=Thaumium Platte
|
||||
item.EMT.lightningSummoner.name=Blitz Beschwörer
|
||||
item.EMT.featherMesh.name=Federgeflecht
|
||||
item.EMT.glue.name=Klebstoff
|
||||
item.EMT.ductTape.name=Coro Tape
|
||||
item.EMT.rubberBall.name=Gummiball
|
||||
item.EMT.cardboard.name=Papkartonplatte
|
||||
item.EMT.featherGluedCardboardWing.name=Papkartonflügel mit angeklebten Federn
|
||||
item.EMT.denseIronSheet.name=Verdichtete Eisenplatte
|
||||
item.EMT.taintedFeather.name=Gezeichnete Feder
|
||||
item.EMT.thaumiumWing.name=Thaumium-verstärkter Flügel
|
||||
item.EMT.uumatterDrop.name=Kristallisierter UU-Matter Tropfen
|
||||
item.EMT.bauble.euMaker.armor.name=Rüstungsaufladender Ring
|
||||
item.EMT.bauble.euMaker.inventory.name=Inventarsaufladender Ring
|
||||
item.EMT.bauble.oneRing.name=Der Eine Ring
|
||||
item.EMT.goggles.electric.name=Elektrische Brille der Aufdeckung
|
||||
item.EMT.goggles.nano.name=Nano-Brille der Aufdeckung
|
||||
item.EMT.goggles.quantum.name=Quantum-Brille der Aufdeckung
|
||||
item.EMT.goggles.solar.name=Solar-Brille der Aufdeckung
|
||||
item.EMT.boots.traveller.electric.name=Elektrische Schuhe des Reisenden
|
||||
item.EMT.boots.traveller.nano.name=Nano-Schuhe des Reisenden
|
||||
item.EMT.boots.traveller.quantum.name=Quantum-Schuhe des Reisenden
|
||||
item.EMT.scribingtools.electric.name=Elektrische Schreibwaren
|
||||
item.EMT.wing.feather.name=Mit Coro Tape verklebte Feder-Flügel
|
||||
item.EMT.wing.thaumium.name=Thaumium verstärkte Flügel
|
||||
item.EMT.wing.nano.name=Nano-Flügel
|
||||
item.EMT.wing.quantum.name=Quantum-Flügel
|
||||
item.EMT.chestplates.infusedQuantum.name=Infundierte Quantum Brustplatte
|
||||
item.EMT.hammer.broken.name=Zerstörtes Relikt des Mjölnirs
|
||||
item.EMT.hammer.name=Mjölnir
|
||||
item.EMT.hammer.electric.name=Überladener Mjölnir
|
||||
item.EMT.drill.thaumium.name=Thaumium Bohrer
|
||||
item.EMT.chainsaw.diamond.name=Diamant Kettensäge
|
||||
item.EMT.chainsaw.thaumium.name=Thaumium Kettensäge
|
||||
item.EMT.omnitool.iron.name=Eisen Omniwerkzeug
|
||||
item.EMT.omnitool.diamond.name=Diamant Omniwerkzeug
|
||||
item.EMT.omnitool.thaumium.name=Thaumium Omniwerkzeug
|
||||
item.EMT.chainsaw.stream.name=Kettensäge des Baches
|
||||
item.EMT.drill.rockbreaker.name=Bohrer des Steinbrechers
|
||||
item.EMT.hoeofgrowth.electric.name=Elektrische Hacke des Wachsstums
|
||||
item.EMT.focus.explosion.name=Stab Fokus: Explosion
|
||||
item.EMT.focus.christmas.name=Stab Fokus: Weihnachten
|
||||
item.EMT.focus.shield.name=Stab Fokus: Schield
|
||||
item.EMT.focus.charge.name=Stab Fokus: Aufladung
|
||||
item.EMT.focus.chargeWand.name=Stab Fokus: Stabs Aufladung
|
||||
item.EMT.focus.electricCloud.name=Electrische Wolke
|
||||
item.EMT.focus.energyBall.name=Energie Ball Fokus
|
||||
|
||||
#=============Block Names=============
|
||||
tile.EMT.electricCloud.name=Electrische Wolke
|
||||
tile.EMT.shield.name=Schild Block
|
||||
tile.EMT.portablenode.name=Portable Node
|
||||
tile.EMT.essentia.potentia.name=Potentia Generator
|
||||
tile.EMT.essentia.ignis.name=Ignis Generator
|
||||
tile.EMT.essentia.auram.name=Auram Generator
|
||||
tile.EMT.essentia.arbor.name=Arbor Generator
|
||||
tile.EMT.essentia.aer.name=Aer Generator
|
||||
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
||||
tile.EMT.machine.wandrecharge.name=Industrie Stab-Auflade-Station
|
||||
tile.EMT.machine.etheralprocessor.name=Ätherischer Verarbeiter
|
||||
tile.EMT.solar.compressed.name=Verdichte Solarzelle
|
||||
tile.EMT.solar.doublecompressed.name=Double Verdichte Solarzelle
|
||||
tile.EMT.solar.triplecompressed.name=Triple Verdichte Solarzelle
|
||||
tile.EMT.solar.water.name=Wasser Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar.doublewater.name=Wasser Infundierte Doppelt Verdichte Solarzelle
|
||||
tile.EMT.solar.triplewater.name=Wasser Infundierte Dreifach Verdichte Solarzelle
|
||||
tile.EMT.solar.dark.name=Entropie Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar.doubledark.name=Entropie Doppelt Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar.tripledark.name=Entropie Dreifach Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar.order.name=Ordnungs Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar.doubleorder.name=Ordnungs Infundierte Doppelt Verdichte Solarzelle
|
||||
tile.EMT.solar.tripleorder.name=Ordnungs Infundierte Dreifach Verdichte Solarzelle
|
||||
tile.EMT.solar.fire.name=Feuer Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar.doublefire.name=Feuer Infundierte Doppelt Verdichte Solarzelle
|
||||
tile.EMT.solar.triplefire.name=Feuer Infundierte Dreifach Verdichte Solarzelle
|
||||
tile.EMT.solar.air.name=Luft Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar2.doubleair.name=Luft Infundierte Doppelt Verdichte Solarzelle
|
||||
tile.EMT.solar2.tripleair.name=Luft Infundierte Dreifach Verdichte Solarzelle
|
||||
tile.EMT.solar2.earth.name=Erde Infundierte Verdichte Solarzelle
|
||||
tile.EMT.solar2.doubleearth.name=Erde Infundierte Doppelt Verdichte Solarzelle
|
||||
tile.EMT.solar2.tripleearth.name=Erde Infundierte Dreifach Verdichte Solarzelle
|
||||
|
||||
#===============Gregtech Compat===============
|
||||
EMT_GTBLOCK_CASEING.0.name=Magie Zurückhaltender Strahlenschutz
|
||||
EMT_GTBLOCK_CASEING.1.name=Essenz Diffusions Zelle
|
||||
EMT_GTBLOCK_CASEING.2.name=Iridium Osmiridium Bewehrungskorb
|
||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Bewehrungskorb
|
||||
EMT_GTBLOCK_CASEING.4.name=Halb-Fertiger Magie Zurückhaltender Strahlenschutz
|
||||
EMT_GTBLOCK_CASEING.5.name=Halb-Fertige Essenz Diffusions Zelle
|
||||
|
||||
|
||||
#=============Thaumonomicon Texts=============
|
||||
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
||||
emt.tag.Electric Magic Tools=Who says magic and technology can't go together?
|
||||
emt.text.Electric Magic Tools=Who says magic can't work with technology? Our researchers have collaborated with the top mages of the school of Thaumaturgy to bring you the effectiveness of magic coupled with the convenience of electric tools.
|
||||
|
||||
emt.rsname.Energy Ball Focus=Energy Ball Focus
|
||||
emt.tag.Energy Ball Focus=Not a toy
|
||||
emt.text.Energy Ball Focus=It's necessary to put on the BatPack or nano/quant chestplate for using this focus. You need 5120EU to create one ball. It's not recommended for using in a closed space!
|
||||
|
||||
emt.rsname.Electric Cloud=Electric Cloud
|
||||
emt.tag.Electric Cloud=Still the same Nitor
|
||||
emt.text.Electric Cloud.1=All thaumaturges (except Crimson ones, I guess) enjoy the shine and heat of the magic flame called Nitor, aren't they? You desided to make it more... energetic. Well, you did it.<BR><BR>You have created a new kind of magic flame — the Electric Cloud. It behaves and looks like normal Nitor, but it has purple colour and creates light-purple lightning charges around itself. For electrolizing need to click RMB on Nitor with advanced battery(or better) on hand.
|
||||
emt.text.Electric Cloud.2=<IMG>emt:textures/researches/electric_cloud.png:0:0:255:255:0.6</IMG>
|
||||
|
||||
emt.rsname.Thaumium Drill=Thaumium Drill
|
||||
emt.tag.Thaumium Drill=Magical mining
|
||||
emt.text.Thaumium Drill=You have discovered a way to infuse Thaumium with mundane electricity. Fusing Thaumium to a Diamond Drill results in a tool that can dig through stone faster and has a higher capacity.<BR><BR>While Thaumium is a very useful and powerful material, it is nowhere near the strength of Iridium. It is considered a mid-tier tool. <BR><BR>This tool may not be the most powerful, but you have a feeling that you will be able to upgrade it in the near future.
|
||||
|
||||
emt.rsname.Thaumium Chainsaw=Thaumium Chainsaw
|
||||
emt.tag.Thaumium Chainsaw=Felling trees and severing heads with a touch of magic
|
||||
emt.text.Thaumium Chainsaw=You have found a way to fuse Thaumium to a Diamond Chainsaw, allowing it to fell trees quicker and hold more power. Nevertheless, these ameliorations do not come without drawbacks: during the process of fusing these materials, the chainsaw loses its ability to shear foliage, tall grass, and animals.<BR><BR>You have an intuition you will be able to upgrade this tool in the near future.
|
||||
|
||||
emt.rsname.Electric Goggles=Electric Goggles
|
||||
emt.tag.Electric Goggles=The best of both worlds
|
||||
emt.text.Electric Goggles=You have found a way to detect auras using purely electronic means, no longer requiring mystical energy that can be depleted over time. You can now create a pair of Goggles of Revealing that can be recharged with EU while being able to see Aura Nodes just as you could before. A diamond helmet is required to house the sensitive vis sensing circuitry and prevent it from being damaged, which also has the added benefit of providing extra protection.
|
||||
|
||||
emt.rsname.Nanosuit Goggles of Revealing=Nanosuit Goggles of Revealing
|
||||
emt.tag.Nanosuit Goggles of Revealing=Top-tier eye protection
|
||||
emt.text.Nanosuit Goggles of Revealing=You have discovered a way to incorporate your previous vis sensors to a Nanosuit Helmet without moving too much around. By infusing the nano helmet with magic, you will be able to use it to see Aura Nodes. During the magical process, the control circuits for the night vision feature are replaced with capacitors to absorb the excess magical energy and vis-sensing microchips.
|
||||
|
||||
emt.rsname.Quantum Goggles of Revealing=Quantum Goggles of Revealing
|
||||
emt.tag.Quantum Goggles of Revealing=Protection coupled with utility
|
||||
emt.text.Quantum Goggles of Revealing=It took a lot of trial and error, but you have found a way to slip in vis detection sensors to a Quantum Helmet. By infusing the quantum helmet with magic, you will be able to use it to see Aura Nodes. During the design process, you had to replace several control circuits that involve night vision and automatic feeding with vis detecting circuitry and capacitors to absorb the excess magical energy. You find that using a Mining Laser to contain it can safely focus and direct the explosive pulse where the vision effect and the feeding unit of the helmet lie. Have fun getting force-fed energy.
|
||||
|
||||
emt.rsname.Iron Omnitool=Iron Omnitool
|
||||
emt.tag.Iron Omnitool=Changing tools is for peasants
|
||||
emt.text.Iron Omnitool=While tinkering with the inner workings of some of your tools to see if magical integration is a possibility, you have discovered a way to combine the Mining Drill and the Chainsaw, resulting in a tool capable of both mining, cutting down trees and attacking enemies! As you are working with mundane metals, magic influence is not needed to merge these tools together.
|
||||
|
||||
emt.rsname.Diamond Omnitool=Diamond Omnitool
|
||||
emt.tag.Diamond Omnitool=Jack of all trades
|
||||
emt.text.Diamond Omnitool=Your discovery of an Iron Omnitool has driven you to try to accomplish the same with some more powerful devices. You have discovered a way to combine the Diamond Drill and the Diamond Chainsaw, resulting in a tool capable of both mining, cutting down trees and attacking enemies, while maintaining the speed and capacity bonuses of the diamond tools. As diamonds are incredibly tough and nearly impossible to reshape once the raw diamonds have been fashioned into tools such as drills and chainsaws, you will require a little bit of magic to coax them to merge.
|
||||
|
||||
emt.rsname.Thaumium Omnitool=Thaumium Omnitool
|
||||
emt.tag.Thaumium Omnitool=Mystical multitool
|
||||
emt.text.Thaumium Omnitool=After creating the Diamond and Iron Omnitools, the next logical step was to do the same with Thaumium. Unfortunately, this isn't as easy. You have discovered a way to combine the Thaumium Drill and the Thaumium Chainsaw, resulting in a tool capable of mining and chopping trees at great speed with a high energy capacity. These tools have already once been infused with magic. You are not sure what will happen if they were to be infused again.
|
||||
|
||||
emt.rsname.Explosion Focus=Explosion Focus
|
||||
emt.tag.Explosion Focus=Use only in well-ventilated areas
|
||||
emt.text.Explosion Focus=You have found a way to improve the Nine Hells focus. By exposing the bats to the explosive properties of a Mining Laser, you have built a focus that acts similarly to the Laser but uses vis instead of EU. However, its effects are incredibly unstable, so you make a note to be careful.
|
||||
|
||||
emt.rsname.Kris-tmas Focus=Kris-tmas Focus
|
||||
emt.tag.Kris-tmas Focus=Ho! Ho! Ho!
|
||||
emt.text.Kris-tmas Focus=Merry Christmas!<BR><BR>You have found a novel use for the frost focus. By exposing it to the magic of Christmas, you can summon your snowy friends at will to fire snowballs at your Festivus celebrating neighbours!
|
||||
|
||||
emt.rsname.Shield Focus=Shield Focus
|
||||
emt.tag.Shield Focus=S.H.I.E.L.D.
|
||||
emt.text.Shield Focus=With some experimentation with the Portable Hole, you have found out more about the transportation of objects to alternate dimensions. You believe you can reverse these effects to summon a swath of blocks from a dimension full of matter to shield you from any oncoming disaster. Caution is to be taken when using this focus, as when bringing these blocks into our dimension, it will transpose any blocks in the way into the dimension it came from, never to return again. You will also be unable to move while this shield is in existence.
|
||||
|
||||
emt.rsname.Potentia Generator=Potentia Generator
|
||||
emt.tag.Potentia Generator=Harnessing the power-producing potential of Essentia
|
||||
emt.text.Potentia Generator=After much studying and research, you have finally discovered how to create electricity from your leftover Essentia.<BR><BR>Simply place a Warded Jar containing Potentia in a 8 blocks radius of the machine and it will draw it in to create EU.<BR><BR>While Potentia seems like the most logical choice for producing Essentia with EU, you believe you will be able to generate electricity from different Essentia in the near future with a bit of tinkering.
|
||||
|
||||
emt.rsname.Lucrum Generator=Lucrum Generator
|
||||
emt.tag.Lucrum Generator=Greed is gold...?
|
||||
emt.text.Lucrum Generator=Your greed kept you going further, so you found a way to convert Lucrum to power.<BR><BR>By Infusing the Potentia Generator with huge amounts of Gold, Permutatio and Lucrum, you managed to build a powerful generator that literally runs on gold.<BR><BR>But as you thought, the Infusion is unstable and will fail easily when you are not prepared.
|
||||
|
||||
emt.rsname.Ignis Generator=Ignis Generator
|
||||
emt.tag.Ignis Generator=If you can't handle the heat...
|
||||
emt.text.Ignis Generator=Just as you thought, with a bit of tweaking, you have found a way to instead use Ignis Essentia to produce power. On the inside, this machine is able to heat water by consuming Ignis. The steam produced by this heat then spins the turbines, similar to a typical Generator.
|
||||
|
||||
emt.rsname.Auram Generator=Auram Generator
|
||||
emt.tag.Auram Generator=Harnessing the magic in the air
|
||||
emt.text.Auram Generator=Though it took a bit more work than you initially thought, you have found a way to produce EU using Auram Essenita. This required a complete reworking of the machine, relying on Auram's pulsating magical power to spin a Generator.
|
||||
|
||||
emt.rsname.Arbor Generator=Arbor Generator
|
||||
emt.tag.Arbor Generator=Bringing power generation back to its basics
|
||||
emt.text.Arbor Generator=You always seem to have excess Arbor Essentia sitting around. Not anymore! By modifying your original Potentia Generator, you have found a way to produce energy using Arbor Essentia instead.
|
||||
|
||||
emt.rsname.Aer Generator=Aer Generator
|
||||
emt.tag.Aer Generator=Compressing your environment
|
||||
emt.text.Aer Generator=You have discovered the enormous power of the air, and therefore decided to try out a modification of your original Potentia Generator capable of compressing air from Aer Essentia in a nearby jar.
|
||||
|
||||
emt.rsname.Chainsaw of the Stream=Chainsaw of the Stream
|
||||
emt.tag.Chainsaw of the Stream=Felling trees in a single swoop
|
||||
emt.text.Chainsaw of the Stream=After studying both the Axe of the Stream and the Thaumium Chainsaw, you managed to combine most of their abilities, resulting in an electric tool that can chop down whole trees without much effort.
|
||||
|
||||
emt.rsname.Drill of the Rockbreaker=Drill of the Rockbreaker
|
||||
emt.tag.Drill of the Rockbreaker=Mining it big
|
||||
emt.text.Drill of the Rockbreaker=After studying the Pickaxe of the Core, the Shovel of the Earthmover and the Thaumium Drill, you have managed to combine most of their abilities, resulting in an electric tool that can mine a whole 3x3x1 area of pickaxe and dirt materials very quickly.<BR><BR>This marvelous device is able to find the closest ore clusters on a shift-right click, though at the cost of some EU.
|
||||
|
||||
emt.rsname.Shield Block=Shield Block
|
||||
emt.tag.Shield Block=Magical protection
|
||||
emt.text.Shield Block=After studying the blocks created by the shield focus, you have discovered how to recreate them yourself, without relying on them to be summoned by the focus. They are highly blast resistant, and even resistant to nukes. However, in the event of an actual nuclear explosion, while the shield blocks will survive the aftermath, the surrounding blocks will not.<BR><BR>These blocks are unstable and do not drop when broken, even when Silk Touch is used.
|
||||
|
||||
emt.rsname.Tiny Uranium=Tiny Uranium
|
||||
emt.tag.Tiny Uranium=Some shrinkage may occur
|
||||
emt.text.Tiny Uranium=After processing all your ores and using them for the creation of nuclear reactors, you have finally run out of uranium nuggets, needed to make your beloved fuel rods. After long research sessions, you have managed to transform your leftover uranium into much-needed nuggets!<BR><BR>Unfortunately, this process is a bit wasteful, but you believe it to be worth the cost.
|
||||
|
||||
emt.rsname.Mjolnir=Mjolnir
|
||||
emt.tag.Mjolnir=Godly power
|
||||
emt.text.Mjolnir=You have travelled the world, in quest for the mighty Hammer of Thor. One day, you stumbled upon its broken remains, and your heart crumbled with it. After some long and tedious research, you found a way to restore this magnificent tool to its past greatness.<BR><BR>You have an odd feeling,(you seem to have a lot of these), that although this tool is amazingly powerful, you could do more with it.
|
||||
|
||||
emt.rsname.The Legend=The Legend
|
||||
emt.tag.The Legend=Childhood memories...
|
||||
emt.text.The Legend=You have always heard about the Legend of the Hammer.<BR><BR>It is said that the god of Lightning, Thor, had a hammer capable of summoning lightning.<BR><BR>The legend also states that, when the god retired in his dimension, he left his hammer, hidden somewhere in a well protected dungeon, where only a worthy mortal could find it.<BR><BR>You have long since wanted to go explore the world, to try and find it.
|
||||
|
||||
emt.rsname.Lightning Summoner=Lightning Summoner
|
||||
emt.tag.Lightning Summoner=From vilest enemies
|
||||
emt.text.Lightning Summoner=This item is dropped by your archenemy, the Supercharged Creeper. You feel it is going to be very useful later on.
|
||||
|
||||
emt.rsname.Supercharged Mjolnir=Supercharged Mjolnir
|
||||
emt.tag.Supercharged Mjolnir=Making it yours
|
||||
emt.text.Supercharged Mjolnir=After some more exploring of the dungeons existing all around the worlds and dimensions, you have managed to find a method that makes you able to overpower Thor's power, making his Hammer yours. Furthermore, you have managed to make your Hammer summon defenders, some strange Snow-Golems like creature that shall protect you. However, the hammer lost its power to summon lightning where you desire it to, and creates a ring of lightning around you.
|
||||
|
||||
emt.rsname.Industrial Wand Charging Station=Industrial Wand Charging Station
|
||||
emt.tag.Industrial Wand Charging Station=Charging your wand the industrial way
|
||||
emt.text.Industrial Wand Charging Station=You have managed to combine the powers of the Wand Pedestal with those of the mighty UU-Matter, resulting in a machine capable of replicating aspects on your wand, at the cost of 50000 EU to recharge every aspect on the wand of 1 unit.
|
||||
|
||||
emt.rsname.Compressed Solars=Compressed Solars
|
||||
emt.tag.Compressed Solars=Increase the efficiency!
|
||||
emt.text.Compressed Solars=You have found a way to compress 9 mundane Solar Panels in a magical one, that acts as if it was made of 10 mundane solar panels, generating 10 EU/t. You may repeat this process with compressed solar panels, allowing you to increase the power potential per block even higher. You can also, by magical infusion, create triple compressed solar panels, taking the folly a step further.
|
||||
|
||||
emt.rsname.Solar Helmet of Revealing=Solar Helmet of Revealing
|
||||
emt.tag.Solar Helmet of Revealing=The sunlight hurts my eyes
|
||||
emt.text.Solar Helmet of Revealing=You now have a helmet that acts exactly like your quantum goggles of revealing, but can also recharge your chest armor! It generates 65536 EU during the day, and 4096 EU at night.
|
||||
|
||||
emt.rsname.Diamond Chainsaw=Diamond Chainsaw
|
||||
emt.tag.Diamond Chainsaw=Harder, better, faster, stronger
|
||||
emt.text.Diamond Chainsaw=You are unsure why the thought of upgrading a Chainsaw with diamonds similarly to what you have done with a Drill has never occurred to you. This upgrade makes the Chainsaw capable of holding more energy and breaking blocks faster.
|
||||
|
||||
emt.rsname.Thaumium Plate=Thaumium Plate
|
||||
emt.tag.Thaumium Plate=Thaumium, the industrial way
|
||||
emt.text.Thaumium Plate=As every electrical engineer knows, plates are the basis of many devices. We knew that pressing Thaumium into plates would be a neccesary step to facilitate integration of magic into our tools, but this made the mages of the school of Thaumaturgy very upset. The don't like us tampering with their precious metal. You can produce these plates as shown, which is a bit more expensive, or in a metal former, requiring only one Thaumium Ingot. Keep an eye out for angry mages.
|
||||
|
||||
emt.rsname.Macerating Native Ore Clusters=Macerating Native Ore Clusters
|
||||
emt.tag.Macerating Native Ore Clusters=Augmenting your yield
|
||||
emt.text.Macerating Native Ore Clusters=You can macerate all Native Ore Clusters, except cinnabar. You will get 22 tiny dusts per Native Ore Cluster macerated.
|
||||
|
||||
emt.rsname.Electric Boots of the Traveller=Electric Boots of the Traveller
|
||||
emt.tag.Electric Boots of the Traveller=I've got the power
|
||||
emt.text.Electric Boots of the Traveller=With lots of precise mechanical components and a touch of magic, you have recreated the effects of the Boots of the Traveller in a more stable form. These boots, unlike the original, will not wear away over time, but instead use EU. These boots negate all fall damage, and have all the normal properties of the Boots of the Traveller.
|
||||
|
||||
emt.rsname.Nano Boots of the Traveller=Nano Boots of the Traveller
|
||||
emt.tag.Nano Boots of the Traveller=Speed demon
|
||||
emt.text.Nano Boots of the Traveller=Your Electric Boots of the Traveller are nice, but you think you can do better. You have found a way to upgrade these boots to the Nano tier, improving the mechanical components and improving the spell cast on the footwear. These boots allow for higher jumps and faster running than before.
|
||||
|
||||
emt.rsname.Quantum Boots of the Traveller=Quantum Boots of the Traveller
|
||||
emt.tag.Quantum Boots of the Traveller=Faster than light
|
||||
emt.text.Quantum Boots of the Traveller=You have meddled with Quantum Physics, making these Quantum Boots of the Traveller so fast, that you appear to be in multiple places at once. But do not forget what happened to Schrodinger's cat...
|
||||
|
||||
emt.rsname.Electric Scribing Tools=Electric Scribing Tools
|
||||
emt.tag.Electric Scribing Tools=Save squiddy!
|
||||
emt.text.Electric Scribing Tools=You have decided not to kill any more squid. Therefore, you researched a way to charge your scribing tools, in a way which would make them not needing any ink. Thanks to static electricity, and the ball pen technology, you managed to make the ink inside the scribing tools spin so quickly, that EU could recharge it.
|
||||
|
||||
emt.rsname.Etheral Processor=Etheral Processor
|
||||
emt.tag.Etheral Processor=The sky is blue...
|
||||
emt.text.Etheral Processor=After taping into hell's power with the Infernal Furnace to get some rewards out of your mining sessions, you have something totally different in mind. You are now using the power of the "Good", the sky and the so called "Paradise". This Ethereal Processor doubles the yield of every smelting recipe, and gives a 10% chance of getting a Thaumium Nugget as a bonus. You can see two drawbacks to this : as it doubles your smelting yield, it takes twice the time to process an item. As it is a highly magical device, some mundane smelting recipes do not seem to work. You are confident that smelting cobblestone into stone will not work into this wonder-machine.
|
||||
|
||||
emt.rsname.Water Infused Solar Panels=Water Infused Solar Panels
|
||||
emt.tag.Water Infused Solar Panels=Curse you rain!
|
||||
emt.text.Water Infused Solar Panels=You always hated rain, especially when all your power came from Solar Panels. You hated it so much that you decided to find a way to make your Solar Panels keep running during rain. You managed... kind of. The Water Infused Solar Panels work during rain, and during rain only.
|
||||
|
||||
emt.rsname.Entropy Infused Solar Panels=Entropy Infused Solar Panels
|
||||
emt.tag.Entropy Infused Solar Panels=Not afraid of the dark
|
||||
emt.text.Entropy Infused Solar Panels=You know that Solar Panels stop working at nightime. To counter that, you found a way to make your Solar Panels produce energy at night!
|
||||
|
||||
emt.rsname.Order Infused Solar Panels=Order Infused Solar Panels
|
||||
emt.tag.Order Infused Solar Panels=I've got the power!
|
||||
emt.text.Order Infused Solar Panels=Harnessing the power of Order, you have managed to triple the output of your Solar Panels at day!
|
||||
|
||||
emt.rsname.Fire Infused Solar Panels=Fire Infused Solar Panels
|
||||
emt.tag.Fire Infused Solar Panels=Where it is hot and dangerous...
|
||||
emt.text.Fire Infused Solar Panels=Fascinated by the Nether, you created a monster. These Solar Panels work like normal in the Overworld, but also produce more energy when they are located in the Nether! A monster I tell you...
|
||||
|
||||
emt.rsname.Air Infused Solar Panels=Air Infused Solar Panels
|
||||
emt.tag.Air Infused Solar Panels=Don't be afraid of heights
|
||||
emt.text.Air Infused Solar Panels=Your adventurous mind and the natural amount of air existing at the top of the world make these Solar Panels yield more energy when located over Y = 160.
|
||||
|
||||
emt.rsname.Earth Infused Solar Panels=Earth Infused Solar Panels
|
||||
emt.tag.Earth Infused Solar Panels=Not for claustrophobic persons
|
||||
emt.text.Earth Infused Solar Panels=You have decided to get closer to the core. These Solar Panels produce more energy under Y = 10, but keep in mind the rebellious spirits need to be able to see the sun to work.
|
||||
|
||||
emt.rsname.UU-Matter Infusion=UU-Matter Infusion
|
||||
emt.tag.UU-Matter Infusion=A magically charged metamorphic liquid...
|
||||
emt.text.UU-Matter Infusion=You have always found the powers possessed by UU-Mater very strange, even... magical looking, especially the ability to take a large number of shapes if manipulated correctly. And here you are, having discovered a way to shape the liquid through the process of Infusion Crafting. Many recipes are available, and all of them use between 4 to 32 of each primal aspect.
|
||||
|
||||
emt.rsname.Portable Node=Portable Node
|
||||
emt.tag.Portable Node=Randomly convenient
|
||||
emt.text.Portable Node=After studying in an in-depth manner of the wonders of Node Jarring, you have managed to create an item capable of spawning a random node. However, due to some parts of node magic which you cannot understand, this Portable Node will always be Fading and Unstable. <BR><BR>You can only get rid of it by a shift-right click, and you think that you should dispose of it as soon as possible, for unstable nodes are... rather unpredictable.
|
||||
|
||||
emt.rsname.Electric Hoe of Growth=Electric Hoe of Growth
|
||||
emt.tag.Electric Hoe of Growth=Shockingly natural
|
||||
emt.text.Electric Hoe of Growth=You have managed to upgrade your Hoe of Growth. It now delivers little shocks to the land and plants around it, much like your regular Hoe of Growth would do. <BR><BR>However, the magic contained within this tool is too powerful for you to convert it fully to using mundane electricity, for the tool still has a limited number of uses before it breaks, but is rechargeable.
|
||||
|
||||
emt.rsname.Wand Focus: Charging=Wand Focus: Charging
|
||||
emt.tag.Wand Focus: Charging=From vis to electricity
|
||||
emt.text.Wand Focus: Charging=You realized you always carry a wand with you, along with your electric stuff. But sometimes, you have ran out of juice in your electric tools. That's why you created this wand focus. It is very simple, yet very useful, for it drains vis from your wand storage, and charges the items using mundane electricity.
|
||||
|
||||
emt.rsname.Wand Focus: Wand Charging=Wand Focus: Wand Charging
|
||||
emt.tag.Wand Focus: Wand Charging=From electricity to vis
|
||||
emt.text.Wand Focus: Wand Charging=You've discovered a way to take the benefits of the Industrial Recharge station and house them inside of a Charging Focus, reversing its polarity. Now it will drain electricity from your items in order to recharge your wand, albeit at a rather high cost. Furthermore, you have realized than you need a full set of Electric Armor to be able to start the wand charging process.
|
||||
|
||||
emt.rsname.Inventory Charging Ring=Inventory Charging Ring
|
||||
emt.tag.Inventory Charging Ring=Passive charger
|
||||
emt.text.Inventory Charging Ring=While other thaumaturgists use rings to charge their runic shields, you feel that there are better applications for them. By fusing power sources into a mundane ring, you have learned how to funnel its charging effects into electric items in your inventory instead. It doesn't generate much at only 32 EU per tick, but that just means there's room for improvement.
|
||||
|
||||
emt.rsname.Armor Charging Ring=Armor Charging Ring
|
||||
emt.tag.Armor Charging Ring=Passive life-saver
|
||||
emt.text.Armor Charging Ring=You have found the low but constant recharge rate of your new ring to be more useful than anticipated, but it would be nice if it charged your armor when there wasn't a tool in need of power. By infusing a few more power sources and a piece of armor, you have found a way to have it do just that. Sadly, the new power sources do not increase the recharge rate, but progress is progress.
|
||||
|
||||
emt.rsname.The One Ring=The One Ring
|
||||
emt.tag.The One Ring=Forged inside the pit of the volcanic Mount Doom...
|
||||
emt.text.The One Ring=Three Rings for the Elven-kings under the sky, Seven for the Dwarf-lords in their halls of stone, Nine for Mortal Men doomed to die, One for the Dark Lord on his dark throne in the Land of Mordor where the Shadows lie. One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them in the Land of Mordor where the Shadows lie. -J.R.R. Tolkien's epigraph to The Lord of The Rings.<BR>You dream of being able to disappear from sight , therefore becoming invulnerable to any attack. You have heard that this Ring lays somewhere in ruins, unaltered by time...
|
||||
|
||||
emt.rsname.Feather Wings=Feather Wings
|
||||
emt.tag.Feather Wings=It only works in anime...
|
||||
emt.text.Feather Wings=Duct-taping feathers to cardboard sheets, formed in the shape of wings sounded like a good idea. At least, you can thrust yourself in the air when the spacebar is hit. Not much, but it'll work. Using any wings underwater or during the rain sounds like a very bad idea. Included: fall damage reduction, 25%.
|
||||
|
||||
emt.rsname.Thaumium Reinforced Wings=Thaumium Reinforced Wings
|
||||
emt.tag.Thaumium Reinforced Wings=Already much better
|
||||
emt.text.Thaumium Reinforced Wings=The magic infusing Thaumium is well known. Therefore, reinforcing your cardboard wings with Thaumium sounded like a good idea. You can thrust yourself much higher on spacebar hit, and slow your fall down when spacebar is held. Sneak to go down at a steady pace. Included: fall damage reduction, 50%.
|
||||
|
||||
emt.rsname.Nanosuit Wings=Nanosuit Wings
|
||||
emt.tag.Nanosuit Wings=Nanotechnologies to the rescue!
|
||||
emt.text.Nanosuit Wings=Combining the magic harnessed by Thaumium with the nanotechnologies in your wings.. seemed like the logical way to go. You can thrust yourself way higher than before, and fall even slower when holding spacebar. Included: fall damage reduction, 75%.
|
||||
|
||||
emt.rsname.Quantum Wings=Quantum Wings
|
||||
emt.tag.Quantum Wings=Quantum technologies.
|
||||
emt.text.Quantum Wings=After exploring all the possibilities of nanotechnologies, you decided to do the last jump. Quantum. You can thrust yourself many blocks high, have a very good protection, and your fall is slowed down a lot. However, the quantum unpredictability happened once again. Your fall will be completely stopped when spacebar and sneak are maintained. You don't know why, but it works. Included: fall damage reduction, 100%.
|
||||
|
||||
emt.rsname.Infused Quantum Armor=Infused Quantum Сhestplate.
|
||||
emt.tag.Infused Quantum Armor=The last step is here...
|
||||
emt.text.Infused Quantum Armor=You had been nothing to do and you decided to do something useful. You had an idea in your head of making armor which you can fasten the wings or backpack for being protected in flight. Take the wings or backpack in your hands and sit down to put their on armor. To remove them, hold Shift + "Unequip"(see in options).
|
||||
@@ -12,6 +12,11 @@ gui.EMT.inventory=Inventory
|
||||
gui.EMT.book.aspect.output.eu.title=Essentia Outputs Book
|
||||
gui.EMT.book.aspect.output.essentia.eu=EU Output per Essentia
|
||||
gui.EMT.key.unequip=Unequip
|
||||
emt.Output=Output:
|
||||
emt.Storage=Storage:
|
||||
emt.PressShift=<Press SHIFT>
|
||||
emt.Generating=Generating:
|
||||
emt.Fuel=Fuel
|
||||
|
||||
#=============Tooltips=============
|
||||
#This comes after a player name. The 's is depicting ownership.
|
||||
@@ -26,15 +31,17 @@ tooltip.EMT.specialEffect=Special Effect
|
||||
tooltip.EMT.normalConditions=Normal Conditions
|
||||
tooltip.EMT.euPerTick=EU/t
|
||||
tooltip.EMT.night=at night
|
||||
tooltip.EMT.day=at day
|
||||
tooltip.EMT.forget=Didn't I forget a tooltip?
|
||||
tooltip.EMT.raining=while raining
|
||||
tooltip.EMT.output.triple=Output multiplied by 3
|
||||
tooltip.EMT.thunder=while in a thunderstorm
|
||||
tooltip.EMT.underwater=while under water
|
||||
tooltip.EMT.output.double=Output multiplied by 2
|
||||
tooltip.EMT.output.double.half=Output multiplied by 2.5
|
||||
tooltip.EMT.output.triple=Output multiplied by 3
|
||||
tooltip.EMT.output.double.nether=when located in the Nether
|
||||
tooltip.EMT.output.double.lava=when lava is on top
|
||||
tooltip.EMT.output.double.half.height=when the block is over Y = 160
|
||||
tooltip.EMT.output.double.half.low=when the block is under Y = 10
|
||||
tooltip.EMT.output.double.lava=when fed with Ignis Centivis
|
||||
tooltip.EMT.output.double.half.height=Higher output at heights (x1 at y = 5, x3 at y=220)
|
||||
tooltip.EMT.output.double.half.low=Higher output at depths (x1 at y = 220, x3 at y=5)
|
||||
|
||||
#=============Entity Names=============
|
||||
entity.EMT.laser.name=Laser
|
||||
@@ -104,8 +111,10 @@ tile.EMT.essentia.ignis.name=Ignis Generator
|
||||
tile.EMT.essentia.auram.name=Auram Generator
|
||||
tile.EMT.essentia.arbor.name=Arbor Generator
|
||||
tile.EMT.essentia.aer.name=Aer Generator
|
||||
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
||||
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
||||
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
||||
tile.EMT.machine.essentiafiller.name=Essentia Filler
|
||||
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
||||
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
||||
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
||||
@@ -128,6 +137,14 @@ tile.EMT.solar2.earth.name=Earth Infused Compressed Solar Panel
|
||||
tile.EMT.solar2.doubleearth.name=Earth Infused Double Compressed Solar Panel
|
||||
tile.EMT.solar2.tripleearth.name=Earth Infused Triple Compressed Solar Panel
|
||||
|
||||
#===============Gregtech Compat===============
|
||||
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing
|
||||
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell
|
||||
EMT_GTBLOCK_CASEING.2.name=Iridium Osmiridium Framebox
|
||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
||||
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
||||
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell
|
||||
|
||||
#=============Thaumonomicon Texts=============
|
||||
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
||||
emt.tag.Electric Magic Tools=Who says magic and technology can't go together?
|
||||
@@ -190,6 +207,10 @@ emt.rsname.Potentia Generator=Potentia Generator
|
||||
emt.tag.Potentia Generator=Harnessing the power-producing potential of Essentia
|
||||
emt.text.Potentia Generator=After much studying and research, you have finally discovered how to create electricity from your leftover Essentia.<BR><BR>Simply place a Warded Jar containing Potentia in a 8 blocks radius of the machine and it will draw it in to create EU.<BR><BR>While Potentia seems like the most logical choice for producing Essentia with EU, you believe you will be able to generate electricity from different Essentia in the near future with a bit of tinkering.
|
||||
|
||||
emt.rsname.Lucrum Generator=Lucrum Generator
|
||||
emt.tag.Lucrum Generator=Greed is gold...?
|
||||
emt.text.Lucrum Generator=Your greed kept you going further, so you found a way to convert Lucrum to power.<BR><BR>By Infusing the Potentia Generator with huge amounts of Gold, Permutatio and Lucrum, you managed to build a powerful generator that literally runs on gold.<BR><BR>But as you thought, the Infusion is unstable and will fail easily when you are not prepared.
|
||||
|
||||
emt.rsname.Ignis Generator=Ignis Generator
|
||||
emt.tag.Ignis Generator=If you can't handle the heat...
|
||||
emt.text.Ignis Generator=Just as you thought, with a bit of tweaking, you have found a way to instead use Ignis Essentia to produce power. On the inside, this machine is able to heat water by consuming Ignis. The steam produced by this heat then spins the turbines, similar to a typical Generator.
|
||||
|
||||
@@ -12,6 +12,11 @@ gui.EMT.inventory=Инвентарь
|
||||
gui.EMT.book.aspect.output.eu.title=Книга выхода эссенции
|
||||
gui.EMT.book.aspect.output.essentia.eu=Выход EU за эссенцию
|
||||
gui.EMT.key.unequip=Снять
|
||||
emt.Output=Выход:
|
||||
emt.Storage=Хранилище:
|
||||
emt.PressShift=<Нажмите SHIFT>
|
||||
emt.Generating=Генерирует:
|
||||
emt.Fuel=горючее
|
||||
|
||||
#=============Tooltips=============
|
||||
#This comes after a player name. The 's is depicting ownership.
|
||||
@@ -26,11 +31,13 @@ tooltip.EMT.specialEffect=Особый эффект
|
||||
tooltip.EMT.normalConditions=Нормальные условия
|
||||
tooltip.EMT.euPerTick=EU/тик
|
||||
tooltip.EMT.night=ночью
|
||||
tooltip.EMT.day=днём
|
||||
tooltip.EMT.forget=Я не забыл подсказку?
|
||||
tooltip.EMT.raining=во время дождя
|
||||
tooltip.EMT.thunder=во время грозы
|
||||
tooltip.EMT.underwater=под водой
|
||||
tooltip.EMT.output.triple=Выход увеличен на 3
|
||||
tooltip.EMT.output.double=Выход увеличен на 2,
|
||||
tooltip.EMT.output.double.half=Выход увеличен на 2.5,
|
||||
tooltip.EMT.output.double.nether=если она находится в Нижнем мире
|
||||
tooltip.EMT.output.double.lava=если над ней лава
|
||||
tooltip.EMT.output.double.half.height=если она находится выше Y = 160
|
||||
@@ -92,6 +99,7 @@ item.EMT.focus.christmas.name=Набалдашник: Рождество
|
||||
item.EMT.focus.shield.name=Набалдашник: Щит
|
||||
item.EMT.focus.charge.name=Набалдашник: Зарядка
|
||||
item.EMT.focus.chargeWand.name=Набалдашник: Зарядка жезла
|
||||
item.EMT.focus.electricCloud.name=Электризованное облако
|
||||
item.EMT.focus.energyBall.name=Набалдашник: Наэлектризованное облако
|
||||
|
||||
#=============Block Names=============
|
||||
@@ -103,8 +111,10 @@ tile.EMT.essentia.ignis.name=Ignis генератор
|
||||
tile.EMT.essentia.auram.name=Auram генератор
|
||||
tile.EMT.essentia.arbor.name=Arbor генератор
|
||||
tile.EMT.essentia.aer.name=Aer генератор
|
||||
tile.EMT.essentia.lucrum.name=Lucrum генератор
|
||||
tile.EMT.machine.wandrecharge.name=Промышленная станция зарядки жезлов
|
||||
tile.EMT.machine.etheralprocessor.name=Эфирный обработчик
|
||||
tile.EMT.machine.essentiafiller.name=Эфирный наполнитель
|
||||
tile.EMT.solar.compressed.name=Сжатая солнечная панель
|
||||
tile.EMT.solar.doublecompressed.name=Дважды сжатая солнечная панель
|
||||
tile.EMT.solar.triplecompressed.name=Трижды сжатая солнечная панель
|
||||
@@ -127,6 +137,14 @@ tile.EMT.solar2.earth.name=Наполненная землёй, сжатая с
|
||||
tile.EMT.solar2.doubleearth.name=Наполненная землёй, дважды сжатая солнечная панель
|
||||
tile.EMT.solar2.tripleearth.name=Наполненная землёй, трижды сжатая солнечная панель
|
||||
|
||||
#===============Gregtech Compat===============
|
||||
EMT_GTBLOCK_CASEING.0.name=Магический Корпус
|
||||
EMT_GTBLOCK_CASEING.1.name=Эфирная Диффузионная Ячейка
|
||||
EMT_GTBLOCK_CASEING.2.name=Иридиево-Осмиридиевый Framebox
|
||||
EMT_GTBLOCK_CASEING.3.name=Иридиево-Вольфрамовый Framebox
|
||||
EMT_GTBLOCK_CASEING.4.name=Необработанный Магический Корпус
|
||||
EMT_GTBLOCK_CASEING.5.name=Необработанная Эфирная Диффузионная Ячейка
|
||||
|
||||
#=============Thaumonomicon=============
|
||||
emt.rsname.Electric Magic Tools=Electric Magic Tools
|
||||
emt.tag.Electric Magic Tools=Кто сказал что магия и технология не дружат вместе?
|
||||
@@ -189,6 +207,10 @@ emt.rsname.Potentia Generator=Potentia генератор
|
||||
emt.tag.Potentia Generator=Освоение производящего потенциала эссенции
|
||||
emt.text.Potentia Generator=После долгих изучений и исследований, Вы, наконец-то, узнали как получить электричество от остатков эссенции.<BR><BR>Просто поместите банку, содержащую Potentia, в радиусе 8 блоков от механизма и она заставит его вырабатывать EU.<BR><BR>Хотя Potentia кажется наиболее логичным выбором для производства EU с помощью эссенции, Вы уверены, что Вы сможете производить электричество из различных эссенций в ближайшем будущем.
|
||||
|
||||
emt.rsname.Lucrum Generator=Lucrum генератор
|
||||
emt.tag.Lucrum Generator=Жадность - золото...?
|
||||
emt.text.Lucrum Generator=Ваша любовь к золоту прогрессирует, и вы придумываете как конвертировать Lucrum в энергию.<BR><BR>Наполняя Potentia генератор огромными количествами золота, эссенциями Permutatio и Lucrum, вам удается создать мощный генератор энергии, который буквально питается золотом.<BR><BR>Как вы и ожидали, процесс создания нестабилен и может провалиться от любой мелочи.
|
||||
|
||||
emt.rsname.Ignis Generator=Ignis генератор
|
||||
emt.tag.Ignis Generator=Если Вы не можете справиться с жаром...
|
||||
emt.text.Ignis Generator=Так же, как Вы думали, после небольшой настройки, Вы обнаружили способ использования эссенции Ignis для получения электричества. Внутри, этот механизм способен нагреть воду, потребляя Ignis. Вырабатываемый пар затем вращает турбины, аналогично типичному генератору.
|
||||
@@ -355,4 +377,4 @@ emt.text.Quantum Wings=После исследования всех возмож
|
||||
|
||||
emt.rsname.Infused Quantum Armor=Наполненный квантовый нагрудник.
|
||||
emt.tag.Infused Quantum Armor=Последний шаг...
|
||||
emt.text.Infused Quantum Armor=Вам было нечего делать, и Вы решили заняться хоть чем-то полезным. Вам в голову пришла идея создания брони, на которую можно нацепить крылья или ранец, чтобы быть защищёнными в полёте. Возмите в руку крылья или ранец, и присядьте чтобы надеть их на броню. Чтобы снять их, зажмите Shift + "Снять"(Смотрите в настройках).
|
||||
emt.text.Infused Quantum Armor=Вам было нечего делать, и Вы решили заняться хоть чем-то полезным. Вам в голову пришла идея создания брони, на которую можно нацепить крылья или ранец, чтобы быть защищёнными в полёте. Возмите в руку крылья или ранец, и присядьте чтобы надеть их на броню. Чтобы снять их, зажмите Shift + "Снять"(Смотрите в настройках).
|
||||
@@ -12,6 +12,11 @@ gui.EMT.inventory=物品栏
|
||||
gui.EMT.book.aspect.output.eu.title=源质发电机
|
||||
gui.EMT.book.aspect.output.essentia.eu=源质发电功率
|
||||
gui.EMT.key.unequip=卸下装备
|
||||
emt.Output=输出:
|
||||
emt.Storage=存储:
|
||||
emt.PressShift=<按下Shift>
|
||||
emt.Generating=发电:
|
||||
emt.Fuel=燃料
|
||||
|
||||
#=============Tooltips=============
|
||||
#This comes after a player name. The 's is depicting ownership.
|
||||
@@ -26,11 +31,13 @@ tooltip.EMT.specialEffect=特殊效果
|
||||
tooltip.EMT.normalConditions=普通状态
|
||||
tooltip.EMT.euPerTick=EU/t
|
||||
tooltip.EMT.night=夜晚时发电量
|
||||
tooltip.EMT.day=at day
|
||||
tooltip.EMT.forget=我忘记写下提示信息了吗?
|
||||
tooltip.EMT.raining=降雨时发电量
|
||||
tooltip.EMT.output.triple=输出3倍电量
|
||||
tooltip.EMT.thunder=雷雨时发电量
|
||||
tooltip.EMT.underwater=水下发电量
|
||||
tooltip.EMT.output.double=输出2倍电量
|
||||
tooltip.EMT.output.double.half=输出2.5倍电量
|
||||
tooltip.EMT.output.triple=输出3倍电量
|
||||
tooltip.EMT.output.double.nether=处于下界时发电量
|
||||
tooltip.EMT.output.double.lava=处于岩浆中发电量
|
||||
tooltip.EMT.output.double.half.height=处于160层上方发电量
|
||||
@@ -60,7 +67,7 @@ item.EMT.taintedFeather.name=腐化羽毛
|
||||
item.EMT.thaumiumWing.name=神秘增强羽翼
|
||||
item.EMT.uumatterDrop.name=结晶UU物质液滴
|
||||
item.EMT.bauble.euMaker.armor.name=装备充电指环
|
||||
item.EMT.bauble.euMaker.inventory.name=物品充电指环
|
||||
item.EMT.bauble.euMaker.inventory.name=物品充能指环
|
||||
item.EMT.bauble.oneRing.name=魔戒
|
||||
item.EMT.goggles.electric.name=电子护目镜
|
||||
item.EMT.goggles.nano.name=纳米揭示护目镜
|
||||
@@ -71,7 +78,7 @@ item.EMT.boots.traveller.nano.name=纳米旅行者之靴
|
||||
item.EMT.boots.traveller.quantum.name=量子旅行者之靴
|
||||
item.EMT.scribingtools.electric.name=电子笔与墨
|
||||
item.EMT.wing.feather.name=粘合纸板羽翼
|
||||
item.EMT.wing.thaumium.name=神秘羽翼
|
||||
item.EMT.wing.thaumium.name=神秘强化羽翼
|
||||
item.EMT.wing.nano.name=纳米羽翼
|
||||
item.EMT.wing.quantum.name=量子羽翼
|
||||
item.EMT.chestplates.infusedQuantum.name=注魔量子胸甲
|
||||
@@ -85,16 +92,18 @@ item.EMT.omnitool.iron.name=铁制钻锯
|
||||
item.EMT.omnitool.diamond.name=钻石钻锯
|
||||
item.EMT.omnitool.thaumium.name=神秘钻锯
|
||||
item.EMT.chainsaw.stream.name=奔雷电锯
|
||||
item.EMT.drill.rockbreaker.name=破岩者电钻
|
||||
item.EMT.drill.rockbreaker.name=岩石粉碎者
|
||||
item.EMT.hoeofgrowth.electric.name=电子句芒锄
|
||||
item.EMT.focus.explosion.name=法杖核心:爆炸
|
||||
item.EMT.focus.christmas.name=法杖核心:圣诞
|
||||
item.EMT.focus.shield.name=法杖核心:护盾
|
||||
item.EMT.focus.charge.name=法杖核心:充电
|
||||
item.EMT.focus.charge.wand.name=法杖核心:化魔
|
||||
item.EMT.focus.chargeWand.name=法杖核心:化魔
|
||||
item.EMT.focus.electricCloud.name=雷云之光
|
||||
item.EMT.focus.energyBall.name=法杖核心:能量球
|
||||
|
||||
#=============Block Names=============
|
||||
tile.EMT.electricCloud.name=Electric Cloud
|
||||
tile.EMT.electricCloud.name=雷云之光
|
||||
tile.EMT.shield.name=护盾方块
|
||||
tile.EMT.portablenode.name=便携式节点
|
||||
tile.EMT.essentia.potentia.name=能量源质发电机
|
||||
@@ -102,8 +111,10 @@ tile.EMT.essentia.ignis.name=火之源质发电机
|
||||
tile.EMT.essentia.auram.name=灵气源质发电机
|
||||
tile.EMT.essentia.arbor.name=木之源质发电机
|
||||
tile.EMT.essentia.aer.name=风之源质发电机
|
||||
tile.EMT.essentia.lucrum.name=贪婪源质发电机
|
||||
tile.EMT.machine.wandrecharge.name=工业法杖充能站
|
||||
tile.EMT.machine.etheralprocessor.name=天域加工机
|
||||
tile.EMT.machine.essentiafiller.name=源质填充机
|
||||
tile.EMT.solar.compressed.name=压缩太阳能
|
||||
tile.EMT.solar.doublecompressed.name=双重压缩太阳能
|
||||
tile.EMT.solar.triplecompressed.name=三重压缩太阳能
|
||||
@@ -125,227 +136,245 @@ tile.EMT.solar2.tripleair.name=风注魔太阳能(3级)
|
||||
tile.EMT.solar2.earth.name=地注魔太阳能(1级)
|
||||
tile.EMT.solar2.doubleearth.name=地注魔太阳能(2级)
|
||||
tile.EMT.solar2.tripleearth.name=地注魔太阳能(3级)
|
||||
tile.EMT.essentiaGenerator.name=源质发电机
|
||||
|
||||
#=============Thaumonomicon Flavor Text=============
|
||||
emt.tag.Electric Magic Tools=谁说科技和魔法不能互相结合?
|
||||
emt.tag.Thaumium Drill=魔法式采矿
|
||||
emt.tag.Thaumium Chainsaw=以魔法之力来砍树木和御敌
|
||||
emt.tag.Electric Goggles=两侧的顶尖技术
|
||||
emt.tag.Nanosuit Goggles of Revealing=高级眼部防护
|
||||
emt.tag.Quantum Goggles of Revealing=更高级的双重保护
|
||||
emt.tag.Iron Omnitool=为农夫准备的便利工具
|
||||
emt.tag.Diamond Omnitool=万能的工具
|
||||
emt.tag.Thaumium Omnitool=神秘的复合工具
|
||||
emt.tag.Explosion Focus=请在开阔处使用
|
||||
emt.tag.Kris-tmas Focus=吼!吼!吼!
|
||||
emt.tag.Shield Focus=结界张开
|
||||
emt.tag.Potentia Generator=利用要素源质来发电
|
||||
emt.tag.Ignis Generator=如果你不能掌控那热量...
|
||||
emt.tag.Auram Generator=利用空气中的魔力
|
||||
emt.tag.Arbor Generator=让发电回到基础
|
||||
emt.tag.Aer Generator=压缩周围的风
|
||||
emt.tag.Chainsaw of the Stream=你只需要一个劲的砍树
|
||||
emt.tag.Drill of the Rockbreaker=疯狂挖矿
|
||||
emt.tag.Shield Block=魔法保护
|
||||
emt.tag.Tiny Uranium=可能会有些缩减
|
||||
emt.tag.Mjolnir=感受神之力吧
|
||||
emt.tag.The Legend=童年的记忆...
|
||||
emt.tag.Lightning Summoner=从死敌那里所得
|
||||
emt.tag.Supercharged Mjolnir=将它据为己有
|
||||
emt.tag.Industrial Wand Charging Station=用工业的方式为你的法杖充能
|
||||
emt.tag.Compressed Solars=增加发电效率!
|
||||
emt.tag.Solar Helmet of Revealing=阳光太刺眼了
|
||||
emt.tag.Diamond Chainsaw=更硬,更好,更快,更强
|
||||
emt.tag.Thaumium Plate=神秘锭的工业处理
|
||||
emt.tag.Macerating Native Ore Clusters=增加你的矿物产量
|
||||
emt.tag.Electric Boots of the Traveller=我充满了力量
|
||||
emt.tag.Nano Boots of the Traveller=速度之魔
|
||||
emt.tag.Quantum Boots of the Traveller=超越光速
|
||||
emt.tag.Electric Scribing Tools=保护墨鱼!
|
||||
emt.tag.Etheral Processor=天空如此湛蓝...
|
||||
emt.tag.Water Infused Solar Panels=该死又下雨了!
|
||||
emt.tag.Entropy Infused Solar Panels=不要惧怕黑暗
|
||||
emt.tag.Order Infused Solar Panels=我得到了能量!
|
||||
emt.tag.Fire Infused Solar Panels=炽热的危险之地...
|
||||
emt.tag.Air Infused Solar Panels=高度不是问题
|
||||
emt.tag.Earth Infused Solar Panels=非幽闭症患者定制
|
||||
emt.tag.UU-Matter Infusion=蕴含魔力的百变液体...
|
||||
emt.tag.Portable Node=处处实用
|
||||
emt.tag.Electric Hoe of Growth=惊人的自然力量
|
||||
emt.tag.Wand Focus: Charging=从魔力到电力
|
||||
emt.tag.Wand Focus: Wand Charging=从电力到魔力
|
||||
emt.tag.Inventory Charging Ring=被动充电
|
||||
emt.tag.Armor Charging Ring=或许能救你的命
|
||||
emt.tag.The One Ring=在末日山的坑中所埋藏...
|
||||
emt.tag.Feather Wings=在动漫里才会起效...
|
||||
emt.tag.Thaumium Reinforced Wings=好多了
|
||||
emt.tag.Nanosuit Wings=纳米大法好!
|
||||
emt.tag.Quantum Wings=量子科技
|
||||
emt.tag.Infused Quantum Armor=最后的一步...
|
||||
#===============Gregtech Compat===============
|
||||
EMT_GTBLOCK_CASEING.0.name=魔法机械方块
|
||||
EMT_GTBLOCK_CASEING.1.name=源质扩散单元
|
||||
EMT_GTBLOCK_CASEING.2.name=铱锇魔法框架
|
||||
EMT_GTBLOCK_CASEING.3.name=铟钨魔法框架
|
||||
EMT_GTBLOCK_CASEING.4.name=魔法机械方块半成品
|
||||
EMT_GTBLOCK_CASEING.5.name=源质扩散单元半成品
|
||||
|
||||
#=============Thaumonomicon Texts=============
|
||||
emt.rsname.Electric Magic Tools=电力魔法工具
|
||||
emt.tag.Electric Magic Tools=谁说科技和魔法不能互相结合?
|
||||
emt.text.Electric Magic Tools=谁说魔法和科技不能共同工作?我们的研究者们集合了魔法学院顶尖的神秘使们带来了魔法与电子工具的组合.
|
||||
|
||||
emt.rsname.Energy Ball Focus=法杖核心:能量球
|
||||
emt.tag.Energy Ball Focus=这可不是玩具
|
||||
emt.text.Energy Ball Focus=要使用此法杖核心必须装备电池背包或纳米/量子胸甲. 每制造一个能量球需要消耗5120EU. 请勿在密闭空间内使用此法杖核心!
|
||||
|
||||
emt.rsname.Electric Cloud=雷云之光
|
||||
emt.tag.Electric Cloud=闪耀之光?
|
||||
emt.text.Electric Cloud.1=所有神秘使(除了血腥邪徒, 我猜)享受着魔法火焰:闪耀之光的光明和温暖, 不是么? 你决定将其变得更... 有活力. 很好, 你成功了.<BR><BR>你创造了一种新的魔法火焰 — 雷云之光. 它与普通闪耀之光类似, 但它是紫色的并且在它周围生成淡紫色的闪电. 要使其电子化, 你需要手持强化充电电池(或更高级的)右键闪耀之光.
|
||||
emt.text.Electric Cloud.2=<IMG>emt:textures/researches/electric_cloud.png:0:0:255:255:0.6</IMG>
|
||||
|
||||
emt.rsname.Thaumium Drill=神秘钻头
|
||||
emt.tag.Thaumium Drill=魔法式采矿
|
||||
emt.text.Thaumium Drill=你已发现了一种向神秘力量注入普通电子的方法.将神秘材料融入钻石产生了一个能快速采集石头的高性能工具<BR><BR>尽管神秘板是十分有用并强力的材料,它还不能与铱相比.它更像是一个过渡工具.<BR><BR>这个工具不是最强的,但你觉得你未来能升级它.
|
||||
|
||||
emt.rsname.Thaumium Chainsaw=神秘链锯
|
||||
emt.tag.Thaumium Chainsaw=以魔法之力来砍树木和御敌
|
||||
emt.text.Thaumium Chainsaw=你发现了一个将神秘力量融入钻石电锯的方法,使得它能更快的砍伐树并储存更多电力.然而这种改良并不是没有缺陷的:在加入这些材料的过程中,电锯失去了处理树叶,草堆和伤害动物的能力.<BR><BR>你觉得不远的未来你还能升级这个工具.
|
||||
|
||||
emt.rsname.Electric Goggles=电子护目镜
|
||||
emt.tag.Electric Goggles=两侧的顶尖技术
|
||||
emt.text.Electric Goggles=你已发现了一种用纯电子设备观测灵气的方法,这意味着你不必再消耗神秘的能量.你现在可以制作出一副能被充电的揭示护目镜,你能像之前那样用它观测节点.为了给电路提供空间并保护敏感的魔力感知电路你需要一个钻石头盔,这也提供了额外的护甲保护.
|
||||
|
||||
emt.rsname.Nanosuit Goggles of Revealing=纳米揭示护目镜
|
||||
emt.tag.Nanosuit Goggles of Revealing=高级眼部防护
|
||||
emt.text.Nanosuit Goggles of Revealing=你已发现了一种无需移动太多就能将你珍贵的魔力感应器和纳米头盔结合的方法.通过给纳米头盔注魔,你将能用它看见灵气节点.在这个魔法过程中,夜视用的控制芯片被用于代替吸收多余魔法能量的电容和魔力感应微芯片.以防你不小心关闭了夜视.
|
||||
|
||||
emt.rsname.Quantum Goggles of Revealing=量子揭示护目镜
|
||||
emt.tag.Quantum Goggles of Revealing=更高级的双重保护
|
||||
emt.text.Quantum Goggles of Revealing=这期间出现了许多的尝试和错误,但你已找到了一种方法来将魔力感应器加入量子头盔里.通过给量子头盔注魔,你将能用它看见灵气节点.在设计的过程中,你加入了几个包含夜视和自动补充饱食度的控制芯片和感应器.你发现使用激光采矿枪时它能安全地确认准星并控制爆炸的冲击.玩的愉快.有了它再也不用夜视药水和补充食物了.
|
||||
|
||||
emt.rsname.Iron Omnitool=铁制钻锯
|
||||
emt.tag.Iron Omnitool=为农夫准备的便利工具
|
||||
emt.text.Iron Omnitool=当你研究是否能用魔法融合你所用的一些工具的用途时,你已发现了一种结合电钻和电锯的方法,结果你得到了一个同时可采矿,砍树和御敌的工具!在处理普通金属矿物时,并不需要什么魔法效应.
|
||||
|
||||
emt.rsname.Diamond Omnitool=钻石钻锯
|
||||
emt.tag.Diamond Omnitool=万能的工具
|
||||
emt.text.Diamond Omnitool=铁制钻锯的发现让你试着将同样的结合用在一些更强力的设备上.你已发现了一种结合钻石电锯和电钻的方法,结果得到了一个拥有砍树和挖矿并御敌的工具,同时保持着钻石工具的特性.由于钻石在被制成电钻电锯这样的工具后很难被重塑,所以你将需要一点魔法的力量来融合它们.
|
||||
|
||||
emt.rsname.Thaumium Omnitool=神秘钻锯
|
||||
emt.tag.Thaumium Omnitool=神秘的复合工具
|
||||
emt.text.Thaumium Omnitool=在创作了钻石钻锯和铁钻锯之后,下一步就是用在神秘材料上了.不幸的是,这不是一个容易事,你发现了一种结合神秘电钻和神秘电锯的方法,而得到了一个有挖矿和砍树能力的工具.这些工具已被注入魔力.你不确定下次注入时将会发生什么.
|
||||
|
||||
emt.rsname.Explosion Focus=法杖核心:爆炸
|
||||
emt.tag.Explosion Focus=请在开阔处使用
|
||||
emt.text.Explosion Focus=你已发现了一种通过将蝙蝠换为更具爆炸性的采矿激光来修改九狱核心的方法.这个核心工作时类似激光采矿枪但是它使用魔力而不是电力.这个核心很不稳定所以记着小心点.
|
||||
|
||||
emt.rsname.Kris-tmas Focus=法杖核心:圣诞
|
||||
emt.tag.Kris-tmas Focus=吼!吼!吼!
|
||||
emt.text.Kris-tmas Focus=圣诞快乐!<BR><BR>你已发现了一条用于寒霜核心的笔记.你可以召唤你的雪人朋友们来对你庆祝节日的邻居们砸雪球,圣诞节的魔法!
|
||||
|
||||
emt.rsname.Shield Focus=法杖核心:护盾
|
||||
emt.tag.Shield Focus=结界张开
|
||||
emt.text.Shield Focus=通过对便携式洞穴的试验,你已发现了更多关于在多次元空间移动物体的方法.你相信你能反过来使用,从异次元召唤出一些方块来在各种危险情况下保护你.注意在使用这个核心将这些方块带入我们的次元时,将会从次元出现的地方转置任何方块,不会再返还.而且在盾牌方块存在时你将无法移动.
|
||||
|
||||
emt.rsname.Potentia Generator=能量源质发电机
|
||||
emt.tag.Potentia Generator=利用要素源质来发电
|
||||
emt.text.Potentia Generator=在许多的学习与研究后,你终于发现了如何从多余的要素源质中提取电力.<BR><BR>这个发电机消耗每单位的能量要素源质会提供3000~3500EU的电力,这使得它十分有效率.只需要在机器边8格范围内放置一个装有能量要素源质的罐子他就会吸收要素源质产生电力.<BR><BR>尽管能量是产生电力最合理的的选择,但你相信经过一些探索在未来你能从其他不同的要素源质中获得电力.
|
||||
|
||||
emt.rsname.Lucrum Generator=贪婪源质发电机
|
||||
emt.tag.Lucrum Generator=贪婪也是能量...?
|
||||
emt.text.Lucrum Generator=你的贪婪驱使你不断前进, 所以你找到了将贪婪要素源质转化为电力的方法.<BR><BR>通过向能量源质发电机中注入大量的金、交换要素和贪婪要素, 你成功地建造了一个强大的发电机.<BR><BR>但如你所料, 注魔并不稳定,若是没有准备完全那将很容易失败.
|
||||
|
||||
emt.rsname.Ignis Generator=火之源质发电机
|
||||
emt.tag.Ignis Generator=如果你不能掌控那热量...
|
||||
emt.text.Ignis Generator=就如你所想的,通过一点调整,你已经找到了代替火要素源质产生能量的方法.在机器内部,它会消耗火要素来加热水.通过这种热量产生的蒸汽驱动涡轮机运作,就像一个典型的发电机.
|
||||
|
||||
emt.rsname.Auram Generator=灵气源质发电机
|
||||
emt.tag.Auram Generator=利用空气中的魔力
|
||||
emt.text.Auram Generator=尽管比你最初的想法用了更多的努力,你已经发现了一种用灵气要素源质产生电力的方法.这需要一个完全的机器改造,依靠灵气脉动的魔法能量来带动发电机工作.
|
||||
|
||||
emt.rsname.Arbor Generator=木之源质发电机
|
||||
emt.tag.Arbor Generator=让发电回到基础
|
||||
emt.text.Arbor Generator=总有许多多余的树木要素源质在你的身边.不需要更多了!通过修改最初的能量要素源质发电机,你已经发现了使用树木要素源质发电的方法.
|
||||
|
||||
emt.rsname.Aer Generator=风之源质发电机
|
||||
emt.tag.Aer Generator=压缩周围的风
|
||||
emt.text.Aer Generator=你研究了蕴藏在风中的巨大能量,并试着修改最初的能量源质发电机,使其具有压缩风源质的能力,并提供300EU的电力.
|
||||
|
||||
emt.rsname.Chainsaw of the Stream=蒸汽链锯
|
||||
emt.rsname.Chainsaw of the Stream=奔雷电锯
|
||||
emt.tag.Chainsaw of the Stream=你只需要一个劲的砍树
|
||||
emt.text.Chainsaw of the Stream=在研究了奔雷斧和神秘电锯后,你试着将它们两者的能力结合,得到了一个能轻松砍完一棵树的电子工具.
|
||||
|
||||
emt.rsname.Drill of the Rockbreaker=岩石粉碎者
|
||||
emt.tag.Drill of the Rockbreaker=疯狂挖矿
|
||||
emt.text.Drill of the Rockbreaker=在研究了炽心镐,后土铲和神秘电钻后,你试着将他们的能力结合而得到一个能开采3X3X1区域材料的电子工具,开采十分迅速.<BR><BR>这个非凡的设备能通过右击找出最近的矿物,当然那会消耗一些电力.
|
||||
|
||||
emt.rsname.Shield Block=坚盾方块
|
||||
emt.rsname.Shield Block=护盾方块
|
||||
emt.tag.Shield Block=魔法保护
|
||||
emt.text.Shield Block=研究了盾牌核心制造出的方块后,你已发现了如何自己制作它们,再也不用需要核心来召唤.它们有很高的爆炸抗性,并且甚至能防止核弹的破坏.然而,在一次核爆炸试验中,尽管盾方块毫发无损,它周围的方块却不是.<BR><BR>这些方块不稳定并且破坏时不会掉落,就算你使用精准采集也是如此.
|
||||
|
||||
emt.rsname.Tiny Uranium=小堆铀
|
||||
emt.tag.Tiny Uranium=可能会有些缩减
|
||||
emt.text.Tiny Uranium=在你将自己所有的矿物都用在了核反应堆的材料上后,你终于用尽了用来做你所需燃料棒的铀.在很长时间的研究后,你试着将你剩下的铀转化为更有用的粒!<BR><BR>不幸的是,这个过程有些浪费,不过你相信它会有所值.
|
||||
|
||||
emt.rsname.Mjolnir=雷神之锤
|
||||
emt.tag.Mjolnir=感受神之力吧
|
||||
emt.text.Mjolnir=你走遍了世界,为了找到这个可能存在的雷神之锤.一天,你偶然发现了它的碎片,你很沮丧.经过长时间辛苦的研究,你找到了让这个魔法工具重现昔日荣光的方法.<BR><BR>你有种感觉(似乎常常有这种感觉),尽管这个工具十分强力,但你还能做更多.
|
||||
|
||||
emt.rsname.The Legend=传说之物
|
||||
emt.tag.The Legend=童年的记忆...
|
||||
emt.text.The Legend=你总是听到关于那个锤子的传说.<BR><BR>传说有一个闪电之神,托尔,有一把能够召唤闪电的锤子.<BR><BR>传说神在他的次元隐退,留下了他的锤子,在某个被保护好的地牢里藏了起来,只有有能力的家伙才能找到它.<BR><BR>你有很多时间去探索这个世界,去试着找到这把锤子.
|
||||
|
||||
emt.rsname.Lightning Summoner=闪电碎片
|
||||
emt.rsname.Lightning Summoner=雷电碎片
|
||||
emt.tag.Lightning Summoner=从死敌那里所得
|
||||
emt.text.Lightning Summoner=这个物品是你的死敌:高压苦力怕所掉落的.你觉得它以后会派上用场.
|
||||
|
||||
emt.rsname.Supercharged Mjolnir=高压雷神之锤
|
||||
emt.tag.Supercharged Mjolnir=将它据为己有
|
||||
emt.text.Supercharged Mjolnir=在对于所有的地牢进行探索之后,你已经找到了一种方法来制服"托尔的力量",使得他的锤子变为你的所有物.此外,你可以你的锤子召唤守卫雪傀儡来保护你.然而这把锤子失去了在你所指之处召唤闪电的力量,并且使用时会在你的周围召唤一圈闪电.
|
||||
|
||||
emt.rsname.Industrial Wand Charging Station=I工业法杖充能站
|
||||
emt.rsname.Industrial Wand Charging Station=工业法杖充能站
|
||||
emt.tag.Industrial Wand Charging Station=用工业的方式为你的法杖充能
|
||||
emt.text.Industrial Wand Charging Station=你已试着将法杖充能基座和强大的UU物质结合起来.结果得到了一个能再生法杖魔力的机器,回复每种要素魔力1vis将会消耗50000EU.
|
||||
|
||||
emt.rsname.Compressed Solars=压缩太阳能发电机
|
||||
emt.tag.Compressed Solars=增加发电效率!
|
||||
emt.text.Compressed Solars=你找到了一种将9普通太阳能压缩为1个魔法太阳能的方法,它工作起来就像是10个普通太阳能发电10eu/t.你将这个过程在压缩太阳能上重复以增加每个方块的产能.你也可以用魔法注魔做出三重压缩的太阳能大大提高发电效率.
|
||||
|
||||
emt.rsname.Solar Helmet of Revealing=太阳能揭示护目镜
|
||||
emt.tag.Solar Helmet of Revealing=阳光太刺眼了
|
||||
emt.text.Solar Helmet of Revealing=你现在有了一顶像你的量子揭示护目镜一样工作的头盔,也能给你背包黑穿着的装备充电!在白天以128EU/t功率发电, 夜晚不发电.
|
||||
|
||||
emt.rsname.Diamond Chainsaw=钻石链锯
|
||||
emt.tag.Diamond Chainsaw=更硬,更好,更快,更强
|
||||
emt.text.Diamond Chainsaw=你不知道为何用钻石升级电锯就像钻石升级电钻那样的想法从未出现在脑海中.这个升级使得电锯能储存更多的电力并且更快的破坏方块.
|
||||
|
||||
emt.rsname.Thaumium Plate=神秘板
|
||||
emt.tag.Thaumium Plate=神秘锭的工业处理
|
||||
emt.text.Thaumium Plate=就如每个电子工程师所知道的,板材是许多设备的基础.我们知道把神秘锭压制成板材将会是把魔法方便地融入工具的必要途径,但这让魔法学院的魔法师们十分心烦.他们不愿意让我们对珍贵的金属材料瞎捣鼓.你可以像所示的那样制作出这些贵重的板材,或是在金属成型机内制作,只需要一个神秘锭.但别让那些恼火的魔法师们看见.
|
||||
|
||||
emt.rsname.Macerating Native Ore Clusters=矿簇粉碎工艺
|
||||
emt.tag.Macerating Native Ore Clusters=增加你的矿物产量
|
||||
emt.text.Macerating Native Ore Clusters=你可以磨粉所有的矿簇,除了朱砂矿簇.你将会从每个矿簇中得到22个小堆粉.
|
||||
|
||||
emt.rsname.Electric Boots of the Traveller=电子旅行者之靴
|
||||
emt.tag.Electric Boots of the Traveller=我充满了力量
|
||||
emt.text.Electric Boots of the Traveller=通过许多精密机械部件和对魔法的接触,你用更稳定的形式重现了旅行者之靴.这些靴子,不像初始的,不会因长时间穿着而损坏,用电力代替耐久.这些靴子免疫一切掉落伤害(不消耗电力),并保有旅行者之靴的所有特性.
|
||||
|
||||
emt.rsname.Nano Boots of the Traveller=纳米旅行者之靴
|
||||
emt.tag.Nano Boots of the Traveller=速度之魔
|
||||
emt.text.Nano Boots of the Traveller=你的电子旅行者之靴还不错,但你觉得你能做的更好.你已发现了一种将这些靴子升级到纳米的方法,改良机械零件和靴子的符文.这些靴子提供了比以往更高的跳跃高度和更快的奔跑速度.
|
||||
|
||||
emt.rsname.Quantum Boots of the Traveller=量子旅行者之靴
|
||||
emt.tag.Quantum Boots of the Traveller=超越光速
|
||||
emt.text.Quantum Boots of the Traveller=你利用量子物理学来改良,使得这些量子旅行者之靴如此之快,让你总能在第一时间达到各个地点.但是别忘了薛定谔的猫发生了什么....
|
||||
|
||||
emt.rsname.Electric Scribing Tools=电子笔与墨
|
||||
emt.tag.Electric Scribing Tools=保护墨鱼!
|
||||
emt.text.Electric Scribing Tools=你不想再杀墨鱼了.因此你研究出了一种补充书写工具的方法,使得他们不再需要墨水.通过静电和圆珠笔技术你做出了能在内部快速回复墨水的工具,只需要充电就能持续使用.
|
||||
|
||||
emt.rsname.Etheral Processor=天域加工机
|
||||
emt.tag.Etheral Processor=天空如此湛蓝...
|
||||
emt.text.Etheral Processor=在你为了处理众多矿物而开发炼狱熔炉的地狱能量后,你脑子中出现了一些完全不同的想法.现在你使用名为"古德"的力量,来自天空和叫做天堂的这些.这个天域加工机使得每个冶炼的产物双倍,并且有10%的几率产生一个神秘粒作为奖励.你知道他有两个缺点:尽管它使冶炼产物双倍,但这也要双倍于一个物品的冶炼时间.并且由于它是高级魔法的发明,一些普通的冶炼合成会失效.你相信圆石不能在这个奇妙的机器里被烧成石头.
|
||||
|
||||
emt.rsname.Water Infused Solar Panels=注魔太阳能发电机(水)
|
||||
emt.tag.Water Infused Solar Panels=该死又下雨了!
|
||||
emt.text.Water Infused Solar Panels=你总是讨厌下雨,他别是当你所有的能源来自太阳能时.你如此讨厌它于是你决定寻找一种让太阳能在雨天工作的方法.你做出来了...这种..水注魔太阳能能在下雨时工作,并且只在下雨时发电.
|
||||
|
||||
emt.rsname.Entropy Infused Solar Panels=注魔太阳能发电机(混沌)
|
||||
emt.tag.Entropy Infused Solar Panels=不要惧怕黑暗
|
||||
emt.text.Entropy Infused Solar Panels=你知道太阳能晚上会停止工作.为了解决这个问题,你找到了一种让你的太阳能在晚上工作的方法!(只能在晚上工作)
|
||||
|
||||
emt.rsname.Order Infused Solar Panels=注魔太阳能发电机(秩序)
|
||||
emt.tag.Order Infused Solar Panels=我得到了能量!
|
||||
emt.text.Order Infused Solar Panels=利用秩序的力量,你已经有办法让你的太阳能在白天输出三倍的电力!
|
||||
|
||||
emt.rsname.Fire Infused Solar Panels=注魔太阳能发电机(火)
|
||||
emt.tag.Fire Infused Solar Panels=炽热的危险之地...
|
||||
emt.text.Fire Infused Solar Panels=你被下界所吸引,做出了一个怪物.这些太阳能在主世界正常工作,但放在下界也能发电!它真是个怪物...
|
||||
|
||||
emt.rsname.Air Infused Solar Panels=注魔太阳能发电机(风)
|
||||
emt.tag.Air Infused Solar Panels=高度不是问题
|
||||
emt.text.Air Infused Solar Panels=你的大胆的想法和在高空存在的大量的风使得这些太阳能在Y=160层以上能提供更多的电力.
|
||||
|
||||
emt.rsname.Earth Infused Solar Panels=注魔太阳能发电机(地)
|
||||
emt.tag.Earth Infused Solar Panels=非幽闭症患者定制
|
||||
emt.text.Earth Infused Solar Panels=你已决定向地心更进一步.这些太阳能在Y=10层以下的地方工作,但是记住它们仍需要在太阳的沐浴下才能工作.
|
||||
|
||||
emt.rsname.UU-Matter Infusion=UU物质注魔
|
||||
emt.tag.UU-Matter Infusion=蕴含魔力的百变液体...
|
||||
emt.text.UU-Matter Infusion=你总是觉得UU物质拥有的力量十分奇特,甚至...看起来像魔法般神奇,特别是大量种类的正确排列能合成物质.然后现在,你已发现了通过注魔合成塑造uu液体的方法.你能使用许多种合成,并且他们大都消耗4~32单位每种基础要素源质.
|
||||
|
||||
emt.rsname.Portable Node=便携式节点
|
||||
emt.tag.Portable Node=处处实用
|
||||
emt.text.Portable Node=在对缸中节点进行深入研究后,你成功制作出了一个能生成随机节点的道具.然而,由于你无法理解节点的一些魔法部分所以这个便携及节点将会是凋零且不稳定的.<BR><BR>你只能通过shift+右键去除它,并且你觉得你应该早些处理它,因为不稳定节点是...十分无法预料的.
|
||||
|
||||
emt.rsname.Electric Hoe of Growth=电力勾芒锄
|
||||
emt.rsname.Electric Hoe of Growth=电子句芒锄
|
||||
emt.tag.Electric Hoe of Growth=惊人的自然力量
|
||||
emt.text.Electric Hoe of Growth=你试着升级你的句芒锄.现在它对土地和植物就像之前的句芒锄一样工作.<BR><BR>然而,对你来说这个工具里的魔力过于强力难以全部转为使用一般电力的性能,在它用坏前你还会有几次使用的次数,它是可充电的.
|
||||
|
||||
emt.rsname.Wand Focus: Charging=法杖核心:充电
|
||||
emt.tag.Wand Focus: Charging=从魔力到电力
|
||||
emt.text.Wand Focus: Charging=你意识到你总是随身带着一支法杖和你的电子设备.但有时,你用光了电子工具里的电.因此你做出了这个核心.它很简单也很实用,将法杖的魔力转化为一般的电力来给物品充电.
|
||||
|
||||
emt.rsname.Wand Focus: Wand Charging=法杖核心:化魔
|
||||
emt.tag.Wand Focus: Wand Charging=从电力到魔力
|
||||
emt.text.Wand Focus: Wand Charging=你发现了一种方法利用工业充能站的能力并将其嵌入法杖核心,逆转原有的过程.现在它会从物品中抽取电力给你的法杖充能,尽管消耗率很高.此外,你意识到你需要一整套符文护甲才能启动法杖充能的过程.
|
||||
|
||||
emt.rsname.Inventory Charging Ring=物品充能指环
|
||||
emt.tag.Inventory Charging Ring=被动充电
|
||||
emt.text.Inventory Charging Ring=尽管其他神秘使使用指环给符文护盾充能,你觉得它们还有更好的应用.给凡人指环注入能量源,你就能对物品栏里的耗电物品使用它的充电效果.它的发电效率仅有32EU/t,但那不就说明还有提升的空间么.
|
||||
|
||||
emt.rsname.Armor Charging Ring=装备充能指环
|
||||
emt.rsname.Armor Charging Ring=装备充电指环
|
||||
emt.tag.Armor Charging Ring=或许能救你的命
|
||||
emt.text.Armor Charging Ring=新指环低但稳定的充电率比预期的还要有用.当没有工具需要能量时它给护甲充电还是不错的.通过注入多一点的能量源和一点护甲你做到了.可惜的是,这个新的能量源没有增加充电效率,但不都是慢慢来的么.
|
||||
|
||||
emt.rsname.The One Ring=魔戒
|
||||
emt.tag.The One Ring=在末日山的坑中所埋藏...
|
||||
emt.text.The One Ring=天下精灵铸三戒,地底矮人得七戒,寿定凡人持九戒,魔多妖境暗影伏,闇王坐拥至尊戒.至尊戒,驭众戒;至尊戒,寻众戒,魔戒至尊引众戒,禁锢众戒黑暗中,魔多妖境暗影伏.-J.R.R.Tolkien指环王题词.<BR>你梦想着从隐于众目,免于一切的攻击.你听说这个戒指在某处的遗迹中遗留着, 时间流逝恒久不变...
|
||||
|
||||
emt.rsname.Feather Wings=羽毛羽翼
|
||||
emt.tag.Feather Wings=在动漫里才会起效...
|
||||
emt.text.Feather Wings=把羽毛黏上硬纸板再做成翅膀的形状听着是个好主意.至少,你可以按住空格键在空中推动自己.虽然不是太明显但会起效.但在水下和下雨天使用翅膀听起来可不好.摔落伤害减免:25%.
|
||||
|
||||
emt.rsname.Thaumium Reinforced Wings=神秘强化羽翼
|
||||
emt.tag.Thaumium Reinforced Wings=好多了
|
||||
emt.text.Thaumium Reinforced Wings=注入魔力的神秘锭是众所周知的.因此,用神秘锭来强化你的纸板翼是个好主意.按下空格键会将你推得更高,如果一直按住则会缓慢下降.潜行则会快速下降.摔落伤害减免:50%.
|
||||
|
||||
emt.rsname.Nanosuit Wings=纳米羽翼
|
||||
emt.tag.Nanosuit Wings=纳米大法好!
|
||||
emt.text.Nanosuit Wings=利用神秘锭将魔法与纳米科技结合到你的飞行翼上..听着很符合逻辑.现在你可以推的比之前还要高,按住空格下落的也比之前要慢.摔落伤害减免:75%.
|
||||
|
||||
emt.rsname.Quantum Wings=量子羽翼
|
||||
emt.tag.Quantum Wings=量子科技
|
||||
emt.text.Quantum Wings=在探索完纳米科技所有的可能性后,你决定做最后一搏,量子.你可以在空中再跳几格的高度, 极好的防护,并且的下降的过程极大减缓了.然而,量子的不可预测又一次发生了.同时按住潜行键和空格键时你的下降会完全停止.你不知道为何会这样,但它就是这样.摔落伤害减免:100%.
|
||||
|
||||
emt.rsname.Infused Quantum Armor=注魔量子胸甲
|
||||
emt.tag.Infused Quantum Armor=最后的一步...
|
||||
emt.text.Infused Quantum Armor=你已经无事可做,但是你决定做一些有用的东西.你的脑海中浮现出一个想法,在制作盔甲时可以把羽翼或者背包系在一起以保证飞行的安全.持有羽翼或者背包时在潜行状态下右击可以将它们系在盔甲上.要将它们拿下来时只需要按住Shift + [卸下装备]键(详见[选项]-[控制]).
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 934 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 620 B |
|
After Width: | Height: | Size: 970 B |