Class WrappedSpriteSource

java.lang.Object
com.petrolpark.client.sprite.WrappedSpriteSource
All Implemented Interfaces:
net.minecraft.client.renderer.texture.atlas.SpriteSource
Direct Known Subclasses:
MeanShiftClusterSpriteSource

public abstract class WrappedSpriteSource extends Object implements net.minecraft.client.renderer.texture.atlas.SpriteSource
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.renderer.texture.atlas.SpriteSource

    net.minecraft.client.renderer.texture.atlas.SpriteSource.Output, net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
  • Field Summary

    Fields inherited from interface net.minecraft.client.renderer.texture.atlas.SpriteSource

    TEXTURE_ID_CONVERTER
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedSpriteSource(net.minecraft.client.renderer.texture.atlas.SpriteSource wrappedSource, String prefix, Optional<List<String>> allowedNamespaces)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader
     
     
     
    net.minecraft.client.renderer.texture.atlas.SpriteSource
     
    void
    run(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.client.renderer.texture.atlas.SpriteSource.Output output)
     
    abstract net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier
    transform(net.minecraft.client.renderer.texture.SpriteContents original)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.renderer.texture.atlas.SpriteSource

    type
  • Constructor Details

    • WrappedSpriteSource

      public WrappedSpriteSource(net.minecraft.client.renderer.texture.atlas.SpriteSource wrappedSource, String prefix, Optional<List<String>> allowedNamespaces)
  • Method Details

    • getWrappedSource

      public net.minecraft.client.renderer.texture.atlas.SpriteSource getWrappedSource()
    • getPrefix

      public String getPrefix()
    • getAllowedNamespaces

      public Optional<List<String>> getAllowedNamespaces()
    • run

      public void run(@Nonnull net.minecraft.server.packs.resources.ResourceManager resourceManager, @Nonnull net.minecraft.client.renderer.texture.atlas.SpriteSource.Output output)
      Specified by:
      run in interface net.minecraft.client.renderer.texture.atlas.SpriteSource
    • createSpriteResourceLoader

      public net.minecraft.client.renderer.texture.atlas.SpriteResourceLoader createSpriteResourceLoader()
    • transform

      public abstract net.minecraft.client.renderer.texture.atlas.SpriteSource.SpriteSupplier transform(net.minecraft.client.renderer.texture.SpriteContents original)