Interface ILeafSprite


public interface ILeafSprite
Provides textures used for rendering leaves on a Forestry tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    get(boolean pollinated, boolean fancy)
    Returns the location of the leaf texture sprite to use for rendering.
    net.minecraft.resources.ResourceLocation
     
  • Method Details

    • get

      net.minecraft.resources.ResourceLocation get(boolean pollinated, boolean fancy)
      Returns the location of the leaf texture sprite to use for rendering.
      Parameters:
      pollinated - Whether the leaves are pollinated.
      fancy - Whether the game is using fancy graphics. If fast, replace transparent pixels with black.
      Returns:
      The location of the sprite to use for leaf block rendering.
    • getParticle

      net.minecraft.resources.ResourceLocation getParticle()
      Returns:
      The leaf texture used for block particles (walking, destroying, etc.)