public class ConnectingTextureType extends java.lang.Object implements TextureType<ConnectingTextureLayout>
| Constructor and Description |
|---|
ConnectingTextureType() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.renderer.texture.TextureAtlasSprite |
createSprite(SpriteCreationContext context,
ConnectingTextureLayout data)
Creates the sprite from the custom texture data.
|
ConnectingTextureLayout |
deserialize(com.google.gson.JsonObject json)
Deserializes the given json to some data.
|
static int |
getScaleFactor(ConnectingTextureLayout layout) |
static int[] |
getStatePosition(ConnectingTextureLayout layout,
boolean up,
boolean upRight,
boolean right,
boolean bottomRight,
boolean bottom,
boolean bottomLeft,
boolean left,
boolean upLeft) |
static int[] |
getStatePositionFull(boolean up,
boolean upRight,
boolean right,
boolean bottomRight,
boolean bottom,
boolean bottomLeft,
boolean left,
boolean upLeft) |
static int[] |
getStatePositionSimple(boolean up,
boolean right,
boolean bottom,
boolean left) |
com.google.gson.JsonObject |
serialize(ConnectingTextureLayout value)
Serializes the given data to json.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFrameSizepublic ConnectingTextureLayout deserialize(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException
Serializerdeserialize in interface Serializer<ConnectingTextureLayout>com.google.gson.JsonParseException - if the given json does not match the expected formatpublic com.google.gson.JsonObject serialize(ConnectingTextureLayout value)
Serializerserialize in interface Serializer<ConnectingTextureLayout>public net.minecraft.client.renderer.texture.TextureAtlasSprite createSprite(SpriteCreationContext context, ConnectingTextureLayout data)
TextureTypecreateSprite in interface TextureType<ConnectingTextureLayout>context - context for creating the spritedata - custom texture dataSpriteCreationContextpublic static int getScaleFactor(ConnectingTextureLayout layout)
public static int[] getStatePosition(ConnectingTextureLayout layout, boolean up, boolean upRight, boolean right, boolean bottomRight, boolean bottom, boolean bottomLeft, boolean left, boolean upLeft)
public static int[] getStatePositionFull(boolean up,
boolean upRight,
boolean right,
boolean bottomRight,
boolean bottom,
boolean bottomLeft,
boolean left,
boolean upLeft)
public static int[] getStatePositionSimple(boolean up,
boolean right,
boolean bottom,
boolean left)