public interface TextureType<T> extends Serializer<T>
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.texture.TextureAtlasSprite |
createSprite(SpriteCreationContext context,
T data)
Creates the sprite from the custom texture data.
|
default Pair<java.lang.Integer,java.lang.Integer> |
getFrameSize(SpritePreparationContext context,
T data)
Gets the size of a single frame.
|
deserialize, serializedefault Pair<java.lang.Integer,java.lang.Integer> getFrameSize(SpritePreparationContext context, T data)
context - context for calculating the frame sizedata - custom texture dataSpritePreparationContextnet.minecraft.client.renderer.texture.TextureAtlasSprite createSprite(SpriteCreationContext context, T data)
context - context for creating the spritedata - custom texture dataSpriteCreationContext