Class LazySkinLayer

java.lang.Object
cromveil.combatnumbers.client.skins.LazySkinLayer
All Implemented Interfaces:
Source<net.minecraft.resources.Identifier, Skin>

public final class LazySkinLayer extends Object implements Source<net.minecraft.resources.Identifier, Skin>
Source that lazily evaluates skin compilation. NOTE: Must be used on the render thread.
  • Constructor Details

    • LazySkinLayer

      public LazySkinLayer(String layerPrefix)
  • Method Details

    • set

      public void set(Map<net.minecraft.resources.Identifier, SkinDefinition> defs, TextureByteSource byteSource)
      Replaces this layer's skins, releasing the previously compiled textures.
    • clear

      public void clear()
    • get

      public @Nullable Skin get(net.minecraft.resources.Identifier id)
      Specified by:
      get in interface Source<net.minecraft.resources.Identifier, Skin>
      Returns:
      null if not found.