public class VanillaTextureType extends java.lang.Object implements TextureType<java.lang.Void>
| Constructor and Description |
|---|
VanillaTextureType() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.texture.TextureAtlasSprite |
createSprite(SpriteCreationContext context,
java.lang.Void data)
Creates the sprite from the custom texture data.
|
java.lang.Void |
deserialize(com.google.gson.JsonObject json)
Deserializes the given json to some data.
|
Pair<java.lang.Integer,java.lang.Integer> |
getFrameSize(SpritePreparationContext context,
java.lang.Void data)
Gets the size of a single frame.
|
com.google.gson.JsonObject |
serialize(java.lang.Void value)
Serializes the given data to json.
|
public Pair<java.lang.Integer,java.lang.Integer> getFrameSize(SpritePreparationContext context, java.lang.Void data)
TextureTypegetFrameSize in interface TextureType<java.lang.Void>context - context for calculating the frame sizedata - custom texture dataSpritePreparationContextpublic net.minecraft.client.renderer.texture.TextureAtlasSprite createSprite(SpriteCreationContext context, java.lang.Void data)
TextureTypecreateSprite in interface TextureType<java.lang.Void>context - context for creating the spritedata - custom texture dataSpriteCreationContextpublic java.lang.Void deserialize(com.google.gson.JsonObject json)
throws com.google.gson.JsonParseException
Serializerdeserialize in interface Serializer<java.lang.Void>com.google.gson.JsonParseException - if the given json does not match the expected formatpublic com.google.gson.JsonObject serialize(java.lang.Void value)
Serializerserialize in interface Serializer<java.lang.Void>