Package forestry.api.arboriculture
Interface ITreeSpecies
- All Superinterfaces:
IProductProducer,IRegistryAlleleValue,ISpecialtyProducer,ISpecies<ITree>,ITreeGenData
public interface ITreeSpecies
extends ISpecies<ITree>, ITreeGenData, IProductProducer, ISpecialtyProducer
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackintgetGermlingColor(ILifeStage stage, int renderPass) floatgetType()List<net.minecraft.world.level.block.state.BlockState>List<net.minecraft.world.item.Item>booleanisFruitLeaf(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) Determines if the block at the position is a leaves block with fruit on it.Methods inherited from interface forestry.api.core.IProductProducer
getProductsMethods inherited from interface forestry.api.core.ISpecialtyProducer
getSpecialtiesMethods inherited from interface forestry.api.genetics.ISpecies
addTooltip, cast, createIndividual, createIndividual, createIndividual, createIndividualFromPairs, createStack, createStack, getAuthority, getBinomial, getComplexity, getDefaultGenome, getDescriptionTranslationKey, getDisplayName, getEscritoireColor, getGenus, getGenusName, getKaryotype, getSpeciesName, getTranslationKey, hasGlint, id, isDominant, isSecretMethods inherited from interface forestry.api.arboriculture.ITreeGenData
allowsFruitBlocks, getDefaultGenome, getGirth, getGrowthPos, getHeightModifier, setLeaves, setLogBlock, trySpawnFruitBlock
-
Method Details
-
getType
ITreeSpeciesType getType() -
getGenerator
ITreeGenerator getGenerator() -
getDecorativeLeaves
net.minecraft.world.item.ItemStack getDecorativeLeaves()- Returns:
- The "decorative" form of this leaf block, with no block entity or genome. Used for pick-block and shears.
-
getTemperature
TemperatureType getTemperature()- Returns:
- The ideal temperature for this tree to grow in.
-
getHumidity
HumidityType getHumidity()- Returns:
- The ideal humidity for this tree to grow in.
-
getVanillaLeafStates
List<net.minecraft.world.level.block.state.BlockState> getVanillaLeafStates()- Returns:
- A list of mundane forms of this species's leaf blocks. Example: Vanilla leaves, Forestry decorative leaves
-
getVanillaSaplingItems
List<net.minecraft.world.item.Item> getVanillaSaplingItems()- Returns:
- A list of mundane item forms of this species's saplings. Example: Oak Sapling, Birch Sapling
-
getGermlingColor
-
getRarity
float getRarity()- Returns:
- The chance between 0 and 1 that this tree will spawn in a chunk during world generation. Default is 0.
-
isFruitLeaf
boolean isFruitLeaf(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) Determines if the block at the position is a leaves block with fruit on it.- Parameters:
level- The world.pos- The position of the block to check.- Returns:
trueif this is a leaves block with fruit on it, false otherwise.
-