Interface ITreeClientManager
public interface ITreeClientManager
Tracks client-only data for tree species.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>> getLeafSprite(@Nullable ITreeSpecies species) com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getSaplingModels(ITreeSpecies species) getTint(@Nullable ITreeSpecies species)
-
Method Details
-
getLeafSprite
- Returns:
- The leaf sprite for the given species.
-
getAllLeafSprites
Collection<ILeafSprite> getAllLeafSprites()- Returns:
- A collection of every leaf sprite that was registered.
-
getTint
- Returns:
- The leaf tint for the given species, or
ILeafTint.DEFAULTif none was found.
-
getSaplingModels
com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getSaplingModels(ITreeSpecies species) - Returns:
- A pair containing locations of the block and item models for this species, in that order.
-
getAllSaplingModels
Collection<com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>> getAllSaplingModels()
-