Package forestry.api.plugin
Interface IArboricultureRegistration
public interface IArboricultureRegistration
Register your tree species, fruits, and effects here.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterFruit(net.minecraft.resources.ResourceLocation id, IFruit fruit) Register a new type of fruit.default ITreeSpeciesBuilderregisterSpecies(net.minecraft.resources.ResourceLocation id, String genus, String species, boolean dominant, Color escritoireColor, IWoodType woodType) Deprecated, for removal: This API element is subject to removal in a future version.Use the variant that accepts a TextColorregisterSpecies(net.minecraft.resources.ResourceLocation id, String genus, String species, boolean dominant, net.minecraft.network.chat.TextColor escritoireColor, IWoodType woodType) Register a new tree species.voidregisterTreeEffect(net.minecraft.resources.ResourceLocation id, ITreeEffect effect) Registers a tree effect.
-
Method Details
-
registerSpecies
ITreeSpeciesBuilder registerSpecies(net.minecraft.resources.ResourceLocation id, String genus, String species, boolean dominant, net.minecraft.network.chat.TextColor escritoireColor, IWoodType woodType) Register a new tree species.- Parameters:
id- The unique ID of this species. The path must start with "tree_".genus- The genus of this species. SeeForestryTaxafor examples.species- The species name of this species, used for scientific naming.dominant- Whether the allele for this species is dominant or recessive.escritoireColor- The primary color of this tree species. Used for pollen colors and tree leaf tinting.woodType- The wood type of this tree species.
-
registerSpecies
@Deprecated(forRemoval=true) default ITreeSpeciesBuilder registerSpecies(net.minecraft.resources.ResourceLocation id, String genus, String species, boolean dominant, Color escritoireColor, IWoodType woodType) Deprecated, for removal: This API element is subject to removal in a future version.Use the variant that accepts a TextColor -
registerFruit
Register a new type of fruit.- Parameters:
id- The unique ID of this fruit. SeeForestryFruitsfor defaults.fruit- The fruit object to be wrapped in an allele for use in a tree genome.
-
registerTreeEffect
Registers a tree effect. There are no tree effects in base Forestry.- Parameters:
id- The unique ID of this tree effect.effect- The effect object to be wrapped in an allele for use in a tree genome.
-