Compare commits

..
24 Commits
Author SHA1 Message Date
bartimaeusnek 980df8516a small graphical update (tooltips adjusted) to provide clearance
+ made tooltips on EMT solars coherent
+ added the real output power of the Essentia Gens to the tooltip
+ updated the de_DE.lang
+ version number increase

Signed-off-by: bartimaeusnek <[email protected]>
2018-12-14 18:53:15 +01:00
Martin Robertz cddada359b Merge pull request #10 from Spartak1997/patch-1
Russification new sentences for EMT
2018-12-14 15:09:43 +01:00
Спартак 9b30535265 Russification new sentences for EMT
Please, check 143 -144 sentences. I don't remember how correct translate "Framebox".
2018-12-14 15:42:33 +03:00
bartimaeusnek 7456c20fb5 Name fix for zh.lang aswell 2018-12-14 10:03:05 +01:00
bartimaeusnek 73bbe09c6b Name fix for Raw Casing/Cell 2018-12-14 10:01:37 +01:00
Dream-MasterXXL bb0db68866 update zh langfile
thanks to kiwi
2018-12-05 14:13:45 +01:00
Dream-Master c781dd4231 bump version 2018-10-18 20:21:08 +02:00
Martin Robertz 91e7a95fbc Merge pull request #9 from GTNewHorizons/No-Explosion
removed IC2BasicSource due to buggyness with new cables
2018-10-18 19:21:24 +02:00
bartimaeusnek 6ce578c7cb whoops 2018-10-11 17:01:36 +02:00
bartimaeusnek 7cac8bdd7d remove IC2BasicSource due to buggyness with new cables
https://github.com/GTNewHorizons/NewHorizons/issues/3731
2018-10-11 16:51:59 +02:00
Martin Robertz e77a74544d Merge pull request #8 from GTNewHorizons/RunicAddon
added Runic Armor for:
2018-09-20 23:13:35 +02:00
bartimaeusnek 6ec2fe0d3d added Runic Armor for:
- The One Ring
- Inventory Charger/Decharger Ring
- Thaumic/Electric Armor
- Wings
2018-09-20 20:34:57 +02:00
Dream-Master 80cb4c94d6 bump version 2018-09-10 15:22:21 +02:00
Dream-Master 2f971ac8e3 fix 2018-09-10 15:18:21 +02:00
Dream-Master 7d63503645 fix emt server crash 2018-09-10 12:12:42 +02:00
bartimaeusnek 42d1bd07e1 fixed tooltip on essentiafiller 2018-09-05 16:56:20 +02:00
Martin Robertz 6d05bc4dfe Merge pull request #7 from GTNewHorizons/LargeEssentiaGen
Large essentia gen
2018-09-05 08:23:35 +02:00
bartimaeusnek 028f5ef031 fixed a few bugs, removed unused variables & imports
+added a ingame book containing the fuelmap
2018-09-04 08:00:47 +02:00
bartimaeusnek 805553e04e small fixes
+version bump
+changed load order of the EU map (since Avaritia registers its aspect way too late...)
+fixed Ichorium based recipe
+fixed a Typo in the Information String[]
2018-09-04 03:36:33 +02:00
bartimaeusnek facff8752d +added Large Essentia Gen
+updated Single Block Solars and Single Block Essentia Gen to use @mitchej123 fix
+added Large Essentia Gen support Blocks
+added Super Nice Textures thanks to @LogicFalls
+added Essentia Hatch
+added Essentia Filler to support the Essentia Hatch
2018-09-03 22:10:02 +02:00
bartimaeusnek 63f04556e2 fixed weird behavior of GUIs due to short Overflows
fixed Aqua Infused Gen not working underwater
did some changes to the reflected gens, still don't work.
2018-07-21 20:23:27 +02:00
Namikon d229201b90 SignJar 2018-05-03 23:35:22 +02:00
bartimaeusnek 5869418115 LV -> HV scribing tools
https://github.com/GTNewHorizons/NewHorizons/issues/2752
2018-03-25 14:34:15 +02:00
LOKKO12 2e2b2ef941 + Solar rework
+ update to Java 8
+ added GUI for Solars (in different colors)
+ changed Terra/Aer solar beeing dynamic (from y=5 to y=220|x1 to x3)
+ changed Ordo/Perditio solar generating at night/day (x0.75/x2)
+ changed Aqua solar generation (x1 at day, x2 under water, x3 while rain x6 while thunderstorm)
+ changed Ignis solar generation (x1 at day, x2 in Nether, x3 when fed with 10Ignis Centivis)
+ version number increase (1.2.7.0 -> 1.2.7.1)
2018-03-02 17:33:19 +01:00
96 changed files with 3321 additions and 1244 deletions

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
/bin/
#General use .gitignore for Minecraft modding.
#Folders
@@ -43,4 +44,4 @@ Thumbs.db
#Vim backups
*~
*.bat
*.bat
+21
View File
@@ -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 {
@@ -63,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 -1
View File
@@ -1,5 +1,5 @@
package_group=emt
mc_version=1.7.10
forge_version=10.13.4.1614
mod_version=1.2.7.0
mod_version=1.2.7.5
mod_name=ElectroMagicTools
+1 -1
View File
@@ -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
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10 -11
View File
@@ -2,14 +2,11 @@ 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;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.eventhandler.EventBus;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
@@ -19,12 +16,7 @@ import emt.init.EMTResearches;
import emt.init.Registry;
import emt.network.PacketEMTKeys;
import emt.proxy.CommonProxy;
import emt.util.EMTClientEventHandler;
import emt.util.EMTConfigHandler;
import emt.util.EMTCreativeTab;
import emt.util.EMTDungeonChestGenerator;
import emt.util.EMTEssentiasOutputs;
import emt.util.EMTEventHandler;
import emt.util.*;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraftforge.common.MinecraftForge;
import org.apache.logging.log4j.LogManager;
@@ -47,7 +39,13 @@ public class EMT
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";
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");
@@ -72,7 +70,7 @@ public class EMT
}
Registry.registerPreInit();
EMTEssentiasOutputs.addPrimalOutputs();
EMTEssentiasOutputs.addOutputs();
//EMTEssentiasOutputs.addOutputs();
registerPackets();
LOGGER.info("Planning complete|end preinit");
}
@@ -103,6 +101,7 @@ public class EMT
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");
+12 -2
View File
@@ -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);
}
+19 -11
View File
@@ -1,8 +1,5 @@
package emt.block;
import java.util.List;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import emt.EMT;
@@ -19,21 +16,35 @@ 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;
if (Set * 16 < TileEntityReflexionGen.L.size()) {
this.subtypes = 16;
} else {
this.subtypes = (-(TileEntityReflexionGen.L.size() - Set * 16));
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)
@@ -62,10 +73,7 @@ public class BlockReflectedGen
public TileEntity createTileEntity(World world, int meta)
{
if (meta + Set * 16 < TileEntityReflexionGen.L.size()) {
return TileEntityReflexionGen.Gens[(meta + 16 * Set)];
}
return TileEntityReflexionGen.Gens[(meta + 16 * (Set - 1))];
return TileEntityReflexionGen.Gens[posInList[meta]];
}
@SideOnly(Side.CLIENT)
+17
View File
@@ -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;
}
}
@@ -37,11 +37,11 @@ public class GuiGenerator extends GuiContainer {
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.storage/1000) + "/" + (this.tileentity.maxstorage/1000) +"kEU", 36, 22, 0);
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.storage/1000000) + "/" + (this.tileentity.maxstorage/1000000) +"MEU", 36, 22, 0);
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.storage/1000000000) + "/" + (this.tileentity.maxstorage/1000000000) +"GEU", 36, 22, 0);
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
+115
View File
@@ -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);
}
}
@@ -12,37 +12,19 @@ public class ConainerGenerator
extends Container
{
private TileEntityBaseGenerator tileentity;
public int storage;
public int fuel;
public int generating;
public ConainerGenerator(InventoryPlayer inventoryplayer, TileEntityBaseGenerator tileentity)
{
this.storage = 0;
this.fuel = 0;
this.tileentity = tileentity;
/* for (int j = 0; j < 4; j++) {
addSlotToContainer(new Slot(this.tileentity, j, 17 + j * 18, 59));
}
for (int i = 0; i < 3; i++) {
for (int k = 0; k < 9; k++) {
addSlotToContainer(new Slot(inventoryplayer, k + i * 9 + 9, 17 + k * 18, 86 + i * 18));
}
}
for (int j = 0; j < 9; j++) {
addSlotToContainer(new Slot(inventoryplayer, j, 17 + j * 18, 144));
}
addSlotToContainer(new Slot(this.tileentity, 5, 17 + 7 * 18, 59));*/
}
public void addCraftingToCrafters(ICrafting icrafting)
{
super.addCraftingToCrafters(icrafting);
icrafting.sendProgressBarUpdate(this, 0, (int) this.tileentity.generating);
icrafting.sendProgressBarUpdate(this, 1, this.tileentity.storage);
icrafting.sendProgressBarUpdate(this, 2, this.tileentity.fuel);
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()
@@ -52,80 +34,35 @@ public class ConainerGenerator
{
ICrafting icrafting = (ICrafting)this.crafters.get(i);
icrafting.sendProgressBarUpdate(this, 0, (int) this.tileentity.generating);
icrafting.sendProgressBarUpdate(this, 1, this.tileentity.storage);
icrafting.sendProgressBarUpdate(this, 2, this.tileentity.fuel);
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));
}
this.generating = (int) this.tileentity.generating;
this.tileentity.storage = ((int)this.tileentity.energySource.getEnergyStored());
}
public void updateProgressBar(int i, int j)
{
if (i == 0) {
this.tileentity.generating = j;
this.tileentity.generating = (((int)j)*400);
}
if (i == 1) {
if (j<this.tileentity.maxstorage)
this.tileentity.storage = j;
else
this.tileentity.storage=this.tileentity.maxstorage;
this.tileentity.fuel=((byte) j);
}
if (i == 2) {
this.tileentity.fuel=j;
this.tileentity.mpshownstroage=(short) j;
}
}
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
{
int slot = par2;
ItemStack stack = null;
Slot slotObject = (Slot)this.inventorySlots.get(par2);
if ((slotObject != null) && (slotObject.getHasStack()))
{
ItemStack stackInSlot = slotObject.getStack();
stack = stackInSlot.copy();
if ((slot >= 0) && (slot <= 3))
{
if (!mergeItemStack(stackInSlot, 4, 40, true)) {
return null;
}
}
else if ((slot >= 4) && (slot < 31))
{
if (!mergeItemStack(stackInSlot, 0, 4, false)) {
if (!mergeItemStack(stackInSlot, 31, 40, false)) {
return null;
}
}
}
else if ((slot >= 31) && (slot < 39))
{
if (!mergeItemStack(stackInSlot, 0, 30, false)) {
return null;
}
}
else if (!mergeItemStack(stackInSlot, 0, 30, false)) {
return null;
}
if (stackInSlot.stackSize == 0) {
slotObject.putStack(null);
} else {
slotObject.onSlotChanged();
}
if (stack.stackSize != stackInSlot.stackSize) {
slotObject.onPickupFromSlot(par1EntityPlayer, stackInSlot);
} else {
return null;
}
}
return stack;
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);
}
}
+63 -33
View File
@@ -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();
}*/
}
@@ -2,8 +2,8 @@ package emt.init;
import cpw.mods.fml.common.registry.GameRegistry;
import emt.block.BlockReflectedGen;
import emt.tile.generator.TileEntityBaseGenerator;
import emt.tile.generator.TileEntityReflexionGen;
import java.util.List;
public class EMTAutogeneratedGens
implements Runnable
@@ -19,12 +19,12 @@ public class EMTAutogeneratedGens
sets = (short)(sets + 1);
}
BRG = new BlockReflectedGen[sets];
for (short i = 0; i < sets; i = (short)(i + 1)) {
BRG[i] = new BlockReflectedGen("EGenerator", i);
}
for (int i = 0; i < TileEntityReflexionGen.L.size(); i++) {
GameRegistry.registerTileEntity(TileEntityReflexionGen.GensS[i], "tileentity" + TileEntityReflexionGen.L.get(i));
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));
}
+3 -1
View File
@@ -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;
@@ -48,7 +49,8 @@ public class EMTTiles {
//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");
+8 -1
View File
@@ -1,22 +1,29 @@
package emt.init;
import emt.gthandler.common.loader.EMT_GT_Loader;
public class Registry
{
public static void registerPreInit() {}
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
+7 -1
View File
@@ -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;
}
}
+6 -1
View File
@@ -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;
@@ -2,10 +2,12 @@ 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;
@@ -53,43 +55,54 @@ public class ItemBlockEssentiaGenerators extends ItemBlock {
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(StatCollector.translateToLocal("emt.Output")+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.ENERGY.getTag())/20/20)) +" EU/t");
list.add(StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.ENERGY.getTag()))) +" EU");
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(StatCollector.translateToLocal("emt.Output")+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag())/20/20)) +" EU/t");
list.add(StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag()))) +" EU");
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(StatCollector.translateToLocal("emt.Output")+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.AURA.getTag())/20/20)) +" EU/t");
list.add(StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.AURA.getTag()))) +" EU");
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(StatCollector.translateToLocal("emt.Output")+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.TREE.getTag())/20/20)) +" EU/t");
list.add(StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.FIRE.getTag()))) +" EU");
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(StatCollector.translateToLocal("emt.Output")+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.AIR.getTag())/20/20)) +" EU/t");
list.add(StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.AIR.getTag()))) +" EU");
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(StatCollector.translateToLocal("emt.Output")+Integer.toString((int)(EMTEssentiasOutputs.outputs.get(Aspect.GREED.getTag())/20/20)) +" EU/t");
list.add(StatCollector.translateToLocal("gui.EMT.book.aspect.output.essentia.eu")+": "+Double.toString((EMTEssentiasOutputs.outputs.get(Aspect.GREED.getTag()))) +" EU");
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(StatCollector.translateToLocal("emt.Storage")+Double.toString(EMTConfigHandler.EssentiaGeneratorStorage)+" EU");
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");
}
}
}
}
@@ -4,6 +4,8 @@ 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;
@@ -11,6 +13,7 @@ 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 {
@@ -136,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: {
@@ -150,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: {
@@ -222,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: {
@@ -251,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;
+9
View File
@@ -4,12 +4,15 @@ 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;
@@ -40,6 +43,9 @@ public class CommonProxy implements IGuiHandler {
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;
}
@@ -61,6 +67,9 @@ public class CommonProxy implements IGuiHandler {
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;
}
}
@@ -5,7 +5,6 @@ import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class TileEntityEMT
extends TileEntity
@@ -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;
File diff suppressed because it is too large. Load diff
@@ -1,5 +1,6 @@
package emt.tile.generator;
import emt.tile.DefinitelyNotAIC2Source;
import emt.util.EMTConfigHandler;
import ic2.api.energy.prefab.BasicSource;
import thaumcraft.api.aspects.Aspect;
@@ -10,7 +11,7 @@ public abstract class TileEntityCompressedGenerator
public TileEntityCompressedGenerator(Aspect aspect)
{
super(aspect);
this.energySource = new BasicSource(this, 1000000.0D, 3);
this.energySource = new DefinitelyNotAIC2Source(this, 1000000.0D, 3);
this.energySource.setCapacity(EMTConfigHandler.EssentiaGeneratorStorage * 10.0D);
this.maxfuel *= 10;
}
@@ -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";
}
}
+3 -1
View File
@@ -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;
@@ -148,7 +150,7 @@ public class EMTConfigHandler {
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);
+3 -2
View File
@@ -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;
}
}*/
}
+15 -5
View File
@@ -11,8 +11,8 @@ 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=Unequip
emt.Output=Leistung:
gui.EMT.key.unequip=Ausziehen
emt.Output=Ausgabe:
emt.Storage=Speicher:
emt.PressShift=<Drücke SHIFT>
emt.Generating=Erzeugt:
@@ -33,13 +33,14 @@ 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 darüber Lava ist
tooltip.EMT.output.double.half.height=wenn der Block über Y = 160 ist
tooltip.EMT.output.double.half.low=wenn der Block unter Y = 10 ist
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
@@ -134,6 +135,15 @@ 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?
+16 -5
View File
@@ -31,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
@@ -112,6 +114,7 @@ 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
@@ -134,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?
+13 -2
View File
@@ -31,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
@@ -112,6 +114,7 @@ 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=Трижды сжатая солнечная панель
@@ -134,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=Кто сказал что магия и технология не дружат вместе?
@@ -366,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 + "Снять"(Смотрите в настройках).
+99 -70
View File
@@ -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 + [卸下装备]键(详见[选项]-[控制]).
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

+2 -2
View File
@@ -7,8 +7,8 @@
"mcversion": "1.7.10",
"url": "http://www.minecraftforum.net/topic/2196652-",
"updateUrl": "",
"authorList": ["fewizz", "TheSilentium"],
"credits": "Azanor, Tombenpotter, TehNut, the IC2 guys and the forge guys!",
"authorList": ["fewizz", "TheSilentium", "The GT-NH Team", "bartimaeusnek"],
"credits": "Azanor, Tombenpotter, TehNut, the IC2 guys and the forge guys! | LogicFalls for the awesome Big Essentia Gen Textures!",
"logoFile": "logo.png",
"screenshots": [],
"dependencies": ["Thaumcraft 4", "IC2"]