mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 10:34:53 +00:00
131 lines
3.1 KiB
Java
131 lines
3.1 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2011-2014 SirSengir.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Lesser Public License v3
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
*
|
|
* Various Contributors including, but not limited to:
|
|
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
|
******************************************************************************/
|
|
package forestry.apiculture.multiblock;
|
|
|
|
import java.util.Collections;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.ChunkCoordinates;
|
|
import net.minecraft.util.Vec3;
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
import com.mojang.authlib.GameProfile;
|
|
|
|
import forestry.api.apiculture.IBeeHousingInventory;
|
|
import forestry.api.apiculture.IBeeListener;
|
|
import forestry.api.apiculture.IBeeModifier;
|
|
import forestry.api.apiculture.IBeekeepingLogic;
|
|
import forestry.apiculture.FakeBeekeepingLogic;
|
|
import forestry.core.inventory.FakeInventoryAdapter;
|
|
import forestry.core.inventory.IInventoryAdapter;
|
|
import forestry.core.multiblock.FakeMultiblockController;
|
|
|
|
public class FakeAlvearyController extends FakeMultiblockController implements IAlvearyControllerInternal {
|
|
public static final FakeAlvearyController instance = new FakeAlvearyController();
|
|
|
|
private FakeAlvearyController() {
|
|
|
|
}
|
|
|
|
@Override
|
|
public Iterable<IBeeModifier> getBeeModifiers() {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
@Override
|
|
public Iterable<IBeeListener> getBeeListeners() {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
@Override
|
|
public IBeeHousingInventory getBeeInventory() {
|
|
return FakeBeeHousingInventory.instance;
|
|
}
|
|
|
|
@Override
|
|
public IBeekeepingLogic getBeekeepingLogic() {
|
|
return FakeBeekeepingLogic.instance;
|
|
}
|
|
|
|
@Override
|
|
public int getBlockLightValue() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean canBlockSeeTheSky() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public GameProfile getOwner() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public ChunkCoordinates getCoordinates() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Vec3 getBeeFXCoordinates() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public BiomeGenBase getBiome() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public IInventoryAdapter getInternalInventory() {
|
|
return FakeInventoryAdapter.instance();
|
|
}
|
|
|
|
@Override
|
|
public int getHealthScaled(int i) {
|
|
return 0;
|
|
}
|
|
|
|
private static class FakeBeeHousingInventory implements IBeeHousingInventory {
|
|
public static final FakeBeeHousingInventory instance = new FakeBeeHousingInventory();
|
|
|
|
private FakeBeeHousingInventory() {
|
|
|
|
}
|
|
|
|
@Override
|
|
public ItemStack getQueen() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public ItemStack getDrone() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void setQueen(ItemStack itemstack) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public void setDrone(ItemStack itemstack) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public boolean addProduct(ItemStack product, boolean all) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|