aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-10-21 20:46:47 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-10-21 20:46:47 +1000
commit755828dacfb3ab03affce91844949639b9e5ec84 (patch)
treeeb69d221bd30a2e74dc97b3443f0c12a505f68d8 /src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui
parent80907bc4a42cf3b7ca184213b83fae69ac72bdbf (diff)
downloadGT5-Unofficial-755828dacfb3ab03affce91844949639b9e5ec84.tar.gz
GT5-Unofficial-755828dacfb3ab03affce91844949639b9e5ec84.tar.bz2
GT5-Unofficial-755828dacfb3ab03affce91844949639b9e5ec84.zip
% Trying things to get Frame Housings too apply their BeeModifier to the Alveary.
@Mezz, I've had a horrible time trying to backtrack what apiaries do and apply that to the Alveary. Any advice or suggestions?
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui')
-rw-r--r--src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui/InventoryFrameHousing.java102
1 files changed, 101 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui/InventoryFrameHousing.java b/src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui/InventoryFrameHousing.java
index 406c3c47cb..9d6dd06f2d 100644
--- a/src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui/InventoryFrameHousing.java
+++ b/src/Java/gtPlusPlus/xmod/forestry/bees/alveary/gui/InventoryFrameHousing.java
@@ -1,16 +1,36 @@
package gtPlusPlus.xmod.forestry.bees.alveary.gui;
import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChunkCoordinates;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.World;
+import net.minecraft.world.biome.BiomeGenBase;
+
+import com.mojang.authlib.GameProfile;
+
import forestry.api.apiculture.BeeManager;
+import forestry.api.apiculture.IBeeHousing;
+import forestry.api.apiculture.IBeeHousingInventory;
+import forestry.api.apiculture.IBeeListener;
+import forestry.api.apiculture.IBeeModifier;
+import forestry.api.apiculture.IBeekeepingLogic;
+import forestry.api.core.EnumHumidity;
+import forestry.api.core.EnumTemperature;
+import forestry.api.core.IErrorLogic;
import forestry.core.inventory.InventoryAdapterTile;
import forestry.core.utils.ItemStackUtil;
+import gtPlusPlus.xmod.forestry.bees.alveary.IAlvearyFrameHousing;
import gtPlusPlus.xmod.forestry.bees.alveary.TileAlvearyFrameHousing;
-public class InventoryFrameHousing extends InventoryAdapterTile<TileAlvearyFrameHousing>
+public class InventoryFrameHousing extends InventoryAdapterTile<TileAlvearyFrameHousing> implements IAlvearyFrameHousing
{
+
+ TileAlvearyFrameHousing alvearyFrame;
+
public InventoryFrameHousing(TileAlvearyFrameHousing alvearyFrame)
{
super(alvearyFrame, 1, "FrameHousingInv");
+ this.alvearyFrame = alvearyFrame;
}
@Override
@@ -18,4 +38,84 @@ public class InventoryFrameHousing extends InventoryAdapterTile<TileAlvearyFrame
{
return ItemStackUtil.containsItemStack(BeeManager.inducers.keySet(), itemStack);
}
+
+ @Override
+ public boolean canBlockSeeTheSky() {
+ return alvearyFrame.canBlockSeeTheSky();
+ }
+
+ @Override
+ public Vec3 getBeeFXCoordinates() {
+ return alvearyFrame.getBeeFXCoordinates();
+ }
+
+ @Override
+ public IBeeHousingInventory getBeeInventory() {
+ return alvearyFrame.getBeeInventory();
+ }
+
+ @Override
+ public Iterable<IBeeListener> getBeeListeners() {
+ return alvearyFrame.getBeeListeners();
+ }
+
+ @Override
+ public Iterable<IBeeModifier> getBeeModifiers() {
+ return alvearyFrame.getBeeModifiers();
+ }
+
+ @Override
+ public IBeekeepingLogic getBeekeepingLogic() {
+ return alvearyFrame.getBeekeepingLogic();
+ }
+
+ @Override
+ public BiomeGenBase getBiome() {
+ return alvearyFrame.getBiome();
+ }
+
+ @Override
+ public int getBlockLightValue() {
+ return alvearyFrame.getBlockLightValue();
+ }
+
+ @Override
+ public EnumHumidity getHumidity() {
+ return alvearyFrame.getHumidity();
+ }
+
+ @Override
+ public GameProfile getOwner() {
+ return alvearyFrame.getOwner();
+ }
+
+ @Override
+ public EnumTemperature getTemperature() {
+ return alvearyFrame.getTemperature();
+ }
+
+ @Override
+ public World getWorld() {
+ return alvearyFrame.getWorld();
+ }
+
+ @Override
+ public ChunkCoordinates getCoordinates() {
+ return alvearyFrame.getCoordinates();
+ }
+
+ @Override
+ public IErrorLogic getErrorLogic() {
+ return alvearyFrame.getErrorLogic();
+ }
+
+ @Override
+ public InventoryFrameHousing getAlvearyInventory() {
+ return this;
+ }
+
+ @Override
+ public void wearOutFrames(IBeeHousing beeHousing, int amount) {
+ alvearyFrame.wearOutFrames(beeHousing, amount);
+ }
}