Interface ILeafSprite
public interface ILeafSprite
Provides textures used for rendering leaves on a Forestry tree.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ILeafSpriteThe sprite used when no leaf sprite is registered for a species. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationget(boolean pollinated, boolean fancy) Returns the location of the leaf texture sprite to use for rendering.net.minecraft.resources.ResourceLocation
-
Field Details
-
MISSING
The sprite used when no leaf sprite is registered for a species.- Since:
- 2.10.0
-
-
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.)
-