mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
62 lines
1.6 KiB
Java
62 lines
1.6 KiB
Java
/*******************************************************************************
|
|
* Copyright 2011-2014 SirSengir
|
|
*
|
|
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
|
******************************************************************************/
|
|
package forestry.api.apiculture;
|
|
|
|
import java.util.Map;
|
|
|
|
import net.minecraft.client.resources.model.ModelResourceLocation;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
import forestry.api.core.IModelManager;
|
|
import forestry.api.genetics.IAlleleSpecies;
|
|
|
|
public interface IAlleleBeeSpecies extends IAlleleSpecies {
|
|
|
|
/**
|
|
* @return the IBeeRoot
|
|
*/
|
|
@Override
|
|
IBeeRoot getRoot();
|
|
|
|
/**
|
|
* @return true if this species is only active at night.
|
|
*/
|
|
boolean isNocturnal();
|
|
|
|
/**
|
|
* @return Map of possible products with the chance for drop each bee cycle. (0 - 1]
|
|
*/
|
|
Map<ItemStack, Float> getProductChances();
|
|
|
|
/**
|
|
* @return Map of possible specialities with the chance for drop each bee cycle. (0 - 1]
|
|
*/
|
|
Map<ItemStack, Float> getSpecialtyChances();
|
|
|
|
/**
|
|
* Only jubilant bees produce specialities.
|
|
* @return true if the bee is jubilant, false otherwise.
|
|
*/
|
|
boolean isJubilant(IBeeGenome genome, IBeeHousing housing);
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
ModelResourceLocation getModel(EnumBeeType type);
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
void registerModels(Item item, IModelManager manager);
|
|
|
|
/**
|
|
* @deprecated since Forestry 3.6.
|
|
* @return Path of the texture to use for entity rendering.
|
|
*/
|
|
@Deprecated
|
|
String getEntityTexture();
|
|
|
|
}
|