mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05405a1bd2 | ||
|
|
322203ac6a | ||
|
|
1e5c8db826 | ||
|
|
ef47b1863a | ||
|
|
f2beaae45c |
No files matched your search
@@ -9,5 +9,6 @@ dependencies {
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.10.5-GTNH:api') {transitive = false}
|
||||
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.53:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.6.2-GTNH:dev')
|
||||
}
|
||||
|
||||
@@ -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,12 @@ 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();
|
||||
@@ -38,6 +43,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity implements IAs
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
super.updateEntity();
|
||||
// If there's no stored aspect we shouldn't even check for the above block.
|
||||
// We also don't need to run all the logic if the cabinet is full.
|
||||
if (aspect == null || essentia.visSize() == maxAmount) return;
|
||||
@@ -100,6 +106,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