Class ScratchTextureManager

java.lang.Object
net.minecraft.client.resources.TextureAtlasHolder
com.petrolpark.core.scratch.client.ScratchTextureManager
All Implemented Interfaces:
AutoCloseable, net.minecraft.server.packs.resources.PreparableReloadListener

@ParametersAreNonnullByDefault public class ScratchTextureManager extends net.minecraft.client.resources.TextureAtlasHolder
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields inherited from class net.minecraft.client.resources.TextureAtlasHolder

    textureAtlas
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    getSprite(net.minecraft.resources.ResourceLocation location)
     
    static final void
    onRegisterClientReloadListeners(net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent event)
     

    Methods inherited from class net.minecraft.client.resources.TextureAtlasHolder

    close, reload

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName
  • Method Details

    • getInstance

      public static final ScratchTextureManager getInstance()
    • getSprite

      public net.minecraft.client.renderer.texture.TextureAtlasSprite getSprite(net.minecraft.resources.ResourceLocation location)
      Overrides:
      getSprite in class net.minecraft.client.resources.TextureAtlasHolder
    • onRegisterClientReloadListeners

      public static final void onRegisterClientReloadListeners(net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent event)