aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2020-03-17 19:12:19 +0100
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2020-03-17 19:12:19 +0100
commit1922f34f1f8782f160e4808f4f6bb75a50703871 (patch)
tree6d77f9745e5e559071ae11c42bb0040c8c68706b /src
parentace89f8a1937f6d4671c8677d2f86ef9fdc7a660 (diff)
downloadGT5-Unofficial-1922f34f1f8782f160e4808f4f6bb75a50703871.tar.gz
GT5-Unofficial-1922f34f1f8782f160e4808f4f6bb75a50703871.tar.bz2
GT5-Unofficial-1922f34f1f8782f160e4808f4f6bb75a50703871.zip
Refactored Interfaces
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/IColorModulationContainer.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/ICondition.java16
-rw-r--r--src/main/java/gregtech/api/interfaces/IDamagableItem.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/IDebugableBlock.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/IDescribable.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/IFoodStat.java12
-rw-r--r--src/main/java/gregtech/api/interfaces/IIconContainer.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/IItemBehaviour.java24
-rw-r--r--src/main/java/gregtech/api/interfaces/IItemContainer.java32
-rw-r--r--src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/IProjectileItem.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java24
-rw-r--r--src/main/java/gregtech/api/interfaces/ISubTagContainer.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/ITexture.java14
-rw-r--r--src/main/java/gregtech/api/interfaces/IToolStats.java71
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IGT_CraftingRecipe.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java12
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java344
-rw-r--r--src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java56
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java21
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java15
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java34
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java26
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java8
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java12
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java58
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java8
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java10
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java4
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java48
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java8
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java122
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java24
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java6
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java8
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java2
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java2
43 files changed, 555 insertions, 518 deletions
diff --git a/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java b/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java
index a2e7858fbd..8957f3bbbc 100644
--- a/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java
+++ b/src/main/java/gregtech/api/interfaces/IBlockOnWalkOver.java
@@ -4,5 +4,5 @@ import net.minecraft.entity.EntityLivingBase;
import net.minecraft.world.World;
public interface IBlockOnWalkOver {
- public void onWalkOver(EntityLivingBase aEntity, World aWorld, int aX, int aY, int aZ);
+ void onWalkOver(EntityLivingBase aEntity, World aWorld, int aX, int aY, int aZ);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java b/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java
index ad3aa3c908..d3c312e610 100644
--- a/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IColorModulationContainer.java
@@ -1,5 +1,5 @@
package gregtech.api.interfaces;
public interface IColorModulationContainer {
- public short[] getRGBA();
+ short[] getRGBA();
}
diff --git a/src/main/java/gregtech/api/interfaces/ICondition.java b/src/main/java/gregtech/api/interfaces/ICondition.java
index 9e31da7338..3fb47251c7 100644
--- a/src/main/java/gregtech/api/interfaces/ICondition.java
+++ b/src/main/java/gregtech/api/interfaces/ICondition.java
@@ -1,11 +1,11 @@
package gregtech.api.interfaces;
public interface ICondition<O> {
- public boolean isTrue(O aObject);
+ boolean isTrue(O aObject);
// Utility Classes for adding relations between Conditions.
- public static class Not<O> implements ICondition<O> {
+ class Not<O> implements ICondition<O> {
private final ICondition<O> mCondition;
public Not(ICondition<O> aCondition) {
@@ -18,7 +18,7 @@ public interface ICondition<O> {
}
}
- public static class Or<O> implements ICondition<O> {
+ class Or<O> implements ICondition<O> {
private final ICondition<O>[] mConditions;
public Or(ICondition<O>... aConditions) {
@@ -32,7 +32,7 @@ public interface ICondition<O> {
}
}
- public static class Nor<O> implements ICondition<O> {
+ class Nor<O> implements ICondition<O> {
private final ICondition<O>[] mConditions;
public Nor(ICondition<O>... aConditions) {
@@ -46,7 +46,7 @@ public interface ICondition<O> {
}
}
- public static class And<O> implements ICondition<O> {
+ class And<O> implements ICondition<O> {
private final ICondition<O>[] mConditions;
public And(ICondition<O>... aConditions) {
@@ -60,7 +60,7 @@ public interface ICondition<O> {
}
}
- public static class Nand<O> implements ICondition<O> {
+ class Nand<O> implements ICondition<O> {
private final ICondition<O>[] mConditions;
public Nand(ICondition<O>... aConditions) {
@@ -74,7 +74,7 @@ public interface ICondition<O> {
}
}
- public static class Xor<O> implements ICondition<O> {
+ class Xor<O> implements ICondition<O> {
private final ICondition<O> mCondition1, mCondition2;
public Xor(ICondition<O> aCondition1, ICondition<O> aCondition2) {
@@ -88,7 +88,7 @@ public interface ICondition<O> {
}
}
- public static class Equal<O> implements 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/IDamagableItem.java b/src/main/java/gregtech/api/interfaces/IDamagableItem.java
index b7ebd6690d..37bb9a2794 100644
--- a/src/main/java/gregtech/api/interfaces/IDamagableItem.java
+++ b/src/main/java/gregtech/api/interfaces/IDamagableItem.java
@@ -3,5 +3,5 @@ package gregtech.api.interfaces;
import net.minecraft.item.ItemStack;
public interface IDamagableItem {
- public boolean doDamageToItem(ItemStack aStack, int aVanillaDamage);
+ boolean doDamageToItem(ItemStack aStack, int aVanillaDamage);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IDebugableBlock.java b/src/main/java/gregtech/api/interfaces/IDebugableBlock.java
index bdb550ff53..dd72b4d71e 100644
--- a/src/main/java/gregtech/api/interfaces/IDebugableBlock.java
+++ b/src/main/java/gregtech/api/interfaces/IDebugableBlock.java
@@ -23,5 +23,5 @@ public interface IDebugableBlock {
* 3 = Debug ONLY
* @return a String-Array containing the DebugInfo, every Index is a separate line (0 = first Line)
*/
- public ArrayList<String> getDebugInfo(EntityPlayer aPlayer, int aX, int aY, int aZ, int aLogLevel);
+ ArrayList<String> getDebugInfo(EntityPlayer aPlayer, int aX, int aY, int aZ, int aLogLevel);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IDescribable.java b/src/main/java/gregtech/api/interfaces/IDescribable.java
index d4bcf58de8..3e72f587db 100644
--- a/src/main/java/gregtech/api/interfaces/IDescribable.java
+++ b/src/main/java/gregtech/api/interfaces/IDescribable.java
@@ -7,5 +7,5 @@ public interface IDescribable {
/**
* The Tooltip Text
*/
- public String[] getDescription();
+ String[] getDescription();
}
diff --git a/src/main/java/gregtech/api/interfaces/IFoodStat.java b/src/main/java/gregtech/api/interfaces/IFoodStat.java
index b6773e9d65..eec89795fd 100644
--- a/src/main/java/gregtech/api/interfaces/IFoodStat.java
+++ b/src/main/java/gregtech/api/interfaces/IFoodStat.java
@@ -9,27 +9,27 @@ public interface IFoodStat {
/**
* Warning the "aPlayer" Parameter may be null!
*/
- public int getFoodLevel(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
+ int getFoodLevel(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
- public float getSaturation(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
+ float getSaturation(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
- public boolean alwaysEdible(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
+ boolean alwaysEdible(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
- public boolean isRotten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
+ boolean isRotten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
- public EnumAction getFoodAction(GT_MetaBase_Item aItem, ItemStack aStack);
+ EnumAction getFoodAction(GT_MetaBase_Item aItem, ItemStack aStack);
- public void onEaten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
+ void onEaten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IIconContainer.java b/src/main/java/gregtech/api/interfaces/IIconContainer.java
index c8b995e9a7..0b185b387a 100644
--- a/src/main/java/gregtech/api/interfaces/IIconContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IIconContainer.java
@@ -7,15 +7,15 @@ public interface IIconContainer {
/**
* @return A regular Icon.
*/
- public IIcon getIcon();
+ IIcon getIcon();
/**
* @return Icon of the Overlay (or null if there is no Icon)
*/
- public IIcon getOverlayIcon();
+ IIcon getOverlayIcon();
/**
* @return the Default Texture File for this Icon.
*/
- public ResourceLocation getTextureFile();
+ ResourceLocation getTextureFile();
}
diff --git a/src/main/java/gregtech/api/interfaces/IItemBehaviour.java b/src/main/java/gregtech/api/interfaces/IItemBehaviour.java
index 1d75f41e17..32d0c0948a 100644
--- a/src/main/java/gregtech/api/interfaces/IItemBehaviour.java
+++ b/src/main/java/gregtech/api/interfaces/IItemBehaviour.java
@@ -14,27 +14,27 @@ import net.minecraft.world.World;
import java.util.List;
public interface IItemBehaviour<E extends Item> {
- public boolean onLeftClickEntity(E aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity);
+ boolean onLeftClickEntity(E aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity);
- public 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 onItemUse(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ);
- public 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 onItemUseFirst(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ);
- public ItemStack onItemRightClick(E aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer);
+ ItemStack onItemRightClick(E aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer);
- public List<String> getAdditionalToolTips(E aItem, List<String> aList, ItemStack aStack);
+ List<String> getAdditionalToolTips(E aItem, List<String> aList, ItemStack aStack);
- public void onUpdate(E aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand);
+ void onUpdate(E aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand);
- public boolean isItemStackUsable(E aItem, ItemStack aStack);
+ boolean isItemStackUsable(E aItem, ItemStack aStack);
- public boolean canDispense(E aItem, IBlockSource aSource, ItemStack aStack);
+ boolean canDispense(E aItem, IBlockSource aSource, ItemStack aStack);
- public ItemStack onDispense(E aItem, IBlockSource aSource, ItemStack aStack);
+ ItemStack onDispense(E aItem, IBlockSource aSource, ItemStack aStack);
- public boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack);
+ boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack);
- public 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);
- public 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);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IItemContainer.java b/src/main/java/gregtech/api/interfaces/IItemContainer.java
index 3c1bd87543..7ce2ad7403 100644
--- a/src/main/java/gregtech/api/interfaces/IItemContainer.java
+++ b/src/main/java/gregtech/api/interfaces/IItemContainer.java
@@ -5,35 +5,35 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public interface IItemContainer {
- public Item getItem();
+ Item getItem();
- public Block getBlock();
+ Block getBlock();
- public boolean isStackEqual(Object aStack);
+ boolean isStackEqual(Object aStack);
- public boolean isStackEqual(Object aStack, boolean aWildcard, boolean aIgnoreNBT);
+ boolean isStackEqual(Object aStack, boolean aWildcard, boolean aIgnoreNBT);
- public ItemStack get(long aAmount, Object... aReplacements);
+ ItemStack get(long aAmount, Object... aReplacements);
- public ItemStack getWildcard(long aAmount, Object... aReplacements);
+ ItemStack getWildcard(long aAmount, Object... aReplacements);
- public ItemStack getUndamaged(long aAmount, Object... aReplacements);
+ ItemStack getUndamaged(long aAmount, Object... aReplacements);
- public ItemStack getAlmostBroken(long aAmount, Object... aReplacements);
+ ItemStack getAlmostBroken(long aAmount, Object... aReplacements);
- public ItemStack getWithDamage(long aAmount, long aMetaValue, Object... aReplacements);
+ ItemStack getWithDamage(long aAmount, long aMetaValue, Object... aReplacements);
- public IItemContainer set(Item aItem);
+ IItemContainer set(Item aItem);
- public IItemContainer set(ItemStack aStack);
+ IItemContainer set(ItemStack aStack);
- public IItemContainer registerOre(Object... aOreNames);
+ IItemContainer registerOre(Object... aOreNames);
- public IItemContainer registerWildcardAsOre(Object... aOreNames);
+ IItemContainer registerWildcardAsOre(Object... aOreNames);
- public ItemStack getWithCharge(long aAmount, int aEnergy, Object... aReplacements);
+ ItemStack getWithCharge(long aAmount, int aEnergy, Object... aReplacements);
- public ItemStack getWithName(long aAmount, String aDisplayName, Object... aReplacements);
+ ItemStack getWithName(long aAmount, String aDisplayName, Object... aReplacements);
- public boolean hasBeenSet();
+ boolean hasBeenSet();
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java b/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java
index 1f0ec91bba..d10c34ef51 100644
--- a/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java
+++ b/src/main/java/gregtech/api/interfaces/IOreRecipeRegistrator.java
@@ -12,5 +12,5 @@ public interface IOreRecipeRegistrator {
* @param aMaterial always != null, and can be == _NULL if the Prefix is Self Referencing or not Material based!
* @param aStack always != null
*/
- public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack);
+ void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IProjectileItem.java b/src/main/java/gregtech/api/interfaces/IProjectileItem.java
index 22211a6f0c..6e58d54823 100644
--- a/src/main/java/gregtech/api/interfaces/IProjectileItem.java
+++ b/src/main/java/gregtech/api/interfaces/IProjectileItem.java
@@ -10,15 +10,15 @@ public interface IProjectileItem {
/**
* @return if this Item has an Arrow Entity
*/
- public boolean hasProjectile(SubTag aProjectileType, ItemStack aStack);
+ 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
*/
- public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ);
+ 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
*/
- public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed);
+ EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java b/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java
index 8838992c62..73a81cc74b 100644
--- a/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java
+++ b/src/main/java/gregtech/api/interfaces/IRedstoneCircuitBlock.java
@@ -12,55 +12,55 @@ public interface IRedstoneCircuitBlock {
/**
* The Output Direction the Circuit Block is Facing
*/
- public byte getOutputFacing();
+ byte getOutputFacing();
/**
* sets Output Redstone State at Side
*/
- public boolean setRedstone(byte aStrength, byte aSide);
+ 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
*/
- public byte getOutputRedstone(byte aSide);
+ byte getOutputRedstone(byte aSide);
/**
* returns Input Redstone Signal at Side
*/
- public byte getInputRedstone(byte aSide);
+ byte getInputRedstone(byte aSide);
/**
* If this Side is Covered up and therefor not doing any Redstone
*/
- public GT_CoverBehavior getCover(byte aSide);
+ GT_CoverBehavior getCover(byte aSide);
- public int getCoverID(byte aSide);
+ int getCoverID(byte aSide);
- public int getCoverVariable(byte aSide);
+ int getCoverVariable(byte aSide);
/**
* returns whatever Block-ID is adjacent to the Redstone Circuit Block
*/
- public Block getBlockAtSide(byte aSide);
+ Block getBlockAtSide(byte aSide);
/**
* returns whatever Meta-Value is adjacent to the Redstone Circuit Block
*/
- public byte getMetaIDAtSide(byte aSide);
+ byte getMetaIDAtSide(byte aSide);
/**
* returns whatever TileEntity is adjacent to the Redstone Circuit Block
*/
- public TileEntity getTileEntityAtSide(byte aSide);
+ TileEntity getTileEntityAtSide(byte aSide);
/**
* returns whatever TileEntity is used by the Redstone Circuit Block
*/
- public ICoverable getOwnTileEntity();
+ ICoverable getOwnTileEntity();
/**
* returns worldObj.rand.nextInt(aRange)
*/
- public int getRandom(int aRange);
+ int getRandom(int aRange);
}
diff --git a/src/main/java/gregtech/api/interfaces/ISubTagContainer.java b/src/main/java/gregtech/api/interfaces/ISubTagContainer.java
index c7ccc45e96..92e4af0469 100644
--- a/src/main/java/gregtech/api/interfaces/ISubTagContainer.java
+++ b/src/main/java/gregtech/api/interfaces/ISubTagContainer.java
@@ -6,15 +6,15 @@ public interface ISubTagContainer {
/**
* @return if the Tag is inside the List.
*/
- public boolean contains(SubTag aTag);
+ boolean contains(SubTag aTag);
/**
* @return The ISubTagContainer you called this Function on, for convenience.
*/
- public ISubTagContainer add(SubTag... aTags);
+ ISubTagContainer add(SubTag... aTags);
/**
* @return if the Tag was there before it has been removed.
*/
- public boolean remove(SubTag aTag);
+ boolean remove(SubTag aTag);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/ITexture.java b/src/main/java/gregtech/api/interfaces/ITexture.java
index 43efeac7c4..9d08713281 100644
--- a/src/main/java/gregtech/api/interfaces/ITexture.java
+++ b/src/main/java/gregtech/api/interfaces/ITexture.java
@@ -4,17 +4,17 @@ import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
public interface ITexture {
- public void renderXPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
+ void renderXPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
- public void renderXNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
+ void renderXNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
- public void renderYPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
+ void renderYPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
- public void renderYNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
+ void renderYNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
- public void renderZPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
+ void renderZPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
- public void renderZNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
+ void renderZNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ);
- public boolean isValidTexture();
+ boolean isValidTexture();
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/IToolStats.java b/src/main/java/gregtech/api/interfaces/IToolStats.java
index 70aaeb206b..d282c02b11 100644
--- a/src/main/java/gregtech/api/interfaces/IToolStats.java
+++ b/src/main/java/gregtech/api/interfaces/IToolStats.java
@@ -22,107 +22,108 @@ public interface IToolStats {
/**
* Called when aPlayer crafts this Tool
*/
- public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer);
+ void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer);
/**
* Called when this gets added to a Tool Item
*/
- public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID);
+ void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID);
/**
* @return Damage the Tool receives when breaking a Block. 100 is one Damage Point (or 100 EU).
*/
- public int getToolDamagePerBlockBreak();
+ int getToolDamagePerBlockBreak();
/**
* @return Damage the Tool receives when converting the drops of a Block. 100 is one Damage Point (or 100 EU).
*/
- public int getToolDamagePerDropConversion();
+ 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.
*/
- public int getToolDamagePerContainerCraft();
+ int getToolDamagePerContainerCraft();
/**
* @return Damage the Tool receives when being used as Weapon, 200 is the normal Value, 100 for actual Weapons.
*/
- public int getToolDamagePerEntityAttack();
+ 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.
*/
- public int getBaseQuality();
+ int getBaseQuality();
/**
* @return The Damage Bonus for this Type of Tool against Mobs. 1.0F is normal punch.
*/
- public float getBaseDamage();
+ float getBaseDamage();
/**
* @return This gets the Hurt Resistance time for Entities getting hit. (always does 1 as minimum)
*/
- public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity);
+ int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity);
/**
* @return This is a multiplier for the Tool Speed. 1.0F = no special Speed.
*/
- public float getSpeedMultiplier();
+ float getSpeedMultiplier();
/**
* @return This is a multiplier for the Tool Speed. 1.0F = no special Durability.
*/
- public float getMaxDurabilityMultiplier();
+ float getMaxDurabilityMultiplier();
- public DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity);
+ DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity);
- public String getMiningSound();
+ String getMiningSound();
- public String getCraftingSound();
+ String getCraftingSound();
- public String getEntityHitSound();
+ String getEntityHitSound();
- public String getBreakingSound();
+ String getBreakingSound();
- public Enchantment[] getEnchantments(ItemStack aStack);
+ Enchantment[] getEnchantments(ItemStack aStack);
- public int[] getEnchantmentLevels(ItemStack aStack);
+ int[] getEnchantmentLevels(ItemStack aStack);
/**
* @return If this Tool can be used for blocking Damage like a Sword.
*/
- public boolean canBlock();
+ boolean canBlock();
/**
* @return If this Tool can be used as an RC Crowbar.
*/
- public boolean isCrowbar();
+ boolean isCrowbar();
/**
* @return If this Tool can be used as an FR Grafter.
*/
- public boolean isGrafter();
+ boolean isGrafter();
+
+ boolean isChainsaw();
- public boolean isChainsaw();
/**
* @return If this Tool can be used as an BC Wrench.
*/
- public boolean isWrench();
-
+ boolean isWrench();
+
/**
* @return If this Tool can be used as Weapon i.e. if that is the main purpose.
*/
- public boolean isWeapon();
+ 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
*/
- public boolean isRangedWeapon();
+ boolean isRangedWeapon();
/**
* @return If this Tool can be used as Weapon i.e. if that is the main purpose.
*/
- public boolean isMiningTool();
+ boolean isMiningTool();
/**
* aBlock.getHarvestTool(aMetaData) can return the following Values for example.
@@ -130,33 +131,33 @@ public interface IToolStats {
*
* @return If this is a minable Block. Tool Quality checks (like Diamond Tier or something) are separate from this check.
*/
- public boolean isMinableBlock(Block aBlock, byte aMetaData);
+ boolean isMinableBlock(Block aBlock, byte aMetaData);
/**
* This lets you modify the Drop List, when this type of Tool has been used.
*
* @return the Amount of modified Items.
*/
- public 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.
*/
- public ItemStack getBrokenItem(ItemStack aStack);
+ ItemStack getBrokenItem(ItemStack aStack);
/**
* @return the Damage actually done to the Mob.
*/
- public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
+ float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
/**
* @return the Damage actually done to the Mob.
*/
- public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
+ float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
- public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack);
+ IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack);
- public short[] getRGBa(boolean aIsToolHead, ItemStack aStack);
+ short[] getRGBa(boolean aIsToolHead, ItemStack aStack);
- public 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);
} \ No newline at end of file
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 4c1aa49c05..0bb4155214 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,5 @@ package gregtech.api.interfaces.internal;
import net.minecraft.item.crafting.IRecipe;
public interface IGT_CraftingRecipe extends IRecipe {
- public boolean isRemovable();
+ 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 945c988480..ff7b255f0e 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java
@@ -13,22 +13,22 @@ public interface IGT_Mod {
/**
* This means that Server specific Basefiles are definitely existing! Not if the World is actually server side or not!
*/
- public boolean isServerSide();
+ boolean isServerSide();
/**
* This means that Client specific Basefiles are definitely existing! Not if the World is actually client side or not!
*/
- public boolean isClientSide();
+ boolean isClientSide();
/**
* This means that Bukkit specific Basefiles are definitely existing! Not if the World is actually bukkit server or not!
*/
- public boolean isBukkitSide();
+ boolean isBukkitSide();
/**
* works only ClientSide otherwise returns null
*/
- public EntityPlayer getThePlayer();
+ EntityPlayer getThePlayer();
//---------- Internal Usage Only ----------
@@ -37,10 +37,10 @@ public interface IGT_Mod {
*
* @return the Index of the added Armor
*/
- public int addArmor(String aArmorPrefix);
+ int addArmor(String aArmorPrefix);
/**
* Plays the Sonictron Sound for the ItemStack on the Client Side
*/
- public void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ);
+ void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ);
} \ No newline at end of file
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 40a30ebf8a..a6bc3e2b46 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java
@@ -10,20 +10,20 @@ public interface IGT_RecipeAdder {
* Does not work anymore!
*/
@Deprecated
- public 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
*
* @param aInput1 = first Input (not null, and respects StackSize)
* @param aInput2 = second Input (not null, and respects StackSize)
- * @param aOutput1 = Output of the Fusion (can be null, and respects StackSize)
+ * @param aOutput1 = Output of the Fusion (can be null, and respects StackSize)
* @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
* @param aFusionEnergyPerTick = The EU generated per Tick (can even be negative!)
* @param aEnergyNeededForStartingFusion = EU needed for heating the Reactor up (must be >= 0)
* @return true if the Recipe got added, otherwise false.
*/
- public 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 Centrifuge Recipe
@@ -36,9 +36,9 @@ public interface IGT_RecipeAdder {
* @param aOutput4 can be null
* @param aDuration must be > 0
*/
- public 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);
- public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt);
+ 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
@@ -50,17 +50,17 @@ public interface IGT_RecipeAdder {
* @param aOutput4 can be null
* @param aDuration must be > 0
*/
- public 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);
- public 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
* @param aOutput1 must be != null
* @param aDuration must be > 0
* @return
*/
- public boolean addCompressorRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addCompressorRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds a Electrolyzer Recipe
@@ -74,7 +74,7 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt);
+ 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
@@ -88,29 +88,29 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public 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);
+ 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
*
* @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
*/
- public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput, int aDuration);
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput, int aDuration);
- public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput, int aDuration, int aEUt);
/**
* 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 aDuration must be > 0
*/
- public 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
@@ -122,7 +122,7 @@ public interface IGT_RecipeAdder {
* @param aOutput2 must be != null
* @param aDuration must be > 0
*/
- public 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);
/**
@@ -134,16 +134,17 @@ public interface IGT_RecipeAdder {
* @param aOutput2 must be != null
* @param aDuration must be > 0
*/
- public 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)
- * @param aBasicMaterial The basic Material
+ *
+ * @param aBasicMaterial The basic Material
* @param aBasicMaterialCell The corresponding Cell basic Material
- * @param aPolymer The polymer
+ * @param aPolymer The polymer
*/
- public void addDefaultPolymerizationRecipes(Fluid aBasicMaterial, ItemStack aBasicMaterialCell, Fluid aPolymer);
-
+ void addDefaultPolymerizationRecipes(Fluid aBasicMaterial, ItemStack aBasicMaterialCell, Fluid aPolymer);
+
/**
* Adds a Chemical Recipe
*
@@ -153,9 +154,10 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUtick must be > 0
*/
- public 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, int aDuration, int aEUtick);
+
+ boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, boolean aCleanroom);
- public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick, boolean aCleanroom);
/**
* Adds a Chemical Recipe
*
@@ -166,22 +168,23 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUtick must be > 0
*/
- public 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 aFluidOutputs fluid outputs
- + * @param aOutputs item outputs
- + * @param aDuration must be > 0
- + * @param aEUtick must be > 0
- + * aInputs and aFluidInputs must contain at least one valid input.
- + * aOutputs and aFluidOutputs must contain at least one valid output.
- + */
+ * + * Adds a Chemical Recipe that only exists in the Large Chemical Reactor
+ * + *
+ * + * @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
+ * + * aInputs and aFluidInputs must contain at least one valid input.
+ * + * aOutputs and aFluidOutputs must contain at least one valid output.
+ * +
+ */
- public 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);
/**
@@ -196,7 +199,7 @@ public interface IGT_RecipeAdder {
* @param aLevel should be > 0 is the minimum Heat Level needed for this Recipe
*/
@Deprecated
- public 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
@@ -209,20 +212,20 @@ public interface IGT_RecipeAdder {
* @param aEUt should be > 0
* @param aLevel should be > 0 is the minimum Heat Level needed for this Recipe
*/
- public 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, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel);
/**
* Adds a Blast Furnace Recipe
*
- * @param aInput1 must be != null if aInput2 == null
- * @param aInput2 must be != null if aInput1 == null
+ * @param aInput1 must be != null if aInput2 == null
+ * @param aInput2 must be != null if aInput1 == null
* @param aCoalAmount must be > 0
- * @param aOutput1 must be != null if aOutput2 == null
- * @param aOutput2 must be != null if aOutput1 == null
- * @param aDuration must be > 0
+ * @param aOutput1 must be != null if aOutput2 == null
+ * @param aOutput2 must be != null if aOutput1 == null
+ * @param aDuration must be > 0
*/
- public boolean addPrimitiveBlastRecipe(ItemStack aInput1, ItemStack aInput2, int aCoalAmount, ItemStack aOutput1, ItemStack aOutput2, int aDuration);
+ boolean addPrimitiveBlastRecipe(ItemStack aInput1, ItemStack aInput2, int aCoalAmount, ItemStack aOutput1, ItemStack aOutput2, int aDuration);
/**
@@ -233,7 +236,7 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0, 100 ticks is standard.
* @param aEUt should be > 0, 1 EU/t is standard.
*/
- public 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
@@ -245,9 +248,9 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt);
- public 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);
/**
@@ -258,28 +261,29 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addCNCRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addCNCRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds an Assembler Recipe
*
* @param aInput1 must be != null
* @param aOutput1 must be != null
- * @param aInput2 must be != null
+ * @param aInput2 must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt);
/**
- + * Adds an Assembler Recipe
- + *
- + * @param aInputs must be != null
- + * @param aOutput1 must be != null
- + * @param aDuration must be > 0
- + * @param aEUt should be > 0
- + */
- public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt);
+ * + * Adds an Assembler Recipe
+ * + *
+ * + * @param aInputs must be != null
+ * + * @param aOutput1 must be != null
+ * + * @param aDuration must be > 0
+ * + * @param aEUt should be > 0
+ * +
+ */
+ boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds an Assembler Recipe
@@ -289,48 +293,49 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public 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);
- public 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);
- public 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);
- public 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);
- public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt, boolean aCleanroom);
+ boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt, boolean aCleanroom);
/**
* Adds an Circuit Assembler Recipe
*
- * @param aInputs must be 1-6 ItemStacks
+ * @param aInputs must be 1-6 ItemStacks
* @param aFluidInput 0-1 fluids
- * @param aOutput must be != null
- * @param aDuration must be > 0
- * @param aEUt should be > 0
+ * @param aOutput must be != null
+ * @param aDuration must be > 0
+ * @param aEUt should be > 0
*/
- public boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput, int aDuration, int aEUt);
- public 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
*
- * @param aInputs must be != null, 4-16 inputs
+ * @param aInputs must be != null, 4-16 inputs
* @param aFluidInputs 0-4 fluids
- * @param aOutput1 must be != null
- * @param aDuration must be > 0
- * @param aEUt should be > 0
+ * @param aOutput1 must be != null
+ * @param aDuration must be > 0
+ * @param aEUt should be > 0
*/
- public 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;
- * {OreDict, amount} for oredict.
+ *
+ * @param aInputs elements should be: ItemStack for single item;
+ * ItemStack[] for multiple equivalent items;
+ * {OreDict, amount} for oredict.
*/
- public 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
@@ -340,70 +345,69 @@ public interface IGT_RecipeAdder {
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addForgeHammerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addForgeHammerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds a Wiremill Recipe
*
- * @param aInput must be != null
- * @param aOutput must be != null
+ * @param aInput must be != null
+ * @param aOutput must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addWiremillRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addWiremillRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Polariser Recipe
*
- * @param aInput must be != null
- * @param aOutput must be != null
+ * @param aInput must be != null
+ * @param aOutput must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addPolarizerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addPolarizerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Plate Bending Machine Recipe
*
- * @param aInput must be != null
- * @param aOutput must be != null
+ * @param aInput must be != null
+ * @param aOutput must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addBenderRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addBenderRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Extruder Machine Recipe
*
- * @param aInput must be != null
+ * @param aInput must be != null
* @param aShape must be != null, Set the stackSize to 0 if you don't want to let it consume this Item.
- * @param aOutput must be != null
+ * @param aOutput must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addExtruderRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addExtruderRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Slicer Machine Recipe
*
- * @param aInput must be != null
+ * @param aInput must be != null
* @param aShape must be != null, Set the stackSize to 0 if you don't want to let it consume this Item.
- * @param aOutput must be != null
+ * @param aOutput must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
*/
- public boolean addSlicerRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addSlicerRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt);
/**
- *
- * @param aInput must be != null
- * @param aFluidInput must be != null
- * @param aOutput1 must be != null
- * @param aDuration must be > 0
- * @param aEUt should be > 0
+ * @param aInput must be != null
+ * @param aFluidInput must be != null
+ * @param aOutput1 must be != null
+ * @param aDuration must be > 0
+ * @param aEUt should be > 0
* @return
*/
- public 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);
/**
* Adds an Implosion Compressor Recipe
@@ -413,7 +417,7 @@ public interface IGT_RecipeAdder {
* @param aOutput1 must be != null
* @param aOutput2 can be null
*/
- public boolean addImplosionRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2);
+ boolean addImplosionRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2);
/**
* Adds a Grinder Recipe
@@ -425,71 +429,71 @@ public interface IGT_RecipeAdder {
* @param aOutput3 can be null
* @param aOutput4 can be null
*/
- public 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
*
- * @param aInput must be != null
+ * @param aInput must be != null
* @param aOutputs must be != null 1-5 Fluids
* @param aOutput2 can be null
*/
- public boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt);
- public boolean addSimpleArcFurnaceRecipe(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);
- public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
+ boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
- public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, FluidStack aFluidPutput, 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
*/
- public 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
*/
- public boolean addLatheRecipe(ItemStack aInput1, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addLatheRecipe(ItemStack aInput1, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
/**
* Adds a Cutter Recipe
*/
- public 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
*/
- public boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt);
- public 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);
- public 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);
- public 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);
- public boolean addCutterRecipe(ItemStack[] aInputs, ItemStack[] aOutputs, int aDuration, int aEUt, int aSpecial);
/**
* Adds a Boxing Recipe
*/
- public boolean addBoxingRecipe(ItemStack aContainedItem, ItemStack aEmptyBox, ItemStack aFullBox, int aDuration, int aEUt);
+ boolean addBoxingRecipe(ItemStack aContainedItem, ItemStack aEmptyBox, ItemStack aFullBox, int aDuration, int aEUt);
/**
- *
- * @param aInput must be != null
+ * @param aInput must be != null
* @param aOutput1 must be != null
* @param aDuration must be > 0
* @param aEUt should be > 0
* @return
*/
- public 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);
/**
* Adds an Unboxing Recipe
*/
- public 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
@@ -498,9 +502,9 @@ public interface IGT_RecipeAdder {
* @param aOutput1 must be != null
* @param aDuration must be > 0
*/
- public boolean addVacuumFreezerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration);
+ boolean addVacuumFreezerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration);
- public boolean addVacuumFreezerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
+ boolean addVacuumFreezerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt);
/**
* Adds a Fuel for My Generators
@@ -510,162 +514,164 @@ public interface IGT_RecipeAdder {
* @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
*/
- public boolean addFuel(ItemStack aInput1, ItemStack aOutput1, int aEU, int aType);
+ boolean addFuel(ItemStack aInput1, ItemStack aOutput1, int aEU, int aType);
/**
* Adds an Amplifier Recipe for the Amplifabricator
*/
- public boolean addAmplifier(ItemStack aAmplifierItem, int aDuration, int aAmplifierAmountOutputted);
+ boolean addAmplifier(ItemStack aAmplifierItem, int aDuration, int aAmplifierAmountOutputted);
/**
* Adds a Recipe for the Brewing Machine (intentionally limited to Fluid IDs)
*/
- public boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, boolean aHidden);
+ boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, boolean aHidden);
- public 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);
- public 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
*/
- public boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, boolean aHidden);
+ boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, boolean aHidden);
- public boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, int aEUT, boolean aHidden);
+ boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, int aEUT, boolean aHidden);
/**
* Adds a Recipe for the Fluid Heater
*/
- public boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
+ boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
/**
* Adds a Recipe for the Distillery
*/
- public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden);
+ boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden);
- public 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);
- public 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 aHidden);
- public 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
*/
- public boolean addFluidSolidifierRecipe(ItemStack aMold, FluidStack aInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addFluidSolidifierRecipe(ItemStack aMold, FluidStack aInput, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Recipe for Fluid Smelting
*/
- public 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
*/
- public 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
*/
- public 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
*/
- public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput);
+ boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput);
+
+ boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput, int aDuration, int aEUt);
- public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput, int aDuration,int aEUt);
/**
* Adds a Recipe for the Chemical Bath
*/
- public 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);
/**
* Adds a Recipe for the Electromagnetic Separator
*/
- public 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
*/
- public boolean addExtractorRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
+ boolean addExtractorRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt);
/**
* Adds a Recipe for the Printer
*/
- public 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
*/
- public 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);
/**
* Adds a Recipe for the Autoclave
*/
- public 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);
- public 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);
/**
* Adds a Recipe for the Mixer
*/
- public 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);
- public 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);
- public 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);
/**
* Adds a Recipe for the Laser Engraver
*/
- public 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
*/
- public 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 Recipe for the Forming Press
*/
- public boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration, int aEUt);
+ boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration, int aEUt);
/**
* Adds a Recipe for the Sifter. (up to 9 Outputs)
*/
- public boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, int aEUt);
+ boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Recipe for the Arc Furnace. (up to 4 Outputs)
*/
- public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
+ boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Recipe for the Arc Furnace. (up to 4 Outputs)
*/
- public 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)
*/
- public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
+ boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt);
/**
* Adds a Recipe for the GT Pulveriser. (up to 4 Outputs)
*/
- public 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
*
- * @param aInput must be != null
+ * @param aInput must be != null
* @param aOutputs must be != null 1-5 Fluids
* @param aOutput2 can be null
*/
- public boolean addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt);
+ boolean addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt);
/**
* Adds Pyrolyse Recipe
@@ -677,7 +683,7 @@ public interface IGT_RecipeAdder {
* @param aDuration
* @param aEUt
*/
- public 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
@@ -689,20 +695,20 @@ public interface IGT_RecipeAdder {
*/
@Deprecated
- public boolean addCrackingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
+ boolean addCrackingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
/**
* Adds Oil Cracking Recipe
*
* @param circuitConfig The circuit configuration to control cracking severity
- * @param aInput The fluid to be cracked
- * @param aInput2 The fluid to catalyze the cracking (typically Hydrogen or Steam)
- * @param aOutput The cracked fluid
+ * @param aInput The fluid to be cracked
+ * @param aInput2 The fluid to catalyze the cracking (typically Hydrogen or Steam)
+ * @param aOutput The cracked fluid
* @param aDuration
* @param aEUt
*/
- public 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
@@ -712,5 +718,5 @@ public interface IGT_RecipeAdder {
* @param aSoundName = The Name of the Sound in the resources/newsound-folder like Vanillasounds
* @return true if the Sound got added, otherwise false.
*/
- public boolean addSonictronSound(ItemStack aItemStack, String aSoundName);
+ boolean addSonictronSound(ItemStack aItemStack, String aSoundName);
}
diff --git a/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java b/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java
index 2c1f930835..c4f416c823 100644
--- a/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java
+++ b/src/main/java/gregtech/api/interfaces/internal/IThaumcraftCompat.java
@@ -8,23 +8,49 @@ import net.minecraft.item.ItemStack;
import java.util.List;
public interface IThaumcraftCompat {
- public static final 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;
+ 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
*/
- public static final 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", ADVANCEDMETALLURGY = "GT_ADVANCEDMETALLURGY";
-
- public boolean registerPortholeBlacklistedBlock(Block aBlock);
-
- public boolean registerThaumcraftAspectsToItem(ItemStack aStack, List<TC_AspectStack> aAspects, boolean aAdditive);
-
- public boolean registerThaumcraftAspectsToItem(ItemStack aStack, List<TC_AspectStack> aAspects, String aOreDict);
-
- public Object addCrucibleRecipe(String aResearch, Object aInput, ItemStack aOutput, List<TC_AspectStack> aAspects);
-
- public Object addInfusionRecipe(String aResearch, ItemStack aMainInput, ItemStack[] aSideInputs, ItemStack aOutput, int aInstability, List<TC_Aspects.TC_AspectStack> aAspects);
-
- public 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);
+ 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",
+ ADVANCEDMETALLURGY = "GT_ADVANCEDMETALLURGY";
+
+ boolean registerPortholeBlacklistedBlock(Block aBlock);
+
+ boolean registerThaumcraftAspectsToItem(ItemStack aStack, List<TC_AspectStack> aAspects, boolean aAdditive);
+
+ boolean registerThaumcraftAspectsToItem(ItemStack aStack, List<TC_AspectStack> aAspects, String aOreDict);
+
+ 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 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);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
index 96c03bbd6d..16fe07812f 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
@@ -4,15 +4,16 @@ 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 {
- /**
- * Try to connect to the Block at the specified side
- * returns the connection state. Non-positive values for failed, others for succeeded.
- */
- public int connect(byte aSide);
- /**
- * Try to disconnect to the Block at the specified side
- */
- public void disconnect(byte aSide);
+ /**
+ * 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);
- public boolean isConnectedAtSide(int aSide);
+ /**
+ * Try to disconnect to the Block at the specified side
+ */
+ void disconnect(byte aSide);
+
+ boolean isConnectedAtSide(int aSide);
}
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java
index e973301395..a518b3baaf 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java
@@ -389,7 +389,7 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand
void onColorChangeClient(byte aColor);
int getLightOpacity();
-
+
boolean allowGeneralRedstoneOutput();
void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, List<AxisAlignedBB> outputAABB, Entity collider);
@@ -402,9 +402,9 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand
* The onCreated Function of the Item Class redirects here
*/
void onCreated(ItemStack aStack, World aWorld, EntityPlayer aPlayer);
-
+
boolean hasAlternativeModeText();
-
+
String getAlternativeModeText();
boolean shouldJoinIc2Enet();
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java
index ead9c8bf8f..a7c1209d24 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java
@@ -7,9 +7,9 @@ import java.util.HashSet;
public interface IMetaTileEntityCable extends IMetaTileEntity {
@Deprecated
- public long transferElectricity(byte aSide, long aVoltage, long aAmperage, ArrayList<TileEntity> aAlreadyPassedTileEntityList);
+ long transferElectricity(byte aSide, long aVoltage, long aAmperage, ArrayList<TileEntity> aAlreadyPassedTileEntityList);
- default public long transferElectricity(byte aSide, long aVoltage, long aAmperage, HashSet<TileEntity> aAlreadyPassedSet) {
+ default long transferElectricity(byte aSide, long aVoltage, long aAmperage, HashSet<TileEntity> aAlreadyPassedSet) {
return transferElectricity(aSide, aVoltage, aAmperage, new ArrayList<>(aAlreadyPassedSet));
}
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java
index 7187ccb04b..b61fe99904 100644
--- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java
+++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java
@@ -10,12 +10,12 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
/**
* @return if this Pipe can still be used.
*/
- public boolean pipeCapacityCheck();
+ boolean pipeCapacityCheck();
/**
* @return if this Pipe can still be used.
*/
- public boolean incrementTransferCounter(int aIncrement);
+ boolean incrementTransferCounter(int aIncrement);
/**
* Sends an ItemStack from aSender to the adjacent Blocks.
@@ -23,7 +23,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
* @param aSender the BaseMetaTileEntity sending the Stack.
* @return if it was able to send something
*/
- public boolean sendItemStack(Object aSender);
+ boolean sendItemStack(Object aSender);
/**
* Executes the Sending Code for inserting Stacks into the TileEntities.
@@ -32,19 +32,19 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
* @param aSide the Side of the PIPE facing the TileEntity.
* @return if this Side was allowed to Output into the Block.
*/
- public boolean insertItemStackIntoTileEntity(Object aSender, byte aSide);
+ 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.
*/
- public int getStepSize();
+ int getStepSize();
/**
* Utility for the Item Network
*/
- public static class Util {
+ class Util {
/**
* @return a List of connected Item Pipes
*/
@@ -55,7 +55,8 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity {
IGregTechTileEntity aBaseMetaTileEntity = aMetaTileEntity.getBaseMetaTileEntity();
aMap.put(aMetaTileEntity, aStep);
for (byte i = 0, j = 0; i < 6; i++) {
- if (aMetaTileEntity instanceof IConnectable && !((IConnectable) aMetaTileEntity).isConnectedAtSide(i)) continue;
+ if (aMetaTileEntity instanceof IConnectable && !((IConnectable) aMetaTileEntity).isConnectedAtSide(i))
+ continue;
j = GT_Utility.getOppositeSide(i);
if (aSuckItems) {
if (aBaseMetaTileEntity.getCoverBehaviorAtSide(i).letsItemsIn(i, aBaseMetaTileEntity.getCoverIDAtSide(i), aBaseMetaTileEntity.getCoverDataAtSide(i), -2, aBaseMetaTileEntity)) {
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java b/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java
index 423b3d4379..b795c793bc 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IBasicEnergyContainer.java
@@ -9,83 +9,83 @@ public interface IBasicEnergyContainer extends IEnergyConnected {
* 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.
*/
- public boolean isUniversalEnergyStored(long aEnergyAmount);
+ boolean isUniversalEnergyStored(long aEnergyAmount);
/**
* Gets the stored electric, kinetic or steam Energy (with EU as reference Value)
* Always returns the largest one.
*/
- public long getUniversalEnergyStored();
+ long getUniversalEnergyStored();
/**
* Gets the largest electric, kinetic or steam Energy Capacity (with EU as reference Value)
*/
- public long getUniversalEnergyCapacity();
+ long getUniversalEnergyCapacity();
/**
* Gets the amount of Energy Packets per tick.
*/
- public long getOutputAmperage();
+ long getOutputAmperage();
/**
* Gets the Output in EU/p.
*/
- public long getOutputVoltage();
+ long getOutputVoltage();
/**
* Gets the amount of Energy Packets per tick.
*/
- public long getInputAmperage();
+ long getInputAmperage();
/**
* Gets the maximum Input in EU/p.
*/
- public long getInputVoltage();
+ 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.
*/
- public boolean decreaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooLessEnergy);
+ 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.
*/
- public boolean increaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooMuchEnergy);
+ boolean increaseStoredEnergyUnits(long aEnergy, boolean aIgnoreTooMuchEnergy);
/**
* Drain Energy Call for Electricity.
*/
- public boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage);
+ boolean drainEnergyUnits(byte aSide, long aVoltage, long aAmperage);
/**
* returns the amount of Electricity, accepted by this Block the last 5 ticks as Average.
*/
- public long getAverageElectricInput();
+ long getAverageElectricInput();
/**
* returns the amount of Electricity, outputted by this Block the last 5 ticks as Average.
*/
- public long getAverageElectricOutput();
+ long getAverageElectricOutput();
/**
* returns the amount of electricity contained in this Block, in EU units!
*/
- public long getStoredEU();
+ long getStoredEU();
/**
* returns the amount of electricity containable in this Block, in EU units!
*/
- public long getEUCapacity();
+ long getEUCapacity();
/**
* returns the amount of Steam contained in this Block, in EU units!
*/
- public long getStoredSteam();
+ long getStoredSteam();
/**
* returns the amount of Steam containable in this Block, in EU units!
*/
- public long getSteamCapacity();
+ long getSteamCapacity();
/**
* Increases stored Energy. Energy Base Value is in EU, even though it's Steam!
@@ -96,5 +96,5 @@ public interface IBasicEnergyContainer extends IEnergyConnected {
* <p/>
* And yes, you can't directly decrease the Steam of a Machine. That is done by decreaseStoredEnergyUnits
*/
- public boolean increaseStoredSteam(long aEnergy, boolean aIgnoreTooMuchEnergy);
+ boolean increaseStoredSteam(long aEnergy, boolean aIgnoreTooMuchEnergy);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java
index 6b69911ad2..ddbb550dfc 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IColoredTileEntity.java
@@ -4,12 +4,12 @@ public interface IColoredTileEntity {
/**
* @return 0 - 15 are Colors, while -1 means uncolored
*/
- public byte getColorization();
+ byte getColorization();
/**
* Sets the Color Modulation of the Block
*
* @param aColor the Color you want to set it to. -1 for reset.
*/
- public byte setColorization(byte aColor);
+ byte setColorization(byte aColor);
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java b/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
index 99ec88c149..912dc554c0 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/ICoverable.java
@@ -4,41 +4,41 @@ import gregtech.api.util.GT_CoverBehavior;
import net.minecraft.item.ItemStack;
public interface ICoverable extends IRedstoneTileEntity, IHasInventory, IBasicEnergyContainer {
- public boolean canPlaceCoverIDAtSide(byte aSide, int aID);
+ boolean canPlaceCoverIDAtSide(byte aSide, int aID);
- public boolean canPlaceCoverItemAtSide(byte aSide, ItemStack aCover);
+ boolean canPlaceCoverItemAtSide(byte aSide, ItemStack aCover);
- public boolean dropCover(byte aSide, byte aDroppedSide, boolean aForced);
+ boolean dropCover(byte aSide, byte aDroppedSide, boolean aForced);
- public void setCoverDataAtSide(byte aSide, int aData);
+ void setCoverDataAtSide(byte aSide, int aData);
- public void setCoverIDAtSide(byte aSide, int aID);
+ void setCoverIDAtSide(byte aSide, int aID);
- public void setCoverItemAtSide(byte aSide, ItemStack aCover);
+ void setCoverItemAtSide(byte aSide, ItemStack aCover);
- public int getCoverDataAtSide(byte aSide);
+ int getCoverDataAtSide(byte aSide);
- public int getCoverIDAtSide(byte aSide);
+ int getCoverIDAtSide(byte aSide);
- public ItemStack getCoverItemAtSide(byte aSide);
+ ItemStack getCoverItemAtSide(byte aSide);
- public GT_CoverBehavior getCoverBehaviorAtSide(byte aSide);
+ GT_CoverBehavior getCoverBehaviorAtSide(byte aSide);
/**
* 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.
*/
- public byte getInternalInputRedstoneSignal(byte aSide);
+ 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.
*/
- public void setInternalOutputRedstoneSignal(byte aSide, byte aStrength);
+ void setInternalOutputRedstoneSignal(byte aSide, byte aStrength);
/**
* Causes a general Cover Texture update.
* Sends 6 Integers to Client + causes @issueTextureUpdate()
*/
- public void issueCoverUpdate(byte aSide);
+ void issueCoverUpdate(byte aSide);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java b/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
index 8f55b75fcf..d7c39c900c 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IDigitalChest.java
@@ -11,21 +11,21 @@ public interface IDigitalChest extends IHasWorldObjectAndCoords {
* 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.
*/
- public boolean isDigitalChest();
+ 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.
*/
- public ItemStack[] getStoredItemData();
+ ItemStack[] getStoredItemData();
/**
* A generic Interface for just setting the amount of contained Items
*/
- public void setItemCount(int aCount);
+ 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!
*/
- public int getMaxItemCount();
+ int getMaxItemCount();
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java
index 2384678529..32fd276600 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConductor.java
@@ -11,30 +11,30 @@ public interface IEnergyConductor extends IEnergyConnected {
/**
* @return if this is actually a Cable. (you must check this)
*/
- public boolean isConductor();
+ boolean isConductor();
/**
* @return the maximum Voltage of the Cable.
*/
- public long getMaxVoltage();
+ long getMaxVoltage();
/**
* @return the maximum Amperage of the Cable, per Wire.
*/
- public long getMaxAmperage();
+ long getMaxAmperage();
/**
* @return the Loss of the Cable, per Meter.
*/
- public long getLossPerMeter();
+ long getLossPerMeter();
/**
* @return the Material the Cable consists of. (may return Materials._NULL)
*/
- public Materials getCableMaterial();
+ Materials getCableMaterial();
/**
* @return the Material the Cable Insulation consists of. (may return Materials._NULL)
*/
- public Materials getInsulationMaterial();
+ Materials getInsulationMaterial();
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
index 73436e3b2a..47bec844ee 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
@@ -29,28 +29,30 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd
* @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.
*/
- public long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage);
+ long injectEnergyUnits(byte aSide, long aVoltage, long aAmperage);
/**
* Sided Energy Input
*/
- public boolean inputEnergyFrom(byte aSide);
- default public boolean inputEnergyFrom(byte aSide, boolean waitForActive) {
+ boolean inputEnergyFrom(byte aSide);
+
+ default boolean inputEnergyFrom(byte aSide, boolean waitForActive) {
return inputEnergyFrom(aSide);
}
/**
* Sided Energy Output
*/
- public boolean outputsEnergyTo(byte aSide);
- default public boolean outputsEnergyTo(byte aSide, boolean waitForActive) {
+ boolean outputsEnergyTo(byte aSide);
+
+ default boolean outputsEnergyTo(byte aSide, boolean waitForActive) {
return outputsEnergyTo(aSide);
}
/**
* Utility for the Network
*/
- public static class Util {
+ class Util {
/**
* Emits Energy to the E-net. Also compatible with adjacent IC2 TileEntities.
*
@@ -84,33 +86,33 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd
if (rfOut > 32L * GregTech_API.mEUtoRF / 100L) {
int aExplosionPower = rfOut;
float tStrength =
- aExplosionPower < V[0] ? 1.0F :
- aExplosionPower < V[1] ? 2.0F :
- aExplosionPower < V[2] ? 3.0F :
- aExplosionPower < V[3] ? 4.0F :
- aExplosionPower < V[4] ? 5.0F :
- aExplosionPower < V[4] * 2 ? 6.0F :
- aExplosionPower < V[5] ? 7.0F :
- aExplosionPower < V[6] ? 8.0F :
- aExplosionPower < V[7] ? 9.0F :
- aExplosionPower < V[8] ? 10.0F :
- aExplosionPower < V[8] * 2 ? 11.0F :
- aExplosionPower < V[9] ? 12.0F :
- aExplosionPower < V[10] ? 13.0F :
- aExplosionPower < V[11] ? 14.0F :
- aExplosionPower < V[12] ? 15.0F :
- aExplosionPower < V[12] * 2 ? 16.0F :
- aExplosionPower < V[13] ? 17.0F :
- aExplosionPower < V[14] ? 18.0F :
- aExplosionPower < V[15] ? 19.0F : 20.0F;
+ aExplosionPower < V[0] ? 1.0F :
+ aExplosionPower < V[1] ? 2.0F :
+ aExplosionPower < V[2] ? 3.0F :
+ aExplosionPower < V[3] ? 4.0F :
+ aExplosionPower < V[4] ? 5.0F :
+ aExplosionPower < V[4] * 2 ? 6.0F :
+ aExplosionPower < V[5] ? 7.0F :
+ aExplosionPower < V[6] ? 8.0F :
+ aExplosionPower < V[7] ? 9.0F :
+ aExplosionPower < V[8] ? 10.0F :
+ aExplosionPower < V[8] * 2 ? 11.0F :
+ aExplosionPower < V[9] ? 12.0F :
+ aExplosionPower < V[10] ? 13.0F :
+ aExplosionPower < V[11] ? 14.0F :
+ aExplosionPower < V[12] ? 15.0F :
+ aExplosionPower < V[12] * 2 ? 16.0F :
+ aExplosionPower < V[13] ? 17.0F :
+ aExplosionPower < V[14] ? 18.0F :
+ aExplosionPower < V[15] ? 19.0F : 20.0F;
int tX = tTileEntity.xCoord, tY = tTileEntity.yCoord, tZ = tTileEntity.zCoord;
World tWorld = tTileEntity.getWorldObj();
GT_Utility.sendSoundToPlayers(tWorld, GregTech_API.sSoundList.get(209), 1.0F, -1, tX, tY, tZ);
tWorld.setBlock(tX, tY, tZ, Blocks.air);
if (GregTech_API.sMachineExplosions)
- if(GT_Mod.gregtechproxy.mPollution)
- GT_Pollution.addPollution(tWorld.getChunkFromBlockCoords(tX,tZ), 100000);
- tWorld.createExplosion(null, tX + 0.5, tY + 0.5, tZ + 0.5, tStrength, true);
+ if (GT_Mod.gregtechproxy.mPollution)
+ GT_Pollution.addPollution(tWorld.getChunkFromBlockCoords(tX, tZ), 100000);
+ tWorld.createExplosion(null, tX + 0.5, tY + 0.5, tZ + 0.5, tStrength, true);
}
}
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java
index 7e86701f6b..3a32a557fb 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IExperimentalEnergyTileEntity.java
@@ -25,22 +25,22 @@ public interface IExperimentalEnergyTileEntity extends IColoredTileEntity, IHasW
* @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.
*/
- public long injectEnergy(SubTag aEnergyType, byte aSide, long aPrimary, long aSecondary);
+ long injectEnergy(SubTag aEnergyType, byte aSide, long aPrimary, long aSecondary);
/**
* Sided Energy Input
*/
- public boolean inputEnergyFrom(SubTag aEnergyType, byte aSide);
+ boolean inputEnergyFrom(SubTag aEnergyType, byte aSide);
/**
* Sided Energy Output
*/
- public boolean outputsEnergyTo(SubTag aEnergyType, byte aSide);
+ boolean outputsEnergyTo(SubTag aEnergyType, byte aSide);
/**
* Utility for the Network
*/
- public static class Util {
+ class Util {
public static int RF_PER_EU = 4;
private static boolean RF_ENERGY = false, IC_ENERGY = false, CHECK_ALL = true;
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java
index edcf5bdb89..bde86524c5 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IFibreConnected.java
@@ -7,25 +7,25 @@ public interface IFibreConnected extends IColoredTileEntity, IHasWorldObjectAndC
/**
* If this Blocks accepts Fibre from this Side
*/
- public void inputFibreFrom(byte aSide);
+ void inputFibreFrom(byte aSide);
/**
* If this Blocks emits Fibre to this Side
*/
- public void outputsFibreTo(byte aSide);
+ void outputsFibreTo(byte aSide);
/**
* Sets the Signal this Blocks outputs to this Fibre Color
*/
- public void setFibreOutput(byte aSide, byte aColor, byte aRedstoneStrength);
+ void setFibreOutput(byte aSide, byte aColor, byte aRedstoneStrength);
/**
* Gets the Signal this Blocks outputs to this Fibre Color
*/
- public byte getFibreOutput(byte aSide, byte aColor);
+ byte getFibreOutput(byte aSide, byte aColor);
/**
* Gets the Signal this Blocks receives from this Fibre Color
*/
- public byte getFibreInput(byte aSide, byte aColor);
+ byte getFibreInput(byte aSide, byte aColor);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java
index 796f0a11b3..54fe151cb1 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGearEnergyTileEntity.java
@@ -5,7 +5,7 @@ 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.
*/
- public boolean acceptsRotationalEnergy(byte aSide);
+ boolean acceptsRotationalEnergy(byte aSide);
/**
* Inject Energy Call for Rotational Energy.
@@ -13,5 +13,5 @@ public interface IGearEnergyTileEntity {
*
* @param aSpeed Positive = Clockwise, Negative = Counterclockwise
*/
- public boolean injectRotationalEnergy(byte aSide, long aSpeed, long aEnergy);
+ boolean injectRotationalEnergy(byte aSide, long aSpeed, long aEnergy);
}
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java
index e4bb4f1371..39c779e69c 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechDeviceInformation.java
@@ -9,7 +9,7 @@ public interface IGregTechDeviceInformation {
* 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.
*/
- public boolean isGivingInformation();
+ boolean isGivingInformation();
/**
* Up to 8 Strings can be returned.
@@ -17,5 +17,5 @@ public interface IGregTechDeviceInformation {
*
* @return an Array of Information Strings. Don't return null!
*/
- public String[] getInfoData();
+ String[] getInfoData();
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
index 8bd8c5b678..af9ead9543 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java
@@ -25,27 +25,27 @@ public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTil
/**
* gets the Error displayed on the GUI
*/
- public int getErrorDisplayID();
+ int getErrorDisplayID();
/**
* sets the Error displayed on the GUI
*/
- public void setErrorDisplayID(int aErrorID);
+ void setErrorDisplayID(int aErrorID);
/**
* @return the MetaID of the Block or the MetaTileEntity ID.
*/
- public int getMetaTileID();
+ int getMetaTileID();
/**
* Internal Usage only!
*/
- public int setMetaTileID(short aID);
+ int setMetaTileID(short aID);
/**
* @return the MetaTileEntity which is belonging to this, or null if it doesnt has one.
*/
- public IMetaTileEntity getMetaTileEntity();
+ IMetaTileEntity getMetaTileEntity();
/**
* Sets the MetaTileEntity.
@@ -54,54 +54,54 @@ public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTil
*
* @param aMetaTileEntity
*/
- public void setMetaTileEntity(IMetaTileEntity aMetaTileEntity);
+ void setMetaTileEntity(IMetaTileEntity aMetaTileEntity);
/**
* Causes a general Texture update.
* <p/>
* Only used Client Side to mark Blocks dirty.
*/
- public void issueTextureUpdate();
+ void issueTextureUpdate();
/**
* Causes the Machine to send its initial Data, like Covers and its ID.
*/
- public void issueClientUpdate();
+ void issueClientUpdate();
/**
* causes Explosion. Strength in Overload-EU
*/
- public void doExplosion(long aExplosionEU);
+ void doExplosion(long aExplosionEU);
/**
* Sets the Block on Fire in all 6 Directions
*/
- public void setOnFire();
+ void setOnFire();
/**
* Sets the Block to Fire
*/
- public void setToFire();
+ void setToFire();
/**
* Sets the Owner of the Machine. Returns the set Name.
*/
- public String setOwnerName(String aName);
+ String setOwnerName(String aName);
/**
* gets the Name of the Machines Owner or "Player" if not set.
*/
- public String getOwnerName();
+ String getOwnerName();
/**
* Gets the UniqueID of the Machines Owner.
*/
- public UUID getOwnerUuid();
+ UUID getOwnerUuid();
/**
* Sets the UniqueID of the Machines Owner.
*/
- public void setOwnerUuid(UUID uuid);
+ void setOwnerUuid(UUID uuid);
/**
* Sets initial Values from NBT
@@ -109,30 +109,30 @@ public interface IGregTechTileEntity extends ITexturedTileEntity, IGearEnergyTil
* @param aNBT is the NBTTag of readFromNBT
* @param aID is the MetaTileEntityID
*/
- public void setInitialValuesAsNBT(NBTTagCompound aNBT, short aID);
+ void setInitialValuesAsNBT(NBTTagCompound aNBT, short aID);
/**
* Called when leftclicking the TileEntity
*/
- public void onLeftclick(EntityPlayer aPlayer);
+ void onLeftclick(EntityPlayer aPlayer);
/**
* Called when rightclicking the TileEntity
*/
- public boolean onRightclick(EntityPlayer aPlayer, byte aSide, float par1, float par2, float par3);
+ boolean onRightclick(EntityPlayer aPlayer, byte aSide, float par1, float par2, float par3);
- public float getBlastResistance(byte aSide);
+ float getBlastResistance(byte aSide);
- public ArrayList<ItemStack> getDrops();
+ ArrayList<ItemStack> getDrops();
/**
* 255 = 100%
*/
- public int getLightOpacity();
+ int getLightOpacity();
- public 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);
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ);
+ AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ);
- public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity collider);
+ void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity collider);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java b/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java
index 3bd8b0429c..42df520ff4 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IHasInventory.java
@@ -8,12 +8,12 @@ public interface IHasInventory extends ISidedInventory, IHasWorldObjectAndCoords
/**
* if the Inventory of this TileEntity got modified this tick
*/
- public boolean hasInventoryBeenModified();
+ boolean hasInventoryBeenModified();
/**
* if this is just a Holoslot
*/
- public boolean isValidSlot(int aIndex);
+ boolean isValidSlot(int aIndex);
/**
* Tries to add a Stack to the Slot.
@@ -21,7 +21,7 @@ public interface IHasInventory extends ISidedInventory, IHasWorldObjectAndCoords
*
* @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
*/
- public boolean addStackToSlot(int aIndex, ItemStack aStack);
+ boolean addStackToSlot(int aIndex, ItemStack aStack);
/**
* Tries to add X Items of a Stack to the Slot.
@@ -29,5 +29,5 @@ public interface IHasInventory extends ISidedInventory, IHasWorldObjectAndCoords
*
* @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
*/
- public boolean addStackToSlot(int aIndex, ItemStack aStack, int aAmount);
+ boolean addStackToSlot(int aIndex, ItemStack aStack, int aAmount);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java b/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java
index c86ac0f33f..9b7489cf00 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IHasWorldObjectAndCoords.java
@@ -17,153 +17,153 @@ import net.minecraftforge.fluids.IFluidHandler;
* 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 {
- public World getWorld();
+ World getWorld();
- public int getXCoord();
+ int getXCoord();
- public short getYCoord();
+ short getYCoord();
- public int getZCoord();
+ int getZCoord();
- public boolean isServerSide();
+ boolean isServerSide();
- public boolean isClientSide();
+ boolean isClientSide();
- public int getRandomNumber(int aRange);
+ int getRandomNumber(int aRange);
- public TileEntity getTileEntity(int aX, int aY, int aZ);
+ TileEntity getTileEntity(int aX, int aY, int aZ);
- public TileEntity getTileEntityOffset(int aX, int aY, int aZ);
+ TileEntity getTileEntityOffset(int aX, int aY, int aZ);
- public TileEntity getTileEntityAtSide(byte aSide);
+ TileEntity getTileEntityAtSide(byte aSide);
- public TileEntity getTileEntityAtSideAndDistance(byte aSide, int aDistance);
+ TileEntity getTileEntityAtSideAndDistance(byte aSide, int aDistance);
- public IInventory getIInventory(int aX, int aY, int aZ);
+ IInventory getIInventory(int aX, int aY, int aZ);
- public IInventory getIInventoryOffset(int aX, int aY, int aZ);
+ IInventory getIInventoryOffset(int aX, int aY, int aZ);
- public IInventory getIInventoryAtSide(byte aSide);
+ IInventory getIInventoryAtSide(byte aSide);
- public IInventory getIInventoryAtSideAndDistance(byte aSide, int aDistance);
+ IInventory getIInventoryAtSideAndDistance(byte aSide, int aDistance);
- public IFluidHandler getITankContainer(int aX, int aY, int aZ);
+ IFluidHandler getITankContainer(int aX, int aY, int aZ);
- public IFluidHandler getITankContainerOffset(int aX, int aY, int aZ);
+ IFluidHandler getITankContainerOffset(int aX, int aY, int aZ);
- public IFluidHandler getITankContainerAtSide(byte aSide);
+ IFluidHandler getITankContainerAtSide(byte aSide);
- public IFluidHandler getITankContainerAtSideAndDistance(byte aSide, int aDistance);
+ IFluidHandler getITankContainerAtSideAndDistance(byte aSide, int aDistance);
- public IGregTechTileEntity getIGregTechTileEntity(int aX, int aY, int aZ);
+ IGregTechTileEntity getIGregTechTileEntity(int aX, int aY, int aZ);
- public IGregTechTileEntity getIGregTechTileEntityOffset(int aX, int aY, int aZ);
+ IGregTechTileEntity getIGregTechTileEntityOffset(int aX, int aY, int aZ);
- public IGregTechTileEntity getIGregTechTileEntityAtSide(byte aSide);
+ IGregTechTileEntity getIGregTechTileEntityAtSide(byte aSide);
- public IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(byte aSide, int aDistance);
+ IGregTechTileEntity getIGregTechTileEntityAtSideAndDistance(byte aSide, int aDistance);
- public Block getBlock(int aX, int aY, int aZ);
+ Block getBlock(int aX, int aY, int aZ);
- public Block getBlockOffset(int aX, int aY, int aZ);
+ Block getBlockOffset(int aX, int aY, int aZ);
- public Block getBlockAtSide(byte aSide);
+ Block getBlockAtSide(byte aSide);
- public Block getBlockAtSideAndDistance(byte aSide, int aDistance);
+ Block getBlockAtSideAndDistance(byte aSide, int aDistance);
- public byte getMetaID(int aX, int aY, int aZ);
+ byte getMetaID(int aX, int aY, int aZ);
- public byte getMetaIDOffset(int aX, int aY, int aZ);
+ byte getMetaIDOffset(int aX, int aY, int aZ);
- public byte getMetaIDAtSide(byte aSide);
+ byte getMetaIDAtSide(byte aSide);
- public byte getMetaIDAtSideAndDistance(byte aSide, int aDistance);
+ byte getMetaIDAtSideAndDistance(byte aSide, int aDistance);
- public byte getLightLevel(int aX, int aY, int aZ);
+ byte getLightLevel(int aX, int aY, int aZ);
- public byte getLightLevelOffset(int aX, int aY, int aZ);
+ byte getLightLevelOffset(int aX, int aY, int aZ);
- public byte getLightLevelAtSide(byte aSide);
+ byte getLightLevelAtSide(byte aSide);
- public byte getLightLevelAtSideAndDistance(byte aSide, int aDistance);
+ byte getLightLevelAtSideAndDistance(byte aSide, int aDistance);
- public boolean getOpacity(int aX, int aY, int aZ);
+ boolean getOpacity(int aX, int aY, int aZ);
- public boolean getOpacityOffset(int aX, int aY, int aZ);
+ boolean getOpacityOffset(int aX, int aY, int aZ);
- public boolean getOpacityAtSide(byte aSide);
+ boolean getOpacityAtSide(byte aSide);
- public boolean getOpacityAtSideAndDistance(byte aSide, int aDistance);
+ boolean getOpacityAtSideAndDistance(byte aSide, int aDistance);
- public boolean getSky(int aX, int aY, int aZ);
+ boolean getSky(int aX, int aY, int aZ);
- public boolean getSkyOffset(int aX, int aY, int aZ);
+ boolean getSkyOffset(int aX, int aY, int aZ);
- public boolean getSkyAtSide(byte aSide);
+ boolean getSkyAtSide(byte aSide);
- public boolean getSkyAtSideAndDistance(byte aSide, int aDistance);
+ boolean getSkyAtSideAndDistance(byte aSide, int aDistance);
- public boolean getAir(int aX, int aY, int aZ);
+ boolean getAir(int aX, int aY, int aZ);
- public boolean getAirOffset(int aX, int aY, int aZ);
+ boolean getAirOffset(int aX, int aY, int aZ);
- public boolean getAirAtSide(byte aSide);
+ boolean getAirAtSide(byte aSide);
- public boolean getAirAtSideAndDistance(byte aSide, int aDistance);
+ boolean getAirAtSideAndDistance(byte aSide, int aDistance);
- public BiomeGenBase getBiome();
+ BiomeGenBase getBiome();
- public BiomeGenBase getBiome(int aX, int aZ);
+ BiomeGenBase getBiome(int aX, int aZ);
- public int getOffsetX(byte aSide, int aMultiplier);
+ int getOffsetX(byte aSide, int aMultiplier);
- public short getOffsetY(byte aSide, int aMultiplier);
+ short getOffsetY(byte aSide, int aMultiplier);
- public int getOffsetZ(byte aSide, int aMultiplier);
+ int getOffsetZ(byte aSide, int aMultiplier);
/**
* Checks if the TileEntity is Invalid or Unloaded. Stupid Minecraft cannot do that btw.
*/
- public boolean isDead();
+ 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.
*/
- public void sendBlockEvent(byte aID, byte aValue);
+ void sendBlockEvent(byte aID, byte aValue);
/**
* @return the Time this TileEntity has been loaded.
*/
- public long getTimer();
+ 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.
*/
- public void setLightValue(byte aLightValue);
+ void setLightValue(byte aLightValue);
/**
* Function of the regular TileEntity
*/
- public void writeToNBT(NBTTagCompound aNBT);
+ void writeToNBT(NBTTagCompound aNBT);
/**
* Function of the regular TileEntity
*/
- public void readFromNBT(NBTTagCompound aNBT);
+ void readFromNBT(NBTTagCompound aNBT);
/**
* Function of the regular TileEntity
*/
- public boolean isInvalidTileEntity();
+ boolean isInvalidTileEntity();
/**
* Opens the GUI with this ID of this MetaTileEntity
*/
- public boolean openGUI(EntityPlayer aPlayer, int aID);
+ boolean openGUI(EntityPlayer aPlayer, int aID);
/**
* Opens the GUI with the ID = 0 of this TileEntity
*/
- public boolean openGUI(EntityPlayer aPlayer);
+ boolean openGUI(EntityPlayer aPlayer);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java b/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
index bb34419357..c7f6fe5f23 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
@@ -12,5 +12,5 @@ public interface IMachineBlockUpdateable {
* 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.
*/
- public void onMachineBlockUpdate();
+ 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 00bb7b9a7d..588158d16c 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
@@ -7,63 +7,63 @@ public interface IMachineProgress extends IHasWorldObjectAndCoords {
/**
* returns the Progress this Machine has made. Warning, this can also be negative!
*/
- public int getProgress();
+ int getProgress();
/**
* returns the Progress the Machine needs to complete its task.
*/
- public int getMaxProgress();
+ int getMaxProgress();
/**
* increases the Progress of the Machine
*/
- public boolean increaseProgress(int aProgressAmountInTicks);
+ boolean increaseProgress(int aProgressAmountInTicks);
/**
* returns if the Machine currently does something.
*/
- public boolean hasThingsToDo();
+ 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.
*/
- public boolean hasWorkJustBeenEnabled();
+ boolean hasWorkJustBeenEnabled();
/**
* allows Machine to work
*/
- public void enableWorking();
+ void enableWorking();
/**
* disallows Machine to work
*/
- public void disableWorking();
+ void disableWorking();
/**
* if the Machine is allowed to Work
*/
- public boolean isAllowedToWork();
+ 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.
*/
- public byte getWorkDataValue();
+ byte getWorkDataValue();
/**
* used to control Machines via Redstone Signal Strength by special Covers
* only Values between 0 and 15!
*/
- public void setWorkDataValue(byte aValue);
+ void setWorkDataValue(byte aValue);
/**
* gives you the Active Status of the Machine
*/
- public boolean isActive();
+ boolean isActive();
/**
* sets the visible Active Status of the Machine
*/
- public void setActive(boolean aActive);
+ void setActive(boolean aActive);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java
index 6618e4b4fd..909f4077f0 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IPipeRenderedTileEntity.java
@@ -3,9 +3,9 @@ package gregtech.api.interfaces.tileentity;
import gregtech.api.interfaces.ITexture;
public interface IPipeRenderedTileEntity extends ICoverable, ITexturedTileEntity {
- public float getThickNess();
+ float getThickNess();
- public byte getConnections();
+ byte getConnections();
- public ITexture[] getTextureUncovered(byte aSide);
+ ITexture[] getTextureUncovered(byte aSide);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
index f5b0f76bad..8c644be2e6 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneReceiver.java
@@ -10,20 +10,20 @@ public interface IRedstoneReceiver extends IHasWorldObjectAndCoords {
* 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.
*/
- public byte getInputRedstoneSignal(byte aSide);
+ byte getInputRedstoneSignal(byte aSide);
/**
* gets the strongest Redstone Level the TileEntity receives
*/
- public byte getStrongestRedstone();
+ byte getStrongestRedstone();
/**
* gets if the TileEntity receives Redstone
*/
- public boolean getRedstone();
+ boolean getRedstone();
/**
* gets if the TileEntity receives Redstone at this Side
*/
- public boolean getRedstone(byte aSide);
+ boolean getRedstone(byte aSide);
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java
index f1cf01d291..6100572a7d 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IRedstoneTileEntity.java
@@ -13,5 +13,5 @@ public interface IRedstoneTileEntity extends IRedstoneEmitter, IRedstoneReceiver
* Causes a general Block update.
* Sends nothing to Client, just causes a Block Update.
*/
- public void issueBlockUpdate();
+ void issueBlockUpdate();
} \ No newline at end of file
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java
index 048ddbdd06..b16ae65548 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/ITexturedTileEntity.java
@@ -7,5 +7,5 @@ public interface ITexturedTileEntity {
/**
* @return the Textures rendered by the GT Rendering
*/
- public ITexture[] getTexture(Block aBlock, byte aSide);
+ ITexture[] getTexture(Block aBlock, byte aSide);
} \ No newline at end of file