Package forestry.api.core.genetics
Interface IIndividualItem
public interface IIndividualItem
Implemented by items that carry a genetic individual in a data component. Lets the API read an
individual out of a stack without naming the item implementation.
Ex. the bee, tree, and butterfly items
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetIndividualFromComponent(net.minecraft.world.item.ItemStack stack) ISpeciesType<?, ?>
-
Method Details
-
getIndividualFromComponent
- Returns:
- The individual stored in the stack, or
nullif it has none
-
getLifeStage
ILifeStage getLifeStage()- Returns:
- The life stage this item represents. Ex. drone, princess, queen
-
getSpeciesType
ISpeciesType<?,?> getSpeciesType()- Returns:
- The species type this item belongs to
-