mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 00:08:01 +00:00
this should make it work with TE now
This commit is contained in:
1 parent
3a4e4dce04
commit
f2beaae45c
2 files changed
+19
-1
No files matched your search
@@ -7,6 +7,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import forestry.api.apiculture.EnumBeeType;
|
||||
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||
import forestry.api.apiculture.IBee;
|
||||
@@ -22,8 +23,11 @@ import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.aspects.IAspectContainer;
|
||||
import thaumcraft.api.aspects.IEssentiaTransport;
|
||||
import thaumicenergistics.api.storage.IAspectStorage;
|
||||
|
||||
public class TileEntityApimancersDrainerCommon extends TileEntity implements IAspectContainer, IEssentiaTransport {
|
||||
@Optional.InterfaceList({
|
||||
@Optional.Interface(iface = "thaumicenergistics.api.storage.IAspectStorage", modid = "thaumicenergistics") })
|
||||
public class TileEntityApimancersDrainerCommon extends TileEntity implements IEssentiaTransport, IAspectContainer, IAspectStorage {
|
||||
|
||||
public Aspect aspect;
|
||||
public AspectList essentia = new AspectList();
|
||||
@@ -100,6 +104,18 @@ public class TileEntityApimancersDrainerCommon extends TileEntity implements IAs
|
||||
housing.getBeeInventory().getQueen().setTagCompound(nbttagcompound);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Optional.Method(modid = "thaumicenergistics")
|
||||
public int getContainerCapacity() {
|
||||
return maxAmount;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Optional.Method(modid = "thaumicenergistics")
|
||||
public boolean doesShareCapacity() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AspectList getAspects() {
|
||||
return this.essentia;
|
||||
|
||||
Reference in new issue
Block a user