mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-25 22:34:31 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9aafc77a59 | ||
|
|
3c963c5711 | ||
|
|
f55404bf3d | ||
|
|
49b72f3f28 |
No files matched your search
+1
-6
@@ -1,13 +1,8 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.github.GTNewHorizons:GT5-Unofficial:5.09.49.55:dev'
|
||||
api 'com.github.GTNewHorizons:GT5-Unofficial:5.09.45.64:dev'
|
||||
api 'com.github.GTNewHorizons:Baubles:1.0.4:dev'
|
||||
api 'com.github.GTNewHorizons:ModularUI:1.2.0:dev'
|
||||
api ('com.github.GTNewHorizons:ThaumicBoots:1.3.7:dev'){
|
||||
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
|
||||
}
|
||||
|
||||
|
||||
api 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
||||
api 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
||||
|
||||
+3
-14
@@ -41,11 +41,11 @@ developmentEnvironmentUserName = Developer
|
||||
|
||||
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
|
||||
# See https://github.com/bsideup/jabel for details on how this works.
|
||||
enableModernJavaSyntax = true
|
||||
enableModernJavaSyntax = false
|
||||
|
||||
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||
enableGenericInjection = true
|
||||
enableGenericInjection = false
|
||||
|
||||
# Generate a class with a String field for the mod version named as defined below.
|
||||
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
||||
@@ -85,11 +85,6 @@ accessTransformersFile =
|
||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||
usesMixins = false
|
||||
|
||||
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||
separateMixinSourceSet =
|
||||
|
||||
# Adds some debug arguments like verbose output and class export.
|
||||
usesMixinDebug = false
|
||||
|
||||
@@ -122,15 +117,9 @@ minimizeShadowedDependencies = true
|
||||
# If disabled, won't rename the shadowed classes.
|
||||
relocateShadowedDependencies = true
|
||||
|
||||
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
# Adds the GTNH maven, CurseMaven, IC2/Player maven, and some more well-known 1.7.10 repositories.
|
||||
includeWellKnownRepositories = true
|
||||
|
||||
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||
# list of strings, with the acceptable keys being(case does not matter):
|
||||
# cursemaven
|
||||
# modrinth
|
||||
excludeWellKnownRepositories =
|
||||
|
||||
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -57,7 +55,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
@@ -86,8 +84,7 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
Vendored
-2
@@ -13,8 +13,6 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.25'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.14'
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
@@ -47,15 +46,12 @@ 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:modularui;\
|
||||
after:gregtech;\
|
||||
after:Avaritia;\
|
||||
after:MagicBees;\
|
||||
after:ForbiddenMagic;\
|
||||
after:dreamcraft""";
|
||||
public static final String DEPENDS = "required-after:Thaumcraft;" + "required-after:IC2;"
|
||||
+ "required-after:gregtech;"
|
||||
+ "after:Avaritia;"
|
||||
+ "after:MagicBees;"
|
||||
+ "after:ForbiddenMagic;"
|
||||
+ "after:dreamcraft;";
|
||||
public static final CreativeTabs TAB = new EMTCreativeTab("EMT.creativeTab");
|
||||
public static final Logger LOGGER = LogManager.getLogger("Electro-Magic Tools");
|
||||
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("EMT");
|
||||
@@ -66,18 +62,12 @@ public class EMT {
|
||||
@Mod.Instance("EMT")
|
||||
public static EMT instance;
|
||||
|
||||
public static boolean isBootsActive = false;
|
||||
public static final String BOOTS = "thaumicboots";
|
||||
|
||||
public boolean isSimulating() {
|
||||
return !FMLCommonHandler.instance().getEffectiveSide().isClient();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
if (Loader.isModLoaded(BOOTS)) {
|
||||
isBootsActive = true;
|
||||
}
|
||||
EMTConfigHandler.init(event.getSuggestedConfigurationFile());
|
||||
FMLCommonHandler.instance().bus().register(new EMTEventHandler());
|
||||
if (FMLCommonHandler.instance().getSide().isClient()) {
|
||||
@@ -86,9 +76,7 @@ public class EMT {
|
||||
Registry.registerPreInit();
|
||||
EMTEssentiasOutputs.addPrimalOutputs();
|
||||
registerPackets();
|
||||
if (Registry.enableGTCompat) {
|
||||
Solars.populateCache();
|
||||
}
|
||||
Solars.populateCache();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
@@ -115,8 +103,6 @@ public class EMT {
|
||||
|
||||
public void registerPackets() {
|
||||
INSTANCE.registerMessage(PacketEMTKeys.class, PacketEMTKeys.class, 0, Side.SERVER);
|
||||
if (Registry.enableGTCompat) {
|
||||
INSTANCE.registerMessage(PacketNodeInfo.class, PacketNodeInfo.class, 1, Side.CLIENT);
|
||||
}
|
||||
INSTANCE.registerMessage(PacketNodeInfo.class, PacketNodeInfo.class, 1, Side.CLIENT);
|
||||
}
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(Item id, CreativeTabs tab, List<ItemStack> list) {
|
||||
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));
|
||||
|
||||
@@ -60,7 +60,7 @@ public class BlockMachines extends BlockBaseContainer {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(Item id, CreativeTabs tab, List<ItemStack> list) {
|
||||
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));
|
||||
|
||||
@@ -79,7 +79,7 @@ public class BlockPortableNode extends BlockAiry {
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World worldIn, int meta) {
|
||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public class BlockSolars extends BlockBaseContainer {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubBlocks(Item id, CreativeTabs tab, List<ItemStack> list) {
|
||||
public void getSubBlocks(Item id, CreativeTabs tab, List list) {
|
||||
for (int meta = 0; meta < countOfMetas; meta++) {
|
||||
list.add(new ItemStack(id, 1, meta));
|
||||
}
|
||||
|
||||
@@ -12,8 +12,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class ModelSpecialArmor extends ModelBiped {
|
||||
|
||||
private static ModelSpecialArmor instance;
|
||||
|
||||
public ModelRenderer rightWing;
|
||||
public ModelRenderer leftWing;
|
||||
public ModelRenderer center;
|
||||
@@ -32,43 +30,41 @@ public class ModelSpecialArmor extends ModelBiped {
|
||||
public ModelSpecialArmor(float scale, float offset, int type) {
|
||||
super(scale, offset, type == 1 ? 128 : 64, type == 0 ? 32 : type == 1 ? 96 : 64);
|
||||
this.type = type;
|
||||
switch (this.type) {
|
||||
case 1:
|
||||
this.textureWidth = 128;
|
||||
this.textureHeight = 96;
|
||||
this.jetpack = new ModelRenderer(this, 16, 69);
|
||||
this.jetpack.setTextureSize(64, 48);
|
||||
this.jetpack.addBox(-4.0F, -12.0F, -2.0F, 8, 12 * 2, 4, scale * 2);
|
||||
this.jetpack.setRotationPoint(0.0F, 0.0F + offset, 0.0F);
|
||||
break;
|
||||
|
||||
this.textureWidth = 128;
|
||||
this.textureHeight = 96;
|
||||
this.jetpack = new ModelRenderer(this, 16, 69);
|
||||
this.jetpack.setTextureSize(64, 48);
|
||||
this.jetpack.addBox(-4.0F, -12.0F, -2.0F, 8, 12 * 2, 4, scale * 2);
|
||||
this.jetpack.setRotationPoint(0.0F, 0.0F + offset, 0.0F);
|
||||
case 2:
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
rightWing = new ModelRenderer(this, 24, 0 + 32);
|
||||
rightWing.addBox(-11F, -1F, 0F, 11, 13, 1);
|
||||
rightWing.setRotationPoint(-2F, 0F, 3F);
|
||||
rightWing.setTextureSize(64, 32);
|
||||
rightWing.mirror = false;
|
||||
setRotation(rightWing, 0F, 0.1570796F, 0F);
|
||||
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
rightWing = new ModelRenderer(this, 24, 0 + 32);
|
||||
rightWing.addBox(-11F, -1F, 0F, 11, 13, 1);
|
||||
rightWing.setRotationPoint(-2F, 0F, 3F);
|
||||
rightWing.setTextureSize(64, 32);
|
||||
rightWing.mirror = false;
|
||||
setRotation(rightWing, 0F, 0.1570796F, 0F);
|
||||
leftWing = new ModelRenderer(this, 0, 0 + 32);
|
||||
leftWing.addBox(0F, -1F, 0F, 11, 13, 1);
|
||||
leftWing.setRotationPoint(2F, 0F, 3F);
|
||||
leftWing.setTextureSize(64, 32);
|
||||
leftWing.mirror = true;
|
||||
setRotation(leftWing, 0F, -0.1570796F, 0F);
|
||||
|
||||
leftWing = new ModelRenderer(this, 0, 0 + 32);
|
||||
leftWing.addBox(0F, -1F, 0F, 11, 13, 1);
|
||||
leftWing.setRotationPoint(2F, 0F, 3F);
|
||||
leftWing.setTextureSize(64, 32);
|
||||
leftWing.mirror = true;
|
||||
setRotation(leftWing, 0F, -0.1570796F, 0F);
|
||||
|
||||
center = new ModelRenderer(this, 0, 14 + 32);
|
||||
center.addBox(0F, 0F, 1F, 8, 14, 1);
|
||||
center.setRotationPoint(-4F, 0F, 3F);
|
||||
center.setTextureSize(64, 32);
|
||||
center.mirror = true;
|
||||
setRotation(center, 0F, 0F, 0F);
|
||||
|
||||
}
|
||||
|
||||
public static ModelSpecialArmor getInstance() {
|
||||
if (instance == null) instance = new ModelSpecialArmor();
|
||||
|
||||
return instance;
|
||||
center = new ModelRenderer(this, 0, 14 + 32);
|
||||
center.addBox(0F, 0F, 1F, 8, 14, 1);
|
||||
center.setRotationPoint(-4F, 0F, 3F);
|
||||
center.setTextureSize(64, 32);
|
||||
center.mirror = true;
|
||||
setRotation(center, 0F, 0F, 0F);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
@@ -100,7 +96,6 @@ public class ModelSpecialArmor extends ModelBiped {
|
||||
this.center.render(scale);
|
||||
this.leftWing.render(scale);
|
||||
this.rightWing.render(scale);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,9 +105,6 @@ public class ModelSpecialArmor extends ModelBiped {
|
||||
if (this.isJumping) {
|
||||
this.rightWing.rotateAngleY = 0.5f;
|
||||
this.leftWing.rotateAngleY = -0.5f;
|
||||
} else {
|
||||
this.rightWing.rotateAngleY = 0.1570796F;
|
||||
this.leftWing.rotateAngleY = -0.1570796F;
|
||||
}
|
||||
|
||||
if (this.isSneak) {
|
||||
@@ -121,22 +113,14 @@ public class ModelSpecialArmor extends ModelBiped {
|
||||
this.jetpack.rotateAngleX = 0.5F;
|
||||
break;
|
||||
case 2:
|
||||
this.center.offsetY -= 0.1;
|
||||
this.rightWing.offsetY -= 0.1;
|
||||
this.leftWing.offsetY -= 0.1;
|
||||
this.center.rotateAngleX = 0.5F;
|
||||
this.rightWing.rotateAngleX = 0.5F;
|
||||
this.leftWing.rotateAngleX = 0.5F;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (this.type) {
|
||||
case 1:
|
||||
this.jetpack.rotateAngleX = 0F;
|
||||
break;
|
||||
case 2:
|
||||
this.center.rotateAngleX = 0F;
|
||||
this.rightWing.rotateAngleX = 0F;
|
||||
this.leftWing.rotateAngleX = 0F;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,8 @@ import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class ModelWings extends ModelBiped {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private static ModelWings instance = null;
|
||||
|
||||
public boolean isJumping = false;
|
||||
ModelRenderer rightWing;
|
||||
ModelRenderer leftWing;
|
||||
@@ -47,12 +41,6 @@ public class ModelWings extends ModelBiped {
|
||||
this.bipedBody.addChild(center);
|
||||
}
|
||||
|
||||
public static ModelWings getInstance() {
|
||||
if (instance == null) instance = new ModelWings();
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
@@ -67,25 +55,20 @@ public class ModelWings extends ModelBiped {
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(float limbSwing, float limbSwingAmount, float playerTicksExisted,
|
||||
float playerRotationYawHead, float playerRotationPitch, float f5, Entity entity) {
|
||||
public void setRotationAngles(float f, float f1, float pt, float f3, float f4, float f5, Entity entity) {
|
||||
|
||||
if (isJumping) {
|
||||
this.rightWing.rotateAngleY = 0.5f;
|
||||
this.leftWing.rotateAngleY = -0.5f;
|
||||
} else {
|
||||
this.rightWing.rotateAngleY = 0.1570796F;
|
||||
this.leftWing.rotateAngleY = -0.1570796F;
|
||||
}
|
||||
|
||||
if (entity.isSneaking()) {
|
||||
this.center.offsetY -= 0.1;
|
||||
this.rightWing.offsetY -= 0.1;
|
||||
this.leftWing.offsetY -= 0.1;
|
||||
this.center.rotateAngleX = 0.5F;
|
||||
this.rightWing.rotateAngleX = 0.5F;
|
||||
this.leftWing.rotateAngleX = 0.5F;
|
||||
} else {
|
||||
this.center.rotateAngleX = 0.0F;
|
||||
this.rightWing.rotateAngleX = 0;
|
||||
this.leftWing.rotateAngleX = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public class RenderShield extends Render {
|
||||
glTranslated(x, y, z);
|
||||
}
|
||||
|
||||
glCallList(glCallList);
|
||||
glCallList(this.glCallList);
|
||||
|
||||
glPopMatrix();
|
||||
glPopAttrib();
|
||||
|
||||
@@ -97,7 +97,7 @@ public class CommandOutputs extends CommandBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommandUsage(ICommandSender sender) {
|
||||
public String getCommandUsage(ICommandSender p_71518_1_) {
|
||||
return "/emt_outputs";
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public class CommandOutputs extends CommandBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> addTabCompletionOptions(ICommandSender command, String[] stringArray) {
|
||||
public List addTabCompletionOptions(ICommandSender command, String[] stringArray) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ public class EntityEnergyBall extends Entity implements IProjectile, IEntityAddi
|
||||
}
|
||||
|
||||
/** Generating Coords for every Entity **/
|
||||
ArrayList<Entity> entities = new ArrayList<>();
|
||||
ArrayList<Entity> entities = new ArrayList();
|
||||
|
||||
int chunkSize = ((RADIUS - 1) >> 4) + 2;
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ public class EntityLaser extends Entity implements IThrowableEntity, IProjectile
|
||||
}
|
||||
|
||||
Entity entity = null;
|
||||
List<Entity> list = this.worldObj.getEntitiesWithinAABBExcludingEntity(
|
||||
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(
|
||||
this,
|
||||
this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
|
||||
double d0 = 0.0D;
|
||||
@@ -173,7 +173,7 @@ public class EntityLaser extends Entity implements IThrowableEntity, IProjectile
|
||||
float down;
|
||||
|
||||
for (l = 0; l < list.size(); ++l) {
|
||||
Entity entity1 = list.get(l);
|
||||
Entity entity1 = (Entity) list.get(l);
|
||||
|
||||
if (entity1.canBeCollidedWith() && (entity1 != this.shootingEntity || this.ticksInAir >= 5)) {
|
||||
down = 0.3F;
|
||||
|
||||
@@ -2,37 +2,38 @@ package emt.gthandler.common.loader;
|
||||
|
||||
import static emt.command.CommandOutputs.mkbook;
|
||||
import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
|
||||
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
|
||||
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
|
||||
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import emt.tile.GT_MetaTileEntity_ResearchCompleter;
|
||||
import gregtech.api.enums.GTValues;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.MetaTileEntityIDs;
|
||||
import gregtech.api.enums.OrePrefixes;
|
||||
import gregtech.api.enums.TierEU;
|
||||
import gregtech.api.util.GTOreDictUnificator;
|
||||
import gregtech.api.util.GT_OreDictUnificator;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
|
||||
public class EMT_GT_Loader {
|
||||
public class EMT_GT_Loader implements Runnable {
|
||||
|
||||
public static void run() {
|
||||
ItemList.ResearchCompleter.set(
|
||||
new GT_MetaTileEntity_ResearchCompleter(
|
||||
MetaTileEntityIDs.ResearchCompleter.ID,
|
||||
"Research Completer",
|
||||
"Research Completer").getStackForm(1L));
|
||||
public static int aIDoffset = 13000 - GT_Values.VN.length - 1;
|
||||
public static ItemStack ResearchMultiblock;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
ResearchMultiblock = new GT_MetaTileEntity_ResearchCompleter(
|
||||
aIDoffset + GT_Values.VN.length + 2,
|
||||
"Research Completer",
|
||||
"Research Completer").getStackForm(1L);
|
||||
}
|
||||
|
||||
public static void runlate() {
|
||||
GTValues.RA.stdBuilder()
|
||||
public void runlate() {
|
||||
GT_Values.RA.stdBuilder()
|
||||
.itemInputs(
|
||||
new ItemStack(Items.book),
|
||||
GTOreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1L),
|
||||
GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Basic, 1L),
|
||||
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE))
|
||||
.itemOutputs(mkbook()).duration(6 * SECONDS).eut(TierEU.RECIPE_MV / 2).addTo(assemblerRecipes);
|
||||
}
|
||||
|
||||
@@ -10,9 +10,11 @@ import emt.block.BlockEssentiaGenerators;
|
||||
import emt.block.BlockMachines;
|
||||
import emt.block.BlockPortableNode;
|
||||
import emt.block.BlockShield;
|
||||
import emt.block.BlockSolars;
|
||||
import emt.item.block.ItemBlockElectricCloud;
|
||||
import emt.item.block.ItemBlockEssentiaGenerators;
|
||||
import emt.item.block.ItemBlockMachines;
|
||||
import emt.item.block.ItemBlockSolars;
|
||||
import emt.tile.solar.Solars;
|
||||
import ic2.api.item.IC2Items;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
@@ -22,7 +24,7 @@ public class EMTBlocks {
|
||||
|
||||
public static Block portableNode, essentiaGens, shield, emtMachines, electricCloud;
|
||||
|
||||
public static Block[] solars = new Block[0];
|
||||
public static Block[] solars = new Block[Solars.getCountOfInstances()];
|
||||
|
||||
public static void registerBlocks() {
|
||||
portableNode = new BlockPortableNode("portablenode");
|
||||
@@ -31,17 +33,22 @@ public class EMTBlocks {
|
||||
shield = new BlockShield("shield");
|
||||
GameRegistry.registerBlock(shield, "ShieldBlock");
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
solars = Solars.registerBlocks();
|
||||
for (int i = 0; i < solars.length; i++) {
|
||||
if (i == 0) {
|
||||
solars[i] = new BlockSolars("solar", Solars.getCountOfMetas(i), i);
|
||||
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars");
|
||||
} else {
|
||||
solars[i] = new BlockSolars("solar" + (i + 1), Solars.getCountOfMetas(i), i);
|
||||
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars" + (i + 1));
|
||||
}
|
||||
}
|
||||
|
||||
emtMachines = new BlockMachines("machine");
|
||||
GameRegistry.registerBlock(emtMachines, ItemBlockMachines.class, "EMTMachines");
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
essentiaGens = new BlockEssentiaGenerators("essentia");
|
||||
GameRegistry.registerBlock(essentiaGens, ItemBlockEssentiaGenerators.class, "EssentiaGenerators");
|
||||
}
|
||||
essentiaGens = new BlockEssentiaGenerators("essentia");
|
||||
GameRegistry.registerBlock(essentiaGens, ItemBlockEssentiaGenerators.class, "EssentiaGenerators");
|
||||
|
||||
electricCloud = new BlockElectricCloud("electricCloud");
|
||||
GameRegistry.registerBlock(electricCloud, ItemBlockElectricCloud.class, "electricCloud");
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import emt.EMT;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTCraftingAspects;
|
||||
import emt.util.EMTResearchAspects;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import ic2.api.item.IC2Items;
|
||||
import ic2.api.recipe.IRecipeInput;
|
||||
import ic2.api.recipe.RecipeInputItemStack;
|
||||
@@ -535,19 +536,18 @@ public class EMTRecipes {
|
||||
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
|
||||
new ItemStack(Blocks.obsidian) });
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
maintenanceFocus = addInfusionCraftingRecipe(
|
||||
"Wand Focus: Maintenance",
|
||||
new ItemStack(EMTItems.maintenanceFocus),
|
||||
6,
|
||||
EMTCraftingAspects.maintenanceFocus,
|
||||
new ItemStack(EMTItems.chargeFocus),
|
||||
new ItemStack[] { new ItemStack(ConfigItems.itemShard, 1, 5),
|
||||
new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 3),
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 9), new ItemStack(ConfigItems.itemShard, 1, 2),
|
||||
new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 0),
|
||||
new ItemStack(GameRegistry.findItem("gregtech", "gt.metaitem.01"), 1, 32764) });
|
||||
}
|
||||
maintenanceFocus = addInfusionCraftingRecipe(
|
||||
"Wand Focus: Maintenance",
|
||||
new ItemStack(EMTItems.maintenanceFocus),
|
||||
6,
|
||||
EMTCraftingAspects.maintenanceFocus,
|
||||
new ItemStack(EMTItems.chargeFocus),
|
||||
new ItemStack[] { new ItemStack(ConfigItems.itemShard, 1, 5),
|
||||
new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 3),
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 9), new ItemStack(ConfigItems.itemShard, 1, 2),
|
||||
new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 0),
|
||||
ItemList.Duct_Tape.get(1) });
|
||||
|
||||
potentiaGenerator = addInfusionCraftingRecipe(
|
||||
"Potentia Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
@@ -616,20 +616,16 @@ public class EMTRecipes {
|
||||
new ItemStack(Blocks.diamond_block), new ItemStack(ConfigItems.itemShard, 1, 5),
|
||||
new ItemStack(ConfigBlocks.blockJar) });
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
solarHelmetRevealing = addInfusionCraftingRecipe(
|
||||
"Solar Helmet of Revealing",
|
||||
getChargedItem(EMTItems.solarHelmetRevealing, 10),
|
||||
5,
|
||||
EMTCraftingAspects.solarHelmetRevealing,
|
||||
new ItemStack(EMTItems.quantumThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE),
|
||||
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1), IC2Items.getItem("glassFiberCableItem"),
|
||||
new ItemStack(
|
||||
IC2Items.getItem("lapotronCrystal").getItem(),
|
||||
1,
|
||||
OreDictionary.WILDCARD_VALUE),
|
||||
new ItemStack(ConfigItems.itemShard, 1, 4) });
|
||||
}
|
||||
solarHelmetRevealing = addInfusionCraftingRecipe(
|
||||
"Solar Helmet of Revealing",
|
||||
getChargedItem(EMTItems.solarHelmetRevealing, 10),
|
||||
5,
|
||||
EMTCraftingAspects.solarHelmetRevealing,
|
||||
new ItemStack(EMTItems.quantumThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE),
|
||||
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1), IC2Items.getItem("glassFiberCableItem"),
|
||||
new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE),
|
||||
new ItemStack(ConfigItems.itemShard, 1, 4) });
|
||||
|
||||
electricBootsTravel = addInfusionCraftingRecipe(
|
||||
"Electric Boots of the Traveller",
|
||||
getChargedItem(EMTItems.electricBootsTraveller, 10),
|
||||
@@ -673,19 +669,17 @@ public class EMTRecipes {
|
||||
new ItemStack(Blocks.iron_block), new ItemStack(EMTItems.itemEMTItems, 1, 5),
|
||||
new ItemStack(EMTItems.itemEMTItems, 1, 5) });
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
tripleCompressedSolar = addInfusionCraftingRecipe(
|
||||
"Compressed Solars",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
2,
|
||||
EMTCraftingAspects.compressedSolars,
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1) });
|
||||
}
|
||||
tripleCompressedSolar = addInfusionCraftingRecipe(
|
||||
"Compressed Solars",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
2,
|
||||
EMTCraftingAspects.compressedSolars,
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack[] { new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1), new ItemStack(EMTBlocks.solars[0], 1, 1) });
|
||||
|
||||
electricHoeGrowth = addInfusionCraftingRecipe(
|
||||
"Electric Hoe of Growth",
|
||||
getChargedItem(EMTItems.electricHoeGrowth, 10),
|
||||
@@ -873,26 +867,26 @@ public class EMTRecipes {
|
||||
EMTCraftingAspects.tinyUraniumCrafting,
|
||||
IC2Items.getItem("Uran238"));
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
compressedSolar = addArcaneCraftingRecipe(
|
||||
"Compressed Solars",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.compressedSolars,
|
||||
"XXX",
|
||||
"XXX",
|
||||
"XXX",
|
||||
'X',
|
||||
IC2Items.getItem("solarPanel"));
|
||||
doubleCompressedSolar = addArcaneCraftingRecipe(
|
||||
"Compressed Solars",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.compressedSolars,
|
||||
"XXX",
|
||||
"XXX",
|
||||
"XXX",
|
||||
'X',
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0));
|
||||
}
|
||||
compressedSolar = addArcaneCraftingRecipe(
|
||||
"Compressed Solars",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.compressedSolars,
|
||||
"XXX",
|
||||
"XXX",
|
||||
"XXX",
|
||||
'X',
|
||||
IC2Items.getItem("solarPanel"));
|
||||
|
||||
doubleCompressedSolar = addArcaneCraftingRecipe(
|
||||
"Compressed Solars",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.compressedSolars,
|
||||
"XXX",
|
||||
"XXX",
|
||||
"XXX",
|
||||
'X',
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0));
|
||||
|
||||
electricScribingTools = addArcaneCraftingRecipe(
|
||||
"Electric Scribing Tools",
|
||||
getChargedItem(EMTItems.electricScribingTools, 10),
|
||||
@@ -931,150 +925,149 @@ public class EMTRecipes {
|
||||
|
||||
// magicalMachineCasing = addArcaneCraftingRecipe("ResearchCompleter", new
|
||||
// ItemStack(GregTech_API.sBlockCasings8, 1, 6), EMTCraftingAspects.magicalMachineCasing, "XYX", "XZX", "XYX",
|
||||
// 'X', GTOreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1), 'Y', new
|
||||
// ItemStack(ConfigItems.itemResource, 1, 14) , 'Z', GTOreDictUnificator.get(OrePrefixes.frameGt,
|
||||
// 'X', GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1), 'Y', new
|
||||
// ItemStack(ConfigItems.itemResource, 1, 14) , 'Z', GT_OreDictUnificator.get(OrePrefixes.frameGt,
|
||||
// Materials.Thaumium, 1));
|
||||
|
||||
// researchCompleter = addArcaneCraftingRecipe("ResearchCompleter", new ItemStack(GregTech_API.sBlockMachines,
|
||||
// 1, 13001), EMTCraftingAspects.researchCompleter, "XYX", "YZY", "XAX", 'X',
|
||||
// GTOreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 1L), 'Y', new
|
||||
// GT_OreDictUnificator.get(OrePrefixes.circuit.get(Materials.Good), 1L), 'Y', new
|
||||
// ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 2), 'Z', new ItemStack(GregTech_API.sBlockCasings8, 1, 6),
|
||||
// 'A', new ItemStack(ConfigBlocks.blockStoneDevice, 1, 5));
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
/** Crucible Recipes **/
|
||||
ignisGenerator = addCrucibleRecipe(
|
||||
"Ignis Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 1),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.ignisGeneratorCrafting);
|
||||
/** Crucible Recipes **/
|
||||
ignisGenerator = addCrucibleRecipe(
|
||||
"Ignis Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 1),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.ignisGeneratorCrafting);
|
||||
|
||||
auramGenerator = addCrucibleRecipe(
|
||||
"Auram Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 2),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.auramGeneratorCrafting);
|
||||
auramGenerator = addCrucibleRecipe(
|
||||
"Auram Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 2),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.auramGeneratorCrafting);
|
||||
|
||||
arborGenerator = addCrucibleRecipe(
|
||||
"Arbor Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 3),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.arborGeneratorCrafting);
|
||||
arborGenerator = addCrucibleRecipe(
|
||||
"Arbor Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 3),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.arborGeneratorCrafting);
|
||||
|
||||
aerGenerator = addCrucibleRecipe(
|
||||
"Aer Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 4),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.aerGenerator);
|
||||
aerGenerator = addCrucibleRecipe(
|
||||
"Aer Generator",
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 4),
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||
EMTCraftingAspects.aerGenerator);
|
||||
|
||||
waterSolar = addCrucibleRecipe(
|
||||
"Water Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 3),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.waterSolars);
|
||||
waterSolar = addCrucibleRecipe(
|
||||
"Water Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 3),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.waterSolars);
|
||||
|
||||
doubleWaterSolar = addCrucibleRecipe(
|
||||
"Water Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 4),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.waterSolars);
|
||||
doubleWaterSolar = addCrucibleRecipe(
|
||||
"Water Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 4),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.waterSolars);
|
||||
|
||||
tripleWaterSolar = addCrucibleRecipe(
|
||||
"Water Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 5),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.waterSolars);
|
||||
tripleWaterSolar = addCrucibleRecipe(
|
||||
"Water Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 5),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.waterSolars);
|
||||
|
||||
darkSolar = addCrucibleRecipe(
|
||||
"Entropy Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 6),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.darkSolars);
|
||||
darkSolar = addCrucibleRecipe(
|
||||
"Entropy Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 6),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.darkSolars);
|
||||
|
||||
doubleDarkSolar = addCrucibleRecipe(
|
||||
"Entropy Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 7),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.darkSolars);
|
||||
doubleDarkSolar = addCrucibleRecipe(
|
||||
"Entropy Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 7),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.darkSolars);
|
||||
|
||||
tripleDarkSolar = addCrucibleRecipe(
|
||||
"Entropy Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 8),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.darkSolars);
|
||||
tripleDarkSolar = addCrucibleRecipe(
|
||||
"Entropy Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 8),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.darkSolars);
|
||||
|
||||
orderSolar = addCrucibleRecipe(
|
||||
"Order Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 9),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.orderSolars);
|
||||
orderSolar = addCrucibleRecipe(
|
||||
"Order Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 9),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.orderSolars);
|
||||
|
||||
doubleOrderSolar = addCrucibleRecipe(
|
||||
"Order Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 10),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.orderSolars);
|
||||
doubleOrderSolar = addCrucibleRecipe(
|
||||
"Order Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 10),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.orderSolars);
|
||||
|
||||
tripleOrderSolar = addCrucibleRecipe(
|
||||
"Order Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 11),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.orderSolars);
|
||||
tripleOrderSolar = addCrucibleRecipe(
|
||||
"Order Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 11),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.orderSolars);
|
||||
|
||||
fireSolar = addCrucibleRecipe(
|
||||
"Fire Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 12),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.fireSolars);
|
||||
fireSolar = addCrucibleRecipe(
|
||||
"Fire Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 12),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.fireSolars);
|
||||
|
||||
doubleFireSolar = addCrucibleRecipe(
|
||||
"Fire Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 13),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.fireSolars);
|
||||
doubleFireSolar = addCrucibleRecipe(
|
||||
"Fire Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 13),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.fireSolars);
|
||||
|
||||
tripleFireSolar = addCrucibleRecipe(
|
||||
"Fire Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 14),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.fireSolars);
|
||||
tripleFireSolar = addCrucibleRecipe(
|
||||
"Fire Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 14),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.fireSolars);
|
||||
|
||||
airSolar = addCrucibleRecipe(
|
||||
"Air Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 15),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.airSolars);
|
||||
airSolar = addCrucibleRecipe(
|
||||
"Air Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 15),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.airSolars);
|
||||
|
||||
doubleAirSolar = addCrucibleRecipe(
|
||||
"Air Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 0),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.airSolars);
|
||||
doubleAirSolar = addCrucibleRecipe(
|
||||
"Air Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 0),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.airSolars);
|
||||
|
||||
tripleAirSolar = addCrucibleRecipe(
|
||||
"Air Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.airSolars);
|
||||
tripleAirSolar = addCrucibleRecipe(
|
||||
"Air Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 1),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.airSolars);
|
||||
|
||||
earthSolar = addCrucibleRecipe(
|
||||
"Earth Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 2),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.earthSolars);
|
||||
earthSolar = addCrucibleRecipe(
|
||||
"Earth Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 2),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 0),
|
||||
EMTCraftingAspects.earthSolars);
|
||||
|
||||
doubleEarthSolar = addCrucibleRecipe(
|
||||
"Earth Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 3),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.earthSolars);
|
||||
doubleEarthSolar = addCrucibleRecipe(
|
||||
"Earth Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 3),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 1),
|
||||
EMTCraftingAspects.earthSolars);
|
||||
|
||||
tripleEarthSolar = addCrucibleRecipe(
|
||||
"Earth Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 4),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.earthSolars);
|
||||
|
||||
tripleEarthSolar = addCrucibleRecipe(
|
||||
"Earth Infused Solar Panels",
|
||||
new ItemStack(EMTBlocks.solars[1], 1, 4),
|
||||
new ItemStack(EMTBlocks.solars[0], 1, 2),
|
||||
EMTCraftingAspects.earthSolars);
|
||||
}
|
||||
ItemStack itemStack = new ItemStack(ConfigItems.itemJarNode);
|
||||
((ItemJarNode) itemStack.getItem()).setAspects(itemStack, new AspectList());
|
||||
portableNode = addCrucibleRecipe(
|
||||
|
||||
@@ -229,7 +229,7 @@ public class EMTResearches {
|
||||
}
|
||||
}
|
||||
|
||||
if (Registry.enableGTCompat && !EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
new EMTResearchItem(
|
||||
"Potentia Generator",
|
||||
EMTResearchAspects.potentiaGeneratorResearch,
|
||||
@@ -239,7 +239,9 @@ public class EMTResearches {
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0)).setParents("Electric Magic Tools").setConcealed()
|
||||
.registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.potentiaGenerator));
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.ignisGeneratorResearch) {
|
||||
new EMTResearchItem(
|
||||
"Ignis Generator",
|
||||
@@ -251,7 +253,9 @@ public class EMTResearches {
|
||||
.setConcealed().registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.ignisGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.auramGeneratorResearch) {
|
||||
new EMTResearchItem(
|
||||
"Auram Generator",
|
||||
@@ -263,7 +267,9 @@ public class EMTResearches {
|
||||
.setConcealed().registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.auramGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.arborGeneratorResearch) {
|
||||
new EMTResearchItem(
|
||||
"Arbor Generator",
|
||||
@@ -275,7 +281,9 @@ public class EMTResearches {
|
||||
.setConcealed().registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.arborGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.lucrumGeneratorResearch) {
|
||||
new EMTResearchItem(
|
||||
"Lucrum Generator",
|
||||
@@ -287,7 +295,9 @@ public class EMTResearches {
|
||||
.setConcealed().registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.lucrumGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.aerGeneratorResearch) {
|
||||
new EMTResearchItem(
|
||||
"Aer Generator",
|
||||
@@ -298,20 +308,23 @@ public class EMTResearches {
|
||||
new ItemStack(EMTBlocks.essentiaGens, 1, 4)).setSecondary().setParents("Potentia Generator")
|
||||
.setConcealed().registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.aerGenerator));
|
||||
|
||||
if (!EMTConfigHandler.wandChargingSationResearch) {
|
||||
new EMTResearchItem(
|
||||
"Industrial Wand Charging Station",
|
||||
EMTResearchAspects.wandCharger,
|
||||
-4,
|
||||
2,
|
||||
3,
|
||||
new ItemStack(EMTBlocks.emtMachines, 1, 0)).setParents("Potentia Generator")
|
||||
.registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.wandRecharger));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.potentiaGeneratorResearch) {
|
||||
if (!EMTConfigHandler.wandChargingSationResearch) {
|
||||
new EMTResearchItem(
|
||||
"Industrial Wand Charging Station",
|
||||
EMTResearchAspects.wandCharger,
|
||||
-4,
|
||||
2,
|
||||
3,
|
||||
new ItemStack(EMTBlocks.emtMachines, 1, 0)).setParents("Potentia Generator")
|
||||
.registerResearchItem()
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.wandRecharger));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.thaumiumChainsawResearch) {
|
||||
if (!EMTConfigHandler.streamChainsawResearch) {
|
||||
new EMTResearchItem(
|
||||
@@ -375,7 +388,7 @@ public class EMTResearches {
|
||||
}
|
||||
}
|
||||
|
||||
if (Registry.enableGTCompat && !EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Compressed Solars",
|
||||
EMTResearchAspects.compressedSolars,
|
||||
@@ -388,6 +401,9 @@ public class EMTResearches {
|
||||
new ResearchPage(EMTRecipes.compressedSolar),
|
||||
new ResearchPage(EMTRecipes.doubleCompressedSolar),
|
||||
new ResearchPage(EMTRecipes.tripleCompressedSolar));
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.solarHelmetResearch) {
|
||||
new EMTResearchItem(
|
||||
"Solar Helmet of Revealing",
|
||||
@@ -400,6 +416,7 @@ public class EMTResearches {
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.solarHelmetRevealing));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.electricBootsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Electric Boots of the Traveller",
|
||||
@@ -466,7 +483,7 @@ public class EMTResearches {
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.etheralProcessor));
|
||||
}
|
||||
|
||||
if (Registry.enableGTCompat && !EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.waterSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Water Infused Solar Panels",
|
||||
@@ -481,7 +498,9 @@ public class EMTResearches {
|
||||
new ResearchPage(EMTRecipes.doubleWaterSolar),
|
||||
new ResearchPage(EMTRecipes.tripleWaterSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.darkSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Entropy Infused Solar Panels",
|
||||
@@ -496,7 +515,9 @@ public class EMTResearches {
|
||||
new ResearchPage(EMTRecipes.doubleDarkSolar),
|
||||
new ResearchPage(EMTRecipes.tripleDarkSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.orderSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Order Infused Solar Panels",
|
||||
@@ -511,7 +532,9 @@ public class EMTResearches {
|
||||
new ResearchPage(EMTRecipes.doubleOrderSolar),
|
||||
new ResearchPage(EMTRecipes.tripleOrderSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.fireSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Fire Infused Solar Panels",
|
||||
@@ -526,7 +549,9 @@ public class EMTResearches {
|
||||
new ResearchPage(EMTRecipes.doubleFireSolar),
|
||||
new ResearchPage(EMTRecipes.tripleFireSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.airSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Air Infused Solar Panels",
|
||||
@@ -541,7 +566,9 @@ public class EMTResearches {
|
||||
new ResearchPage(EMTRecipes.doubleAirSolar),
|
||||
new ResearchPage(EMTRecipes.tripleAirSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (!EMTConfigHandler.compressedSolarsResearch) {
|
||||
if (!EMTConfigHandler.earthSolarsResearch) {
|
||||
new EMTResearchItem(
|
||||
"Earth Infused Solar Panels",
|
||||
@@ -621,7 +648,7 @@ public class EMTResearches {
|
||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.chargeFocus));
|
||||
}
|
||||
|
||||
if (Registry.enableGTCompat && !EMTConfigHandler.maintenanceFocusResearch) {
|
||||
if (!EMTConfigHandler.maintenanceFocusResearch) {
|
||||
new EMTResearchItem(
|
||||
"Wand Focus: Maintenance",
|
||||
EMTResearchAspects.maintenanceFocus,
|
||||
|
||||
@@ -12,51 +12,49 @@ public class EMTTiles {
|
||||
|
||||
public static void registerTileEntities() {
|
||||
|
||||
if (Registry.enableGTCompat) {
|
||||
// Essentia Gens
|
||||
// legacy support
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitypotentiagenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityignisgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityauramgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityarborgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityaergenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitylucrumgenerator");
|
||||
// Essentia Gens
|
||||
// legacy support
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitypotentiagenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityignisgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityauramgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityarborgenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentityaergenerator");
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "tileentitylucrumgenerator");
|
||||
|
||||
// new TEs will be called TileEntityEssentiaGenerator
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "TileEntityEssentiaGenerator");
|
||||
|
||||
// Solars
|
||||
// legacy support
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitycompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublecompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplecompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitywatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublewatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplewatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydarksolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubledarksolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripledarksolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityordersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleordersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleordersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityfiresolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublefiresolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplefiresolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityairsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleairsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleairsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityearthsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleearthsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleearthsolar");
|
||||
|
||||
// new TEs will be called TileEntityXCompressedSolar
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "TileEntityXCompressedSolar");
|
||||
}
|
||||
// new TEs will be called TileEntityEssentiaGenerator
|
||||
GameRegistry.registerTileEntity(TileEntityBaseGenerator.class, "TileEntityEssentiaGenerator");
|
||||
|
||||
// Machinery
|
||||
GameRegistry.registerTileEntity(TileEntityIndustrialWandRecharge.class, "tileentityindustrialwandrecharge");
|
||||
GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator");
|
||||
|
||||
// Solars
|
||||
// legacy support
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitycompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublecompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplecompressedsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitywatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublewatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplewatersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydarksolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubledarksolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripledarksolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityordersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleordersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleordersolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityfiresolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoublefiresolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytriplefiresolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityairsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleairsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleairsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentityearthsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitydoubleearthsolar");
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "tileentitytripleearthsolar");
|
||||
|
||||
// new TEs will be called TileEntityXCompressedSolar
|
||||
GameRegistry.registerTileEntity(TileEntitySolarBase.class, "TileEntityXCompressedSolar");
|
||||
|
||||
// Random Stuff
|
||||
GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode");
|
||||
GameRegistry.registerTileEntity(TileElectricCloud.class, "tileEntityElectricCloud");
|
||||
|
||||
@@ -19,12 +19,14 @@ import emt.util.EMTResearchItem;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.OrePrefixes;
|
||||
import gregtech.api.util.GTOreDictUnificator;
|
||||
import gregtech.api.util.GTUtility;
|
||||
import gregtech.api.util.GT_OreDictUnificator;
|
||||
import gregtech.api.util.GT_Utility;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import thaumcraft.api.ThaumcraftApiHelper;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.crafting.CrucibleRecipe;
|
||||
import thaumcraft.api.crafting.IArcaneRecipe;
|
||||
import thaumcraft.api.crafting.InfusionRecipe;
|
||||
import thaumcraft.api.crafting.ShapedArcaneRecipe;
|
||||
import thaumcraft.api.research.ResearchItem;
|
||||
import thaumcraft.api.research.ResearchPage;
|
||||
@@ -32,6 +34,8 @@ import thaumcraft.api.research.ResearchPage;
|
||||
public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||
|
||||
private static LinkedHashMap<String, IArcaneRecipe> arcaneRecipeLinkedHashMap = new LinkedHashMap<>();
|
||||
private static LinkedHashMap<String, InfusionRecipe> infusionRecipeLinkedHashMap = new LinkedHashMap<>();
|
||||
private static LinkedHashMap<String, CrucibleRecipe> cruciblRecipeLinkedHashMap = new LinkedHashMap<>();
|
||||
|
||||
private static AspectList getPrimals(int amount) {
|
||||
return new AspectList().add(ORDER, amount).add(ENTROPY, amount).add(AIR, amount).add(EARTH, amount)
|
||||
@@ -46,7 +50,10 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||
runResreaches();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void runInfusionRecipes() {}
|
||||
|
||||
private void runKettleRecipes() {}
|
||||
|
||||
private void runArcaneRecipes() {
|
||||
arcaneRecipeLinkedHashMap.put(
|
||||
"DiamondChainsaw",
|
||||
@@ -58,11 +65,11 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||
"pmp",
|
||||
"pbp",
|
||||
's',
|
||||
GTOreDictUnificator.get(OrePrefixes.screw, Materials.Diamond, 1),
|
||||
GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Diamond, 1),
|
||||
'p',
|
||||
GTOreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 1),
|
||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Diamond, 1),
|
||||
't',
|
||||
GTOreDictUnificator.get(OrePrefixes.toolHeadChainsaw, Materials.Thaumium, 1),
|
||||
GT_OreDictUnificator.get(OrePrefixes.toolHeadChainsaw, Materials.Thaumium, 1),
|
||||
'b',
|
||||
ItemList.Battery_RE_LV_Sodium.get(1),
|
||||
'm',
|
||||
@@ -77,9 +84,9 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||
"pmp",
|
||||
"ppp",
|
||||
's',
|
||||
GTOreDictUnificator.get(OrePrefixes.screw, Materials.Thaumium, 1),
|
||||
GT_OreDictUnificator.get(OrePrefixes.screw, Materials.Thaumium, 1),
|
||||
'p',
|
||||
GTOreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1),
|
||||
GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Thaumium, 1),
|
||||
'b',
|
||||
ItemList.Battery_RE_LV_Sodium.get(1),
|
||||
'm',
|
||||
@@ -147,7 +154,9 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||
throw new UnsupportedOperationException("The Recipe must fit in a 3x3 crafting field!");
|
||||
rowcolm = Arrays.copyOf(rowcolm, rows);
|
||||
|
||||
int k = 0;
|
||||
for (int j = i; j < recipe.length; j += 2) {
|
||||
k++;
|
||||
if (recipe[j] instanceof Character) translation.put((Character) recipe[j], recipe[j + 1]);
|
||||
}
|
||||
}
|
||||
@@ -166,26 +175,26 @@ public class EMT_GTNH_Recipes_And_Researches implements Runnable {
|
||||
if (itemReplacement != null && slot == null) {
|
||||
return false;
|
||||
} else if (itemReplacement instanceof String) {
|
||||
if (!GTUtility.areStacksEqual(
|
||||
GTOreDictUnificator.getFirstOre(itemReplacement, 1),
|
||||
GTOreDictUnificator.get(slot),
|
||||
if (!GT_Utility.areStacksEqual(
|
||||
GT_OreDictUnificator.getFirstOre(itemReplacement, 1),
|
||||
GT_OreDictUnificator.get(slot),
|
||||
true))
|
||||
if (!OreDictionary.getOres((String) itemReplacement).contains(slot)) return false;
|
||||
} else if (itemReplacement instanceof ItemStack) {
|
||||
if (!GTUtility.isStackValid((ItemStack) itemReplacement)) {
|
||||
if (!GT_Utility.isStackValid(itemReplacement)) {
|
||||
return false;
|
||||
}
|
||||
if (!GTUtility.areStacksEqual((ItemStack) itemReplacement, slot, true))
|
||||
if (!GTUtility.areUnificationsEqual((ItemStack) itemReplacement, slot, true))
|
||||
if (!GT_Utility.areStacksEqual((ItemStack) itemReplacement, slot, true))
|
||||
if (!GT_Utility.areUnificationsEqual((ItemStack) itemReplacement, slot, true))
|
||||
if (!(((ItemStack) itemReplacement).getItem().equals(slot.getItem())
|
||||
&& ((ItemStack) itemReplacement).getItemDamage()
|
||||
== OreDictionary.WILDCARD_VALUE))
|
||||
return false;
|
||||
} else if (itemReplacement instanceof Collection) {
|
||||
boolean hit = false;
|
||||
for (Object o : (Collection<?>) itemReplacement) {
|
||||
if (GTUtility.areStacksEqual((ItemStack) o, slot, true)
|
||||
|| GTUtility.areUnificationsEqual((ItemStack) o, slot, true)
|
||||
for (Object o : (Collection) itemReplacement) {
|
||||
if (GT_Utility.areStacksEqual((ItemStack) o, slot, true)
|
||||
|| GT_Utility.areUnificationsEqual((ItemStack) o, slot, true)
|
||||
|| (((ItemStack) o).getItem().equals(slot.getItem())
|
||||
&& ((ItemStack) itemReplacement).getItemDamage()
|
||||
== OreDictionary.WILDCARD_VALUE))
|
||||
|
||||
@@ -1,40 +1,32 @@
|
||||
package emt.init;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import emt.gthandler.common.loader.EMT_GT_Loader;
|
||||
import emt.tile.solar.Solars;
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
|
||||
public class Registry {
|
||||
|
||||
public static boolean enableGTCompat;
|
||||
private static final EMT_GT_Loader gtloader = new EMT_GT_Loader();
|
||||
|
||||
public static void registerPreInit() {
|
||||
enableGTCompat = Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi");
|
||||
EMTBlocks.registerBlocks();
|
||||
EMTItems.registerItems();
|
||||
EMTTiles.registerTileEntities();
|
||||
}
|
||||
|
||||
public static void registerInit() {
|
||||
if (enableGTCompat) {
|
||||
EMT_GT_Loader.run();
|
||||
}
|
||||
gtloader.run();
|
||||
EMTRecipes.registerEarlyRecipes();
|
||||
}
|
||||
|
||||
public static void registerLate() {
|
||||
EMTEssentiasOutputs.addOutputs();
|
||||
EMTBlocks.addAspects();
|
||||
if (enableGTCompat) {
|
||||
EMT_GT_Loader.runlate();
|
||||
}
|
||||
gtloader.runlate();
|
||||
EMTRecipes.registerLateRecipes();
|
||||
// new EMT_GTNH_Recipes_And_Researches().run();
|
||||
EMTRecipes.registerUUMInfusionRecipes();
|
||||
EMTResearches.register();
|
||||
if (enableGTCompat) {
|
||||
Solars.registerReverseRecipes();
|
||||
}
|
||||
Solars.registerReverseRecipes();
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,9 @@ public class ItemElectricScribingTools extends ItemInkwell implements IElectricI
|
||||
this.setMaxStackSize(1);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
@@ -52,7 +53,7 @@ public class ItemElectricScribingTools extends ItemInkwell implements IElectricI
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
|
||||
@@ -67,7 +67,7 @@ public class ItemIC2Baubles extends ItemBase implements IBauble, IRunicArmor {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> list) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) {
|
||||
list.add(new ItemStack(this, 1, 0));
|
||||
list.add(new ItemStack(this, 1, 1));
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ public class ItemMaterials extends Item {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List<String> result, boolean advanced) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List result, boolean advanced) {
|
||||
switch (stack.getItemDamage()) {
|
||||
case 16:
|
||||
case 17:
|
||||
@@ -152,7 +152,7 @@ public class ItemMaterials extends Item {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> list) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) {
|
||||
for (int i = 1; i <= 19; i++) {
|
||||
list.add(new ItemStack(this, 1, i));
|
||||
}
|
||||
@@ -170,8 +170,8 @@ public class ItemMaterials extends Item {
|
||||
- player.yOffset;
|
||||
double playerZ = player.prevPosZ + ((player.posZ - player.prevPosZ) * f);
|
||||
Vec3 playerLoc = Vec3.createVectorHelper(playerX, playerY, playerZ);
|
||||
float f3 = MathHelper.cos((-f2 * 0.01745329F) - (float) Math.PI);
|
||||
float f4 = MathHelper.sin((-f2 * 0.01745329F) - (float) Math.PI);
|
||||
float f3 = MathHelper.cos((-f2 * 0.01745329F) - 3.141593F);
|
||||
float f4 = MathHelper.sin((-f2 * 0.01745329F) - 3.141593F);
|
||||
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
|
||||
float f6 = MathHelper.sin(-f1 * 0.01745329F);
|
||||
float f7 = f4 * f5;
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack itemStack, EntityPlayer player, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par4) {
|
||||
String colourCode = "" + EnumChatFormatting.DARK_RED;
|
||||
list.add(
|
||||
colourCode
|
||||
@@ -81,7 +81,7 @@ public class ItemOneRing extends ItemBase implements IBauble, IWarpingGear, IRun
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> list) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) {
|
||||
list.add(new ItemStack(this, 1, 0));
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.living.LivingEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingFallEvent;
|
||||
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import cpw.mods.fml.common.Optional.Interface;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -35,11 +33,9 @@ import thaumcraft.api.IVisDiscountGear;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.items.armor.Hover;
|
||||
import thaumicboots.api.IBoots;
|
||||
|
||||
@Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots")
|
||||
public class ItemElectricBootsTraveller extends ItemArmor
|
||||
implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor, IBoots {
|
||||
implements IRunicArmor, IElectricItem, IVisDiscountGear, IMetalArmor, ISpecialArmor {
|
||||
|
||||
public int maxCharge = 100000;
|
||||
public int energyPerDamage = 1000;
|
||||
@@ -58,7 +54,7 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -112,8 +108,9 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
||||
return 0.15D;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||
}
|
||||
@@ -125,29 +122,15 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
||||
|
||||
@Override
|
||||
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
|
||||
if (getIntertialState(itemStack) && player.moveForward == 0
|
||||
&& player.moveStrafing == 0
|
||||
&& player.capabilities.isFlying) {
|
||||
player.motionX *= 0.5;
|
||||
player.motionZ *= 0.5;
|
||||
}
|
||||
boolean omniMode = false;
|
||||
if (EMT.isBootsActive) {
|
||||
omniMode = isOmniEnabled(itemStack);
|
||||
if ((player.moveForward == 0F && player.moveStrafing == 0F && omniMode)
|
||||
|| (player.moveForward <= 0F && !omniMode)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (player.moveForward != 0.0F || player.moveStrafing != 0.0F) {
|
||||
if (!player.capabilities.isFlying && (player.moveForward != 0.0F || player.moveStrafing != 0.0F)) {
|
||||
if (player.worldObj.isRemote && !player.isSneaking()) {
|
||||
if (!Thaumcraft.instance.entityEventHandler.prevStep.containsKey(player.getEntityId())) {
|
||||
Thaumcraft.instance.entityEventHandler.prevStep.put(player.getEntityId(), player.stepHeight);
|
||||
}
|
||||
player.stepHeight = 1.0F;
|
||||
}
|
||||
float speedMod = (float) getSpeedModifier(itemStack);
|
||||
if (player.onGround || player.isOnLadder() || player.capabilities.isFlying) {
|
||||
|
||||
if (player.onGround) {
|
||||
float bonus = speedBonus;
|
||||
if (player.isInWater()) {
|
||||
bonus /= 4.0F;
|
||||
@@ -156,46 +139,29 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
||||
if (player.isSneaking()) {
|
||||
bonus /= 2.0F;
|
||||
}
|
||||
bonus *= speedMod;
|
||||
if (EMT.isBootsActive) {
|
||||
applyOmniState(player, bonus, itemStack);
|
||||
} else if (player.moveForward > 0.0) {
|
||||
player.moveFlying(0.0F, player.moveForward, bonus);
|
||||
}
|
||||
|
||||
player.moveFlying(player.moveStrafing, player.moveForward, bonus);
|
||||
} else if (Hover.getHover(player.getEntityId())) {
|
||||
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
|
||||
// so any other boots factor can be calculated via proportion method
|
||||
player.jumpMovementFactor = 0.03F
|
||||
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
||||
* jumpBonus
|
||||
* speedMod;
|
||||
* jumpBonus;
|
||||
} else {
|
||||
player.jumpMovementFactor = 0.05F
|
||||
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
||||
* jumpBonus
|
||||
* speedMod;
|
||||
* jumpBonus;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Optional.Method(modid = "thaumicboots")
|
||||
public void applyOmniState(EntityPlayer player, float bonus, ItemStack itemStack) {
|
||||
if (player.moveForward != 0.0) {
|
||||
player.moveFlying(0.0F, player.moveForward, bonus);
|
||||
}
|
||||
if (player.moveStrafing != 0.0 && getOmniState(itemStack)) {
|
||||
player.moveFlying(player.moveStrafing, 0.0F, bonus);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPlayerJump(LivingEvent.LivingJumpEvent event) {
|
||||
if (event.entityLiving instanceof EntityPlayer) {
|
||||
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
||||
ItemStack boots = player.getCurrentArmor(0);
|
||||
boolean hasArmor = boots != null && boots.getItem() == this;
|
||||
boolean hasArmor = player.getCurrentArmor(0) != null && player.getCurrentArmor(0).getItem() == this;
|
||||
|
||||
if (hasArmor) player.motionY += jumpBonus * (float) getJumpModifier(boots);
|
||||
if (hasArmor) player.motionY += jumpBonus;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -311,34 +277,4 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
||||
public int getRunicCharge(ItemStack itemStack) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Avoid NSM Exception when ThaumicBoots is not present.
|
||||
public double getSpeedModifier(ItemStack stack) {
|
||||
if (stack.stackTagCompound != null) {
|
||||
return stack.stackTagCompound.getDouble("speed");
|
||||
}
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public double getJumpModifier(ItemStack stack) {
|
||||
if (stack.stackTagCompound != null) {
|
||||
return stack.stackTagCompound.getDouble("jump");
|
||||
}
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public boolean getOmniState(ItemStack stack) {
|
||||
if (stack.stackTagCompound != null) {
|
||||
return stack.stackTagCompound.getBoolean("omni");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean getIntertialState(ItemStack stack) {
|
||||
if (stack.stackTagCompound != null) {
|
||||
return stack.stackTagCompound.getBoolean("inertiacanceling");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -390,29 +390,27 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric implements I
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
|
||||
if (entity instanceof EntityPlayer && stack != null && stack.stackTagCompound != null) {
|
||||
byte wing = stack.stackTagCompound.getByte("wing");
|
||||
if (wing == JETPACK) {
|
||||
ModelSpecialArmor.getInstance().type = 1;
|
||||
} else if (wing != 0) {
|
||||
ModelSpecialArmor.getInstance().type = 2;
|
||||
if (stack.stackTagCompound.hasKey("isJumping")) {
|
||||
ModelSpecialArmor.getInstance().isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
||||
try {
|
||||
if (entity instanceof EntityPlayer) {
|
||||
byte wing = stack.stackTagCompound.getByte("wing");
|
||||
if (wing == JETPACK) {
|
||||
ModelSpecialArmor mbm = new ModelSpecialArmor(1, 1);
|
||||
return mbm;
|
||||
} else if (wing != 0) {
|
||||
ModelSpecialArmor mbm = new ModelSpecialArmor(1, 2);
|
||||
mbm.isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
||||
return mbm;
|
||||
}
|
||||
} else {
|
||||
ModelSpecialArmor.getInstance().type = 0;
|
||||
}
|
||||
} else {
|
||||
ModelSpecialArmor.getInstance().type = 0;
|
||||
} catch (NullPointerException e) {
|
||||
new ModelSpecialArmor(1, 0);
|
||||
}
|
||||
|
||||
return ModelSpecialArmor.getInstance();
|
||||
return new ModelSpecialArmor(1, 0);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, @SuppressWarnings("rawtypes") List list,
|
||||
boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public class ItemElectricGoggles extends ItemArmor
|
||||
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -136,8 +136,9 @@ public class ItemElectricGoggles extends ItemArmor
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import ic2.core.util.Keyboard;
|
||||
|
||||
public class ItemQuantumGoggles extends ItemNanoGoggles {
|
||||
|
||||
private static final Map<Integer, Integer> potionCost = new HashMap<>();
|
||||
private static final Map<Integer, Integer> potionCost = new HashMap();
|
||||
|
||||
public ItemQuantumGoggles(ArmorMaterial material, int renderIndex, int armorType) {
|
||||
super(material, renderIndex, armorType);
|
||||
@@ -67,14 +67,13 @@ public class ItemQuantumGoggles extends ItemNanoGoggles {
|
||||
Field f;
|
||||
f = Keyboard.class.getDeclaredField("playerKeys");
|
||||
f.setAccessible(true);
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<EntityPlayer, Set<Enum<?>>> playerKeys = (Map<EntityPlayer, Set<Enum<?>>>) f.get(IC2.keyboard);
|
||||
Map<EntityPlayer, Set<Enum>> playerKeys = (Map<EntityPlayer, Set<Enum>>) f.get(IC2.keyboard);
|
||||
|
||||
Enum<?> hub = null;
|
||||
Set<Enum<?>> set = playerKeys.get(player);
|
||||
Enum hub = null;
|
||||
Set<Enum> set = playerKeys.get(player);
|
||||
|
||||
if (set != null) {
|
||||
for (Enum<?> e : set) {
|
||||
for (Enum e : set) {
|
||||
if (e.ordinal() == 6) {
|
||||
hub = e;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import ic2.api.item.IElectricItem;
|
||||
|
||||
public class ItemSolarHelmetRevealing extends ItemQuantumGoggles {
|
||||
|
||||
private static final Map<Integer, Integer> potionCost = new HashMap<>();
|
||||
private static final Map potionCost = new HashMap();
|
||||
/*
|
||||
* private int ticker; private int generating; private boolean sunIsUp; private boolean skyIsVisible; private
|
||||
* boolean noSunWorld; private boolean dampPlace;
|
||||
@@ -26,6 +26,7 @@ public class ItemSolarHelmetRevealing extends ItemQuantumGoggles {
|
||||
private int genDay;
|
||||
private int genNight;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public ItemSolarHelmetRevealing(ArmorMaterial material, int par3, int par4) {
|
||||
super(material, par3, par4);
|
||||
this.setMaxDamage(27);
|
||||
|
||||
@@ -51,13 +51,16 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) {
|
||||
if (entity instanceof EntityPlayer && stack != null
|
||||
&& stack.stackTagCompound != null
|
||||
&& stack.stackTagCompound.hasKey("isJumping")) {
|
||||
ModelWings.getInstance().isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
||||
try {
|
||||
if (entity instanceof EntityPlayer) {
|
||||
ModelWings mw = new ModelWings();
|
||||
mw.isJumping = stack.stackTagCompound.getBoolean("isJumping");
|
||||
return mw;
|
||||
}
|
||||
} catch (NullPointerException e) {
|
||||
return new ModelWings();
|
||||
}
|
||||
|
||||
return ModelWings.getInstance();
|
||||
return new ModelWings();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -69,12 +72,12 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
||||
int amount) {
|
||||
NBTTagCompound nbtData = StackUtil.getOrCreateNbtData(stack);
|
||||
|
||||
boolean isJumping = nbtData.getBoolean("isJumping");
|
||||
boolean isJmuping = nbtData.getBoolean("isJumping");
|
||||
boolean isHolding = nbtData.getBoolean("isHolding");
|
||||
|
||||
nbtData.setBoolean("isJumping", IC2.keyboard.isJumpKeyDown(player));
|
||||
|
||||
if (isJumping) {
|
||||
if (isJmuping) {
|
||||
byte f = nbtData.getByte("f");
|
||||
nbtData.setBoolean("isHolding", true);
|
||||
if (IC2.keyboard.isSneakKeyDown(player)) nbtData.setByte("f", (byte) (0));
|
||||
@@ -105,7 +108,7 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor {
|
||||
nbtData.setByte("f", (byte) 0);
|
||||
}
|
||||
|
||||
if (isJumping && !player.onGround && player.motionY < 0) {
|
||||
if (isJmuping && !player.onGround && player.motionY < 0) {
|
||||
player.motionY *= f1;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing implements IElectri
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -132,8 +132,9 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing implements IElectri
|
||||
ElectricItem.manager.discharge(stack, damage * getEnergyPerDamage(), 0x7fffffff, true, false, false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
|
||||
@@ -49,8 +49,9 @@ public class ItemThaumiumReinforcedWing extends ItemFeatherWing implements IVisD
|
||||
return EMT.TEXTURE_PATH + ":textures/models/thaumiumwing.png";
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import org.lwjgl.input.Keyboard;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import emt.util.EMTTextHelper;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
public class ItemBlockEssentiaGenerators extends ItemBlock {
|
||||
@@ -56,11 +57,11 @@ public class ItemBlockEssentiaGenerators extends ItemBlock {
|
||||
}
|
||||
|
||||
private long getOutputAmperage(double EU) {
|
||||
return 1L + (long) (EU * 1.953125e-5); // EU/(20 * 20 * 128)
|
||||
return (long) (1L + (EU / 20.0D / 20.0D / GT_Values.V[2]));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack is, EntityPlayer player, List<String> list, boolean flag) {
|
||||
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:
|
||||
|
||||
@@ -46,8 +46,7 @@ public class ItemBlockMachines extends ItemBlock {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List<String> p_77624_3_,
|
||||
boolean p_77624_4_) {
|
||||
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");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package emt.item.block;
|
||||
|
||||
import static emt.util.EMTTextHelper.localize;
|
||||
import static gregtech.api.util.GTUtility.formatNumbers;
|
||||
import static gregtech.api.util.GT_Utility.formatNumbers;
|
||||
|
||||
import java.io.StringReader;
|
||||
import java.util.List;
|
||||
@@ -51,8 +51,7 @@ public class ItemBlockSolars extends ItemBlock {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack itemstack, EntityPlayer player, List<String> list,
|
||||
boolean advancedItemTooltips) {
|
||||
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean advancedItemTooltips) {
|
||||
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) {
|
||||
TileEntitySolarBase te = Solars.getTileEntitySolarBase(instance, itemstack.getItemDamage());
|
||||
if (instance == 0) {
|
||||
|
||||
@@ -1,16 +1,20 @@
|
||||
package emt.item.focus;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.wands.ItemFocusBasic;
|
||||
|
||||
@@ -99,4 +103,15 @@ public abstract class ItemBaseFocus extends ItemFocusBasic {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
AspectList cost = getVisCost(stack);
|
||||
if (cost != null && cost.size() > 0) {
|
||||
list.add(StatCollector.translateToLocal(isVisCostPerTick() ? "item.Focus.cost2" : "item.Focus.cost1"));
|
||||
for (Aspect aspect : cost.getAspectsSorted()) {
|
||||
float amount = cost.getAmount(aspect) / 100.0F;
|
||||
list.add(" " + '\u00a7' + aspect.getChatcolor() + aspect.getName() + '\u00a7' + "r x " + amount);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import net.minecraft.world.World;
|
||||
|
||||
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
||||
import gregtech.api.metatileentity.BaseMetaTileEntity;
|
||||
import gregtech.api.metatileentity.implementations.MTEHatchMaintenance;
|
||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Maintenance;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.wands.FocusUpgradeType;
|
||||
@@ -57,8 +57,8 @@ public class ItemMaintenanceFocus extends ItemBaseFocus {
|
||||
TileEntity hatchCandidateTile = world.getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
|
||||
if (hatchCandidateTile instanceof BaseMetaTileEntity) {
|
||||
IMetaTileEntity hatchCandidateMetaTile = ((BaseMetaTileEntity) hatchCandidateTile).getMetaTileEntity();
|
||||
if (hatchCandidateMetaTile instanceof MTEHatchMaintenance) {
|
||||
MTEHatchMaintenance hatch = (MTEHatchMaintenance) hatchCandidateMetaTile;
|
||||
if (hatchCandidateMetaTile instanceof GT_MetaTileEntity_Hatch_Maintenance) {
|
||||
GT_MetaTileEntity_Hatch_Maintenance hatch = (GT_MetaTileEntity_Hatch_Maintenance) hatchCandidateMetaTile;
|
||||
if (player.capabilities.isCreativeMode
|
||||
|| wand.consumeAllVis(itemStack, player, getVisCost(itemStack), true, true)) {
|
||||
hatch.mCrowbar = true;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ItemElectricHoeGrowth extends ItemHoe implements IElectricItem {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -118,8 +118,9 @@ public class ItemElectricHoeGrowth extends ItemHoe implements IElectricItem {
|
||||
return did;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,9 @@ public class ItemElectricThorHammer extends ItemSword implements IElectricItem {
|
||||
this.itemIcon = iconRegister.registerIcon(EMT.TEXTURE_PATH + ":hammer/electricthorhammer");
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -65,8 +66,9 @@ public class ItemElectricThorHammer extends ItemSword implements IElectricItem {
|
||||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
list.add(
|
||||
EMTTextHelper.localize("tooltip.EMT.hammer.electric")
|
||||
|
||||
@@ -46,8 +46,8 @@ public class ItemThorHammer extends ItemSword implements IRepairable {
|
||||
double d1 = (player.prevPosY + ((player.posY - player.prevPosY) * f) + 1.6200000000000001D) - player.yOffset;
|
||||
double d2 = player.prevPosZ + ((player.posZ - player.prevPosZ) * f);
|
||||
Vec3 vec3d = Vec3.createVectorHelper(d, d1, d2);
|
||||
float f3 = MathHelper.cos((-f2 * 0.01745329F) - (float) Math.PI);
|
||||
float f4 = MathHelper.sin((-f2 * 0.01745329F) - (float) Math.PI);
|
||||
float f3 = MathHelper.cos((-f2 * 0.01745329F) - 3.141593F);
|
||||
float f4 = MathHelper.sin((-f2 * 0.01745329F) - 3.141593F);
|
||||
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
|
||||
float f6 = MathHelper.sin(-f1 * 0.01745329F);
|
||||
float f7 = f4 * f5;
|
||||
@@ -87,7 +87,7 @@ public class ItemThorHammer extends ItemSword implements IRepairable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.The Hammer of Thor"));
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ public class ItemThorHammerBroken extends ItemSword implements IRepairable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer entityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer entityPlayer, List list, boolean par4) {
|
||||
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.thor"));
|
||||
list.add(EMTTextHelper.localize("tooltip.EMT.hammer.broken.danger"));
|
||||
if (!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
|
||||
|
||||
@@ -93,7 +93,7 @@ public class ItemDiamondChainsaw extends ItemAxe implements IElectricItem {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -270,8 +270,9 @@ public class ItemDiamondChainsaw extends ItemAxe implements IElectricItem {
|
||||
return EMTConfigHandler.enchanting;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import thaumcraft.common.lib.utils.Utils;
|
||||
|
||||
public class ItemStreamChainsaw extends ItemThaumiumChainsaw {
|
||||
|
||||
public static ArrayList<?> oreDictLogs = new ArrayList<>();
|
||||
public static ArrayList oreDictLogs = new ArrayList();
|
||||
boolean alternateServer;
|
||||
boolean alternateClient;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.util.Iterator;
|
||||
import java.util.Locale;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -125,7 +126,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
||||
}
|
||||
int fortune = EnchantmentHelper.getFortuneModifier(entityLiving);
|
||||
world.setBlockToAir(x + xx, y + yy, z + zz);
|
||||
ArrayList<ItemStack> ret = bl.getDrops(world, x + xx, y + yy, z + zz, md, fortune);
|
||||
ArrayList ret = bl.getDrops(world, x + xx, y + yy, z + zz, md, fortune);
|
||||
boolean creative = false;
|
||||
if ((entityLiving instanceof EntityPlayer)
|
||||
&& ((EntityPlayer) entityLiving).capabilities.isCreativeMode) {
|
||||
@@ -135,7 +136,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
||||
continue;
|
||||
}
|
||||
ItemStack is;
|
||||
for (Iterator<ItemStack> i$ = ret.iterator(); i$.hasNext(); world.spawnEntityInWorld(
|
||||
for (Iterator i$ = ret.iterator(); i$.hasNext(); world.spawnEntityInWorld(
|
||||
new EntityFollowingItem(
|
||||
world,
|
||||
(double) x + (double) xx + 0.5D,
|
||||
@@ -144,7 +145,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
||||
is,
|
||||
entityLiving,
|
||||
3))) {
|
||||
is = i$.next();
|
||||
is = (ItemStack) i$.next();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -192,6 +193,7 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
||||
0.2F + world.rand.nextFloat() * 0.2F);
|
||||
return super.onItemUse(stack, player, world, x, y, z, side, xOffset, xOffset, zOffset);
|
||||
}
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
Thaumcraft.instance.renderEventHandler.startScan(player, x, y, z, System.currentTimeMillis() + 5000L, 1);
|
||||
player.swingItem();
|
||||
return super.onItemUse(stack, player, world, x, y, z, side, xOffset, yOffset, zOffset);
|
||||
|
||||
@@ -47,7 +47,7 @@ public class ItemThaumiumDrill extends ItemPickaxe implements IElectricItem {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -115,8 +115,9 @@ public class ItemThaumiumDrill extends ItemPickaxe implements IElectricItem {
|
||||
return EMTConfigHandler.enchanting;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ItemOmnitoolIron extends ItemPickaxe implements IElectricItem {
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List<ItemStack> itemList) {
|
||||
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
|
||||
ItemStack itemStack = new ItemStack(this, 1);
|
||||
if (getChargedItem(itemStack) == this) {
|
||||
ItemStack charged = new ItemStack(this, 1);
|
||||
@@ -156,8 +156,9 @@ public class ItemOmnitoolIron extends ItemPickaxe implements IElectricItem {
|
||||
return EMTConfigHandler.enchanting;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
|
||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package emt.tile;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
|
||||
public class DefinitelyNotAIC2Source {
|
||||
|
||||
@@ -13,7 +14,7 @@ public class DefinitelyNotAIC2Source {
|
||||
protected long energyStored;
|
||||
|
||||
public DefinitelyNotAIC2Source(TileEntity parent1, long capacity1, int tier1) {
|
||||
long power = 8L << (2 * tier1);
|
||||
long power = GT_Values.V[tier1];
|
||||
this.parent = parent1;
|
||||
this.capacity = capacity1 < power ? power : capacity1;
|
||||
this.tier = (byte) tier1;
|
||||
|
||||
@@ -2,7 +2,7 @@ package emt.tile;
|
||||
|
||||
import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
|
||||
import static gregtech.api.enums.Textures.BlockIcons.*;
|
||||
import static gregtech.api.util.GTStructureUtility.ofHatchAdder;
|
||||
import static gregtech.api.util.GT_StructureUtility.ofHatchAdder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -17,16 +17,15 @@ import com.gtnewhorizon.structurelib.structure.StructureDefinition;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import emt.EMT;
|
||||
import emt.network.PacketNodeInfo;
|
||||
import gregtech.api.GregTechAPI;
|
||||
import gregtech.api.GregTech_API;
|
||||
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.MTEEnhancedMultiBlockBase;
|
||||
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_EnhancedMultiBlockBase;
|
||||
import gregtech.api.render.TextureFactory;
|
||||
import gregtech.api.util.GTUtility;
|
||||
import gregtech.api.util.MultiblockTooltipBuilder;
|
||||
import gregtech.api.util.shutdown.ShutDownReasonRegistry;
|
||||
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
|
||||
import gregtech.api.util.GT_Utility;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.research.ResearchCategories;
|
||||
@@ -39,7 +38,7 @@ import thaumcraft.common.lib.research.ResearchNoteData;
|
||||
import thaumcraft.common.tiles.TileNode;
|
||||
|
||||
public class GT_MetaTileEntity_ResearchCompleter
|
||||
extends MTEEnhancedMultiBlockBase<GT_MetaTileEntity_ResearchCompleter> {
|
||||
extends GT_MetaTileEntity_EnhancedMultiBlockBase<GT_MetaTileEntity_ResearchCompleter> {
|
||||
|
||||
private static final int CASING_INDEX = 184;
|
||||
private static final int MAX_LENGTH = 13;
|
||||
@@ -84,7 +83,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
||||
1),
|
||||
onElementPass(
|
||||
GT_MetaTileEntity_ResearchCompleter::onCasingFound,
|
||||
ofBlock(GregTechAPI.sBlockCasings8, 8))))
|
||||
ofBlock(GregTech_API.sBlockCasings8, 8))))
|
||||
.addElement(
|
||||
'x',
|
||||
ofChain( // Check for the end but otherwise treat as a skipped spot
|
||||
@@ -210,7 +209,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
||||
|
||||
if (syncTimer <= 0) sendClientAnimationUpdate(aBaseMetaTileEntity, lastNodeDistance, lastNodeColor);
|
||||
|
||||
if (requiredVis > 0) this.stopMachine(ShutDownReasonRegistry.CRITICAL_NONE);
|
||||
if (requiredVis > 0) this.criticalStopMachine();
|
||||
|
||||
return super.onRunningTick(aStack);
|
||||
}
|
||||
@@ -239,7 +238,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
||||
ArrayList<ItemStack> tInputList = this.getStoredInputs();
|
||||
|
||||
for (ItemStack stack : tInputList) {
|
||||
if (GTUtility.isStackValid(stack) && stack.stackSize > 0) {
|
||||
if (GT_Utility.isStackValid(stack) && stack.stackSize > 0) {
|
||||
if (stack.getItem() == ConfigItems.itemResearchNotes
|
||||
&& !stack.stackTagCompound.getBoolean("complete")) {
|
||||
ResearchNoteData noteData = ResearchManager.getData(stack);
|
||||
@@ -249,12 +248,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
||||
|
||||
this.mEfficiency = 10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000;
|
||||
this.mEfficiencyIncrease = 10000;
|
||||
this.calculateOverclockedNessMultiInternal(
|
||||
RECIPE_EUT,
|
||||
RECIPE_LENGTH,
|
||||
1,
|
||||
this.getMaxInputVoltage(),
|
||||
false);
|
||||
this.calculateOverclockedNessMulti(RECIPE_EUT, RECIPE_LENGTH, 1, this.getMaxInputVoltage());
|
||||
if (this.mMaxProgresstime == 2147483646 && this.mEUt == 2147483646) {
|
||||
return false;
|
||||
}
|
||||
@@ -263,7 +257,7 @@ public class GT_MetaTileEntity_ResearchCompleter
|
||||
}
|
||||
|
||||
// Create a completed version of the note to output
|
||||
this.mOutputItems = new ItemStack[] { GTUtility.copyAmount(1, stack) };
|
||||
this.mOutputItems = new ItemStack[] { GT_Utility.copyAmount(1L, stack) };
|
||||
this.mOutputItems[0].stackTagCompound.setBoolean("complete", true);
|
||||
this.mOutputItems[0].setItemDamage(64);
|
||||
stack.stackSize -= 1;
|
||||
@@ -357,8 +351,8 @@ public class GT_MetaTileEntity_ResearchCompleter
|
||||
}
|
||||
|
||||
@Override
|
||||
protected MultiblockTooltipBuilder createTooltip() {
|
||||
MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder();
|
||||
protected GT_Multiblock_Tooltip_Builder createTooltip() {
|
||||
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
|
||||
tt.addMachineType("Research Completer").addInfo("Controller block for the Research Completer")
|
||||
.addInfo("Completes Thaumcraft research notes using EU and Thaumcraft nodes")
|
||||
.addInfo("Place nodes in the center row").addSeparator()
|
||||
|
||||
@@ -9,7 +9,6 @@ import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
||||
import com.gtnewhorizons.modularui.api.drawable.UITexture;
|
||||
import com.gtnewhorizons.modularui.api.forge.InvWrapper;
|
||||
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
||||
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
||||
@@ -21,13 +20,13 @@ import com.gtnewhorizons.modularui.common.widget.TextWidget;
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTTextHelper;
|
||||
import gregtech.api.gui.modularui.GT_UITextures;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
|
||||
public class TileEntityEtherealMacerator extends TileEntityEMT
|
||||
implements ISidedInventory, IWrenchable, ITileWithModularUI {
|
||||
|
||||
private static final UITexture PROGRESSBAR_MACERATE = UITexture.fullImage("gregtech", "gui/progressbar/macerate");
|
||||
private static final int[] slots_top = new int[] { 0 };
|
||||
private static final int[] slots_bottom = new int[] { 2, 1 };
|
||||
private static final int[] slots_sides = new int[] { 1 };
|
||||
@@ -307,7 +306,7 @@ public class TileEntityEtherealMacerator extends TileEntityEMT
|
||||
.setPos(115, 25))
|
||||
.widget(new SlotWidget(invWrapper, 1).setAccess(true, false).setPos(115, 52))
|
||||
.widget(
|
||||
new ProgressBar().setTexture(PROGRESSBAR_MACERATE, 20)
|
||||
new ProgressBar().setTexture(GT_UITextures.PROGRESSBAR_MACERATE, 20)
|
||||
.setProgress(() -> (float) cookTime / maceratingSpeed).setPos(81, 36).setSize(20, 18))
|
||||
.widget(new TextWidget(EMTTextHelper.localize("gui.EMT.etherealMacerator.title")).setPos(6, 6));
|
||||
|
||||
|
||||
@@ -152,9 +152,9 @@ public class TileEntityIndustrialWandRecharge extends TileEntityEMT
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound compound) {
|
||||
super.readFromNBT(compound);
|
||||
NBTTagList nbttaglist = compound.getTagList("Items", 10);
|
||||
public void readFromNBT(NBTTagCompound p_145839_1_) {
|
||||
super.readFromNBT(p_145839_1_);
|
||||
NBTTagList nbttaglist = p_145839_1_.getTagList("Items", 10);
|
||||
this.ItemStacks = new ItemStack[this.getSizeInventory()];
|
||||
|
||||
for (int i = 0; i < nbttaglist.tagCount(); ++i) {
|
||||
@@ -167,13 +167,13 @@ public class TileEntityIndustrialWandRecharge extends TileEntityEMT
|
||||
}
|
||||
|
||||
if (this.energyStored == 0) {
|
||||
this.energyStored = compound.getDouble("Energy");
|
||||
this.energyStored = p_145839_1_.getDouble("Energy");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound compound) {
|
||||
super.writeToNBT(compound);
|
||||
public void writeToNBT(NBTTagCompound p_145841_1_) {
|
||||
super.writeToNBT(p_145841_1_);
|
||||
NBTTagList nbttaglist = new NBTTagList();
|
||||
|
||||
for (int i = 0; i < this.ItemStacks.length; ++i) {
|
||||
@@ -185,8 +185,8 @@ public class TileEntityIndustrialWandRecharge extends TileEntityEMT
|
||||
}
|
||||
}
|
||||
|
||||
compound.setTag("Items", nbttaglist);
|
||||
compound.setDouble("Energy", this.energyStored);
|
||||
p_145841_1_.setTag("Items", nbttaglist);
|
||||
p_145841_1_.setDouble("Energy", this.energyStored);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -14,7 +14,6 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.IFluidHandler;
|
||||
|
||||
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
||||
import com.gtnewhorizons.modularui.api.NumberFormatMUI;
|
||||
import com.gtnewhorizons.modularui.api.drawable.Text;
|
||||
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
||||
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
||||
@@ -29,12 +28,13 @@ import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.TileEntityEMT;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import emt.util.EMTEssentiasOutputs;
|
||||
import gregtech.api.enums.GTValues;
|
||||
import emt.util.EMTTextHelper;
|
||||
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.GTPacketBlockEvent;
|
||||
import gregtech.api.net.GT_Packet_Block_Event;
|
||||
import thaumcraft.api.ThaumcraftApiHelper;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
@@ -64,8 +64,6 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
||||
public byte color;
|
||||
private boolean side;
|
||||
|
||||
protected static final NumberFormatMUI numberFormat = new NumberFormatMUI();
|
||||
|
||||
public TileEntityBaseGenerator(int aspect) {
|
||||
this();
|
||||
switch (aspect) {
|
||||
@@ -239,17 +237,17 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int index, int count) {
|
||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int index) {
|
||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInventorySlotContents(int index, ItemStack stack) {}
|
||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {}
|
||||
|
||||
@Override
|
||||
public boolean hasCustomInventoryName() {
|
||||
@@ -262,7 +260,7 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer player) {
|
||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -434,18 +432,18 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
||||
|
||||
@Override
|
||||
public long getOutputAmperage() {
|
||||
if (this.generating / 20.0D / 20.0D <= GTValues.V[this.energySource.getSourceTier()]) {
|
||||
if (this.generating / 20.0D / 20.0D <= GT_Values.V[this.energySource.getSourceTier()]) {
|
||||
return 1L;
|
||||
}
|
||||
if (this.generating / 20.0D / 20.0D % GTValues.V[this.energySource.getSourceTier()] == 0.0D) {
|
||||
return (long) (this.generating / 20.0D / 20.0D / GTValues.V[this.energySource.getSourceTier()]);
|
||||
if (this.generating / 20.0D / 20.0D % GT_Values.V[this.energySource.getSourceTier()] == 0.0D) {
|
||||
return (long) (this.generating / 20.0D / 20.0D / GT_Values.V[this.energySource.getSourceTier()]);
|
||||
}
|
||||
return (long) (1L + (this.generating / 20.0D / 20.0D / GTValues.V[this.energySource.getSourceTier()]));
|
||||
return (long) (1L + (this.generating / 20.0D / 20.0D / GT_Values.V[this.energySource.getSourceTier()]));
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getOutputVoltage() {
|
||||
return GTValues.V[this.energySource.getSourceTier()];
|
||||
return GT_Values.V[this.energySource.getSourceTier()];
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -843,9 +841,9 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
||||
|
||||
@Override
|
||||
public void sendBlockEvent(byte aID, byte aValue) {
|
||||
GTValues.NW.sendPacketToAllPlayersInRange(
|
||||
GT_Values.NW.sendPacketToAllPlayersInRange(
|
||||
this.worldObj,
|
||||
new GTPacketBlockEvent(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue),
|
||||
new GT_Packet_Block_Event(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue),
|
||||
this.xCoord,
|
||||
this.zCoord);
|
||||
}
|
||||
@@ -892,35 +890,33 @@ public class TileEntityBaseGenerator extends TileEntityEMT implements IInventory
|
||||
.setProgress(() -> (float) fuel / this.maxfuel).setSynced(false, false).setPos(9, 43)
|
||||
.setSize(25, 11))
|
||||
.widget(
|
||||
new TextWidget().setStringSupplier(
|
||||
() -> StatCollector.translateToLocal("emt.Storage") + " "
|
||||
+ numberFormat.formatWithSuffix(storage)
|
||||
+ "/"
|
||||
+ numberFormat.formatWithSuffix(maxstorage)
|
||||
+ " EU")
|
||||
.setDefaultColor(0).setPos(36, 22))
|
||||
TextWidget
|
||||
.dynamicString(
|
||||
() -> StatCollector.translateToLocal("emt.Storage")
|
||||
+ EMTTextHelper.formatNumber(storage)
|
||||
+ "/"
|
||||
+ EMTTextHelper.formatNumber(maxstorage)
|
||||
+ "EU")
|
||||
.setSynced(false).setDefaultColor(0).setPos(36, 22))
|
||||
.widget(new FakeSyncWidget.IntegerSyncer(() -> storage, val -> storage = val))
|
||||
.widget(
|
||||
new TextWidget().setStringSupplier(
|
||||
() -> StatCollector.translateToLocal("emt.Generating") + " "
|
||||
+ numberFormat.formatWithSuffix(isActive ? (long) (generating / 20 / 20) : 0)
|
||||
TextWidget.dynamicString(
|
||||
() -> StatCollector.translateToLocal("emt.Generating")
|
||||
+ (isActive ? generating / 20 / 20 : 0)
|
||||
+ " EU/t")
|
||||
.setDefaultColor(0).setPos(36, 35))
|
||||
.setSynced(false).setDefaultColor(0).setPos(36, 35))
|
||||
.widget(new FakeSyncWidget.DoubleSyncer(() -> generating, val -> generating = val))
|
||||
.widget(new FakeSyncWidget.BooleanSyncer(() -> isActive, val -> isActive = val))
|
||||
.widget(
|
||||
new TextWidget()
|
||||
.setStringSupplier(
|
||||
() -> StatCollector.translateToLocal("emt.Fuel") + ": "
|
||||
+ numberFormat.formatWithSuffix(fuel))
|
||||
.setDefaultColor(0).setPos(36, 48))
|
||||
TextWidget.dynamicString(() -> StatCollector.translateToLocal("emt.Fuel") + ": " + fuel)
|
||||
.setSynced(false).setDefaultColor(0).setPos(36, 48))
|
||||
.widget(new FakeSyncWidget.ByteSyncer(() -> fuel, val -> fuel = val))
|
||||
.widget(
|
||||
new TextWidget()
|
||||
.setStringSupplier(
|
||||
() -> StatCollector.translateToLocal("emt.remaining_second") + " "
|
||||
+ numberFormat.format(((fuel * 20 * 20) - tick) / 20))
|
||||
.setDefaultColor(0).setPos(36, 63))
|
||||
TextWidget
|
||||
.dynamicString(
|
||||
() -> StatCollector.translateToLocal("emt.remaining_second")
|
||||
+ ((fuel * 20 * 20) - tick) / 20)
|
||||
.setSynced(false).setDefaultColor(0).setPos(36, 63))
|
||||
.widget(new FakeSyncWidget.IntegerSyncer(() -> tick, val -> tick = val));
|
||||
|
||||
return builder.build();
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
package emt.tile.solar;
|
||||
|
||||
import static gregtech.api.recipe.RecipeMaps.chemicalBathRecipes;
|
||||
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
|
||||
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
|
||||
import static thaumcraft.api.aspects.Aspect.*;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import emt.block.BlockSolars;
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.item.block.ItemBlockSolars;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import gregtech.api.enums.GTValues;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.TierEU;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
@@ -140,7 +136,7 @@ public enum Solars {
|
||||
public static void registerReverseRecipes() {
|
||||
for (Solars s : Solars.values()) {
|
||||
if (s.aspect != null) {
|
||||
GTValues.RA.stdBuilder().itemInputs(new ItemStack(EMTBlocks.solars[s.instance], 1, s.meta))
|
||||
GT_Values.RA.stdBuilder().itemInputs(new ItemStack(EMTBlocks.solars[s.instance], 1, s.meta))
|
||||
.fluidInputs(Materials.Chlorine.getGas(1000))
|
||||
.itemOutputs(
|
||||
new ItemStack(
|
||||
@@ -206,18 +202,4 @@ public enum Solars {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Block[] registerBlocks() {
|
||||
Block[] solars = new Block[getCountOfInstances()];
|
||||
for (int i = 0; i < solars.length; i++) {
|
||||
if (i == 0) {
|
||||
solars[i] = new BlockSolars("solar", Solars.getCountOfMetas(i), i);
|
||||
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars");
|
||||
} else {
|
||||
solars[i] = new BlockSolars("solar" + (i + 1), Solars.getCountOfMetas(i), i);
|
||||
GameRegistry.registerBlock(solars[i], ItemBlockSolars.class, "EMTSolars" + (i + 1));
|
||||
}
|
||||
}
|
||||
return solars;
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,6 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.IFluidHandler;
|
||||
|
||||
import com.gtnewhorizons.modularui.api.ModularUITextures;
|
||||
import com.gtnewhorizons.modularui.api.NumberFormatMUI;
|
||||
import com.gtnewhorizons.modularui.api.drawable.Text;
|
||||
import com.gtnewhorizons.modularui.api.screen.ITileWithModularUI;
|
||||
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
|
||||
@@ -29,12 +28,13 @@ import emt.client.gui.EMT_UITextures;
|
||||
import emt.init.EMTBlocks;
|
||||
import emt.tile.DefinitelyNotAIC2Source;
|
||||
import emt.tile.TileEntityEMT;
|
||||
import gregtech.api.enums.GTValues;
|
||||
import emt.util.EMTTextHelper;
|
||||
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.GTPacketBlockEvent;
|
||||
import gregtech.api.net.GT_Packet_Block_Event;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.visnet.VisNetHandler;
|
||||
@@ -68,8 +68,6 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
protected boolean side;
|
||||
private int instance, meta;
|
||||
|
||||
protected static NumberFormatMUI numberFormat = new NumberFormatMUI();
|
||||
|
||||
public TileEntitySolarBase(double output, Aspect aspect, String guiname, int instance, int meta) {
|
||||
this.tick = 10;
|
||||
this.storage = 0;
|
||||
@@ -102,10 +100,10 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
}
|
||||
|
||||
private int getTierFromCapacity(long capacity) {
|
||||
for (int i = 0; i < GTValues.V.length; i++) {
|
||||
if (capacity / 1000 < GTValues.V[i]) return i;
|
||||
for (int i = 0; i < GT_Values.V.length; i++) {
|
||||
if (capacity / 1000 < GT_Values.V[i]) return i;
|
||||
}
|
||||
return GTValues.V.length - 1;
|
||||
return GT_Values.V.length - 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -310,17 +308,17 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int index, int count) {
|
||||
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int index) {
|
||||
public ItemStack getStackInSlotOnClosing(int p_70304_1_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInventorySlotContents(int index, ItemStack stack) {}
|
||||
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_) {}
|
||||
|
||||
@Override
|
||||
public boolean hasCustomInventoryName() {
|
||||
@@ -338,7 +336,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer player) {
|
||||
public boolean isUseableByPlayer(EntityPlayer p_70300_1_) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -353,7 +351,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int index, ItemStack stack) {
|
||||
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -424,11 +422,11 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
long[] voltAmp = new long[2];
|
||||
voltAmp[0] = getOutputVoltage();
|
||||
long generating = (long) Math.floor(output * getMaxMulti());
|
||||
if (generating <= GTValues.V[energySource.getSourceTier()]) {
|
||||
if (generating <= GT_Values.V[energySource.getSourceTier()]) {
|
||||
voltAmp[1] = 1L;
|
||||
} else if (generating % GTValues.V[energySource.getSourceTier()] == 0.0D) {
|
||||
voltAmp[1] = (generating / GTValues.V[energySource.getSourceTier()]);
|
||||
} else voltAmp[1] = (1L + (generating / GTValues.V[energySource.getSourceTier()]));
|
||||
} else if (generating % GT_Values.V[energySource.getSourceTier()] == 0.0D) {
|
||||
voltAmp[1] = (generating / GT_Values.V[energySource.getSourceTier()]);
|
||||
} else voltAmp[1] = (1L + (generating / GT_Values.V[energySource.getSourceTier()]));
|
||||
return voltAmp;
|
||||
}
|
||||
|
||||
@@ -437,28 +435,28 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
return calculateMaxVoltAmp()[1];
|
||||
// long ret;
|
||||
// if (this.energySource.getSourceTier() <= 4) {
|
||||
// if (this.generating <= GTValues.V[this.energySource.getSourceTier() - 2]) {
|
||||
// if (this.generating <= GT_Values.V[this.energySource.getSourceTier() - 2]) {
|
||||
// ret = 1L;
|
||||
// }
|
||||
// if (this.generating % GTValues.V[this.energySource.getSourceTier() - 2] == 0.0D) {
|
||||
// ret = (long) (this.generating / GTValues.V[this.energySource.getSourceTier() - 2]);
|
||||
// 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 / GTValues.V[this.energySource.getSourceTier() - 2]));
|
||||
// ret = (long) (1L + (this.generating / GT_Values.V[this.energySource.getSourceTier() - 2]));
|
||||
// } else {
|
||||
// if (this.generating <= GTValues.V[this.energySource.getSourceTier() - 1]) {
|
||||
// if (this.generating <= GT_Values.V[this.energySource.getSourceTier() - 1]) {
|
||||
// ret = 1L;
|
||||
// }
|
||||
// if (this.generating % GTValues.V[this.energySource.getSourceTier()] == 0.0D) {
|
||||
// ret = (long) (this.generating / GTValues.V[this.energySource.getSourceTier() - 1]);
|
||||
// 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 / GTValues.V[this.energySource.getSourceTier() - 1]));
|
||||
// ret = (long) (1L + (this.generating / GT_Values.V[this.energySource.getSourceTier() - 1]));
|
||||
// }
|
||||
// return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getOutputVoltage() {
|
||||
return GTValues.V[this.energySource.getSourceTier()];
|
||||
return GT_Values.V[this.energySource.getSourceTier()];
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -856,9 +854,9 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
|
||||
@Override
|
||||
public void sendBlockEvent(byte aID, byte aValue) {
|
||||
GTValues.NW.sendPacketToAllPlayersInRange(
|
||||
GT_Values.NW.sendPacketToAllPlayersInRange(
|
||||
this.worldObj,
|
||||
new GTPacketBlockEvent(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue),
|
||||
new GT_Packet_Block_Event(this.xCoord, (short) this.yCoord, this.zCoord, aID, aValue),
|
||||
this.xCoord,
|
||||
this.zCoord);
|
||||
}
|
||||
@@ -905,20 +903,16 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
.setProgress(() -> generating > 9 ? 1f : 0f).setSynced(false, false).setPos(9, 43)
|
||||
.setSize(11, 11))
|
||||
.widget(
|
||||
new TextWidget().setStringSupplier(
|
||||
() -> StatCollector.translateToLocal("emt.Storage") + " "
|
||||
+ numberFormat.formatWithSuffix(storage)
|
||||
+ "/"
|
||||
+ numberFormat.formatWithSuffix(maxstorage)
|
||||
+ " EU")
|
||||
.setDefaultColor(0).setPos(36, 22))
|
||||
TextWidget.dynamicString(
|
||||
() -> StatCollector.translateToLocal("emt.Storage") + EMTTextHelper
|
||||
.formatNumber(storage) + "/" + EMTTextHelper.formatNumber(maxstorage) + "EU")
|
||||
.setSynced(false).setDefaultColor(0).setPos(36, 22))
|
||||
.widget(new FakeSyncWidget.LongSyncer(() -> storage, val -> storage = val))
|
||||
.widget(
|
||||
new TextWidget().setStringSupplier(
|
||||
() -> StatCollector.translateToLocal("emt.Generating") + " "
|
||||
+ numberFormat.formatWithSuffix((long) generating)
|
||||
+ " EU/t")
|
||||
.setDefaultColor(0).setPos(36, 35))
|
||||
TextWidget
|
||||
.dynamicString(
|
||||
() -> StatCollector.translateToLocal("emt.Generating") + generating + " EU/t")
|
||||
.setSynced(false).setDefaultColor(0).setPos(36, 35))
|
||||
.widget(new FakeSyncWidget.DoubleSyncer(() -> generating, val -> generating = val));
|
||||
|
||||
return builder.build();
|
||||
|
||||
@@ -7,6 +7,9 @@ import java.util.List;
|
||||
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import emt.gthandler.common.loader.EMT_GT_Loader;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
|
||||
/**
|
||||
* TODO: Need to rewrite...
|
||||
**/
|
||||
@@ -52,7 +55,6 @@ public class EMTConfigHandler {
|
||||
public static double quantumBootsMaxDrop;
|
||||
|
||||
public static double EssentiaGeneratorStorage;
|
||||
public static int aIDoffset;
|
||||
|
||||
/**
|
||||
* Essentias
|
||||
@@ -233,11 +235,14 @@ public class EMTConfigHandler {
|
||||
"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);
|
||||
aIDoffset = config.get(
|
||||
VALUES,
|
||||
"aID offset for Gregetch Machinery",
|
||||
12983,
|
||||
"This Mod will use 17 IDs, do not change if you dont know what you are doing!").getInt();
|
||||
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(
|
||||
|
||||
@@ -42,4 +42,16 @@ public class EMTTextHelper {
|
||||
public static String localize(String key) {
|
||||
return StatCollector.translateToLocal(key);
|
||||
}
|
||||
|
||||
public static String formatNumber(long number) {
|
||||
if (number < 10_000) {
|
||||
return String.valueOf(number);
|
||||
} else if (number < 10_000_000) {
|
||||
return (number / 1000) + "k";
|
||||
} else if (number < 1_000_000_000) {
|
||||
return (number / 1_000_000) + "M";
|
||||
} else {
|
||||
return (number / 1_000_000_000) + "G";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user