Interface IButterflyClientManager


public interface IButterflyClientManager
Tracks client-only data for butterfly species.
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>>
     
    com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>
     
    com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>
     
  • Method Details

    • getTextures

      com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getTextures(IButterflySpecies species)
      Returns:
      The butterfly item and entity textures, respectively, resolved by the species' id. Falls back to a default-naming-convention pair (and ultimately getDefaultTextures()) when no explicit pair was registered for the species' id, so this never needs the species list/instance.
    • getDefaultTextures

      com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getDefaultTextures()
      Returns:
      The item+entity texture pair used when a species has no registered/derivable pair. Never requires the species list, so it is safe before/after a datapack species reload.
    • getAllTextures

      Collection<com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>> getAllTextures()
      Returns:
      A collection of every explicitly registered item/entity texture pair.