Interface TextureByteSource

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TextureByteSource
Supplies raw PNG bytes for a logical texture id, however the owning layer stores them (synced server bytes, client resources, or theme jar files).
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable byte[]
    get(net.minecraft.resources.Identifier logicalTexture)
     
  • Method Details

    • get

      @Nullable byte[] get(net.minecraft.resources.Identifier logicalTexture)
      Returns:
      the PNG bytes or null.