Class ClientSpriteRegistryCallback.Registry

java.lang.Object
net.fabricmc.fabric.api.event.client.ClientSpriteRegistryCallback.Registry
Enclosing interface:
ClientSpriteRegistryCallback

public static class ClientSpriteRegistryCallback.Registry extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Registry(Map<net.minecraft.util.Identifier,net.minecraft.client.texture.Sprite> spriteMap, Consumer<net.minecraft.util.Identifier> defaultSpriteRegister)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    register(net.minecraft.client.texture.Sprite sprite)
    Register a custom sprite to be added and loaded.
    void
    register(net.minecraft.util.Identifier id)
    Register a sprite to be loaded using the default implementation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Registry

      public Registry(Map<net.minecraft.util.Identifier,net.minecraft.client.texture.Sprite> spriteMap, Consumer<net.minecraft.util.Identifier> defaultSpriteRegister)
  • Method Details

    • register

      public void register(net.minecraft.util.Identifier id)
      Register a sprite to be loaded using the default implementation.
      Parameters:
      id - The sprite identifier.
    • register

      public void register(net.minecraft.client.texture.Sprite sprite)
      Register a custom sprite to be added and loaded.
      Parameters:
      sprite - The sprite to be added.