public static class ClientSpriteRegistryCallback.Registry extends Object
Constructor and Description |
---|
Registry(Map<net.minecraft.util.Identifier,net.minecraft.client.texture.Sprite> spriteMap,
Consumer<net.minecraft.util.Identifier> defaultSpriteRegister) |
Modifier and Type | Method and Description |
---|---|
void |
register(net.minecraft.util.Identifier id)
Register a sprite to be loaded using the default implementation.
|
void |
register(net.minecraft.client.texture.Sprite sprite)
Register a custom sprite to be added and loaded.
|
public void register(net.minecraft.util.Identifier id)
id
- The sprite identifier.public void register(net.minecraft.client.texture.Sprite sprite)
sprite
- The sprite to be added.