Interface IClientHelper


public interface IClientHelper
Contains methods for creating instances of client-only objects using Forestry's built-in implementations.
Since:
1.0.5
  • Method Details

    • createNoneTint

      ILeafTint createNoneTint()
      Returns:
      A leaf tint that does not tint the texture. Used for vanilla Cherry Blossom trees in 1.20.
    • createFixedTint

      ILeafTint createFixedTint(Color color)
      Returns:
      A leaf tint that always uses the same color.
    • createBiomeTint

      ILeafTint createBiomeTint()
      Returns:
      A tint that changes based on the biome. Used for vanilla Oak trees.
    • createBiomeTint

      ILeafTint createBiomeTint(it.unimi.dsi.fastutil.ints.Int2IntFunction mapper)
      Creates a tint that changes based on the biome.
      Parameters:
      mapper - A transformation function that returns a new tint given the default biome tint.
      Returns:
      A biome-dependent tint.
    • createLeafSprite

      ILeafSprite createLeafSprite(net.minecraft.resources.ResourceLocation id)
      Creates a leaf sprite given a namespace and name.
      Parameters:
      id - The name and namespace used to generate texture paths for normal, pollinated, fast normal, and fast pollinated textures.
      Returns:
      A new leaf sprite.