Search in sources :

Example 16 with ItemRegistryApiculture

use of forestry.apiculture.items.ItemRegistryApiculture in project ForestryMC by ForestryMC.

the class InventoryDatabaseAnalyzer method isAlyzingFuel.

public static boolean isAlyzingFuel(ItemStack itemstack) {
    if (itemstack.isEmpty()) {
        return false;
    }
    if (ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.APICULTURE))) {
        ItemRegistryApiculture beeItems = ModuleApiculture.getItems();
        Item item = itemstack.getItem();
        return beeItems.honeyDrop == item || beeItems.honeydew == item;
    }
    return false;
}
Also used : Item(net.minecraft.item.Item) ResourceLocation(net.minecraft.util.ResourceLocation) ItemRegistryApiculture(forestry.apiculture.items.ItemRegistryApiculture)

Aggregations

ItemRegistryApiculture (forestry.apiculture.items.ItemRegistryApiculture)16 ResourceLocation (net.minecraft.util.ResourceLocation)10 ItemStack (net.minecraft.item.ItemStack)9 ItemRegistryCore (forestry.core.items.ItemRegistryCore)5 Item (net.minecraft.item.Item)5 BlockRegistryApiculture (forestry.apiculture.blocks.BlockRegistryApiculture)3 FluidStack (net.minecraftforge.fluids.FluidStack)3 ICircuitLayout (forestry.api.circuits.ICircuitLayout)2 ItemRegistryFluids (forestry.core.items.ItemRegistryFluids)2 Preconditions (com.google.common.base.Preconditions)1 BeeManager (forestry.api.apiculture.BeeManager)1 EnumBeeType (forestry.api.apiculture.EnumBeeType)1 IBee (forestry.api.apiculture.IBee)1 IBeekeepingMode (forestry.api.apiculture.IBeekeepingMode)1 ICircuit (forestry.api.circuits.ICircuit)1 ForestryAPI (forestry.api.core.ForestryAPI)1 EngineBronzeFuel (forestry.api.fuels.EngineBronzeFuel)1 IAlleleSpecies (forestry.api.genetics.IAlleleSpecies)1 ICrateRegistry (forestry.api.storage.ICrateRegistry)1 ModuleApiculture (forestry.apiculture.ModuleApiculture)1