Interface ITreeClientManager


public interface ITreeClientManager
Tracks client-only data for tree species.
  • Method Details

    • getLeafSprite

      ILeafSprite getLeafSprite(@Nullable @Nullable ITreeSpecies species)
      Returns:
      The leaf sprite for the given species.
    • getAllLeafSprites

      Collection<ILeafSprite> getAllLeafSprites()
      Returns:
      A collection of every leaf sprite that was registered.
    • getTint

      ILeafTint getTint(@Nullable @Nullable ITreeSpecies species)
      Returns:
      The leaf tint for the given species, or ILeafTint.DEFAULT if 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()