mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
ExtraCells2 compatibility (#105)
This commit is contained in:
1 parent
5ae5c3b5c2
commit
2d51c0f228
4 files changed
+43
No files matched your search
@@ -12,10 +12,12 @@ dependencies {
|
||||
compileOnly("curse.maven:cofh-lib-220333:2388748") { transitive = false }
|
||||
compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") { transitive = false }
|
||||
compileOnly('com.github.GTNewHorizons:BuildCraft:7.1.55:dev') {transitive = false}
|
||||
//compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false }
|
||||
|
||||
compileOnly("org.jetbrains:annotations:26.0.2")
|
||||
|
||||
runtimeOnlyNonPublishable('com.github.GTNewHorizons:GTNHLib:0.9.10:dev')
|
||||
runtimeOnly("com.github.GTNewHorizons:Baubles:1.0.4:dev")
|
||||
runtimeOnlyNonPublishable("com.github.GTNewHorizons:waila:1.19.21:dev")
|
||||
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false }
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package thaumicenergistics.api;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -37,4 +38,7 @@ public interface IThEInteractionHelper {
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
void setArcaneCraftingTerminalRecipe(@Nonnull ItemStack[] items);
|
||||
|
||||
@Deprecated
|
||||
void openWirelessTerminalGui(@Nonnull EntityPlayer player);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package thaumicenergistics.api;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import appeng.api.features.INetworkEncodable;
|
||||
import appeng.api.implementations.items.IAEItemPowerStorage;
|
||||
|
||||
@Deprecated
|
||||
public interface IThEWirelessEssentiaTerminal extends INetworkEncodable, IAEItemPowerStorage {
|
||||
|
||||
@Deprecated
|
||||
@Nonnull
|
||||
NBTTagCompound getWETerminalTag(@Nonnull ItemStack terminalItemstack);
|
||||
}
|
||||
@@ -3,9 +3,11 @@ package thaumicenergistics.implementaion;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.util.FakePlayer;
|
||||
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.storage.data.IAEItemStack;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import thaumicenergistics.api.IThEInteractionHelper;
|
||||
@@ -71,4 +73,22 @@ public class ThEInteractionHelper implements IThEInteractionHelper {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openWirelessTerminalGui(final EntityPlayer player) {
|
||||
// Valid player?
|
||||
if ((player == null) || (player instanceof FakePlayer)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignored client side
|
||||
if (Platform.isClient()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the item the player is holding.
|
||||
ItemStack wirelessTerminal = player.getHeldItem();
|
||||
|
||||
AEApi.instance().registries().wireless().openWirelessTerminalGui(wirelessTerminal, player.worldObj, player);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user