aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kubatech/api/eig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kubatech/api/eig')
-rw-r--r--src/main/java/kubatech/api/eig/EIGBucket.java12
-rw-r--r--src/main/java/kubatech/api/eig/EIGMode.java14
-rw-r--r--src/main/java/kubatech/api/eig/IEIGBucketFactory.java4
3 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/kubatech/api/eig/EIGBucket.java b/src/main/java/kubatech/api/eig/EIGBucket.java
index 6a3dbdb642..0ef9630a72 100644
--- a/src/main/java/kubatech/api/eig/EIGBucket.java
+++ b/src/main/java/kubatech/api/eig/EIGBucket.java
@@ -10,8 +10,8 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.EnumChatFormatting;
-import gregtech.api.util.GT_Utility;
-import kubatech.tileentity.gregtech.multiblock.GT_MetaTileEntity_ExtremeIndustrialGreenhouse;
+import gregtech.api.util.GTUtility;
+import kubatech.tileentity.gregtech.multiblock.MTEExtremeIndustrialGreenhouse;
public abstract class EIGBucket {
@@ -119,14 +119,14 @@ public abstract class EIGBucket {
* @return number of seeds consumed, 0 for wrong item, -1 if it missed the support items, -2 if you tried to consume
* 0 or less items;
*/
- public int tryAddSeed(GT_MetaTileEntity_ExtremeIndustrialGreenhouse greenhouse, ItemStack input, int maxConsume,
+ public int tryAddSeed(MTEExtremeIndustrialGreenhouse greenhouse, ItemStack input, int maxConsume,
boolean simulate) {
// Abort is input if empty
if (input == null || input.stackSize <= 0) return -2;
// Cap max to input count
maxConsume = Math.min(maxConsume, input.stackSize);
// Abort if item isn't an identical seed.
- if (!GT_Utility.areStacksEqual(this.seed, input, false)) return 0;
+ if (!GTUtility.areStacksEqual(this.seed, input, false)) return 0;
// no support items, consume and exit early.
if (this.supportItems == null || this.supportItems.length <= 0) {
@@ -143,7 +143,7 @@ public abstract class EIGBucket {
for (ItemStack otherInput : greenhouse.getStoredInputs()) {
// filter usable inputs
if (otherInput == null || otherInput.stackSize <= 0) continue;
- if (!GT_Utility.areStacksEqual(supportItem, otherInput, false)) continue;
+ if (!GTUtility.areStacksEqual(supportItem, otherInput, false)) continue;
// update max consume again
maxConsume = Math.min(maxConsume, otherInput.stackSize);
toConsumeFrom.addLast(otherInput);
@@ -242,6 +242,6 @@ public abstract class EIGBucket {
* @param greenhouse The greenhouse that contains the bucket.
* @return True if the bucket was successfully validated. {@link EIGBucket#isValid()} should also return true.
*/
- public abstract boolean revalidate(GT_MetaTileEntity_ExtremeIndustrialGreenhouse greenhouse);
+ public abstract boolean revalidate(MTEExtremeIndustrialGreenhouse greenhouse);
}
diff --git a/src/main/java/kubatech/api/eig/EIGMode.java b/src/main/java/kubatech/api/eig/EIGMode.java
index 68ad633773..b3ebddff1b 100644
--- a/src/main/java/kubatech/api/eig/EIGMode.java
+++ b/src/main/java/kubatech/api/eig/EIGMode.java
@@ -10,8 +10,8 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
-import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
-import kubatech.tileentity.gregtech.multiblock.GT_MetaTileEntity_ExtremeIndustrialGreenhouse;
+import gregtech.api.util.MultiblockTooltipBuilder;
+import kubatech.tileentity.gregtech.multiblock.MTEExtremeIndustrialGreenhouse;
public abstract class EIGMode {
@@ -37,7 +37,7 @@ public abstract class EIGMode {
public abstract double getFertilizerBoost();
- public abstract GT_Multiblock_Tooltip_Builder addTooltipInfo(GT_Multiblock_Tooltip_Builder builder);
+ public abstract MultiblockTooltipBuilder addTooltipInfo(MultiblockTooltipBuilder builder);
/**
* Used to resolve factory type to an identifier.
@@ -98,15 +98,15 @@ public abstract class EIGMode {
/**
* Attempts to create a new bucket from a given item. Returns if the item cannot be inserted into the EIG.
*
- * @see IEIGBucketFactory#tryCreateBucket(GT_MetaTileEntity_ExtremeIndustrialGreenhouse, ItemStack)
- * @param greenhouse The {@link GT_MetaTileEntity_ExtremeIndustrialGreenhouse} that will contain the seed.
+ * @see IEIGBucketFactory#tryCreateBucket(MTEExtremeIndustrialGreenhouse, ItemStack)
+ * @param greenhouse The {@link MTEExtremeIndustrialGreenhouse} that will contain the seed.
* @param input The {@link ItemStack} for the input item.
* @param maxConsume The maximum amount of items to consume.
* @param simulate Whether to actually consume the seed.
* @return Null if no bucket could be created from the item.
*/
- public EIGBucket tryCreateNewBucket(GT_MetaTileEntity_ExtremeIndustrialGreenhouse greenhouse, ItemStack input,
- int maxConsume, boolean simulate) {
+ public EIGBucket tryCreateNewBucket(MTEExtremeIndustrialGreenhouse greenhouse, ItemStack input, int maxConsume,
+ boolean simulate) {
// Validate inputs
if (input == null) return null;
maxConsume = Math.min(input.stackSize, maxConsume);
diff --git a/src/main/java/kubatech/api/eig/IEIGBucketFactory.java b/src/main/java/kubatech/api/eig/IEIGBucketFactory.java
index 647e544573..5e5ad8f10e 100644
--- a/src/main/java/kubatech/api/eig/IEIGBucketFactory.java
+++ b/src/main/java/kubatech/api/eig/IEIGBucketFactory.java
@@ -3,13 +3,13 @@ package kubatech.api.eig;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
-import kubatech.tileentity.gregtech.multiblock.GT_MetaTileEntity_ExtremeIndustrialGreenhouse;
+import kubatech.tileentity.gregtech.multiblock.MTEExtremeIndustrialGreenhouse;
public interface IEIGBucketFactory {
String getNBTIdentifier();
- EIGBucket tryCreateBucket(GT_MetaTileEntity_ExtremeIndustrialGreenhouse greenhouse, ItemStack stack);
+ EIGBucket tryCreateBucket(MTEExtremeIndustrialGreenhouse greenhouse, ItemStack stack);
EIGBucket restore(NBTTagCompound nbt);
}