public class ConnectingTextureType extends java.lang.Object implements TextureType<ConnectingTextureData>
| Constructor and Description |
|---|
ConnectingTextureType() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.texture.TextureAtlasSprite |
createSprite(SpriteCreationContext context,
ConnectingTextureData data)
Creates the sprite from the custom texture data.
|
ConnectingTextureData |
deserialize(com.google.gson.JsonObject json)
Deserializes the given json to some data.
|
com.google.gson.JsonObject |
serialize(ConnectingTextureData data)
Serializes the given data to json.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFrameSizepublic ConnectingTextureData deserialize(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException
Serializerdeserialize in interface Serializer<ConnectingTextureData>com.google.gson.JsonParseException - if the given json does not match the expected formatpublic com.google.gson.JsonObject serialize(ConnectingTextureData data)
Serializerserialize in interface Serializer<ConnectingTextureData>public net.minecraft.client.renderer.texture.TextureAtlasSprite createSprite(SpriteCreationContext context, ConnectingTextureData data)
TextureTypecreateSprite in interface TextureType<ConnectingTextureData>context - context for creating the spritedata - custom texture dataSpriteCreationContext