public class AlleleBeeSpecies extends AlleleSpecies implements IAlleleBeeSpecies, IAlleleBeeSpeciesBuilder
| Constructor and Description |
|---|
AlleleBeeSpecies(java.lang.String modId,
java.lang.String uid,
java.lang.String unlocalizedName,
java.lang.String authority,
java.lang.String unlocalizedDescription,
boolean dominant,
IClassification branch,
java.lang.String binomial,
int primaryColor,
int secondaryColor) |
| Modifier and Type | Method and Description |
|---|---|
IAlleleBeeSpeciesBuilder |
addProduct(net.minecraft.item.ItemStack product,
java.lang.Float chance)
Add a product for this bee species.
|
IAlleleBeeSpeciesBuilder |
addSpecialty(net.minecraft.item.ItemStack specialty,
java.lang.Float chance)
Add a specialty product for this bee species.
|
IAlleleBeeSpecies |
build() |
net.minecraft.client.renderer.block.model.ModelResourceLocation |
getModel(EnumBeeType type) |
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> |
getProductChances() |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getResearchBounty(net.minecraft.world.World world,
com.mojang.authlib.GameProfile researcher,
IIndividual individual,
int bountyLevel) |
float |
getResearchSuitability(net.minecraft.item.ItemStack itemstack) |
IBeeRoot |
getRoot() |
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> |
getSpecialtyChances() |
int |
getSpriteColour(int renderPass) |
boolean |
isJubilant(IBeeGenome genome,
IBeeHousing housing)
Only jubilant bees produce specialities.
|
boolean |
isNocturnal() |
void |
registerModels(net.minecraft.item.Item item,
IModelManager manager) |
IAlleleBeeSpeciesBuilder |
setCustomBeeModelProvider(IBeeModelProvider beeIconProvider)
Use this if you have custom icons for bees.
|
IAlleleBeeSpeciesBuilder |
setCustomBeeSpriteColourProvider(IBeeSpriteColourProvider beeIconColourProvider)
Use this if you have custom icon colours for bees (other than the default static primary + secondary colours).
|
IAlleleBeeSpeciesBuilder |
setJubilanceProvider(IJubilanceProvider provider)
Set the Jubilance Provider for this bee species.
|
IAlleleBeeSpeciesBuilder |
setNocturnal()
Make this species only active at night.
|
getAuthority, getBinomial, getBranch, getComplexity, getDescription, getHumidity, getTemperature, hasEffect, isCounted, isSecret, setComplexity, setHasEffect, setHumidity, setIsNotCounted, setIsSecret, setTemperaturegetAlleleName, getModID, getName, getUID, getUnlocalizedName, isDominant, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthority, getBinomial, getBranch, getComplexity, getDescription, getHumidity, getTemperature, hasEffect, isCounted, isSecretgetAlleleName, getModID, getName, getUID, getUnlocalizedName, isDominantsetComplexity, setHasEffect, setHumidity, setIsNotCounted, setIsSecret, setTemperaturepublic AlleleBeeSpecies(java.lang.String modId,
java.lang.String uid,
java.lang.String unlocalizedName,
java.lang.String authority,
java.lang.String unlocalizedDescription,
boolean dominant,
IClassification branch,
java.lang.String binomial,
int primaryColor,
int secondaryColor)
public IAlleleBeeSpecies build()
build in interface IAlleleBeeSpeciesBuilderbuild in interface IAlleleSpeciesBuilderpublic IBeeRoot getRoot()
getRoot in interface IAlleleBeeSpeciesgetRoot in interface IAlleleSpeciespublic IAlleleBeeSpeciesBuilder addProduct(net.minecraft.item.ItemStack product, java.lang.Float chance)
IAlleleBeeSpeciesBuilderaddProduct in interface IAlleleBeeSpeciesBuilderpublic IAlleleBeeSpeciesBuilder addSpecialty(net.minecraft.item.ItemStack specialty, java.lang.Float chance)
IAlleleBeeSpeciesBuilderaddSpecialty in interface IAlleleBeeSpeciesBuilderpublic IAlleleBeeSpeciesBuilder setJubilanceProvider(IJubilanceProvider provider)
IAlleleBeeSpeciesBuildersetJubilanceProvider in interface IAlleleBeeSpeciesBuilderpublic IAlleleBeeSpeciesBuilder setNocturnal()
IAlleleBeeSpeciesBuildersetNocturnal in interface IAlleleBeeSpeciesBuilderpublic IAlleleBeeSpeciesBuilder setCustomBeeModelProvider(IBeeModelProvider beeIconProvider)
IAlleleBeeSpeciesBuildersetCustomBeeModelProvider in interface IAlleleBeeSpeciesBuilderpublic IAlleleBeeSpeciesBuilder setCustomBeeSpriteColourProvider(IBeeSpriteColourProvider beeIconColourProvider)
IAlleleBeeSpeciesBuildersetCustomBeeSpriteColourProvider in interface IAlleleBeeSpeciesBuilderpublic float getResearchSuitability(net.minecraft.item.ItemStack itemstack)
getResearchSuitability in interface IAlleleSpeciesgetResearchSuitability in class AlleleSpeciespublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getResearchBounty(net.minecraft.world.World world,
com.mojang.authlib.GameProfile researcher,
IIndividual individual,
int bountyLevel)
getResearchBounty in interface IAlleleSpeciesgetResearchBounty in class AlleleSpeciespublic boolean isNocturnal()
isNocturnal in interface IAlleleBeeSpeciespublic java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getProductChances()
getProductChances in interface IAlleleBeeSpeciespublic java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getSpecialtyChances()
getSpecialtyChances in interface IAlleleBeeSpeciespublic boolean isJubilant(IBeeGenome genome, IBeeHousing housing)
IAlleleBeeSpeciesisJubilant in interface IAlleleBeeSpeciespublic void registerModels(net.minecraft.item.Item item,
IModelManager manager)
registerModels in interface IAlleleBeeSpeciespublic net.minecraft.client.renderer.block.model.ModelResourceLocation getModel(EnumBeeType type)
getModel in interface IAlleleBeeSpeciespublic int getSpriteColour(int renderPass)
getSpriteColour in interface IAlleleSpeciesrenderPass - Render pass to get the colour for.