aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
-rw-r--r--src/main/java/gregtech/api/interfaces/IBlockContainer.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IChunkLoader.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IColorModulationContainer.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/ICondition.java8
-rw-r--r--src/main/java/gregtech/api/interfaces/IConfigurationCircuitSupport.java9
-rw-r--r--src/main/java/gregtech/api/interfaces/IDamagableItem.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IDebugableBlock.java12
-rw-r--r--src/main/java/gregtech/api/interfaces/IDescribable.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java32
-rw-r--r--src/main/java/gregtech/api/interfaces/IFoodStat.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/IGuiIcon.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IGuiScreen.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/IHasFluidDisplayItem.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/IHatchElement.java63
-rw-r--r--src/main/java/gregtech/api/interfaces/IHeatingCoil.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/IIconContainer.java9
-rw-r--r--src/main/java/gregtech/api/interfaces/IItemBehaviour.java45
-rw-r--r--src/main/java/gregtech/api/interfaces/IItemContainer.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/IMaterialHandler.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/INetworkUpdatableItem.java14
-rw-r--r--src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java7
-rw-r--r--src/main/java/gregtech/api/interfaces/IProjectileItem.java14
-rw-r--r--src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java10
-rw-r--r--src/main/java/gregtech/api/interfaces/ISecondaryDescribable.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/ISubTagContainer.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/ITexture.java9
-rw-r--r--src/main/java/gregtech/api/interfaces/ITextureBuilder.java26
-rw-r--r--src/main/java/gregtech/api/interfaces/IToolStats.java40
-rw-r--r--src/main/java/gregtech/api/interfaces/covers/IControlsWorkCover.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java9
-rw-r--r--src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java18
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IBCTileEntity.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IGT_CraftingRecipe.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java10
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java1027
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IIC2TileEntity.java3
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java66
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IUETileEntity.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java5
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java171
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java38
-rw-r--r--src/main/java/gregtech/api/interfaces/modularui/IAddGregtechLogo.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/modularui/IAddInventorySlots.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/modularui/IAddUIWidgets.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/modularui/IGetGUITextureSet.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/modularui/IGetTitleColor.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java20
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java5
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java22
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IDebugableTileEntity.java9
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java14
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java27
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java55
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java9
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java11
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java60
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java17
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java14
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java16
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IIC2Enet.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java11
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java14
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IRedstoneEmitter.java11
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/ITurnable.java1
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IUpgradableMachine.java1
77 files changed, 813 insertions, 1224 deletions
diff --git a/src/main/java/gregtech/api/interfaces/IBlockContainer.java b/src/main/java/gregtech/api/interfaces/IBlockContainer.java
index 89bda5de12..5a80655a5c 100644
--- a/src/main/java/gregtech/api/interfaces/IBlockContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IBlockContainer.java
@@ -3,6 +3,7 @@ package gregtech.api.interfaces;
import net.minecraft.block.Block;
public interface IBlockContainer {
+
Block getBlock();
byte getMeta();
diff --git a/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java b/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java
index 50f6cce5d9..0c8fce931b 100644
--- a/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java
+++ b/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java
@@ -4,5 +4,6 @@ import net.minecraft.entity.EntityLivingBase;
import net.minecraft.world.World;
public interface IBlockOnWalkOver {
+
void onWalkOver(EntityLivingBase aEntity, World aWorld, int aX, int aY, int aZ);
}
diff --git a/src/main/java/gregtech/api/interfaces/IChunkLoader.java b/src/main/java/gregtech/api/interfaces/IChunkLoader.java
index adba5e721e..b597d6a71f 100644
--- a/src/main/java/gregtech/api/interfaces/IChunkLoader.java
+++ b/src/main/java/gregtech/api/interfaces/IChunkLoader.java
@@ -4,6 +4,7 @@ import net.minecraft.world.ChunkCoordIntPair;
// This interface is implemented by the machines that actively load a working chunk
public interface IChunkLoader {
+
// return a working chunk coordinates, may be null
ChunkCoordIntPair getActiveChunk();
}
diff --git a/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java b/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java
index d3c312e610..55053e1d12 100644
--- a/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java
@@ -1,5 +1,6 @@
package gregtech.api.interfaces;
public interface IColorModulationContainer {
+
short[] getRGBA();
}
diff --git a/src/main/java/gregtech/api/interfaces/ICondition.java b/src/main/java/gregtech/api/interfaces/ICondition.java
index b29b960650..554cd2df77 100644
--- a/src/main/java/gregtech/api/interfaces/ICondition.java
+++ b/src/main/java/gregtech/api/interfaces/ICondition.java
@@ -1,11 +1,13 @@
package gregtech.api.interfaces;
public interface ICondition<O> {
+
boolean isTrue(O aObject);
// Utility Classes for adding relations between Conditions.
class Not<O> implements ICondition<O> {
+
private final ICondition<O> mCondition;
public Not(ICondition<O> aCondition) {
@@ -19,6 +21,7 @@ public interface ICondition<O> {
}
class Or<O> implements ICondition<O> {
+
private final ICondition<O>[] mConditions;
public Or(ICondition<O>... aConditions) {
@@ -33,6 +36,7 @@ public interface ICondition<O> {
}
class Nor<O> implements ICondition<O> {
+
private final ICondition<O>[] mConditions;
public Nor(ICondition<O>... aConditions) {
@@ -47,6 +51,7 @@ public interface ICondition<O> {
}
class And<O> implements ICondition<O> {
+
private final ICondition<O>[] mConditions;
public And(ICondition<O>... aConditions) {
@@ -61,6 +66,7 @@ public interface ICondition<O> {
}
class Nand<O> implements ICondition<O> {
+
private final ICondition<O>[] mConditions;
public Nand(ICondition<O>... aConditions) {
@@ -75,6 +81,7 @@ public interface ICondition<O> {
}
class Xor<O> implements ICondition<O> {
+
private final ICondition<O> mCondition1, mCondition2;
public Xor(ICondition<O> aCondition1, ICondition<O> aCondition2) {
@@ -89,6 +96,7 @@ public interface ICondition<O> {
}
class Equal<O> implements ICondition<O> {
+
private final ICondition<O> mCondition1, mCondition2;
public Equal(ICondition<O> aCondition1, ICondition<O> aCondition2) {
diff --git a/src/main/java/gregtech/api/interfaces/IConfigurationCircuitSupport.java b/src/main/java/gregtech/api/interfaces/IConfigurationCircuitSupport.java
index b2d32b2fc4..6ec9f68a8b 100644
--- a/src/main/java/gregtech/api/interfaces/IConfigurationCircuitSupport.java
+++ b/src/main/java/gregtech/api/interfaces/IConfigurationCircuitSupport.java
@@ -1,14 +1,17 @@
package gregtech.api.interfaces;
-import gregtech.api.GregTech_API;
import java.util.List;
+
import net.minecraft.item.ItemStack;
+import gregtech.api.GregTech_API;
+
/**
- * Implement this interface if your tileentity (or metatileentity) supports configuration circuits
- * to resolve recipe conflicts.
+ * Implement this interface if your tileentity (or metatileentity) supports configuration circuits to resolve recipe
+ * conflicts.
*/
public interface IConfigurationCircuitSupport {
+
/**
*
* @return Integrated circuit slot index in the machine inventory
diff --git a/src/main/java/gregtech/api/interfaces/IDamagableItem.java b/src/main/java/gregtech/api/interfaces/IDamagableItem.java
index b360556aa3..5f0d53b577 100644
--- a/src/main/java/gregtech/api/interfaces/IDamagableItem.java
+++ b/src/main/java/gregtech/api/interfaces/IDamagableItem.java
@@ -3,5 +3,6 @@ package gregtech.api.interfaces;
import net.minecraft.item.ItemStack;
public interface IDamagableItem {
+
boolean doDamageToItem(ItemStack aStack, int aVanillaDamage);
}
diff --git a/src/main/java/gregtech/api/interfaces/IDebugableBlock.java b/src/main/java/gregtech/api/interfaces/IDebugableBlock.java
index 063f713fe4..9c6ab660bd 100644
--- a/src/main/java/gregtech/api/interfaces/IDebugableBlock.java
+++ b/src/main/java/gregtech/api/interfaces/IDebugableBlock.java
@@ -1,25 +1,23 @@
package gregtech.api.interfaces;
import java.util.ArrayList;
+
import net.minecraft.entity.player.EntityPlayer;
/**
* You are allowed to include this File in your Download, as i will not change it.
*/
public interface IDebugableBlock {
+
/**
- * Returns a Debug Message, for a generic DebugItem
- * Blocks have to implement this interface NOT TileEntities!
+ * Returns a Debug Message, for a generic DebugItem Blocks have to implement this interface NOT TileEntities!
*
* @param aPlayer the Player, who rightclicked with his Debug Item
* @param aX Block-Coordinate
* @param aY Block-Coordinate
* @param aZ Block-Coordinate
- * @param aLogLevel the Log Level of the Debug Item.
- * 0 = Obvious
- * 1 = Visible for the regular Scanner
- * 2 = Only visible to more advanced Scanners
- * 3 = Debug ONLY
+ * @param aLogLevel the Log Level of the Debug Item. 0 = Obvious 1 = Visible for the regular Scanner 2 = Only
+ * visible to more advanced Scanners 3 = Debug ONLY
* @return a String-Array containing the DebugInfo, every Index is a separate line (0 = first Line)
*/
ArrayList<String> getDebugInfo(EntityPlayer aPlayer, int aX, int aY, int aZ, int aLogLevel);
diff --git a/src/main/java/gregtech/api/interfaces/IDescribable.java b/src/main/java/gregtech/api/interfaces/IDescribable.java
index 3e72f587db..21bb520482 100644
--- a/src/main/java/gregtech/api/interfaces/IDescribable.java
+++ b/src/main/java/gregtech/api/interfaces/IDescribable.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces;
* To get simple things like a ToolTip Description
*/
public interface IDescribable {
+
/**
* The Tooltip Text
*/
diff --git a/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java b/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java
index 53b3a2b059..3527b2e60d 100644
--- a/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java
+++ b/src/main/java/gregtech/api/interfaces/IDragAndDropSupport.java
@@ -1,14 +1,16 @@
package gregtech.api.interfaces;
+import java.util.Collections;
+import java.util.List;
+
+import net.minecraft.client.gui.inventory.GuiContainer;
+import net.minecraft.item.ItemStack;
+
import codechicken.nei.NEIClientUtils;
import codechicken.nei.VisiblityData;
import codechicken.nei.api.INEIGuiHandler;
import codechicken.nei.api.TaggedInventoryArea;
import cpw.mods.fml.common.Optional;
-import java.util.Collections;
-import java.util.List;
-import net.minecraft.client.gui.inventory.GuiContainer;
-import net.minecraft.item.ItemStack;
/**
* Implement this interface if your GuiContainer supports Drag-And-Drop behavior on NEI.
@@ -17,19 +19,21 @@ import net.minecraft.item.ItemStack;
public interface IDragAndDropSupport extends INEIGuiHandler {
/**
- * Implement this to handle Drag-And-Drop behavior.
- * This may be invoked on normal click too ({@code isGhost==false}), so be careful
- * if your slot supports both Drag-And-Drop and other behaviors e.g. fluid I/O with FluidDisplay click
- * @param gui Current gui instance. Make sure to check if it is an instance of your GuiContainer.
- * @param mousex X position of the mouse
- * @param mousey Y position of the mouse
+ * Implement this to handle Drag-And-Drop behavior. This may be invoked on normal click too
+ * ({@code isGhost==false}), so be careful if your slot supports both Drag-And-Drop and other behaviors e.g. fluid
+ * I/O with FluidDisplay click
+ *
+ * @param gui Current gui instance. Make sure to check if it is an instance of your GuiContainer.
+ * @param mousex X position of the mouse
+ * @param mousey Y position of the mouse
* @param draggedStack ItemStack user is holding on cursor
- * @param button 0 = left click, 1 = right click
- * @param isGhost Whether {@code draggedStack} is dragged from ItemPanel/BookmarkPanel, or actual item player holds
+ * @param button 0 = left click, 1 = right click
+ * @param isGhost Whether {@code draggedStack} is dragged from ItemPanel/BookmarkPanel, or actual item player
+ * holds
* @return True if success
*/
- boolean handleDragAndDropGT(
- GuiContainer gui, int mousex, int mousey, ItemStack draggedStack, int button, boolean isGhost);
+ boolean handleDragAndDropGT(GuiContainer gui, int mousex, int mousey, ItemStack draggedStack, int button,
+ boolean isGhost);
default boolean handleDragNDrop(GuiContainer gui, int mousex, int mousey, ItemStack draggedStack, int button) {
return handleDragAndDropGT(gui, mousex, mousey, draggedStack, button, NEIClientUtils.getHeldItem() == null);
diff --git a/src/main/java/gregtech/api/interfaces/IFoodStat.java b/src/main/java/gregtech/api/interfaces/IFoodStat.java
index 4f4c696e12..c768c5ca1c 100644
--- a/src/main/java/gregtech/api/interfaces/IFoodStat.java
+++ b/src/main/java/gregtech/api/interfaces/IFoodStat.java
@@ -1,11 +1,13 @@
package gregtech.api.interfaces;
-import gregtech.api.items.GT_MetaBase_Item;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
+import gregtech.api.items.GT_MetaBase_Item;
+
public interface IFoodStat {
+
/**
* Warning the "aPlayer" Parameter may be null!
*/
diff --git a/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java b/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java
index 91ada956bf..29b32b5d3b 100644
--- a/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java
+++ b/src/main/java/gregtech/api/interfaces/IGlobalWirelessEnergy.java
@@ -2,11 +2,13 @@ package gregtech.api.interfaces;
import static gregtech.common.misc.GlobalVariableStorage.*;
-import gregtech.common.misc.GlobalEnergyWorldSavedData;
import java.math.BigInteger;
import java.util.UUID;
+
import net.minecraft.entity.player.EntityPlayer;
+import gregtech.common.misc.GlobalEnergyWorldSavedData;
+
// If you are adding very late-game content feel free to tap into this interface.
// The eventual goal is to bypass laser/dynamo stuff and have energy deposited directly from ultra-endgame
// multi-blocks directly into the users network.
diff --git a/src/main/java/gregtech/api/interfaces/IGuiIcon.java b/src/main/java/gregtech/api/interfaces/IGuiIcon.java
index 3204c35b4e..0bc7408250 100644
--- a/src/main/java/gregtech/api/interfaces/IGuiIcon.java
+++ b/src/main/java/gregtech/api/interfaces/IGuiIcon.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces;
* To allow addons to make use of GT_GuiIcon
*/
public interface IGuiIcon {
+
int getX();
int getY();
diff --git a/src/main/java/gregtech/api/interfaces/IGuiScreen.java b/src/main/java/gregtech/api/interfaces/IGuiScreen.java
index 2f12781a77..c33838fc7f 100644
--- a/src/main/java/gregtech/api/interfaces/IGuiScreen.java
+++ b/src/main/java/gregtech/api/interfaces/IGuiScreen.java
@@ -1,13 +1,15 @@
package gregtech.api.interfaces;
-import gregtech.api.gui.widgets.GT_GuiTooltip;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.renderer.entity.RenderItem;
+import gregtech.api.gui.widgets.GT_GuiTooltip;
+
public interface IGuiScreen {
interface IGuiElement {
+
void onInit();
default void onRemoved() {}
diff --git a/src/main/java/gregtech/api/interfaces/IHasFluidDisplayItem.java b/src/main/java/gregtech/api/interfaces/IHasFluidDisplayItem.java
index dc844b8a85..59bac8296b 100644
--- a/src/main/java/gregtech/api/interfaces/IHasFluidDisplayItem.java
+++ b/src/main/java/gregtech/api/interfaces/IHasFluidDisplayItem.java
@@ -1,5 +1,6 @@
package gregtech.api.interfaces;
public interface IHasFluidDisplayItem {
+
void updateFluidDisplayItem();
}
diff --git a/src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java b/src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java
index 7401d35323..ed31984b6e 100644
--- a/src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java
+++ b/src/main/java/gregtech/api/interfaces/IHasIndexedTexture.java
@@ -4,10 +4,12 @@ package gregtech.api.interfaces;
* To be implemented on blocks. Usually machine casing blocks.
*/
public interface IHasIndexedTexture {
+
/**
* Returns the statically mapped texture for this casing. Return
* {@link gregtech.api.enums.Textures.BlockIcons#ERROR_TEXTURE_INDEX} if meta maps to a nonexistent block, or the
* block does not have a statically mapped texture.
+ *
* @param aMeta block meta
* @return texture index into {@link gregtech.api.enums.Textures.BlockIcons#casingTexturePages}
*/
diff --git a/src/main/java/gregtech/api/interfaces/IHatchElement.java b/src/main/java/gregtech/api/interfaces/IHatchElement.java
index 276a7a1a9c..254d9562c2 100644
--- a/src/main/java/gregtech/api/interfaces/IHatchElement.java
+++ b/src/main/java/gregtech/api/interfaces/IHatchElement.java
@@ -1,19 +1,23 @@
package gregtech.api.interfaces;
-import com.google.common.collect.ImmutableList;
-import com.gtnewhorizon.structurelib.structure.IStructureElement;
-import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-import gregtech.api.util.GT_StructureUtility;
-import gregtech.api.util.IGT_HatchAdder;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.BiPredicate;
import java.util.function.ToLongFunction;
+
import net.minecraftforge.common.util.ForgeDirection;
+import com.google.common.collect.ImmutableList;
+import com.gtnewhorizon.structurelib.structure.IStructureElement;
+
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_StructureUtility;
+import gregtech.api.util.IGT_HatchAdder;
+
public interface IHatchElement<T> {
+
List<? extends Class<? extends IMetaTileEntity>> mteClasses();
IGT_HatchAdder<? super T> adder();
@@ -55,35 +59,21 @@ public interface IHatchElement<T> {
default <T2 extends T> IStructureElement<T2> newAny(int aCasingIndex, int aDot) {
if (aCasingIndex < 0 || aDot < 0) throw new IllegalArgumentException();
- return GT_StructureUtility.<T2>buildHatchAdder()
- .anyOf(this)
- .casingIndex(aCasingIndex)
- .dot(aDot)
- .continueIfSuccess()
- .build();
+ return GT_StructureUtility.<T2>buildHatchAdder().anyOf(this).casingIndex(aCasingIndex).dot(aDot)
+ .continueIfSuccess().build();
}
default <T2 extends T> IStructureElement<T2> newAny(int aCasingIndex, int aDot, ForgeDirection... allowedFacings) {
if (aCasingIndex < 0 || aDot < 0) throw new IllegalArgumentException();
- return GT_StructureUtility.<T2>buildHatchAdder()
- .anyOf(this)
- .casingIndex(aCasingIndex)
- .dot(aDot)
- .continueIfSuccess()
- .allowOnly(allowedFacings)
- .build();
+ return GT_StructureUtility.<T2>buildHatchAdder().anyOf(this).casingIndex(aCasingIndex).dot(aDot)
+ .continueIfSuccess().allowOnly(allowedFacings).build();
}
- default <T2 extends T> IStructureElement<T2> newAny(
- int aCasingIndex, int aDot, BiPredicate<? super T2, ? super IGregTechTileEntity> aShouldSkip) {
+ default <T2 extends T> IStructureElement<T2> newAny(int aCasingIndex, int aDot,
+ BiPredicate<? super T2, ? super IGregTechTileEntity> aShouldSkip) {
if (aCasingIndex < 0 || aDot < 0 || aShouldSkip == null) throw new IllegalArgumentException();
- return GT_StructureUtility.<T2>buildHatchAdder()
- .anyOf(this)
- .casingIndex(aCasingIndex)
- .dot(aDot)
- .shouldSkip(aShouldSkip)
- .continueIfSuccess()
- .build();
+ return GT_StructureUtility.<T2>buildHatchAdder().anyOf(this).casingIndex(aCasingIndex).dot(aDot)
+ .shouldSkip(aShouldSkip).continueIfSuccess().build();
}
default <T2 extends T> IHatchElement<T2> or(IHatchElement<? super T2> fallback) {
@@ -92,6 +82,7 @@ public interface IHatchElement<T> {
}
class HatchElementEither<T> implements IHatchElement<T> {
+
private final IHatchElement<? super T> first, second;
private ImmutableList<? extends Class<? extends IMetaTileEntity>> mMteClasses;
private String name;
@@ -103,11 +94,8 @@ class HatchElementEither<T> implements IHatchElement<T> {
@Override
public List<? extends Class<? extends IMetaTileEntity>> mteClasses() {
- if (mMteClasses == null)
- mMteClasses = ImmutableList.<Class<? extends IMetaTileEntity>>builder()
- .addAll(first.mteClasses())
- .addAll(second.mteClasses())
- .build();
+ if (mMteClasses == null) mMteClasses = ImmutableList.<Class<? extends IMetaTileEntity>>builder()
+ .addAll(first.mteClasses()).addAll(second.mteClasses()).build();
return mMteClasses;
}
@@ -129,18 +117,15 @@ class HatchElementEither<T> implements IHatchElement<T> {
}
class HatchElement<T> implements IHatchElement<T> {
+
private final List<Class<? extends IMetaTileEntity>> mClasses;
private final IGT_HatchAdder<? super T> mAdder;
private final String mName;
private final IHatchElement<? super T> mBacking;
private final ToLongFunction<? super T> mCount;
- public HatchElement(
- List<Class<? extends IMetaTileEntity>> aMteClasses,
- IGT_HatchAdder<? super T> aAdder,
- String aName,
- ToLongFunction<? super T> aCount,
- IHatchElement<? super T> aBacking) {
+ public HatchElement(List<Class<? extends IMetaTileEntity>> aMteClasses, IGT_HatchAdder<? super T> aAdder,
+ String aName, ToLongFunction<? super T> aCount, IHatchElement<? super T> aBacking) {
this.mClasses = aMteClasses;
this.mAdder = aAdder;
this.mName = aName;
diff --git a/src/main/java/gregtech/api/interfaces/IHeatingCoil.java b/src/main/java/gregtech/api/interfaces/IHeatingCoil.java
index f30145165b..37f7969d56 100644
--- a/src/main/java/gregtech/api/interfaces/IHeatingCoil.java
+++ b/src/main/java/gregtech/api/interfaces/IHeatingCoil.java
@@ -1,9 +1,11 @@
package gregtech.api.interfaces;
-import gregtech.api.enums.HeatingCoilLevel;
import java.util.function.Consumer;
+
import net.minecraft.item.ItemStack;
+import gregtech.api.enums.HeatingCoilLevel;
+
public interface IHeatingCoil {
HeatingCoilLevel getCoilHeat(int meta);
diff --git a/src/main/java/gregtech/api/interfaces/IIconContainer.java b/src/main/java/gregtech/api/interfaces/IIconContainer.java
index 8090ce7cb9..fbb9e53519 100644
--- a/src/main/java/gregtech/api/interfaces/IIconContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IIconContainer.java
@@ -2,12 +2,14 @@ package gregtech.api.interfaces;
import static gregtech.api.enums.GT_Values.UNCOLORED_RBGA;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
public interface IIconContainer {
+
/**
* @return A regular Icon.
*/
@@ -26,8 +28,7 @@ public interface IIconContainer {
@SideOnly(Side.CLIENT)
default int getIconPasses() {
return 1;
- }
- ;
+ };
/**
* @return the Default Texture File for this Icon.
diff --git a/src/main/java/gregtech/api/interfaces/IItemBehaviour.java b/src/main/java/gregtech/api/interfaces/IItemBehaviour.java
index 9a513c2af5..33e5db783a 100644
--- a/src/main/java/gregtech/api/interfaces/IItemBehaviour.java
+++ b/src/main/java/gregtech/api/interfaces/IItemBehaviour.java
@@ -1,8 +1,7 @@
package gregtech.api.interfaces;
-import gregtech.api.enums.SubTag;
-import gregtech.api.items.GT_MetaBase_Item;
import java.util.List;
+
import net.minecraft.dispenser.IBlockSource;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
@@ -12,34 +11,18 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
+import gregtech.api.enums.SubTag;
+import gregtech.api.items.GT_MetaBase_Item;
+
public interface IItemBehaviour<E extends Item> {
+
boolean onLeftClickEntity(E aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity);
- boolean onItemUse(
- E aItem,
- ItemStack aStack,
- EntityPlayer aPlayer,
- World aWorld,
- int aX,
- int aY,
- int aZ,
- int aSide,
- float hitX,
- float hitY,
- float hitZ);
-
- boolean onItemUseFirst(
- E aItem,
- ItemStack aStack,
- EntityPlayer aPlayer,
- World aWorld,
- int aX,
- int aY,
- int aZ,
- int aSide,
- float hitX,
- float hitY,
- float hitZ);
+ boolean onItemUse(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide,
+ float hitX, float hitY, float hitZ);
+
+ boolean onItemUseFirst(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ,
+ int aSide, float hitX, float hitY, float hitZ);
ItemStack onItemRightClick(E aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer);
@@ -55,9 +38,9 @@ public interface IItemBehaviour<E extends Item> {
boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack);
- EntityArrow getProjectile(
- E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ);
+ EntityArrow getProjectile(E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY,
+ double aZ);
- EntityArrow getProjectile(
- E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed);
+ EntityArrow getProjectile(E aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity,
+ float aSpeed);
}
diff --git a/src/main/java/gregtech/api/interfaces/IItemContainer.java b/src/main/java/gregtech/api/interfaces/IItemContainer.java
index 36363b8da1..de94606e95 100644
--- a/src/main/java/gregtech/api/interfaces/IItemContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IItemContainer.java
@@ -5,6 +5,7 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public interface IItemContainer {
+
Item getItem();
Block getBlock();
diff --git a/src/main/java/gregtech/api/interfaces/IMaterialHandler.java b/src/main/java/gregtech/api/interfaces/IMaterialHandler.java
index 9ca97981bf..b26951121b 100644
--- a/src/main/java/gregtech/api/interfaces/IMaterialHandler.java
+++ b/src/main/java/gregtech/api/interfaces/IMaterialHandler.java
@@ -3,6 +3,7 @@ package gregtech.api.interfaces;
import gregtech.api.enums.Materials;
public interface IMaterialHandler {
+
void onMaterialsInit();
void onComponentInit();
diff --git a/src/main/java/gregtech/api/interfaces/INetworkUpdatableItem.java b/src/main/java/gregtech/api/interfaces/INetworkUpdatableItem.java
index de251017a1..b7e7b0ce33 100644
--- a/src/main/java/gregtech/api/interfaces/INetworkUpdatableItem.java
+++ b/src/main/java/gregtech/api/interfaces/INetworkUpdatableItem.java
@@ -5,19 +5,21 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
/**
- * Together with {@link gregtech.api.net.GT_Packet_UpdateItem} you can request server side to update item in hand with
- * a NBT tag.
+ * Together with {@link gregtech.api.net.GT_Packet_UpdateItem} you can request server side to update item in hand with a
+ * NBT tag.
*
* Usual NBT tag size limit applies.
*/
public interface INetworkUpdatableItem {
+
/**
* Receive update from client. Runs on server thread.
- * @param stack Stack being updated
+ *
+ * @param stack Stack being updated
* @param player player holding the stack
- * @param tag received data
- * @return true if this stack should be kept inside the player inventory.
- * false if this stack should vanish (i.e. slot content set to null)
+ * @param tag received data
+ * @return true if this stack should be kept inside the player inventory. false if this stack should vanish (i.e.
+ * slot content set to null)
*/
boolean receive(ItemStack stack, EntityPlayerMP player, NBTTagCompound tag);
}
diff --git a/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java b/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java
index 322586dc90..714342ae7e 100644
--- a/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java
+++ b/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java
@@ -1,12 +1,15 @@
package gregtech.api.interfaces;
+import net.minecraft.item.ItemStack;
+
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
-import net.minecraft.item.ItemStack;
public interface IOreRecipeRegistrator {
+
/**
- * Contains a Code Fragment, used in the OrePrefix to register Recipes. Better than using a switch/case, like I did before.
+ * Contains a Code Fragment, used in the OrePrefix to register Recipes. Better than using a switch/case, like I did
+ * before.
*
* @param aPrefix always != null
* @param aMaterial always != null, and can be == _NULL if the Prefix is Self Referencing or not Material based!
diff --git a/src/main/java/gregtech/api/interfaces/IProjectileItem.java b/src/main/java/gregtech/api/interfaces/IProjectileItem.java
index 9441e2991b..a1cfb7f4d1 100644
--- a/src/main/java/gregtech/api/interfaces/IProjectileItem.java
+++ b/src/main/java/gregtech/api/interfaces/IProjectileItem.java
@@ -1,25 +1,29 @@
package gregtech.api.interfaces;
-import gregtech.api.enums.SubTag;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
+import gregtech.api.enums.SubTag;
+
public interface IProjectileItem {
+
/**
* @return if this Item has an Arrow Entity
*/
boolean hasProjectile(SubTag aProjectileType, ItemStack aStack);
/**
- * @return an Arrow Entity to be spawned. If null then this is not an Arrow. Note: Other Projectiles still extend EntityArrow
+ * @return an Arrow Entity to be spawned. If null then this is not an Arrow. Note: Other Projectiles still extend
+ * EntityArrow
*/
EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ);
/**
- * @return an Arrow Entity to be spawned. If null then this is not an Arrow. Note: Other Projectiles still extend EntityArrow
+ * @return an Arrow Entity to be spawned. If null then this is not an Arrow. Note: Other Projectiles still extend
+ * EntityArrow
*/
- EntityArrow getProjectile(
- SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed);
+ EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity,
+ float aSpeed);
}
diff --git a/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java b/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java
index 73a81cc74b..91219368b7 100644
--- a/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java
+++ b/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java
@@ -1,14 +1,16 @@
package gregtech.api.interfaces;
-import gregtech.api.interfaces.tileentity.ICoverable;
-import gregtech.api.util.GT_CoverBehavior;
import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+
/**
* Implemented by the MetaTileEntity of the Redstone Circuit Block
*/
public interface IRedstoneCircuitBlock {
+
/**
* The Output Direction the Circuit Block is Facing
*/
@@ -20,8 +22,8 @@ public interface IRedstoneCircuitBlock {
boolean setRedstone(byte aStrength, byte aSide);
/**
- * returns Output Redstone State at Side
- * Note that setRedstone checks if there is a Difference between the old and the new Setting before consuming any Energy
+ * returns Output Redstone State at Side Note that setRedstone checks if there is a Difference between the old and
+ * the new Setting before consuming any Energy
*/
byte getOutputRedstone(byte aSide);
diff --git a/src/main/java/gregtech/api/interfaces/ISecondaryDescribable.java b/src/main/java/gregtech/api/interfaces/ISecondaryDescribable.java
index 9c3c9ed219..1f480091fc 100644
--- a/src/main/java/gregtech/api/interfaces/ISecondaryDescribable.java
+++ b/src/main/java/gregtech/api/interfaces/ISecondaryDescribable.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces;
* To get a tooltip with a secondary description
*/
public interface ISecondaryDescribable extends IDescribable {
+
/**
* Convenient to call when overriding the `String[] getDescription()` method.
*/
diff --git a/src/main/java/gregtech/api/interfaces/ISubTagContainer.java b/src/main/java/gregtech/api/interfaces/ISubTagContainer.java
index e067579a1d..3e3690c67b 100644
--- a/src/main/java/gregtech/api/interfaces/ISubTagContainer.java
+++ b/src/main/java/gregtech/api/interfaces/ISubTagContainer.java
@@ -3,6 +3,7 @@ package gregtech.api.interfaces;
import gregtech.api.enums.SubTag;
public interface ISubTagContainer {
+
/**
* @return if the Tag is inside the List.
*/
diff --git a/src/main/java/gregtech/api/interfaces/ITexture.java b/src/main/java/gregtech/api/interfaces/ITexture.java
index e2445a8204..e97fa4539a 100644
--- a/src/main/java/gregtech/api/interfaces/ITexture.java
+++ b/src/main/java/gregtech/api/interfaces/ITexture.java
@@ -5,6 +5,7 @@ import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
public interface ITexture {
+
void renderXPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
void renderXNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
@@ -28,10 +29,11 @@ public interface ITexture {
/**
* Will initialize the {@link Tessellator} if rendering off-world (Inventory)
+ *
* @param aRenderer The {@link RenderBlocks} Renderer
- * @param aNormalX The X Normal for current Quad Face
- * @param aNormalY The Y Normal for current Quad Face
- * @param aNormalZ The Z Normal for current Quad Face
+ * @param aNormalX The X Normal for current Quad Face
+ * @param aNormalY The Y Normal for current Quad Face
+ * @param aNormalZ The Z Normal for current Quad Face
*/
default void startDrawingQuads(RenderBlocks aRenderer, float aNormalX, float aNormalY, float aNormalZ) {
if (aRenderer.useInventoryTint && !isOldTexture()) {
@@ -42,6 +44,7 @@ public interface ITexture {
/**
* Will run the {@link Tessellator} to draw Quads if rendering off-world (Inventory)
+ *
* @param aRenderer The {@link RenderBlocks} Renderer
*/
default void draw(RenderBlocks aRenderer) {
diff --git a/src/main/java/gregtech/api/interfaces/ITextureBuilder.java b/src/main/java/gregtech/api/interfaces/ITextureBuilder.java
index d8ae592c9e..95c7639477 100644
--- a/src/main/java/gregtech/api/interfaces/ITextureBuilder.java
+++ b/src/main/java/gregtech/api/interfaces/ITextureBuilder.java
@@ -1,15 +1,21 @@
package gregtech.api.interfaces;
-import com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing;
-import gregtech.api.render.TextureFactory;
import net.minecraft.block.Block;
import net.minecraftforge.common.util.ForgeDirection;
+import com.gtnewhorizon.structurelib.alignment.enumerable.ExtendedFacing;
+import gregtech.api.render.TextureFactory;
+
/**
- * <p>This Interface defines operations to configure and build instances of the {@link ITexture} implementations</p>
- * <p>Use the {@link TextureFactory#builder()} method to get an instance of the {@link ITextureBuilder} implementation.</p>
+ * <p>
+ * This Interface defines operations to configure and build instances of the {@link ITexture} implementations
+ * </p>
+ * <p>
+ * Use the {@link TextureFactory#builder()} method to get an instance of the {@link ITextureBuilder} implementation.
+ * </p>
*/
public interface ITextureBuilder {
+
/**
* Build the {@link ITexture}
*
@@ -20,14 +26,19 @@ public interface ITextureBuilder {
/**
* @param block The {@link Block}
- * @param meta The meta value for the Block
+ * @param meta The meta value for the Block
* @return {@link ITextureBuilder} for chaining
*/
ITextureBuilder setFromBlock(final Block block, final int meta);
/**
- * @param side <p>The {@link ForgeDirection} side providing the texture</p>
- * <p>Default is {@link ForgeDirection#UNKNOWN} to use same side as rendered</p>
+ * @param side
+ * <p>
+ * The {@link ForgeDirection} side providing the texture
+ * </p>
+ * <p>
+ * Default is {@link ForgeDirection#UNKNOWN} to use same side as rendered
+ * </p>
* @return {@link ITextureBuilder} for chaining
*/
ITextureBuilder setFromSide(final ForgeDirection side);
@@ -52,6 +63,7 @@ public interface ITextureBuilder {
/**
* Set alpha blending
+ *
* @param allowAlpha to set
*
* @return {@link ITextureBuilder} for chaining
diff --git a/src/main/java/gregtech/api/interfaces/IToolStats.java b/src/main/java/gregtech/api/interfaces/IToolStats.java
index 9dcfc4bce8..91c8564a51 100644
--- a/src/main/java/gregtech/api/interfaces/IToolStats.java
+++ b/src/main/java/gregtech/api/interfaces/IToolStats.java
@@ -1,7 +1,7 @@
package gregtech.api.interfaces;
-import gregtech.api.items.GT_MetaGenerated_Tool;
import java.util.List;
+
import net.minecraft.block.Block;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.Entity;
@@ -12,12 +12,15 @@ import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import net.minecraftforge.event.world.BlockEvent;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+
/**
* The Stats for GT Tools. Not including any Material Modifiers.
* <p/>
* And this is supposed to not have any ItemStack Parameters as these are generic Stats.
*/
public interface IToolStats {
+
/**
* Called when aPlayer crafts this Tool
*/
@@ -39,7 +42,8 @@ public interface IToolStats {
int getToolDamagePerDropConversion();
/**
- * @return Damage the Tool receives when being used as Container Item. 100 is one use, however it is usually 8 times more than normal.
+ * @return Damage the Tool receives when being used as Container Item. 100 is one use, however it is usually 8 times
+ * more than normal.
*/
int getToolDamagePerContainerCraft();
@@ -49,7 +53,8 @@ public interface IToolStats {
int getToolDamagePerEntityAttack();
/**
- * @return Basic Quality of the Tool, 0 is normal. If increased, it will increase the general quality of all Tools of this Type. Decreasing is also possible.
+ * @return Basic Quality of the Tool, 0 is normal. If increased, it will increase the general quality of all Tools
+ * of this Type. Decreasing is also possible.
*/
int getBaseQuality();
@@ -122,7 +127,8 @@ public interface IToolStats {
boolean isWeapon();
/**
- * @return If this Tool is a Ranged Weapon. Return false at isWeapon unless you have a Blade attached to your Bow/Gun or something
+ * @return If this Tool is a Ranged Weapon. Return false at isWeapon unless you have a Blade attached to your
+ * Bow/Gun or something
*/
boolean isRangedWeapon();
@@ -132,10 +138,12 @@ public interface IToolStats {
boolean isMiningTool();
/**
- * aBlock.getHarvestTool(aMetaData) can return the following Values for example.
- * "axe", "pickaxe", "sword", "shovel", "hoe", "grafter", "saw", "wrench", "crowbar", "file", "hammer", "plow", "plunger", "scoop", "screwdriver", "sense", "scythe", "softhammer", "cutter", "plasmatorch"
+ * aBlock.getHarvestTool(aMetaData) can return the following Values for example. "axe", "pickaxe", "sword",
+ * "shovel", "hoe", "grafter", "saw", "wrench", "crowbar", "file", "hammer", "plow", "plunger", "scoop",
+ * "screwdriver", "sense", "scythe", "softhammer", "cutter", "plasmatorch"
*
- * @return If this is a minable Block. Tool Quality checks (like Diamond Tier or something) are separate from this check.
+ * @return If this is a minable Block. Tool Quality checks (like Diamond Tier or something) are separate from this
+ * check.
*/
boolean isMinableBlock(Block aBlock, byte aMetaData);
@@ -144,18 +152,8 @@ public interface IToolStats {
*
* @return the Amount of modified Items.
*/
- int convertBlockDrops(
- List<ItemStack> aDrops,
- ItemStack aStack,
- EntityPlayer aPlayer,
- Block aBlock,
- int aX,
- int aY,
- int aZ,
- byte aMetaData,
- int aFortune,
- boolean aSilkTouch,
- BlockEvent.HarvestDropsEvent aEvent);
+ int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY,
+ int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent);
/**
* @return Returns a broken Version of the Item.
@@ -176,6 +174,6 @@ public interface IToolStats {
short[] getRGBa(boolean aIsToolHead, ItemStack aStack);
- float getMiningSpeed(
- Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, int aX, int aY, int aZ);
+ float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, int aX,
+ int aY, int aZ);
}
diff --git a/src/main/java/gregtech/api/interfaces/covers/IControlsWorkCover.java b/src/main/java/gregtech/api/interfaces/covers/IControlsWorkCover.java
index 47edc7af93..cef20ac3b7 100644
--- a/src/main/java/gregtech/api/interfaces/covers/IControlsWorkCover.java
+++ b/src/main/java/gregtech/api/interfaces/covers/IControlsWorkCover.java
@@ -11,8 +11,8 @@ import gregtech.api.interfaces.tileentity.IMachineProgress;
public interface IControlsWorkCover {
/**
- * Make sure there is only one GT_Cover_ControlsWork on the aTileEntity
- * TODO this is a migration thing. Remove this after 2.3.0 is released.
+ * Make sure there is only one GT_Cover_ControlsWork on the aTileEntity TODO this is a migration thing. Remove this
+ * after 2.3.0 is released.
*
* @return true if the cover is the first (side) one
**/
diff --git a/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java b/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java
index a643b8aace..00bfd6dbe8 100644
--- a/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java
+++ b/src/main/java/gregtech/api/interfaces/fluid/IGT_FluidBuilder.java
@@ -1,14 +1,17 @@
package gregtech.api.interfaces.fluid;
-import gregtech.api.enums.FluidState;
import javax.annotation.Nonnull;
+
import net.minecraft.block.Block;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
+import gregtech.api.enums.FluidState;
+
@SuppressWarnings("unused") // API might legitimately expose unused methods within this local project's scope
public interface IGT_FluidBuilder {
+
/**
* @param colorRGBA The {@code short[]} RGBA color of the {@link Fluid} or {@code null} for no defined RGBA color
* @return {@link IGT_FluidBuilder} self for call chaining
@@ -72,8 +75,8 @@ public interface IGT_FluidBuilder {
* @return {@link IGT_FluidBuilder} self for call chaining
*/
@SuppressWarnings("UnusedReturnValue") // Last call in chain, may not use this returned value
- IGT_FluidBuilder withTextures(
- final ResourceLocation stillIconResourceLocation, final ResourceLocation flowingIconResourceLocation);
+ IGT_FluidBuilder withTextures(final ResourceLocation stillIconResourceLocation,
+ final ResourceLocation flowingIconResourceLocation);
/**
* Builds the {@link IGT_Fluid}
diff --git a/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java b/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java
index f4d278e2b0..e7c220607a 100644
--- a/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java
+++ b/src/main/java/gregtech/api/interfaces/fluid/IGT_RegisteredFluid.java
@@ -1,11 +1,12 @@
package gregtech.api.interfaces.fluid;
-import gregtech.api.enums.FluidState;
-import gregtech.api.enums.Materials;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidContainerRegistry;
+import gregtech.api.enums.FluidState;
+import gregtech.api.enums.Materials;
+
public interface IGT_RegisteredFluid {
/**
@@ -17,11 +18,12 @@ public interface IGT_RegisteredFluid {
* @return The {@link IGT_RegisteredFluid} for call chaining
*/
@SuppressWarnings("UnusedReturnValue") // Last call in chain, may not use this returned value
- IGT_RegisteredFluid registerContainers(
- final ItemStack fullContainer, final ItemStack emptyContainer, final int containerSize);
+ IGT_RegisteredFluid registerContainers(final ItemStack fullContainer, final ItemStack emptyContainer,
+ final int containerSize);
/**
- * Registers the bucket-sized 1000L containers in the {@link FluidContainerRegistry} for this {@link IGT_RegisteredFluid}
+ * Registers the bucket-sized 1000L containers in the {@link FluidContainerRegistry} for this
+ * {@link IGT_RegisteredFluid}
*
* @param fullContainer The full container to associate with this {@link IGT_RegisteredFluid}
* @param emptyContainer The empty container associate with this {@link IGT_RegisteredFluid}
@@ -31,7 +33,8 @@ public interface IGT_RegisteredFluid {
IGT_RegisteredFluid registerBContainers(final ItemStack fullContainer, final ItemStack emptyContainer);
/**
- * Registers the potion-sized 250L containers in the {@link FluidContainerRegistry} for this {@link IGT_RegisteredFluid}
+ * Registers the potion-sized 250L containers in the {@link FluidContainerRegistry} for this
+ * {@link IGT_RegisteredFluid}
*
* @param fullContainer The full container to associate with this {@link IGT_RegisteredFluid}
* @param emptyContainer The empty container associate with this {@link IGT_RegisteredFluid}
@@ -43,7 +46,8 @@ public interface IGT_RegisteredFluid {
/**
* Updates the {@link Materials}'s fluids from this {@link IGT_RegisteredFluid}'s state
*
- * @param material the {@link Materials} to configure based on this {@link IGT_RegisteredFluid} and {@link FluidState}
+ * @param material the {@link Materials} to configure based on this {@link IGT_RegisteredFluid} and
+ * {@link FluidState}
* @return The {@link IGT_RegisteredFluid} for call chaining
*/
@SuppressWarnings("UnusedReturnValue") // Last call in chain, may not use this returned value
diff --git a/src/main/java/gregtech/api/interfaces/internal/IBCTileEntity.java b/src/main/java/gregtech/api/interfaces/internal/IBCTileEntity.java
index dd73ffc1e7..4acfa62549 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IBCTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IBCTileEntity.java
@@ -3,6 +3,6 @@ package gregtech.api.interfaces.internal;
/**
* A simple compound Interface for generic BuildCraft Code.
*/
-public interface IBCTileEntity /*extends IPowerReceptor*/ {
+public interface IBCTileEntity /* extends IPowerReceptor */ {
//
}
diff --git a/src/main/java/gregtech/api/interfaces/internal/IGT_CraftingRecipe.java b/src/main/java/gregtech/api/interfaces/internal/IGT_CraftingRecipe.java
index 0bb4155214..3f29736470 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IGT_CraftingRecipe.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IGT_CraftingRecipe.java
@@ -3,5 +3,6 @@ package gregtech.api.interfaces.internal;
import net.minecraft.item.crafting.IRecipe;
public interface IGT_CraftingRecipe extends IRecipe {
+
boolean isRemovable();
}
diff --git a/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java b/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java
index 19e7a56aad..dbf888ef96 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java
@@ -10,18 +10,22 @@ import net.minecraft.world.World;
* Don't even think about including this File in your Mod.
*/
public interface IGT_Mod {
+
/**
- * This means that Server specific Basefiles are definitely existing! Not if the World is actually server side or not!
+ * This means that Server specific Basefiles are definitely existing! Not if the World is actually server side or
+ * not!
*/
boolean isServerSide();
/**
- * This means that Client specific Basefiles are definitely existing! Not if the World is actually client side or not!
+ * This means that Client specific Basefiles are definitely existing! Not if the World is actually client side or
+ * not!
*/
boolean isClientSide();
/**
- * This means that Bukkit specific Basefiles are definitely existing! Not if the World is actually bukkit server or not!
+ * This means that Bukkit specific Basefiles are definitely existing! Not if the World is actually bukkit server or
+ * not!
*/
boolean isBukkitSide();
diff --git a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java
index 77e6bd6742..342d3a5403 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java
@@ -1,23 +1,19 @@
package gregtech.api.interfaces.internal;
-import gregtech.api.util.GT_Recipe;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
+import gregtech.api.util.GT_Recipe;
+
public interface IGT_RecipeAdder {
+
/**
- * Adds a FusionreactorRecipe
- * Does not work anymore!
+ * Adds a FusionreactorRecipe Does not work anymore!
*/
@Deprecated
- boolean addFusionReactorRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aOutput1,
- int aFusionDurationInTicks,
- int aFusionEnergyPerTick,
- int aEnergyNeededForStartingFusion);
+ boolean addFusionReactorRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aFusionDurationInTicks,
+ int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion);
/**
* Adds a FusionreactorRecipe
@@ -31,13 +27,8 @@ public interface IGT_RecipeAdder {
* @return true if the Recipe got added, otherwise false.
*/
@Deprecated
- boolean addFusionReactorRecipe(
- FluidStack aInput1,
- FluidStack aInput2,
- FluidStack aOutput1,
- int aFusionDurationInTicks,
- int aFusionEnergyPerTick,
- int aEnergyNeededForStartingFusion);
+ boolean addFusionReactorRecipe(FluidStack aInput1, FluidStack aInput2, FluidStack aOutput1,
+ int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion);
/**
* Adds a Fusion Reactor Recipe
@@ -49,45 +40,24 @@ public interface IGT_RecipeAdder {
* @param aEnergyNeededForStartingFusion : EU needed to initialize the fusion reaction. (must be >= 0).
* @return true if the recipe got added, otherwise false.
*/
- boolean addFusionReactorRecipe(
- FluidStack[] FluidInputArray,
- FluidStack[] FluidOutputArray,
- int aFusionDurationInTicks,
- int aFusionEnergyPerTick,
- int aEnergyNeededForStartingFusion);
+ boolean addFusionReactorRecipe(FluidStack[] FluidInputArray, FluidStack[] FluidOutputArray,
+ int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion);
/**
* Adds a Centrifuge Recipe
*
- * @param aInput1 must be != null
- * @param aOutput1 must be != null
- * @param aOutput2 can be null
- * @param aOutput3 can be null
- * @param aOutput4 can be null
- * @param aDuration must be > 0
- */
- boolean addCentrifugeRecipe(
- ItemStack aInput1,
- int aInput2,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- ItemStack aOutput5,
- ItemStack aOutput6,
- int aDuration);
-
- boolean addCentrifugeRecipe(
- ItemStack aInput1,
- int aInput2,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- ItemStack aOutput5,
- ItemStack aOutput6,
- int aDuration,
- int aEUt);
+ * @param aInput1 must be != null
+ * @param aOutput1 must be != null
+ * @param aOutput2 can be null
+ * @param aOutput3 can be null
+ * @param aOutput4 can be null
+ * @param aDuration must be > 0
+ */
+ boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration);
+
+ boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt);
/**
* Adds a Centrifuge Recipe
@@ -99,36 +69,13 @@ public interface IGT_RecipeAdder {
* @param aOutput4 can be null
* @param aDuration must be > 0
*/
- boolean addCentrifugeRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- ItemStack aOutput5,
- ItemStack aOutput6,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5,
+ ItemStack aOutput6, int[] aChances, int aDuration, int aEUt);
- boolean addCentrifugeRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- ItemStack aOutput5,
- ItemStack aOutput6,
- int[] aChances,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5,
+ ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom);
/**
* @param aInput1 must be != null
@@ -141,51 +88,31 @@ public interface IGT_RecipeAdder {
/**
* Adds a Electrolyzer Recipe
*
- * @param aInput1 must be != null
- * @param aOutput1 must be != null
- * @param aOutput2 can be null
- * @param aOutput3 can be null
- * @param aOutput4 can be null
- * @param aDuration must be > 0
- * @param aEUt should be > 0
- */
- boolean addElectrolyzerRecipe(
- ItemStack aInput1,
- int aInput2,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- ItemStack aOutput5,
- ItemStack aOutput6,
- int aDuration,
- int aEUt);
+ * @param aInput1 must be != null
+ * @param aOutput1 must be != null
+ * @param aOutput2 can be null
+ * @param aOutput3 can be null
+ * @param aOutput4 can be null
+ * @param aDuration must be > 0
+ * @param aEUt should be > 0
+ */
+ boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt);
/**
* Adds a Electrolyzer Recipe
*
- * @param aInput1 must be != null
- * @param aOutput1 must be != null
- * @param aOutput2 can be null
- * @param aOutput3 can be null
- * @param aOutput4 can be null
- * @param aDuration must be > 0
- * @param aEUt should be > 0
- */
- boolean addElectrolyzerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- ItemStack aOutput5,
- ItemStack aOutput6,
- int[] aChances,
- int aDuration,
- int aEUt);
+ * @param aInput1 must be != null
+ * @param aOutput1 must be != null
+ * @param aOutput2 can be null
+ * @param aOutput3 can be null
+ * @param aOutput4 can be null
+ * @param aDuration must be > 0
+ * @param aEUt should be > 0
+ */
+ boolean addElectrolyzerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5,
+ ItemStack aOutput6, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Chemical Recipe
@@ -207,54 +134,36 @@ public interface IGT_RecipeAdder {
* @param aOutput must be != null
* @param aDuration must be > 0
*/
- boolean addChemicalRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- int aDuration);
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput, int aDuration);
/**
- * Adds a Chemical Recipe
- * Only use this when the recipe conflicts in MultiBlock!
+ * Adds a Chemical Recipe Only use this when the recipe conflicts in MultiBlock!
*
* @param aInput1 must be != null
* @param aInput2 must be != null
- * @param aOutput must be != null
+ * @param aOutput must be != null
* @param aOutput2 must be != null
* @param aDuration must be > 0
*/
- boolean addChemicalRecipeForBasicMachineOnly(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- ItemStack aOutput2,
- int aDuration,
- int aEUtick);
+ boolean addChemicalRecipeForBasicMachineOnly(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
+ FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick);
/**
* Adds a Chemical Recipe
*
* @param aInput1 must be != null
* @param aInput2 must be != null
- * @param aOutput must be != null
+ * @param aOutput must be != null
* @param aOutput2 must be != null
* @param aDuration must be > 0
*/
- boolean addChemicalRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- ItemStack aOutput2,
- int aDuration);
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput, ItemStack aOutput2, int aDuration);
/**
- * Adds Recipes for creating a radically polymerized polymer from a base Material (for example Ethylene -> Polyethylene)
+ * Adds Recipes for creating a radically polymerized polymer from a base Material (for example Ethylene ->
+ * Polyethylene)
*
* @param aBasicMaterial The basic Material
* @param aBasicMaterialCell The corresponding Cell basic Material
@@ -267,70 +176,44 @@ public interface IGT_RecipeAdder {
*
* @param aInput1 must be != null
* @param aInput2 must be != null
- * @param aOutput must be != null
+ * @param aOutput must be != null
* @param aDuration must be > 0
* @param aEUtick must be > 0
*/
- boolean addChemicalRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- int aDuration,
- int aEUtick);
-
- boolean addChemicalRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- ItemStack aOutput2,
- int aDuration,
- int aEUtick,
- boolean aCleanroom);
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput, int aDuration, int aEUtick);
+
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, boolean aCleanroom);
/**
* Adds a Chemical Recipe
*
* @param aInput1 must be != null
* @param aInput2 must be != null
- * @param aOutput must be != null
+ * @param aOutput must be != null
* @param aOutput2 must be != null
* @param aDuration must be > 0
* @param aEUtick must be > 0
*/
- boolean addChemicalRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- ItemStack aOutput2,
- int aDuration,
- int aEUtick);
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick);
/**
* Adds a Chemical Recipe that only exists in the Large Chemical Reactor
*
- * @param aInputs item inputs
- * @param aFluidInputs fluid inputs
+ * @param aInputs item inputs
+ * @param aFluidInputs fluid inputs
* @param aFluidOutputs fluid outputs
- * @param aOutputs item outputs
- * @param aDuration must be > 0
- * @param aEUtick must be > 0
- * <br>aInputs and aFluidInputs must contain at least one valid input.
- * <br>aOutputs and aFluidOutputs must contain at least one valid output.
+ * @param aOutputs item outputs
+ * @param aDuration must be > 0
+ * @param aEUtick must be > 0 <br>
+ * aInputs and aFluidInputs must contain at least one valid input. <br>
+ * aOutputs and aFluidOutputs must contain at least one valid output.
*
*/
- boolean addMultiblockChemicalRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int aDuration,
- int aEUtick);
+ boolean addMultiblockChemicalRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
+ ItemStack[] aOutputs, int aDuration, int aEUtick);
/**
* Adds a Blast Furnace Recipe
@@ -344,14 +227,8 @@ public interface IGT_RecipeAdder {
* @param aLevel should be > 0 is the minimum Heat Level needed for this Recipe
*/
@Deprecated
- boolean addBlastRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aOutput1,
- ItemStack aOutput2,
- int aDuration,
- int aEUt,
- int aLevel);
+ boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration,
+ int aEUt, int aLevel);
/**
* Adds a Blast Furnace Recipe
@@ -364,59 +241,29 @@ public interface IGT_RecipeAdder {
* @param aEUt should be > 0
* @param aLevel should be > 0 is the minimum Heat Level needed for this Recipe
*/
- boolean addBlastRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- int aDuration,
- int aEUt,
- int aLevel);
-
- boolean addBlastRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aInput3,
- ItemStack aInput4,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- int aDuration,
- int aEUt,
- int aLevel);
+ boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
+ ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel);
+
+ boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ ItemStack aOutput4, int aDuration, int aEUt, int aLevel);
/**
* Adds a Plasma Forge Recipe
*
- * @param ItemInputArray Array of input items.
- * @param FluidInputArray Array of output items.
- * @param OutputItemArray Array of input fluids.
- * @param FluidOutputArray Array of output items.
- * @param aDuration Must be > 0. Duration in ticks.
- * @param aEUt Should be > 0. EU/t.
- * @param coil_heat_level Should be > 0. Heat of the coils used.
- */
- boolean addPlasmaForgeRecipe(
- ItemStack[] ItemInputArray,
- FluidStack[] FluidInputArray,
- ItemStack[] OutputItemArray,
- FluidStack[] FluidOutputArray,
- int aDuration,
- int aEUt,
- int coil_heat_level);
-
- boolean addPrimitiveBlastRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- int aCoalAmount,
- ItemStack aOutput1,
- ItemStack aOutput2,
- int aDuration);
+ * @param ItemInputArray Array of input items.
+ * @param FluidInputArray Array of output items.
+ * @param OutputItemArray Array of input fluids.
+ * @param FluidOutputArray Array of output items.
+ * @param aDuration Must be > 0. Duration in ticks.
+ * @param aEUt Should be > 0. EU/t.
+ * @param coil_heat_level Should be > 0. Heat of the coils used.
+ */
+ boolean addPlasmaForgeRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] OutputItemArray,
+ FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level);
+
+ boolean addPrimitiveBlastRecipe(ItemStack aInput1, ItemStack aInput2, int aCoalAmount, ItemStack aOutput1,
+ ItemStack aOutput2, int aDuration);
/**
* Adds a Canning Machine Recipe
@@ -426,8 +273,8 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0, 100 ticks is standard.
* @param aEUt should be > 0, 1 EU/t is standard.
*/
- boolean addCannerRecipe(
- ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addCannerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration,
+ int aEUt);
/**
* Adds an Alloy Smelter Recipe
@@ -440,8 +287,8 @@ public interface IGT_RecipeAdder {
*/
boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt);
- boolean addAlloySmelterRecipe(
- ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt, boolean hidden);
+ boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt,
+ boolean hidden);
/**
* Adds a CNC-Machine Recipe
@@ -473,8 +320,8 @@ public interface IGT_RecipeAdder {
* @param aEUt should be > 0
*
*/
- boolean addAssemblerRecipe(
- ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration,
+ int aEUt);
/**
* Adds an Assembler Recipe
@@ -484,42 +331,19 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- boolean addAssemblerRecipe(
- ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1,
+ int aDuration, int aEUt);
- boolean addAssemblerRecipe(
- ItemStack aInput1,
- Object aOreDict,
- int aAmount,
- FluidStack aFluidInput,
- ItemStack aOutput1,
- int aDuration,
- int aEUt);
+ boolean addAssemblerRecipe(ItemStack aInput1, Object aOreDict, int aAmount, FluidStack aFluidInput,
+ ItemStack aOutput1, int aDuration, int aEUt);
- boolean addAssemblerRecipe(
- ItemStack[] aInputs,
- Object aOreDict,
- int aAmount,
- FluidStack aFluidInput,
- ItemStack aOutput1,
- int aDuration,
- int aEUt);
+ boolean addAssemblerRecipe(ItemStack[] aInputs, Object aOreDict, int aAmount, FluidStack aFluidInput,
+ ItemStack aOutput1, int aDuration, int aEUt);
- boolean addAssemblerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- ItemStack aOutput1,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1,
+ int aDuration, int aEUt, boolean aCleanroom);
- boolean addAssemblerRecipe(
- ItemStack[] aInputs,
- FluidStack aFluidInput,
- ItemStack aOutput1,
- int aDuration,
- int aEUt,
+ boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt,
boolean aCleanroom);
/**
@@ -531,16 +355,11 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- boolean addCircuitAssemblerRecipe(
- ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration,
+ int aEUt);
- boolean addCircuitAssemblerRecipe(
- ItemStack[] aInputs,
- FluidStack aFluidInput,
- ItemStack aOutput,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration,
+ int aEUt, boolean aCleanroom);
/**
* Adds an Assemblyline Recipe
@@ -551,30 +370,17 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- boolean addAssemblylineRecipe(
- ItemStack aResearchItem,
- int aResearchTime,
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack aOutput1,
- int aDuration,
- int aEUt);
+ boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs,
+ FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds a Assemblyline Recipe
*
- * @param aInputs elements should be: ItemStack for single item;
- * ItemStack[] for multiple equivalent items;
+ * @param aInputs elements should be: ItemStack for single item; ItemStack[] for multiple equivalent items;
* {OreDict, amount} for oredict.
*/
- boolean addAssemblylineRecipe(
- ItemStack aResearchItem,
- int aResearchTime,
- Object[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack aOutput1,
- int aDuration,
- int aEUt);
+ boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs,
+ FluidStack[] aFluidInputs, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds a Forge Hammer Recipe
@@ -587,13 +393,8 @@ public interface IGT_RecipeAdder {
boolean addForgeHammerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
// Allows fluids as well as multiple items.
- boolean addForgeHammerRecipe(
- ItemStack[] ItemInputArray,
- FluidStack[] FluidInputArray,
- ItemStack[] ItemOutputArray,
- FluidStack[] FluidOutputArray,
- int aDuration,
- int aEUt);
+ boolean addForgeHammerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] ItemOutputArray,
+ FluidStack[] FluidOutputArray, int aDuration, int aEUt);
/**
* Adds a Wiremill Recipe
@@ -659,24 +460,11 @@ public interface IGT_RecipeAdder {
* @param aEUt should be > 0
* @return
*/
- boolean addOreWasherRecipe(
- ItemStack aInput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- FluidStack aFluidInput,
- int aDuration,
- int aEUt);
+ boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ FluidStack aFluidInput, int aDuration, int aEUt);
- boolean addOreWasherRecipe(
- ItemStack aInput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- FluidStack aFluidInput,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt);
/**
* Adds an Implosion Compressor Recipe
@@ -698,13 +486,8 @@ public interface IGT_RecipeAdder {
* @param aOutput3 can be null
* @param aOutput4 can be null
*/
- boolean addGrinderRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4);
+ boolean addGrinderRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, ItemStack aOutput4);
/**
* Adds a Distillation Tower Recipe
@@ -713,44 +496,26 @@ public interface IGT_RecipeAdder {
* @param aOutputs must be != null 1-5 Fluids
* @param aOutput2 can be null
*/
- boolean addDistillationTowerRecipe(
- FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt);
-
- boolean addDistillationTowerRecipe(
- FluidStack aInput,
- ItemStack[] aCircuit,
- FluidStack[] aOutputs,
- ItemStack aOutput2,
- int aDuration,
+ boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration,
int aEUt);
- boolean addSimpleArcFurnaceRecipe(
- ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
+ boolean addDistillationTowerRecipe(FluidStack aInput, ItemStack[] aCircuit, FluidStack[] aOutputs,
+ ItemStack aOutput2, int aDuration, int aEUt);
- boolean addPlasmaArcFurnaceRecipe(
- ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
+ boolean addSimpleArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances,
+ int aDuration, int aEUt);
- boolean addPlasmaArcFurnaceRecipe(
- ItemStack aInput,
- FluidStack aFluidInput,
- ItemStack[] aOutputs,
- FluidStack aFluidPutput,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances,
+ int aDuration, int aEUt);
+
+ boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
+ FluidStack aFluidPutput, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Distillation Tower Recipe
*/
- boolean addDistillationRecipe(
- ItemStack aInput1,
- int aInput2,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- int aDuration,
- int aEUt);
+ boolean addDistillationRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt);
/**
* Adds a Lathe Machine Recipe
@@ -760,28 +525,22 @@ public interface IGT_RecipeAdder {
/**
* Adds a Cutter Recipe
*/
- boolean addCutterRecipe(
- ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addCutterRecipe(ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2,
+ int aDuration, int aEUt);
/**
* Adds Cutter Recipes with default Lubricants
*/
boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
- boolean addCutterRecipe(
- ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, boolean aCleanroom);
+ boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt,
+ boolean aCleanroom);
- boolean addCutterRecipe(
- ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, int aDuration,
+ int aEUt);
- boolean addCutterRecipe(
- ItemStack aInput,
- ItemStack aCircuit,
- ItemStack aOutput1,
- ItemStack aOutput2,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2, int aDuration,
+ int aEUt, boolean aCleanroom);
boolean addCutterRecipe(ItemStack[] aInputs, ItemStack[] aOutputs, int aDuration, int aEUt, int aSpecial);
@@ -799,23 +558,17 @@ public interface IGT_RecipeAdder {
* @param aEUt should be > 0
* @return
*/
- boolean addThermalCentrifugeRecipe(
- ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int aDuration, int aEUt);
+ boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ int aDuration, int aEUt);
- boolean addThermalCentrifugeRecipe(
- ItemStack aInput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ int[] aChances, int aDuration, int aEUt);
/**
* Adds an Unboxing Recipe
*/
- boolean addUnboxingRecipe(
- ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration, int aEUt);
+ boolean addUnboxingRecipe(ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration,
+ int aEUt);
/**
* Adds a Vacuum Freezer Recipe
@@ -830,21 +583,18 @@ public interface IGT_RecipeAdder {
boolean addVacuumFreezerRecipe(FluidStack aInput1, FluidStack aOutput1, int aDuration, int aEUt);
- boolean addVacuumFreezerRecipe(
- ItemStack[] aItemInput,
- FluidStack[] aFluidInput,
- ItemStack[] aItemOutput,
- FluidStack[] aFluidOutput,
- int aDuration,
- int aEUt);
+ boolean addVacuumFreezerRecipe(ItemStack[] aItemInput, FluidStack[] aFluidInput, ItemStack[] aItemOutput,
+ FluidStack[] aFluidOutput, int aDuration, int aEUt);
/**
* Adds a Fuel for My Generators
*
* @param aInput1 must be != null
* @param aOutput1 can be null
- * @param aEU EU per MilliBucket. If no Liquid Form of this Container is available, then it will give you EU*1000 per Item.
- * @param aType 0 = Diesel; 1 = Gas Turbine; 2 = Thermal; 3 = Dense Fluid; 4 = Plasma; 5 = Magic; And if something is unclear or missing, then look at the GT_Recipe-Class
+ * @param aEU EU per MilliBucket. If no Liquid Form of this Container is available, then it will give you
+ * EU*1000 per Item.
+ * @param aType 0 = Diesel; 1 = Gas Turbine; 2 = Thermal; 3 = Dense Fluid; 4 = Plasma; 5 = Magic; And if
+ * something is unclear or missing, then look at the GT_Recipe-Class
*/
boolean addFuel(ItemStack aInput1, ItemStack aOutput1, int aEU, int aType);
@@ -858,11 +608,11 @@ public interface IGT_RecipeAdder {
*/
boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, boolean aHidden);
- boolean addBrewingRecipe(
- ItemStack aIngredient, Fluid aInput, Fluid aOutput, int aDuration, int aEUt, boolean aHidden);
+ boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, int aDuration, int aEUt,
+ boolean aHidden);
- boolean addBrewingRecipeCustom(
- ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, boolean aHidden);
+ boolean addBrewingRecipeCustom(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aDuration,
+ int aEUt, boolean aHidden);
/**
* Adds a Recipe for the Fermenter
@@ -877,33 +627,22 @@ public interface IGT_RecipeAdder {
boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aOutput, int aDuration, int aEUt);
boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
+
/**
* Adds a Recipe for the Distillery
*/
- boolean addDistilleryRecipe(
- ItemStack aCircuit,
- FluidStack aInput,
- FluidStack aOutput,
- ItemStack aSolidOutput,
- int aDuration,
- int aEUt,
+ boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput,
+ int aDuration, int aEUt, boolean aHidden);
+
+ boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt,
boolean aHidden);
- boolean addDistilleryRecipe(
- ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, boolean aHidden);
+ boolean addDistilleryRecipe(int circuitConfig, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput,
+ int aDuration, int aEUt, boolean aHidden);
- boolean addDistilleryRecipe(
- int circuitConfig,
- FluidStack aInput,
- FluidStack aOutput,
- ItemStack aSolidOutput,
- int aDuration,
- int aEUt,
+ boolean addDistilleryRecipe(int aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt,
boolean aHidden);
- boolean addDistilleryRecipe(
- int aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, boolean aHidden);
-
/**
* Adds a Recipe for the Fluid Solidifier
*/
@@ -912,75 +651,43 @@ public interface IGT_RecipeAdder {
/**
* Adds a Recipe for Fluid Smelting
*/
- boolean addFluidSmelterRecipe(
- ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, int aEUt);
+ boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration,
+ int aEUt);
/**
* Adds a Recipe for Fluid Smelting
*/
- boolean addFluidSmelterRecipe(
- ItemStack aInput,
- ItemStack aRemains,
- FluidStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- boolean hidden);
+ boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration,
+ int aEUt, boolean hidden);
/**
* Adds a Recipe for Fluid Extraction
*/
- boolean addFluidExtractionRecipe(
- ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, int aEUt);
+ boolean addFluidExtractionRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance,
+ int aDuration, int aEUt);
/**
* Adds a Recipe for the Fluid Canner
*/
boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput);
- boolean addFluidCannerRecipe(
- ItemStack aInput,
- ItemStack aOutput,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- int aDuration,
- int aEUt);
+ boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput,
+ int aDuration, int aEUt);
/**
* Adds a Recipe for the Chemical Bath
*/
- boolean addChemicalBathRecipe(
- ItemStack aInput,
- FluidStack aBathingFluid,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, int[] aChances, int aDuration, int aEUt);
- boolean addChemicalBathRecipe(
- ItemStack aInput,
- FluidStack aBathingFluid,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, FluidStack aFluidOutput,
+ ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Recipe for the Electromagnetic Separator
*/
- boolean addElectromagneticSeparatorRecipe(
- ItemStack aInput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addElectromagneticSeparatorRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Recipe for the Extractor
@@ -990,194 +697,93 @@ public interface IGT_RecipeAdder {
/**
* Adds a Recipe for the Printer
*/
- boolean addPrinterRecipe(
- ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addPrinterRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput,
+ int aDuration, int aEUt);
/**
* Adds a Recipe for the Autoclave
*/
- boolean addAutoclaveRecipe(
- ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration, int aEUt);
+ boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration,
+ int aEUt);
- boolean addAutoclaveRecipe(
- ItemStack aInput,
- FluidStack aFluid,
- ItemStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration,
+ int aEUt, boolean aCleanroom);
- boolean addAutoclaveRecipe(
- ItemStack aInput,
- ItemStack aCircuit,
- FluidStack aFluid,
- ItemStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput, int aChance,
+ int aDuration, int aEUt, boolean aCleanroom);
- boolean addAutoclaveRecipe(
- ItemStack aInput,
- ItemStack aCircuit,
- FluidStack aFluidIn,
- FluidStack aFluidOut,
- ItemStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut,
+ ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom);
- boolean addAutoclaveSpaceRecipe(
- ItemStack aInput,
- FluidStack aFluid,
- ItemStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAutoclaveSpaceRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration,
+ int aEUt, boolean aCleanroom);
- boolean addAutoclaveSpaceRecipe(
- ItemStack aInput,
- ItemStack aCircuit,
- FluidStack aFluid,
- ItemStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAutoclaveSpaceRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput,
+ int aChance, int aDuration, int aEUt, boolean aCleanroom);
- boolean addAutoclave4Recipe(
- ItemStack aInput,
- ItemStack aCircuit,
- FluidStack aFluidIn,
- FluidStack aFluidOut,
- ItemStack[] aOutputs,
- int[] aChances,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addAutoclave4Recipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut,
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom);
/**
* Adds a Recipe for the Mixer
*/
@Deprecated
- boolean addMixerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aInput3,
- ItemStack aInput4,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- int aDuration,
- int aEUt);
+ boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt);
@Deprecated
- boolean addMixerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aInput3,
- ItemStack aInput4,
- ItemStack aInput5,
- ItemStack aInput6,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- int aDuration,
- int aEUt);
+ boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
+ ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput,
+ int aDuration, int aEUt);
@Deprecated
- boolean addMixerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aInput3,
- ItemStack aInput4,
- ItemStack aInput5,
- ItemStack aInput6,
- ItemStack aInput7,
- ItemStack aInput8,
- ItemStack aInput9,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput,
- int aDuration,
- int aEUt);
+ boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
+ ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt);
@Deprecated
- boolean addMixerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aInput3,
- ItemStack aInput4,
- ItemStack aInput5,
- ItemStack aInput6,
- ItemStack aInput7,
- ItemStack aInput8,
- ItemStack aInput9,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- int aDuration,
- int aEUt);
+ boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
+ ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ ItemStack aOutput4, int aDuration, int aEUt);
// Use me only from now on!
- boolean addMixerRecipe(
- ItemStack[] ItemInputArray,
- FluidStack[] FluidInputArray,
- ItemStack[] ItemOutputArray,
- FluidStack[] FluidOutputArray,
- int aDuration,
- int aEUt);
+ boolean addMixerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] ItemOutputArray,
+ FluidStack[] FluidOutputArray, int aDuration, int aEUt);
/**
* Adds a Recipe for the Laser Engraver.
*/
@Deprecated
- boolean addLaserEngraverRecipe(
- ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration, int aEUt);
+ boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration,
+ int aEUt);
/**
* Adds a Recipe for the Laser Engraver.
*/
@Deprecated
- boolean addLaserEngraverRecipe(
- ItemStack aItemToEngrave,
- ItemStack aLens,
- ItemStack aEngravedItem,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration,
+ int aEUt, boolean aCleanroom);
/**
* Adds a Generalised Laser Engraver Recipe.
*
- * @param ItemInputArray Array of input items.
- * @param FluidInputArray Array of output items.
- * @param OutputItemArray Array of input fluids.
- * @param FluidOutputArray Array of output items.
- * @param aDuration Must be > 0. Duration in ticks.
- * @param aEUt Should be > 0. EU/t.
- * @param aCleanroom Boolean for usage of cleanroom in recipe.
- */
- boolean addLaserEngraverRecipe(
- ItemStack[] ItemInputArray,
- FluidStack[] FluidInputArray,
- ItemStack[] OutputItemArray,
- FluidStack[] FluidOutputArray,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ * @param ItemInputArray Array of input items.
+ * @param FluidInputArray Array of output items.
+ * @param OutputItemArray Array of input fluids.
+ * @param FluidOutputArray Array of output items.
+ * @param aDuration Must be > 0. Duration in ticks.
+ * @param aEUt Should be > 0. EU/t.
+ * @param aCleanroom Boolean for usage of cleanroom in recipe.
+ */
+ boolean addLaserEngraverRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray,
+ ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom);
/**
* Adds a Recipe for the Forming Press
*/
- boolean addFormingPressRecipe(
- ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration, int aEUt);
+ boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration,
+ int aEUt);
// Allows more than 2 inputs and multiple outputs
boolean addFormingPressRecipe(ItemStack[] ItemInputArray, ItemStack[] OutputItemArray, int aDuration, int aEUt);
@@ -1186,27 +792,22 @@ public interface IGT_RecipeAdder {
* Adds a Recipe for the Sifter. (up to 9 Outputs)
*/
boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, int aEUt);
+
/**
* Adds a Generalised Sifter Recipe.
*
- * @param ItemInputArray Array of input items.
- * @param FluidInputArray Array of output items.
- * @param OutputItemArray Array of input fluids.
- * @param FluidOutputArray Array of output items.
- * @param aChances Array of output chances.
- * @param aDuration Must be > 0. Duration in ticks.
- * @param aEUt Should be > 0. EU/t.
- * @param aCleanroom Boolean for usage of cleanroom in recipe.
- */
- boolean addSifterRecipe(
- ItemStack[] ItemInputArray,
- FluidStack[] FluidInputArray,
- ItemStack[] OutputItemArray,
- FluidStack[] FluidOutputArray,
- int[] aChances,
- int aDuration,
- int aEUt,
- boolean aCleanroom);
+ * @param ItemInputArray Array of input items.
+ * @param FluidInputArray Array of output items.
+ * @param OutputItemArray Array of input fluids.
+ * @param FluidOutputArray Array of output items.
+ * @param aChances Array of output chances.
+ * @param aDuration Must be > 0. Duration in ticks.
+ * @param aEUt Should be > 0. EU/t.
+ * @param aCleanroom Boolean for usage of cleanroom in recipe.
+ */
+ boolean addSifterRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] OutputItemArray,
+ FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt, boolean aCleanroom);
+
/**
* Adds a Recipe for the Arc Furnace. (up to 4 Outputs)
*/
@@ -1215,8 +816,8 @@ public interface IGT_RecipeAdder {
/**
* Adds a Recipe for the Arc Furnace. (up to 4 Outputs)
*/
- boolean addArcFurnaceRecipe(
- ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean hidden);
+ boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt,
+ boolean hidden);
/**
* Adds a Recipe for the GT Pulveriser. (up to 4 Outputs)
@@ -1226,28 +827,22 @@ public interface IGT_RecipeAdder {
/**
* Adds a Recipe for the GT Pulveriser. (up to 4 Outputs)
*/
- boolean addPulveriserRecipe(
- ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean hidden);
+ boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt,
+ boolean hidden);
/**
- * Adds a Distillation Tower Recipe
- * Every Fluid also gets separate distillation recipes
+ * Adds a Distillation Tower Recipe Every Fluid also gets separate distillation recipes
*
* @param aInput must be != null
* @param aOutputs must be != null 1-5 Fluids
* @param aOutput2 can be null
*/
- boolean addUniversalDistillationRecipe(
- FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt);
-
- boolean addUniversalDistillationRecipewithCircuit(
- FluidStack aInput,
- ItemStack[] aCircuit,
- FluidStack[] aOutputs,
- ItemStack aOutput2,
- int aDuration,
+ boolean addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration,
int aEUt);
+ boolean addUniversalDistillationRecipewithCircuit(FluidStack aInput, ItemStack[] aCircuit, FluidStack[] aOutputs,
+ ItemStack aOutput2, int aDuration, int aEUt);
+
/**
* Adds Pyrolyse Recipe
*
@@ -1258,14 +853,8 @@ public interface IGT_RecipeAdder {
* @param aDuration
* @param aEUt
*/
- boolean addPyrolyseRecipe(
- ItemStack aInput,
- FluidStack aFluidInput,
- int intCircuit,
- ItemStack aOutput,
- FluidStack aFluidOutput,
- int aDuration,
- int aEUt);
+ boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput,
+ FluidStack aFluidOutput, int aDuration, int aEUt);
/**
* Adds Oil Cracking Recipe
@@ -1288,12 +877,11 @@ public interface IGT_RecipeAdder {
* @param aDuration
* @param aEUt
*/
- boolean addCrackingRecipe(
- int circuitConfig, FluidStack aInput, FluidStack aInput2, FluidStack aOutput, int aDuration, int aEUt);
+ boolean addCrackingRecipe(int circuitConfig, FluidStack aInput, FluidStack aInput2, FluidStack aOutput,
+ int aDuration, int aEUt);
/**
- * Adds a Sound to the Sonictron9001
- * you should NOT call this in the preInit-Phase!
+ * Adds a Sound to the Sonictron9001 you should NOT call this in the preInit-Phase!
*
* @param aItemStack = The Item you want to display for this Sound
* @param aSoundName = The Name of the Sound in the resources/newsound-folder like Vanillasounds
@@ -1301,87 +889,68 @@ public interface IGT_RecipeAdder {
*/
boolean addSonictronSound(ItemStack aItemStack, String aSoundName);
- boolean addChemicalBathRecipe(
- ItemStack aInput,
- FluidStack aBathingFluid,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- FluidStack aFluidOutput,
- int[] aChances,
- int aDuration,
- int aEUt);
+ boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt);
/**
- * Add a Nano Forge Recipe. The Nano Forge's main use is to make nanites/nanorobots.
- * Tier 1 Nano Forge - Can make partly biological, partly metal nanites
- * TIer 2 Nano Forge - Can make mostly metal nanites with some biological aspects
- * TIer 3 Nano Forge - Can make nanites entierly out of metal
+ * Add a Nano Forge Recipe. The Nano Forge's main use is to make nanites/nanorobots. Tier 1 Nano Forge - Can make
+ * partly biological, partly metal nanites TIer 2 Nano Forge - Can make mostly metal nanites with some biological
+ * aspects TIer 3 Nano Forge - Can make nanites entierly out of metal
*
- * @param aInputs = must not be null
- * @param aFluidInputs = can be null
- * @param aOutputs = must not be null, the nanite or other output
+ * @param aInputs = must not be null
+ * @param aFluidInputs = can be null
+ * @param aOutputs = must not be null, the nanite or other output
* @param aFluidOutputs = can be null
- * @param aChances = can be null
+ * @param aChances = can be null
* @param aDuration
* @param aEUt
* @param aSpecialValue = defines the tier of nano forge required.
*
*/
- boolean addNanoForgeRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs,
- int[] aChances,
- int aDuration,
- int aEUt,
- int aSpecialValue);
+ boolean addNanoForgeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
+ FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue);
/**
- * Add a Board Manufacturer Recipe. The Board Manufacturer's main use is to make the circuit boards
- * needed to make circuits.
+ * Add a Board Manufacturer Recipe. The Board Manufacturer's main use is to make the circuit boards needed to make
+ * circuits.
*
- * @param aInputs = must not be null
- * @param aFluidInputs = must not be null
- * @param aOutputs = must not be null
+ * @param aInputs = must not be null
+ * @param aFluidInputs = must not be null
+ * @param aOutputs = must not be null
* @param aDuration
* @param aEUt
* @param aSpecialValue = defines the tier of the board manufacturer required.
*/
- boolean addPCBFactoryRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack[] aOutputs,
- int aDuration,
- int aEUt,
- int aSpecialValue);
+ boolean addPCBFactoryRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs, int aDuration,
+ int aEUt, int aSpecialValue);
/**
* Add a breeder cell.
- * @param input raw stack. should be undamaged.
- * @param output breed output
+ *
+ * @param input raw stack. should be undamaged.
+ * @param output breed output
* @param heatMultiplier bonus progress per neutron pulse per heat step
- * @param heatStep divisor for hull heat
- * @param reflector true if also acts as a neutron reflector, false otherwise.
+ * @param heatStep divisor for hull heat
+ * @param reflector true if also acts as a neutron reflector, false otherwise.
* @param requiredPulses progress required to complete breeding
* @return added fake recipe
*/
- GT_Recipe addIC2ReactorBreederCell(
- ItemStack input, ItemStack output, boolean reflector, int heatStep, int heatMultiplier, int requiredPulses);
+ GT_Recipe addIC2ReactorBreederCell(ItemStack input, ItemStack output, boolean reflector, int heatStep,
+ int heatMultiplier, int requiredPulses);
/**
* Add a fuel cell.
- * @param input raw stack. should be undamaged.
- * @param output depleted stack
- * @param aMox true if has mox behavior, false if uranium behavior.
- * @param aHeat inherent heat output multiplier of the fuel material. should not add the extra heat from being
- * a multi-cell!
- * @param aEnergy inherent energy output multiplier of the fuel material. should not add the extra energy from
- * being a multi-cell!
- * @param aCells cell count
+ *
+ * @param input raw stack. should be undamaged.
+ * @param output depleted stack
+ * @param aMox true if has mox behavior, false if uranium behavior.
+ * @param aHeat inherent heat output multiplier of the fuel material. should not add the extra heat from being a
+ * multi-cell!
+ * @param aEnergy inherent energy output multiplier of the fuel material. should not add the extra energy from being
+ * a multi-cell!
+ * @param aCells cell count
* @return added fake recipe
*/
- GT_Recipe addIC2ReactorFuelCell(
- ItemStack input, ItemStack output, boolean aMox, float aHeat, float aEnergy, int aCells);
+ GT_Recipe addIC2ReactorFuelCell(ItemStack input, ItemStack output, boolean aMox, float aHeat, float aEnergy,
+ int aCells);
}
diff --git a/src/main/java/gregtech/api/interfaces/internal/IIC2TileEntity.java b/src/main/java/gregtech/api/interfaces/internal/IIC2TileEntity.java
index 7592ffbe1a..ce9b4c4282 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IIC2TileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IIC2TileEntity.java
@@ -6,7 +6,8 @@ import ic2.api.energy.tile.IEnergySource;
import ic2.api.tile.IEnergyStorage;
/**
- * A simple compound Interface for generic EnergyTileEntities. I don't want to have imports of the IC2-API in my main-code
+ * A simple compound Interface for generic EnergyTileEntities. I don't want to have imports of the IC2-API in my
+ * main-code
*/
public interface IIC2TileEntity extends IEnergyStorage, IEnergySink, IEnergySource, IHasWorldObjectAndCoords {
//
diff --git a/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java b/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java
index 330b9326c2..debbe928fd 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java
@@ -1,41 +1,29 @@
package gregtech.api.interfaces.internal;
-import gregtech.api.enums.TC_Aspects;
-import gregtech.api.enums.TC_Aspects.TC_AspectStack;
import java.util.List;
+
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
+import gregtech.api.enums.TC_Aspects;
+import gregtech.api.enums.TC_Aspects.TC_AspectStack;
+
public interface IThaumcraftCompat {
- int RESEARCH_TYPE_NORMAL = 0,
- RESEARCH_TYPE_SECONDARY = 1,
- RESEARCH_TYPE_FREE = 2,
- RESEARCH_TYPE_HIDDEN = 4,
- RESEARCH_TYPE_VIRTUAL = 8,
- RESEARCH_TYPE_ROUND = 16,
- RESEARCH_TYPE_SPECIAL = 32,
+
+ int RESEARCH_TYPE_NORMAL = 0, RESEARCH_TYPE_SECONDARY = 1, RESEARCH_TYPE_FREE = 2, RESEARCH_TYPE_HIDDEN = 4,
+ RESEARCH_TYPE_VIRTUAL = 8, RESEARCH_TYPE_ROUND = 16, RESEARCH_TYPE_SPECIAL = 32,
RESEARCH_TYPE_AUTOUNLOCK = 64;
/**
* The Research Keys of GT
*/
- String IRON_TO_STEEL = "GT_IRON_TO_STEEL",
- FILL_WATER_BUCKET = "GT_FILL_WATER_BUCKET",
- WOOD_TO_CHARCOAL = "GT_WOOD_TO_CHARCOAL",
- TRANSZINC = "GT_TRANSZINC",
- TRANSNICKEL = "GT_TRANSNICKEL",
- TRANSCOBALT = "GT_TRANSCOBALT",
- TRANSBISMUTH = "GT_TRANSBISMUTH",
- TRANSANTIMONY = "GT_TRANSANTIMONY",
- TRANSCUPRONICKEL = "GT_TRANSCUPRONICKEL",
- TRANSBATTERYALLOY = "GT_TRANSBATTERYALLOY",
- TRANSSOLDERINGALLOY = "GT_TRANSSOLDERINGALLOY",
- TRANSBRASS = "GT_TRANSBRASS",
- TRANSBRONZE = "GT_TRANSBRONZE",
- TRANSINVAR = "GT_TRANSINVAR",
- TRANSELECTRUM = "GT_TRANSELECTRUM",
- TRANSALUMINIUM = "GT_TRANSALUMINIUM",
- CRYSTALLISATION = "GT_CRYSTALLISATION",
+ String IRON_TO_STEEL = "GT_IRON_TO_STEEL", FILL_WATER_BUCKET = "GT_FILL_WATER_BUCKET",
+ WOOD_TO_CHARCOAL = "GT_WOOD_TO_CHARCOAL", TRANSZINC = "GT_TRANSZINC", TRANSNICKEL = "GT_TRANSNICKEL",
+ TRANSCOBALT = "GT_TRANSCOBALT", TRANSBISMUTH = "GT_TRANSBISMUTH", TRANSANTIMONY = "GT_TRANSANTIMONY",
+ TRANSCUPRONICKEL = "GT_TRANSCUPRONICKEL", TRANSBATTERYALLOY = "GT_TRANSBATTERYALLOY",
+ TRANSSOLDERINGALLOY = "GT_TRANSSOLDERINGALLOY", TRANSBRASS = "GT_TRANSBRASS",
+ TRANSBRONZE = "GT_TRANSBRONZE", TRANSINVAR = "GT_TRANSINVAR", TRANSELECTRUM = "GT_TRANSELECTRUM",
+ TRANSALUMINIUM = "GT_TRANSALUMINIUM", CRYSTALLISATION = "GT_CRYSTALLISATION",
ADVANCEDENTROPICPROCESSING = "GT_ADVANCEDENTROPICPROCESSING", // unused
ADVANCEDMETALLURGY = "GT_ADVANCEDMETALLURGY";
@@ -47,26 +35,10 @@ public interface IThaumcraftCompat {
Object addCrucibleRecipe(String aResearch, Object aInput, ItemStack aOutput, List<TC_AspectStack> aAspects);
- Object addInfusionRecipe(
- String aResearch,
- ItemStack aMainInput,
- ItemStack[] aSideInputs,
- ItemStack aOutput,
- int aInstability,
- List<TC_Aspects.TC_AspectStack> aAspects);
+ Object addInfusionRecipe(String aResearch, ItemStack aMainInput, ItemStack[] aSideInputs, ItemStack aOutput,
+ int aInstability, List<TC_Aspects.TC_AspectStack> aAspects);
- Object addResearch(
- String aResearch,
- String aName,
- String aText,
- String[] aParentResearches,
- String aCategory,
- ItemStack aIcon,
- int aComplexity,
- int aType,
- int aX,
- int aY,
- List<TC_AspectStack> aAspects,
- ItemStack[] aResearchTriggers,
- Object[] aPages);
+ Object addResearch(String aResearch, String aName, String aText, String[] aParentResearches, String aCategory,
+ ItemStack aIcon, int aComplexity, int aType, int aX, int aY, List<TC_AspectStack> aAspects,
+ ItemStack[] aResearchTriggers, Object[] aPages);
}
diff --git a/src/main/java/gregtech/api/interfaces/internal/IUETileEntity.java b/src/main/java/gregtech/api/interfaces/internal/IUETileEntity.java
index 821aa35f50..7c9d487e05 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IUETileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IUETileEntity.java
@@ -1,5 +1,5 @@
package gregtech.api.interfaces.internal;
-public interface IUETileEntity /*extends IElectrical*/ {
+public interface IUETileEntity /* extends IElectrical */ {
//
}
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
index 84c991ade9..76d8d082ef 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces.metatileentity;
* For pipes, wires, and other MetaTiles which need to be decided whether they should connect to the block at each side.
*/
public interface IConnectable {
+
int NO_CONNECTION = 0b00000000;
int CONNECTED_DOWN = 0b00000001;
int CONNECTED_UP = 0b00000010;
@@ -17,8 +18,8 @@ public interface IConnectable {
int HAS_FOAM = 0b11000000;
/**
- * Try to connect to the Block at the specified side
- * returns the connection state. Non-positive values for failed, others for succeeded.
+ * Try to connect to the Block at the specified side returns the connection state. Non-positive values for failed,
+ * others for succeeded.
*/
int connect(byte aSide);
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java
index bac9cffba0..d7574313ac 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java
@@ -5,7 +5,7 @@ import net.minecraftforge.fluids.Fluid;
/**
* Implement this interface if your MetaTileEntity supports fluid lock mechanism.
*/
-@SuppressWarnings({"BooleanMethodIsAlwaysInverted"})
+@SuppressWarnings({ "BooleanMethodIsAlwaysInverted" })
public interface IFluidLockable {
/**
@@ -16,8 +16,8 @@ public interface IFluidLockable {
String getLockedFluidName();
/**
- * Set fluid lock state.
- * Would be useful when you don't necessarily want to change mode when locked fluid is changed.
+ * Set fluid lock state. Would be useful when you don't necessarily want to change mode when locked fluid is
+ * changed.
*/
void lockFluid(boolean lock);
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java
index a1c00ebc97..fb7845cfd4 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java
@@ -1,6 +1,7 @@
package gregtech.api.interfaces.metatileentity;
public interface IMachineCallback<Machinetype extends IMetaTileEntity> {
+
Machinetype getCallbackBase();
void setCallbackBase(Machinetype callback);
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java
index 0d1d52edb0..66c85be547 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java
@@ -1,21 +1,9 @@
package gregtech.api.interfaces.metatileentity;
-import com.gtnewhorizons.modularui.api.forge.ItemStackHandler;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import gregtech.api.enums.Dyes;
-import gregtech.api.interfaces.ITexture;
-import gregtech.api.interfaces.modularui.IGetGUITextureSet;
-import gregtech.api.interfaces.tileentity.IGearEnergyTileEntity;
-import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-import gregtech.api.interfaces.tileentity.IGregtechWailaProvider;
-import gregtech.api.interfaces.tileentity.IMachineBlockUpdateable;
-import gregtech.api.objects.GT_ItemStack;
-import gregtech.api.util.GT_Config;
-import gregtech.api.util.GT_Util;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
+
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.texture.IIconRegister;
@@ -31,38 +19,40 @@ import net.minecraft.world.World;
import net.minecraftforge.fluids.IFluidHandler;
import net.minecraftforge.fluids.IFluidTank;
+import com.gtnewhorizons.modularui.api.forge.ItemStackHandler;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.enums.Dyes;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.modularui.IGetGUITextureSet;
+import gregtech.api.interfaces.tileentity.IGearEnergyTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.interfaces.tileentity.IGregtechWailaProvider;
+import gregtech.api.interfaces.tileentity.IMachineBlockUpdateable;
+import gregtech.api.objects.GT_ItemStack;
+import gregtech.api.util.GT_Config;
+import gregtech.api.util.GT_Util;
+
/**
- * Warning, this Interface has just been made to be able to add multiple kinds of MetaTileEntities (Cables, Pipes, Transformers, but not the regular Blocks)
+ * Warning, this Interface has just been made to be able to add multiple kinds of MetaTileEntities (Cables, Pipes,
+ * Transformers, but not the regular Blocks)
* <p/>
* Don't implement this yourself and expect it to work. Extend @MetaTileEntity itself.
*/
-public interface IMetaTileEntity
- extends ISidedInventory,
- IFluidTank,
- IFluidHandler,
- IGearEnergyTileEntity,
- IMachineBlockUpdateable,
- IGregtechWailaProvider,
- IGetGUITextureSet {
+public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHandler, IGearEnergyTileEntity,
+ IMachineBlockUpdateable, IGregtechWailaProvider, IGetGUITextureSet {
+
/**
* This determines the BaseMetaTileEntity belonging to this MetaTileEntity by using the Meta ID of the Block itself.
* <p/>
- * 0 = BaseMetaTileEntity, Wrench lvl 0 to dismantle
- * 1 = BaseMetaTileEntity, Wrench lvl 1 to dismantle
- * 2 = BaseMetaTileEntity, Wrench lvl 2 to dismantle
- * 3 = BaseMetaTileEntity, Wrench lvl 3 to dismantle
- * 4 = BaseMetaPipeEntity, Wrench lvl 0 to dismantle
- * 5 = BaseMetaPipeEntity, Wrench lvl 1 to dismantle
- * 6 = BaseMetaPipeEntity, Wrench lvl 2 to dismantle
- * 7 = BaseMetaPipeEntity, Wrench lvl 3 to dismantle
- * 8 = BaseMetaPipeEntity, Cutter lvl 0 to dismantle
- * 9 = BaseMetaPipeEntity, Cutter lvl 1 to dismantle
- * 10 = BaseMetaPipeEntity, Cutter lvl 2 to dismantle
- * 11 = BaseMetaPipeEntity, Cutter lvl 3 to dismantle
- * 12 = GT++
- * 13 = GT++
- * 14 = GT++
- * 15 = GT++
+ * 0 = BaseMetaTileEntity, Wrench lvl 0 to dismantle 1 = BaseMetaTileEntity, Wrench lvl 1 to dismantle 2 =
+ * BaseMetaTileEntity, Wrench lvl 2 to dismantle 3 = BaseMetaTileEntity, Wrench lvl 3 to dismantle 4 =
+ * BaseMetaPipeEntity, Wrench lvl 0 to dismantle 5 = BaseMetaPipeEntity, Wrench lvl 1 to dismantle 6 =
+ * BaseMetaPipeEntity, Wrench lvl 2 to dismantle 7 = BaseMetaPipeEntity, Wrench lvl 3 to dismantle 8 =
+ * BaseMetaPipeEntity, Cutter lvl 0 to dismantle 9 = BaseMetaPipeEntity, Cutter lvl 1 to dismantle 10 =
+ * BaseMetaPipeEntity, Cutter lvl 2 to dismantle 11 = BaseMetaPipeEntity, Cutter lvl 3 to dismantle 12 = GT++ 13 =
+ * GT++ 14 = GT++ 15 = GT++
*/
byte getTileEntityBaseType();
@@ -103,8 +93,8 @@ public interface IMetaTileEntity
void loadNBTData(NBTTagCompound aNBT);
/**
- * Adds the NBT-Information to the ItemStack, when being dismanteled properly
- * Used to store Machine specific Upgrade Data.
+ * Adds the NBT-Information to the ItemStack, when being dismanteled properly Used to store Machine specific Upgrade
+ * Data.
*/
void setItemNBT(NBTTagCompound aNBT);
@@ -114,7 +104,8 @@ public interface IMetaTileEntity
void onServerStart();
/**
- * Called in the registered MetaTileEntity when the Server ticks a World the first time, to load things from the World Save
+ * Called in the registered MetaTileEntity when the Server ticks a World the first time, to load things from the
+ * World Save
*/
void onWorldLoad(File aSaveDirectory);
@@ -124,14 +115,14 @@ public interface IMetaTileEntity
void onWorldSave(File aSaveDirectory);
/**
- * Called to set Configuration values for this MetaTileEntity.
- * Use aConfig.get(ConfigCategories.machineconfig, "MetaTileEntityName.Ability", DEFAULT_VALUE); to set the Values.
+ * Called to set Configuration values for this MetaTileEntity. Use aConfig.get(ConfigCategories.machineconfig,
+ * "MetaTileEntityName.Ability", DEFAULT_VALUE); to set the Values.
*/
void onConfigLoad(GT_Config aConfig);
/**
- * If a Cover of that Type can be placed on this Side.
- * Also Called when the Facing of the Block Changes and a Cover is on said Side.
+ * If a Cover of that Type can be placed on this Side. Also Called when the Facing of the Block Changes and a Cover
+ * is on said Side.
*/
boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack);
@@ -153,8 +144,8 @@ public interface IMetaTileEntity
/**
* When a Player rightclicks the Facing with a soldering iron.
*/
- boolean onSolderingToolRightClick(
- byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, float aZ);
+ boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY,
+ float aZ);
/**
* Called right before this Machine explodes
@@ -167,21 +158,19 @@ public interface IMetaTileEntity
void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity);
/**
- * The Tick before all the generic handling happens, what gives a slightly faster reaction speed.
- * Don't use this if you really don't need to. @onPostTick is better suited for ticks.
- * This happens still after the Cover handling.
+ * The Tick before all the generic handling happens, what gives a slightly faster reaction speed. Don't use this if
+ * you really don't need to. @onPostTick is better suited for ticks. This happens still after the Cover handling.
*/
void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick);
/**
- * The Tick after all the generic handling happened.
- * Recommended to use this like updateEntity.
+ * The Tick after all the generic handling happened. Recommended to use this like updateEntity.
*/
void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick);
/**
- * Called when this MetaTileEntity gets (intentionally) disconnected from the BaseMetaTileEntity.
- * Doesn't get called when this thing is moved by Frames or similar hacks.
+ * Called when this MetaTileEntity gets (intentionally) disconnected from the BaseMetaTileEntity. Doesn't get called
+ * when this thing is moved by Frames or similar hacks.
*/
void inValidate();
@@ -232,11 +221,13 @@ public interface IMetaTileEntity
boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack);
/**
- * @return if aIndex is a valid Slot. false for things like HoloSlots. Is used for determining if an Item is dropped upon Block destruction and for Inventory Access Management
+ * @return if aIndex is a valid Slot. false for things like HoloSlots. Is used for determining if an Item is dropped
+ * upon Block destruction and for Inventory Access Management
*/
boolean isValidSlot(int aIndex);
- /** Check if the item at the specified index should be dropped
+ /**
+ * Check if the item at the specified index should be dropped
*
* @param index Index that will be checked
* @return True if the item at the index should be dropped, else false
@@ -269,17 +260,15 @@ public interface IMetaTileEntity
boolean isAccessAllowed(EntityPlayer aPlayer);
/**
- * a Player rightclicks the Machine
- * Sneaky rightclicks are not getting passed to this!
+ * a Player rightclicks the Machine Sneaky rightclicks are not getting passed to this!
*
* @return
*/
- boolean onRightclick(
- IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY, float aZ);
+ boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY,
+ float aZ);
/**
- * a Player leftclicks the Machine
- * Sneaky leftclicks are getting passed to this unlike with the rightclicks.
+ * a Player leftclicks the Machine Sneaky leftclicks are getting passed to this unlike with the rightclicks.
*/
void onLeftclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer);
@@ -289,11 +278,12 @@ public interface IMetaTileEntity
void onValueUpdate(byte aValue);
/**
- * return a small bit of Data, like a secondary Facing for example with this Function, for the Client.
- * The BaseMetaTileEntity detects changes to this Value and will then send an Update.
- * This is only for Information, which is visible as Texture to the outside.
+ * return a small bit of Data, like a secondary Facing for example with this Function, for the Client. The
+ * BaseMetaTileEntity detects changes to this Value and will then send an Update. This is only for Information,
+ * which is visible as Texture to the outside.
* <p/>
- * If you just want to have an Active/Redstone State then set the Active State inside the BaseMetaTileEntity instead.
+ * If you just want to have an Active/Redstone State then set the Active State inside the BaseMetaTileEntity
+ * instead.
*/
byte getUpdateData();
@@ -303,9 +293,8 @@ public interface IMetaTileEntity
void receiveClientEvent(byte aEventID, byte aValue);
/**
- * Called to actually play the Sound.
- * Do not insert Client/Server checks. That is already done for you.
- * Do not use @playSoundEffect, Minecraft doesn't like that at all. Use @playSound instead.
+ * Called to actually play the Sound. Do not insert Client/Server checks. That is already done for you. Do not
+ * use @playSoundEffect, Minecraft doesn't like that at all. Use @playSound instead.
*/
void doSound(byte aIndex, double aX, double aY, double aZ);
@@ -343,16 +332,16 @@ public interface IMetaTileEntity
/**
* If there should be a Lag Warning if something laggy happens during this Tick.
* <p/>
- * The Advanced Pump uses this to not cause the Lag Message, while it scans for all close Fluids.
- * The Item Pipes and Retrievers neither send this Message, when scanning for Pipes.
+ * The Advanced Pump uses this to not cause the Lag Message, while it scans for all close Fluids. The Item Pipes and
+ * Retrievers neither send this Message, when scanning for Pipes.
*/
boolean doTickProfilingMessageDuringThisTick();
/**
* returns the DebugLog
*/
- ArrayList<String> getSpecialDebugInfo(
- IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, int aLogLevel, ArrayList<String> aList);
+ ArrayList<String> getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, int aLogLevel,
+ ArrayList<String> aList);
/**
* get a small Description
@@ -370,16 +359,14 @@ public interface IMetaTileEntity
* @param aSide is the Side of the Block
* @param aFacing is the direction the Block is facing (or a Bitmask of all Connections in case of Pipes)
* @param aColorIndex The Minecraft Color the Block is having
- * @param aActive if the Machine is currently active (use this instead of calling mBaseMetaTileEntity.mActive!!!). Note: In case of Pipes this means if this Side is connected to something or not.
- * @param aRedstone if the Machine is currently outputting a RedstoneSignal (use this instead of calling mBaseMetaTileEntity.mRedstone!!!)
+ * @param aActive if the Machine is currently active (use this instead of calling
+ * mBaseMetaTileEntity.mActive!!!). Note: In case of Pipes this means if this Side is connected
+ * to something or not.
+ * @param aRedstone if the Machine is currently outputting a RedstoneSignal (use this instead of calling
+ * mBaseMetaTileEntity.mRedstone!!!)
*/
- ITexture[] getTexture(
- IGregTechTileEntity aBaseMetaTileEntity,
- byte aSide,
- byte aFacing,
- byte aColorIndex,
- boolean aActive,
- boolean aRedstone);
+ ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex,
+ boolean aActive, boolean aRedstone);
/**
* The Textures used for the Item rendering. Return null if you want the regular 3D Block Rendering.
@@ -387,8 +374,8 @@ public interface IMetaTileEntity
// public ITexture[] getItemTexture(ItemStack aStack);
/**
- * Register Icons here. This gets called when the Icons get initialized by the Base Block
- * Best is you put your Icons in a static Array for quick and easy access without relying on the MetaTileList.
+ * Register Icons here. This gets called when the Icons get initialized by the Base Block Best is you put your Icons
+ * in a static Array for quick and easy access without relying on the MetaTileList.
*
* @param aBlockIconRegister The Block Icon Register
*/
@@ -441,14 +428,8 @@ public interface IMetaTileEntity
boolean allowGeneralRedstoneOutput();
- void addCollisionBoxesToList(
- World aWorld,
- int aX,
- int aY,
- int aZ,
- AxisAlignedBB inputAABB,
- List<AxisAlignedBB> outputAABB,
- Entity collider);
+ void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB,
+ List<AxisAlignedBB> outputAABB, Entity collider);
AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ);
@@ -466,9 +447,9 @@ public interface IMetaTileEntity
boolean shouldJoinIc2Enet();
/**
- * The Machine Update, which is called when the Machine needs an Update of its Parts.
- * I suggest to wait 1-5 seconds before actually checking the Machine Parts.
- * RP-Frames could for example cause Problems when you instacheck the Machine Parts.
+ * The Machine Update, which is called when the Machine needs an Update of its Parts. I suggest to wait 1-5 seconds
+ * before actually checking the Machine Parts. RP-Frames could for example cause Problems when you instacheck the
+ * Machine Parts.
*
* just do stuff since we are already in meta tile...
*/
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java
index 6b83ab4dba..62df2e713f 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java
@@ -2,12 +2,14 @@ package gregtech.api.interfaces.metatileentity;
import java.util.ArrayList;
import java.util.HashSet;
+
import net.minecraft.tileentity.TileEntity;
public interface IMetaTileEntityCable extends IMetaTileEntity {
+
@Deprecated
- long transferElectricity(
- byte aSide, long aVoltage, long aAmperage, ArrayList<TileEntity> aAlreadyPassedTileEntityList);
+ long transferElectricity(byte aSide, long aVoltage, long aAmperage,
+ ArrayList<TileEntity> aAlreadyPassedTileEntityList);
default long transferElectricity(byte aSide, long aVoltage, long aAmperage, HashSet<TileEntity> aAlreadyPassedSet) {
return transferElectricity(aSide, aVoltage, aAmperage, new ArrayList<>(aAlreadyPassedSet));
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java
index 5375ea85ee..b60088a41b 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java
@@ -2,12 +2,14 @@ package gregtech.api.interfaces.metatileentity;
import static gregtech.api.enums.GT_Values.ALL_VALID_SIDES;
+import java.util.Map;
+
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.BaseMetaPipeEntity;
import gregtech.api.util.GT_Utility;
-import java.util.Map;
public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
+
/**
* @return if this Pipe can still be used.
*/
@@ -36,9 +38,9 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
boolean insertItemStackIntoTileEntity(Object aSender, byte aSide);
/**
- * Can be used to make flow control Pipes, like Redpowers Restriction Tubes.
- * Every normal Pipe returns a Value of 32768, so you can easily insert lower Numbers to set Routing priorities.
- * Negative Numbers to "suck" Items into a certain direction are also possible.
+ * Can be used to make flow control Pipes, like Redpowers Restriction Tubes. Every normal Pipe returns a Value of
+ * 32768, so you can easily insert lower Numbers to set Routing priorities. Negative Numbers to "suck" Items into a
+ * certain direction are also possible.
*/
int getStepSize();
@@ -46,15 +48,12 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
* Utility for the Item Network
*/
class Util {
+
/**
* @return a List of connected Item Pipes
*/
- public static Map<IMetaTileEntityItemPipe, Long> scanPipes(
- IMetaTileEntityItemPipe aMetaTileEntity,
- Map<IMetaTileEntityItemPipe, Long> aMap,
- long aStep,
- boolean aSuckItems,
- boolean aIgnoreCapacity) {
+ public static Map<IMetaTileEntityItemPipe, Long> scanPipes(IMetaTileEntityItemPipe aMetaTileEntity,
+ Map<IMetaTileEntityItemPipe, Long> aMap, long aStep, boolean aSuckItems, boolean aIgnoreCapacity) {
aStep += aMetaTileEntity.getStepSize();
if (aIgnoreCapacity || aMetaTileEntity.pipeCapacityCheck())
if (aMap.get(aMetaTileEntity) == null || aMap.get(aMetaTileEntity) > aStep) {
@@ -63,12 +62,13 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
byte oppositeSide;
for (byte side : ALL_VALID_SIDES) {
if (aMetaTileEntity instanceof IConnectable
- && !((IConnectable) aMetaTileEntity).isConnectedAtSide(side)) continue;
+ && !((IConnectable) aMetaTileEntity).isConnectedAtSide(side))
+ continue;
oppositeSide = GT_Utility.getOppositeSide(side);
if (aSuckItems) {
if (aBaseMetaTileEntity.getCoverInfoAtSide(side).letsItemsIn(-2)) {
- final IGregTechTileEntity tItemPipe =
- aBaseMetaTileEntity.getIGregTechTileEntityAtSide(side);
+ final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity
+ .getIGregTechTileEntityAtSide(side);
if (aBaseMetaTileEntity.getColorization() >= 0) {
final byte tColor = tItemPipe.getColorization();
if (tColor >= 0 && tColor != aBaseMetaTileEntity.getColorization()) {
@@ -78,9 +78,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
if (tItemPipe instanceof BaseMetaPipeEntity) {
final IMetaTileEntity tMetaTileEntity = tItemPipe.getMetaTileEntity();
if (tMetaTileEntity instanceof IMetaTileEntityItemPipe
- && tItemPipe
- .getCoverInfoAtSide(oppositeSide)
- .letsItemsOut(-2)) {
+ && tItemPipe.getCoverInfoAtSide(oppositeSide).letsItemsOut(-2)) {
scanPipes(
(IMetaTileEntityItemPipe) tMetaTileEntity,
aMap,
@@ -92,8 +90,8 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
}
} else {
if (aBaseMetaTileEntity.getCoverInfoAtSide(side).letsItemsOut(-2)) {
- final IGregTechTileEntity tItemPipe =
- aBaseMetaTileEntity.getIGregTechTileEntityAtSide(side);
+ final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity
+ .getIGregTechTileEntityAtSide(side);
if (tItemPipe != null) {
if (aBaseMetaTileEntity.getColorization() >= 0) {
final byte tColor = tItemPipe.getColorization();
@@ -104,9 +102,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
if (tItemPipe instanceof BaseMetaPipeEntity) {
final IMetaTileEntity tMetaTileEntity = tItemPipe.getMetaTileEntity();
if (tMetaTileEntity instanceof IMetaTileEntityItemPipe
- && tItemPipe
- .getCoverInfoAtSide(oppositeSide)
- .letsItemsIn(-2)) {
+ && tItemPipe.getCoverInfoAtSide(oppositeSide).letsItemsIn(-2)) {
scanPipes(
(IMetaTileEntityItemPipe) tMetaTileEntity,
aMap,
diff --git a/src/main/java/gregtech/api/interfaces/modularui/IAddGregtechLogo.java b/src/main/java/gregtech/api/interfaces/modularui/IAddGregtechLogo.java
index d90d310dc8..12ac32c143 100644
--- a/src/main/java/gregtech/api/interfaces/modularui/IAddGregtechLogo.java
+++ b/src/main/java/gregtech/api/interfaces/modularui/IAddGregtechLogo.java
@@ -3,5 +3,6 @@ package gregtech.api.interfaces.modularui;
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
public interface IAddGregtechLogo {
+
default void addGregTechLogo(ModularWindow.Builder builder) {}
}
diff --git a/src/main/java/gregtech/api/interfaces/modularui/IAddInventorySlots.java b/src/main/java/gregtech/api/interfaces/modularui/IAddInventorySlots.java
index 70e33aa2c8..4111848ecb 100644
--- a/src/main/java/gregtech/api/interfaces/modularui/IAddInventorySlots.java
+++ b/src/main/java/gregtech/api/interfaces/modularui/IAddInventorySlots.java
@@ -4,6 +4,7 @@ import com.gtnewhorizons.modularui.api.drawable.IDrawable;
import com.gtnewhorizons.modularui.api.screen.ModularWindow;
public interface IAddInventorySlots {
+
default void add1by1Slot(ModularWindow.Builder builder, IDrawable... background) {}
default void add2by2Slots(ModularWindow.Builder builder, IDrawable... background) {}
diff --git a/src/main/java/gregtech/api/interfaces/modularui/IAddUIWidgets.java b/src/main/java/gregtech/api/interfaces/modularui/IAddUIWidgets.java
index 7b70fd724c..1fa317b17f 100644
--- a/src/main/java/gregtech/api/interfaces/modularui/IAddUIWidgets.java
+++ b/src/main/java/gregtech/api/interfaces/modularui/IAddUIWidgets.java
@@ -4,5 +4,6 @@ import com.gtnewhorizons.modularui.api.screen.ModularWindow;
import com.gtnewhorizons.modularui.api.screen.UIBuildContext;
public interface IAddUIWidgets {
+
default void addUIWidgets(ModularWindow.Builder builder, UIBuildContext buildContext) {}
}
diff --git a/src/main/java/gregtech/api/interfaces/modularui/IGetGUITextureSet.java b/src/main/java/gregtech/api/interfaces/modularui/IGetGUITextureSet.java
index 409523b008..59aa2723c3 100644
--- a/src/main/java/gregtech/api/interfaces/modularui/IGetGUITextureSet.java
+++ b/src/main/java/gregtech/api/interfaces/modularui/IGetGUITextureSet.java
@@ -3,6 +3,7 @@ package gregtech.api.interfaces.modularui;
import gregtech.api.gui.modularui.GUITextureSet;
public interface IGetGUITextureSet {
+
default GUITextureSet getGUITextureSet() {
return null;
}
diff --git a/src/main/java/gregtech/api/interfaces/modularui/IGetTitleColor.java b/src/main/java/gregtech/api/interfaces/modularui/IGetTitleColor.java
index a1f79d1568..76d94ee299 100644
--- a/src/main/java/gregtech/api/interfaces/modularui/IGetTitleColor.java
+++ b/src/main/java/gregtech/api/interfaces/modularui/IGetTitleColor.java
@@ -4,6 +4,7 @@ import gregtech.api.enums.Dyes;
import gregtech.api.util.GT_Util;
public interface IGetTitleColor {
+
default int getTitleColor() {
return GT_Util.getRGBaInt(Dyes.dyeWhite.getRGBA());
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java b/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java
index 7b0bc9c690..44b59ffce1 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java
@@ -4,16 +4,16 @@ package gregtech.api.interfaces.tileentity;
* Interface for internal Code, which is mainly used for independent Energy conversion.
*/
public interface IBasicEnergyContainer extends IEnergyConnected {
+
/**
- * Gets if that Amount of Energy is stored inside the Machine.
- * It is used for checking the contained Energy before consuming it.
- * If this returns false, it will also give a Message inside the Scanner, that this Machine doesn't have enough Energy.
+ * Gets if that Amount of Energy is stored inside the Machine. It is used for checking the contained Energy before
+ * consuming it. If this returns false, it will also give a Message inside the Scanner, that this Machine doesn't
+ * have enough Energy.
*/
boolean isUniversalEnergyStored(long aEnergyAmount);
/**
- * Gets the stored electric, kinetic or steam Energy (with EU as reference Value)
- * Always returns the largest one.
+ * Gets the stored electric, kinetic or steam Energy (with EU as reference Value) Always returns the largest one.
*/
long getUniversalEnergyStored();
@@ -43,12 +43,14 @@ public interface IBasicEnergyContainer extends IEnergyConnected {
long getInputVoltage();
/**
- * Decreases the Amount of stored universal Energy. If ignoring too less Energy, then it just sets the Energy to 0 and returns false.
+ * Decreases the Amount of stored universal Energy. If ignoring too less Energy, then it just sets the Energy to 0
+ * and returns false.
*/
boolean decreaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooLessEnergy);
/**
- * Increases the Amount of stored electric Energy. If ignoring too much Energy, then the Energy Limit is just being ignored.
+ * Increases the Amount of stored electric Energy. If ignoring too much Energy, then the Energy Limit is just being
+ * ignored.
*/
boolean increaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooMuchEnergy);
@@ -97,8 +99,8 @@ public interface IBasicEnergyContainer extends IEnergyConnected {
* @param aEnergy The Energy to add to the Machine.
* @param aIgnoreTooMuchEnergy if it shall ignore if it has too much Energy.
* @return if it was successful
- * <p/>
- * And yes, you can't directly decrease the Steam of a Machine. That is done by decreaseStoredEnergyUnits
+ * <p/>
+ * And yes, you can't directly decrease the Steam of a Machine. That is done by decreaseStoredEnergyUnits
*/
default boolean increaseStoredSteam(long aEnergy, boolean aIgnoreTooMuchEnergy) {
return false;
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java
index 3bcf441128..3a17df4717 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java
@@ -4,6 +4,7 @@ import gregtech.api.enums.Dyes;
import gregtech.api.util.GT_Util;
public interface IColoredTileEntity {
+
/**
* @return 0 - 15 are Colors, while -1 means uncolored
*/
@@ -20,7 +21,7 @@ public interface IColoredTileEntity {
* @return Actual color shown on GUI
*/
default int getGUIColorization() {
- return GT_Util.getRGBInt(
- (getColorization() != -1 ? Dyes.get(getColorization()) : Dyes.MACHINE_METAL).getRGBA());
+ return GT_Util
+ .getRGBInt((getColorization() != -1 ? Dyes.get(getColorization()) : Dyes.MACHINE_METAL).getRGBA());
}
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java b/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
index df131c84c2..f23c5a64c9 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
@@ -1,13 +1,15 @@
package gregtech.api.interfaces.tileentity;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.ItemStack;
+
import gregtech.api.util.GT_CoverBehavior;
import gregtech.api.util.GT_CoverBehaviorBase;
import gregtech.api.util.ISerializableObject;
import gregtech.common.covers.CoverInfo;
-import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.ItemStack;
public interface ICoverable extends IRedstoneTileEntity, IHasInventory, IBasicEnergyContainer {
+
boolean canPlaceCoverIDAtSide(byte aSide, int aID);
boolean canPlaceCoverItemAtSide(byte aSide, ItemStack aCover);
@@ -53,20 +55,19 @@ public interface ICoverable extends IRedstoneTileEntity, IHasInventory, IBasicEn
}
/**
- * For use by the regular MetaTileEntities. Returns the Cover Manipulated input Redstone.
- * Don't use this if you are a Cover Behavior. Only for MetaTileEntities.
+ * For use by the regular MetaTileEntities. Returns the Cover Manipulated input Redstone. Don't use this if you are
+ * a Cover Behavior. Only for MetaTileEntities.
*/
byte getInternalInputRedstoneSignal(byte aSide);
/**
- * For use by the regular MetaTileEntities. This makes it not conflict with Cover based Redstone Signals.
- * Don't use this if you are a Cover Behavior. Only for MetaTileEntities.
+ * For use by the regular MetaTileEntities. This makes it not conflict with Cover based Redstone Signals. Don't use
+ * this if you are a Cover Behavior. Only for MetaTileEntities.
*/
void setInternalOutputRedstoneSignal(byte aSide, byte aStrength);
/**
- * Causes a general Cover Texture update.
- * Sends 6 Integers to Client + causes @issueTextureUpdate()
+ * Causes a general Cover Texture update. Sends 6 Integers to Client + causes @issueTextureUpdate()
*/
void issueCoverUpdate(byte aSide);
@@ -77,10 +78,11 @@ public interface ICoverable extends IRedstoneTileEntity, IHasInventory, IBasicEn
/**
* Receiving a packet with cover data.
+ *
* @param aPlayer the player who made the change
*/
- default void receiveCoverData(
- byte aCoverSide, int aCoverID, ISerializableObject aCoverData, EntityPlayerMP aPlayer) {
+ default void receiveCoverData(byte aCoverSide, int aCoverID, ISerializableObject aCoverData,
+ EntityPlayerMP aPlayer) {
if (aCoverData instanceof ISerializableObject.LegacyCoverData)
receiveCoverData(aCoverSide, aCoverID, ((ISerializableObject.LegacyCoverData) aCoverData).get());
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IDebugableTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IDebugableTileEntity.java
index 4e3b03d970..5208944d66 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IDebugableTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IDebugableTileEntity.java
@@ -1,18 +1,17 @@
package gregtech.api.interfaces.tileentity;
import java.util.ArrayList;
+
import net.minecraft.entity.player.EntityPlayer;
public interface IDebugableTileEntity {
+
/**
* Returns a Debug Message, for a generic DebugItem
*
* @param aPlayer the Player, who rightclicked with his Debug Item
- * @param aLogLevel the Log Level of the Debug Item.
- * 0 = Obvious
- * 1 = Visible for the regular Scanner
- * 2 = Only visible to more advanced Scanners
- * 3 = Debug ONLY
+ * @param aLogLevel the Log Level of the Debug Item. 0 = Obvious 1 = Visible for the regular Scanner 2 = Only
+ * visible to more advanced Scanners 3 = Debug ONLY
* @return a String-Array containing the DebugInfo, every Index is a separate line (0 = first Line)
*/
ArrayList<String> getDebugInfo(EntityPlayer aPlayer, int aLogLevel);
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java b/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
index 9d19e7cef0..9a08e65b78 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
@@ -6,16 +6,17 @@ import net.minecraft.item.ItemStack;
* You are allowed to include this File in your Download, as i will not change it.
*/
public interface IDigitalChest extends IHasWorldObjectAndCoords {
+
/**
- * Is this even a TileEntity of a Digital Chest?
- * I need things like this Function for MetaTileEntities, you MUST check this!!!
- * Do not assume that it's a Digital Chest or similar Device, when it just implements this Interface.
+ * Is this even a TileEntity of a Digital Chest? I need things like this Function for MetaTileEntities, you MUST
+ * check this!!! Do not assume that it's a Digital Chest or similar Device, when it just implements this Interface.
*/
boolean isDigitalChest();
/**
- * Gives an Array of Stacks with Size (of all the Data-stored Items) of the correspondent Item kinds (regular QChests have only one)
- * Does NOT include the 64 "ready" Items inside the Slots, and neither the 128 Items in the overflow Buffer.
+ * Gives an Array of Stacks with Size (of all the Data-stored Items) of the correspondent Item kinds (regular
+ * QChests have only one) Does NOT include the 64 "ready" Items inside the Slots, and neither the 128 Items in the
+ * overflow Buffer.
*/
ItemStack[] getStoredItemData();
@@ -25,7 +26,8 @@ public interface IDigitalChest extends IHasWorldObjectAndCoords {
void setItemCount(int aCount);
/**
- * Gets the maximum Item count for this QChest alike Storage. This applies to the Data-Storage, not for the up to 192 buffered Items!
+ * Gets the maximum Item count for this QChest alike Storage. This applies to the Data-Storage, not for the up to
+ * 192 buffered Items!
*/
int getMaxItemCount();
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java
index 5a35e1ea52..f136434c54 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java
@@ -8,6 +8,7 @@ import gregtech.api.enums.Materials;
* Not all Data might be reliable. This is just for Information sake.
*/
public interface IEnergyConductor extends IEnergyConnected {
+
/**
* @return if this is actually a Cable. (you must check this)
*/
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
index c1ecc2b153..d046418ea6 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
@@ -1,26 +1,29 @@
package gregtech.api.interfaces.tileentity;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.common.util.ForgeDirection;
+
import cofh.api.energy.IEnergyReceiver;
import gregtech.api.GregTech_API;
import gregtech.api.util.GT_Utility;
import ic2.api.energy.tile.IEnergySink;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraftforge.common.util.ForgeDirection;
/**
* Interface for getting Connected to the GregTech Energy Network.
* <p/>
- * This is all you need to connect to the GT Network.
- * IColoredTileEntity is needed for not connecting differently coloured Blocks to each other.
- * IHasWorldObjectAndCoords is needed for the InWorld related Stuff. @BaseTileEntity does implement most of that Interface.
+ * This is all you need to connect to the GT Network. IColoredTileEntity is needed for not connecting differently
+ * coloured Blocks to each other. IHasWorldObjectAndCoords is needed for the InWorld related Stuff. @BaseTileEntity does
+ * implement most of that Interface.
*/
public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAndCoords {
+
/**
* Inject Energy Call for Electricity. Gets called by EnergyEmitters to inject Energy into your Block
* <p/>
* Note: you have to check for @inputEnergyFrom because the Network won't check for that by itself.
*
- * @param aSide 0 - 5 = Vanilla Directions of YOUR Block the Energy gets inserted to. 6 = No specific Side (don't do Side checks for this Side)
+ * @param aSide 0 - 5 = Vanilla Directions of YOUR Block the Energy gets inserted to. 6 = No specific Side (don't do
+ * Side checks for this Side)
* @return amount of used Amperes. 0 if not accepted anything.
*/
long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage);
@@ -47,6 +50,7 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd
* Utility for the Network
*/
final class Util {
+
/**
* Emits Energy to the E-net. Also compatible with adjacent IC2 TileEntities.
*
@@ -69,15 +73,14 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd
} else if (tTileEntity instanceof IEnergySink) {
if (((IEnergySink) tTileEntity)
.acceptsEnergyFrom((TileEntity) aEmitter, ForgeDirection.getOrientation(j))) {
- while (aAmperage > rUsedAmperes
- && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0
+ while (aAmperage > rUsedAmperes && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0
&& ((IEnergySink) tTileEntity)
- .injectEnergy(ForgeDirection.getOrientation(j), aVoltage, aVoltage)
- < aVoltage) rUsedAmperes++;
+ .injectEnergy(ForgeDirection.getOrientation(j), aVoltage, aVoltage)
+ < aVoltage)
+ rUsedAmperes++;
}
} else if (GregTech_API.mOutputRF && tTileEntity instanceof IEnergyReceiver) {
- final ForgeDirection tDirection =
- ForgeDirection.getOrientation(i).getOpposite();
+ final ForgeDirection tDirection = ForgeDirection.getOrientation(i).getOpposite();
final int rfOut = GT_Utility.safeInt(aVoltage * GregTech_API.mEUtoRF / 100);
if (((IEnergyReceiver) tTileEntity).receiveEnergy(tDirection, rfOut, true) == rfOut) {
((IEnergyReceiver) tTileEntity).receiveEnergy(tDirection, rfOut, false);
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java
index 936de80b3e..8eb481f150 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java
@@ -1,28 +1,31 @@
package gregtech.api.interfaces.tileentity;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.common.util.ForgeDirection;
+
import cofh.api.energy.IEnergyReceiver;
import gregtech.api.enums.SubTag;
import gregtech.api.util.GT_Utility;
import ic2.api.energy.tile.IEnergySink;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraftforge.common.util.ForgeDirection;
/**
* THIS IS GOING TO BE USED IN 1.8
* <p/>
* Interface for getting Connected to the GregTech Energy Network.
* <p/>
- * This is all you need to connect to the GT Network.
- * IColoredTileEntity is needed for not connecting differently coloured Blocks to each other.
- * IHasWorldObjectAndCoords is needed for the InWorld related Stuff. @BaseTileEntity does implement most of that Interface.
+ * This is all you need to connect to the GT Network. IColoredTileEntity is needed for not connecting differently
+ * coloured Blocks to each other. IHasWorldObjectAndCoords is needed for the InWorld related Stuff. @BaseTileEntity does
+ * implement most of that Interface.
*/
public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasWorldObjectAndCoords {
+
/**
* Inject Energy Call for Electricity. Gets called by EnergyEmitters to inject Energy into your Block
* <p/>
* Note: you have to check for @inputEnergyFrom because the Network won't check for that by itself.
*
- * @param aSide 0 - 5 = Vanilla Directions of YOUR Block the Energy gets inserted to. 6 = No specific Side (don't do Side checks for this Side)
+ * @param aSide 0 - 5 = Vanilla Directions of YOUR Block the Energy gets inserted to. 6 = No specific Side (don't do
+ * Side checks for this Side)
* @return amount of used Amperes. 0 if not accepted anything.
*/
long injectEnergy(SubTag aEnergyType, byte aSide, long aPrimary, long aSecondary);
@@ -41,6 +44,7 @@ public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasW
* Utility for the Network
*/
class Util {
+
public static int RF_PER_EU = 4;
private static boolean RF_ENERGY = false, IC_ENERGY = false, CHECK_ALL = true;
@@ -65,12 +69,13 @@ public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasW
}
/**
- * Emits Energy to the adjacent Blocks. Also compatible with adjacent IC2 TileEntities when electric and RF TileEntities when RedstoneFlux.
+ * Emits Energy to the adjacent Blocks. Also compatible with adjacent IC2 TileEntities when electric and RF
+ * TileEntities when RedstoneFlux.
*
* @return the amount of used secondary value.
*/
- public static final long emitEnergyToNetwork(
- SubTag aEnergyType, long aPrimary, long aSecondary, IExperimentalEnergyTileEntity aEmitter) {
+ public static final long emitEnergyToNetwork(SubTag aEnergyType, long aPrimary, long aSecondary,
+ IExperimentalEnergyTileEntity aEmitter) {
long rUsedSecondary = 0;
checkAvailabilities();
for (byte i = 0, j = 0; i < 6 && aSecondary > rUsedSecondary; i++)
@@ -84,24 +89,24 @@ public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasW
}
rUsedSecondary += ((IExperimentalEnergyTileEntity) tTileEntity)
.injectEnergy(aEnergyType, j, aPrimary, aSecondary - rUsedSecondary);
- } else if (IC_ENERGY
- && aEnergyType == SubTag.ENERGY_ELECTRICITY
+ } else if (IC_ENERGY && aEnergyType == SubTag.ENERGY_ELECTRICITY
&& tTileEntity instanceof IEnergySink) {
- if (((IEnergySink) tTileEntity)
- .acceptsEnergyFrom((TileEntity) aEmitter, ForgeDirection.getOrientation(j))) {
- while (aSecondary > rUsedSecondary
- && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0
- && ((IEnergySink) tTileEntity)
+ if (((IEnergySink) tTileEntity)
+ .acceptsEnergyFrom((TileEntity) aEmitter, ForgeDirection.getOrientation(j))) {
+ while (aSecondary > rUsedSecondary
+ && ((IEnergySink) tTileEntity).getDemandedEnergy() > 0
+ && ((IEnergySink) tTileEntity)
.injectEnergy(ForgeDirection.getOrientation(j), aPrimary, aPrimary)
- < aPrimary) rUsedSecondary++;
- }
- } else if (RF_ENERGY
- && aEnergyType == SubTag.ENERGY_REDSTONE_FLUX
- && tTileEntity instanceof IEnergyReceiver
- && ((IEnergyReceiver) tTileEntity).canConnectEnergy(ForgeDirection.getOrientation(j))) {
- rUsedSecondary += ((IEnergyReceiver) tTileEntity)
- .receiveEnergy(ForgeDirection.getOrientation(j), (int) aSecondary, false);
- }
+ < aPrimary)
+ rUsedSecondary++;
+ }
+ } else
+ if (RF_ENERGY && aEnergyType == SubTag.ENERGY_REDSTONE_FLUX
+ && tTileEntity instanceof IEnergyReceiver
+ && ((IEnergyReceiver) tTileEntity).canConnectEnergy(ForgeDirection.getOrientation(j))) {
+ rUsedSecondary += ((IEnergyReceiver) tTileEntity)
+ .receiveEnergy(ForgeDirection.getOrientation(j), (int) aSecondary, false);
+ }
}
return rUsedSecondary;
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java
index 713fe73f22..a301c21a76 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces.tileentity;
* This File has just internal Information about the Fibre Redstone State of a TileEntity
*/
public interface IFibreConnected extends IColoredTileEntity, IHasWorldObjectAndCoords {
+
/**
* If this Blocks accepts Fibre from this Side
*/
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java
index 54fe151cb1..31e9b51719 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java
@@ -1,15 +1,16 @@
package gregtech.api.interfaces.tileentity;
public interface IGearEnergyTileEntity {
+
/**
- * If Rotation Energy can be accepted on this Side.
- * This means that the Gear/Axle will connect to this Side, and can cause the Gear/Axle to stop if the Energy isn't accepted.
+ * If Rotation Energy can be accepted on this Side. This means that the Gear/Axle will connect to this Side, and can
+ * cause the Gear/Axle to stop if the Energy isn't accepted.
*/
boolean acceptsRotationalEnergy(byte aSide);
/**
- * Inject Energy Call for Rotational Energy.
- * Rotation Energy can't be stored, this is just for things like internal Dynamos, which convert it into Energy, or into Progress.
+ * Inject Energy Call for Rotational Energy. Rotation Energy can't be stored, this is just for things like internal
+ * Dynamos, which convert it into Energy, or into Progress.
*
* @param aSpeed Positive = Clockwise, Negative = Counterclockwise
*/
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java
index 221e290220..001ed44825 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java
@@ -4,16 +4,17 @@ package gregtech.api.interfaces.tileentity;
* You are allowed to include this File in your Download, as i will not change it.
*/
public interface IGregTechDeviceInformation {
+
/**
- * Is this even a TileEntity which allows GregTech Sensor Kits?
- * I need things like this Function for MetaTileEntities, you MUST check this!!!
- * Do not assume that it's a Information returning Device, when it just implements this Interface.
+ * Is this even a TileEntity which allows GregTech Sensor Kits? I need things like this Function for
+ * MetaTileEntities, you MUST check this!!! Do not assume that it's a Information returning Device, when it just
+ * implements this Interface.
*/
boolean isGivingInformation();
/**
- * Up to 8 Strings can be returned.
- * Note: If you insert "\\\\" in the String it tries to translate seperate Parts of the String instead of the String as a whole.
+ * Up to 8 Strings can be returned. Note: If you insert "\\\\" in the String it tries to translate seperate Parts of
+ * the String instead of the String as a whole.
*
* @return an Array of Information Strings. Don't return null!
*/
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
index 16fbe4f327..a561c3ebe1 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
@@ -1,15 +1,9 @@
package gregtech.api.interfaces.tileentity;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import gregtech.api.interfaces.IDescribable;
-import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-import gregtech.api.interfaces.modularui.IAddInventorySlots;
-import gregtech.api.interfaces.modularui.IGetGUITextureSet;
-import gregtech.common.blocks.GT_Block_Machines;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
+
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
@@ -18,6 +12,14 @@ import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import net.minecraftforge.fluids.IFluidHandler;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.interfaces.IDescribable;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.modularui.IAddInventorySlots;
+import gregtech.api.interfaces.modularui.IGetGUITextureSet;
+import gregtech.common.blocks.GT_Block_Machines;
+
/**
* A simple compound Interface for all my TileEntities.
* <p/>
@@ -25,20 +27,10 @@ import net.minecraftforge.fluids.IFluidHandler;
* <p/>
* It can cause Problems to include this Interface!
*/
-public interface IGregTechTileEntity
- extends ITexturedTileEntity,
- IGearEnergyTileEntity,
- ICoverable,
- IFluidHandler,
- ITurnable,
- IGregTechDeviceInformation,
- IUpgradableMachine,
- IDigitalChest,
- IDescribable,
- IMachineBlockUpdateable,
- IGregtechWailaProvider,
- IGetGUITextureSet,
- IAddInventorySlots {
+public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTileEntity, ICoverable, IFluidHandler,
+ ITurnable, IGregTechDeviceInformation, IUpgradableMachine, IDigitalChest, IDescribable, IMachineBlockUpdateable,
+ IGregtechWailaProvider, IGetGUITextureSet, IAddInventorySlots {
+
/**
* gets the Error displayed on the GUI
*/
@@ -65,9 +57,9 @@ public interface IGregTechTileEntity
IMetaTileEntity getMetaTileEntity();
/**
- * Sets the MetaTileEntity.
- * Even though this uses the Universal Interface, certain BaseMetaTileEntities only accept one kind of MetaTileEntity
- * so only use this if you are sure its the correct one or you will get a Class cast Error.
+ * Sets the MetaTileEntity. Even though this uses the Universal Interface, certain BaseMetaTileEntities only accept
+ * one kind of MetaTileEntity so only use this if you are sure its the correct one or you will get a Class cast
+ * Error.
*
* @param aMetaTileEntity
*/
@@ -144,7 +136,8 @@ public interface IGregTechTileEntity
ArrayList<ItemStack> getDrops();
- /** Check if the item at the specific index should be dropped or not
+ /**
+ * Check if the item at the specific index should be dropped or not
*
* @param index Index that will be checked
* @return True if it should drop, else false
@@ -156,14 +149,8 @@ public interface IGregTechTileEntity
*/
int getLightOpacity();
- void addCollisionBoxesToList(
- World aWorld,
- int aX,
- int aY,
- int aZ,
- AxisAlignedBB inputAABB,
- List<AxisAlignedBB> outputAABB,
- Entity collider);
+ void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB,
+ List<AxisAlignedBB> outputAABB, Entity collider);
AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ);
@@ -184,8 +171,7 @@ public interface IGregTechTileEntity
*/
@Override
default boolean isMachineBlockUpdateRecursive() {
- return !isDead()
- && getMetaTileEntity() != null
+ return !isDead() && getMetaTileEntity() != null
&& getMetaTileEntity().getBaseMetaTileEntity() == this
&& getMetaTileEntity().isMachineBlockUpdateRecursive();
}
@@ -195,8 +181,8 @@ public interface IGregTechTileEntity
}
/**
- * A randomly called display update to be able to add particles or other items for display
- * The event is proxied by the {@link GT_Block_Machines#randomDisplayTick}
+ * A randomly called display update to be able to add particles or other items for display The event is proxied by
+ * the {@link GT_Block_Machines#randomDisplayTick}
*/
@SideOnly(Side.CLIENT)
default void onRandomDisplayTick() {
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java
index a463cc91df..19835cd03c 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregtechWailaProvider.java
@@ -1,8 +1,10 @@
package gregtech.api.interfaces.tileentity;
import java.util.List;
+
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
+
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@@ -10,15 +12,10 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public interface IGregtechWailaProvider {
- default void getWailaBody(
- ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {}
- default void getWailaNBTData(
- final EntityPlayerMP player,
- final TileEntity tile,
- final NBTTagCompound tag,
- final World world,
- int x,
- int y,
- int z) {}
+ default void getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor,
+ IWailaConfigHandler config) {}
+
+ default void getWailaNBTData(final EntityPlayerMP player, final TileEntity tile, final NBTTagCompound tag,
+ final World world, int x, int y, int z) {}
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java b/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java
index 74ad58c407..bee1756217 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java
@@ -18,18 +18,20 @@ public interface IHasInventory extends ISidedInventory, IHasWorldObjectAndCoords
boolean isValidSlot(int aIndex);
/**
- * Tries to add a Stack to the Slot.
- * It doesn't matter if the Slot is valid or invalid as described at the Function above.
+ * Tries to add a Stack to the Slot. It doesn't matter if the Slot is valid or invalid as described at the Function
+ * above.
*
- * @return true if aStack == null, then false if aIndex is out of bounds, then false if aStack cannot be added, and then true if aStack has been added
+ * @return true if aStack == null, then false if aIndex is out of bounds, then false if aStack cannot be added, and
+ * then true if aStack has been added
*/
boolean addStackToSlot(int aIndex, ItemStack aStack);
/**
- * Tries to add X Items of a Stack to the Slot.
- * It doesn't matter if the Slot is valid or invalid as described at the Function above.
+ * Tries to add X Items of a Stack to the Slot. It doesn't matter if the Slot is valid or invalid as described at
+ * the Function above.
*
- * @return true if aStack == null, then false if aIndex is out of bounds, then false if aStack cannot be added, and then true if aStack has been added
+ * @return true if aStack == null, then false if aIndex is out of bounds, then false if aStack cannot be added, and
+ * then true if aStack has been added
*/
boolean addStackToSlot(int aIndex, ItemStack aStack, int aAmount);
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java b/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java
index 7f31d17d11..f02672365e 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java
@@ -11,13 +11,16 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.fluids.IFluidHandler;
/**
- * This is a bunch of Functions my TileEntities provide, to make life much easier, and to get rid of internal TileEntity stuff.
+ * This is a bunch of Functions my TileEntities provide, to make life much easier, and to get rid of internal TileEntity
+ * stuff.
* <p/>
* This also makes access to adjacent TileEntities more Efficient.
* <p/>
- * Note: It doesn't have to be a TileEntity in certain cases! And only certain cases, such as the Recipe checking of the findRecipe Function.
+ * Note: It doesn't have to be a TileEntity in certain cases! And only certain cases, such as the Recipe checking of the
+ * findRecipe Function.
*/
public interface IHasWorldObjectAndCoords {
+
World getWorld();
int getXCoord();
@@ -132,7 +135,8 @@ public interface IHasWorldObjectAndCoords {
boolean isDead();
/**
- * Sends a Block Event to the Client TileEntity, the byte Parameters are only for validation as Minecraft doesn't properly write Packet Data.
+ * Sends a Block Event to the Client TileEntity, the byte Parameters are only for validation as Minecraft doesn't
+ * properly write Packet Data.
*/
void sendBlockEvent(byte aID, byte aValue);
@@ -142,8 +146,8 @@ public interface IHasWorldObjectAndCoords {
long getTimer();
/**
- * Sets the Light Level of this Block on a Scale of 0 - 15
- * It could be that it doesn't work. This is just for convenience.
+ * Sets the Light Level of this Block on a Scale of 0 - 15 It could be that it doesn't work. This is just for
+ * convenience.
*/
void setLightValue(byte aLightValue);
@@ -164,6 +168,7 @@ public interface IHasWorldObjectAndCoords {
/**
* Opens the GUI with this ID of this MetaTileEntity
+ *
* @deprecated Use ModularUI
*/
@Deprecated
@@ -173,6 +178,7 @@ public interface IHasWorldObjectAndCoords {
/**
* Opens the GUI with the ID = 0 of this TileEntity
+ *
* @deprecated Use ModularUI
*/
@Deprecated
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IIC2Enet.java b/src/main/java/gregtech/api/interfaces/tileentity/IIC2Enet.java
index 2593f1f3b5..971558c092 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IIC2Enet.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IIC2Enet.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces.tileentity;
* IC2 Energy Compat
*/
public interface IIC2Enet {
+
/**
* Should this tile/block join the ic2 enet
*/
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java b/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
index b8ce51a212..f772c1ee69 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
@@ -1,16 +1,17 @@
package gregtech.api.interfaces.tileentity;
/**
- * You are allowed to include this File in your Download, as i will not change it.
- * Simple Interface for Machines, which need my Machine Blocks for MultiBlockStructures.
+ * You are allowed to include this File in your Download, as i will not change it. Simple Interface for Machines, which
+ * need my Machine Blocks for MultiBlockStructures.
* <p/>
* Every Machine implementing this Interface will conduct Machine updates.
*/
public interface IMachineBlockUpdateable {
+
/**
- * The Machine Update, which is called when the Machine needs an Update of its Parts.
- * I suggest to wait 1-5 seconds before actually checking the Machine Parts.
- * RP-Frames could for example cause Problems when you instacheck the Machine Parts.
+ * The Machine Update, which is called when the Machine needs an Update of its Parts. I suggest to wait 1-5 seconds
+ * before actually checking the Machine Parts. RP-Frames could for example cause Problems when you instacheck the
+ * Machine Parts.
*/
void onMachineBlockUpdate();
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java b/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
index 54fa90218a..bcd213b4ff 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces.tileentity;
* For Machines which have Progress
*/
public interface IMachineProgress extends IHasWorldObjectAndCoords {
+
/**
* returns the Progress this Machine has made. Warning, this can also be negative!
*/
@@ -25,8 +26,8 @@ public interface IMachineProgress extends IHasWorldObjectAndCoords {
boolean hasThingsToDo();
/**
- * returns if the Machine just got enableWorking called after being disabled.
- * Used for Translocators, which need to check if they need to transfer immediately.
+ * returns if the Machine just got enableWorking called after being disabled. Used for Translocators, which need to
+ * check if they need to transfer immediately.
*/
boolean hasWorkJustBeenEnabled();
@@ -46,16 +47,15 @@ public interface IMachineProgress extends IHasWorldObjectAndCoords {
boolean isAllowedToWork();
/**
- * used to control Machines via Redstone Signal Strength by special Covers
- * In case of 0 the Machine is very likely doing nothing, or is just not being controlled at all.
+ * used to control Machines via Redstone Signal Strength by special Covers In case of 0 the Machine is very likely
+ * doing nothing, or is just not being controlled at all.
*/
default byte getWorkDataValue() {
return 0;
}
/**
- * used to control Machines via Redstone Signal Strength by special Covers
- * only Values between 0 and 15!
+ * used to control Machines via Redstone Signal Strength by special Covers only Values between 0 and 15!
*/
default void setWorkDataValue(byte aValue) {}
@@ -71,7 +71,7 @@ public interface IMachineProgress extends IHasWorldObjectAndCoords {
/**
* Indicates if the object in question was forced to shut down (i.e. loss of power)
- * */
+ */
default boolean wasShutdown() {
return false;
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java
index c7590e98ed..3cc3c6404d 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java
@@ -3,6 +3,7 @@ package gregtech.api.interfaces.tileentity;
import gregtech.api.interfaces.ITexture;
public interface IPipeRenderedTileEntity extends ICoverable, ITexturedTileEntity {
+
float getThickNess();
byte getConnections();
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneEmitter.java b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneEmitter.java
index fc5aa460bf..fba20ee79d 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneEmitter.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneEmitter.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces.tileentity;
* This File has just internal Information about the Redstone State of a TileEntity
*/
public interface IRedstoneEmitter extends IHasWorldObjectAndCoords {
+
/**
* gets the Redstone Level the TileEntity should emit to the given Output Side
*/
@@ -12,8 +13,9 @@ public interface IRedstoneEmitter extends IHasWorldObjectAndCoords {
/**
* sets the Redstone Level the TileEntity should emit to the given Output Side
* <p/>
- * Do not use this if ICoverable is implemented. ICoverable has @getInternalOutputRedstoneSignal for Machine internal Output Redstone, so that it doesnt conflict with Cover Redstone.
- * This sets the true Redstone Output Signal. Only Cover Behaviors should use it, not MetaTileEntities.
+ * Do not use this if ICoverable is implemented. ICoverable has @getInternalOutputRedstoneSignal for Machine
+ * internal Output Redstone, so that it doesnt conflict with Cover Redstone. This sets the true Redstone Output
+ * Signal. Only Cover Behaviors should use it, not MetaTileEntities.
*/
void setOutputRedstoneSignal(byte aSide, byte aStrength);
@@ -25,8 +27,9 @@ public interface IRedstoneEmitter extends IHasWorldObjectAndCoords {
/**
* sets the Redstone Level the TileEntity should emit to the given Output Side
* <p/>
- * Do not use this if ICoverable is implemented. ICoverable has @getInternalOutputRedstoneSignal for Machine internal Output Redstone, so that it doesnt conflict with Cover Redstone.
- * This sets the true Redstone Output Signal. Only Cover Behaviors should use it, not MetaTileEntities.
+ * Do not use this if ICoverable is implemented. ICoverable has @getInternalOutputRedstoneSignal for Machine
+ * internal Output Redstone, so that it doesnt conflict with Cover Redstone. This sets the true Redstone Output
+ * Signal. Only Cover Behaviors should use it, not MetaTileEntities.
*/
void setStrongOutputRedstoneSignal(byte aSide, byte aStrength);
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
index acee525137..d5fb814c52 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
@@ -4,11 +4,13 @@ package gregtech.api.interfaces.tileentity;
* This File has just internal Information about the Redstone State of a TileEntity
*/
public interface IRedstoneReceiver extends IHasWorldObjectAndCoords {
+
/**
* gets the Redstone Level of the TileEntity to the given Input Side
* <p/>
- * Do not use this if ICoverable is implemented. ICoverable has @getInternalInputRedstoneSignal for Machine internal Input Redstone
- * This returns the true incoming Redstone Signal. Only Cover Behaviors should check it, not MetaTileEntities.
+ * Do not use this if ICoverable is implemented. ICoverable has @getInternalInputRedstoneSignal for Machine internal
+ * Input Redstone This returns the true incoming Redstone Signal. Only Cover Behaviors should check it, not
+ * MetaTileEntities.
*/
byte getInputRedstoneSignal(byte aSide);
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java
index 452699a172..1deb5f1d7c 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java
@@ -4,14 +4,14 @@ package gregtech.api.interfaces.tileentity;
* This File has just internal Information about the Redstone State of a TileEntity
*/
public interface IRedstoneTileEntity extends IRedstoneEmitter, IRedstoneReceiver {
+
/**
* enables/disables Redstone Output in general.
*/
void setGenericRedstoneOutput(boolean aOnOff);
/**
- * Causes a general Block update.
- * Sends nothing to Client, just causes a Block Update.
+ * Causes a general Block update. Sends nothing to Client, just causes a Block Update.
*/
void issueBlockUpdate();
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java
index fd1600903e..d6024b612e 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java
@@ -1,9 +1,11 @@
package gregtech.api.interfaces.tileentity;
-import gregtech.api.interfaces.ITexture;
import net.minecraft.block.Block;
+import gregtech.api.interfaces.ITexture;
+
public interface ITexturedTileEntity {
+
/**
* @return the Textures rendered by the GT Rendering
*/
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/ITurnable.java b/src/main/java/gregtech/api/interfaces/tileentity/ITurnable.java
index e05fd44637..e54a85090e 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/ITurnable.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/ITurnable.java
@@ -6,6 +6,7 @@ import static gregtech.api.enums.GT_Values.ALL_VALID_SIDES;
* Implemented by all my Machines. However without any security checks, if the Players are even allowed to rotate it.
*/
public interface ITurnable {
+
/**
* Get the block's facing.
*
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IUpgradableMachine.java b/src/main/java/gregtech/api/interfaces/tileentity/IUpgradableMachine.java
index cc59a4af34..546ada0c9d 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IUpgradableMachine.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IUpgradableMachine.java
@@ -4,6 +4,7 @@ package gregtech.api.interfaces.tileentity;
* To access my Machines a bit easier
*/
public interface IUpgradableMachine extends IMachineProgress {
+
/**
* Accepts Upgrades. Some Machines have an Upgrade Limit.
*/