Interface AtlasRegistrar


public interface AtlasRegistrar
Created by covers1624 on 27/10/19.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    postRegister(Consumer<net.minecraft.client.renderer.texture.TextureAtlas> func)
     
    default void
    registerSprite(String loc, Consumer<net.minecraft.client.renderer.texture.TextureAtlasSprite> onReady)
    Same as above, just takes a String for the ResourceLocation instead.
    default void
    registerSprite(net.minecraft.resources.ResourceLocation loc)
    Same as above, ignores callback.
    void
    registerSprite(net.minecraft.resources.ResourceLocation loc, Consumer<net.minecraft.client.renderer.texture.TextureAtlasSprite> onReady)
    Called to register a sprite and a callback for when the TextureAtlasSprite has been loaded.
  • Method Details

    • registerSprite

      void registerSprite(net.minecraft.resources.ResourceLocation loc, Consumer<net.minecraft.client.renderer.texture.TextureAtlasSprite> onReady)
      Called to register a sprite and a callback for when the TextureAtlasSprite has been loaded.
      Parameters:
      loc - The sprite's ResourceLocation.
      onReady - The callback for the sprite being ready.
    • registerSprite

      default void registerSprite(String loc, Consumer<net.minecraft.client.renderer.texture.TextureAtlasSprite> onReady)
      Same as above, just takes a String for the ResourceLocation instead.
      Parameters:
      loc - The sprite's ResourceLocation.
      onReady - The callback for the sprite being ready.
    • registerSprite

      default void registerSprite(net.minecraft.resources.ResourceLocation loc)
      Same as above, ignores callback. May be useful in _some_ cases.
      Parameters:
      loc - The sprite's ResourceLocation.
    • postRegister

      void postRegister(Consumer<net.minecraft.client.renderer.texture.TextureAtlas> func)