public final class FusionTextureTypeRegistry
extends java.lang.Object
| Constructor and Description |
|---|
FusionTextureTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static void |
registerTextureType(net.minecraft.util.ResourceLocation identifier,
TextureType<?> textureType)
Registers the given texture type.
|
static <T> com.google.gson.JsonObject |
serializeTextureData(TextureType<T> textureType,
T textureData)
Serializes the given texture data.
|
public static void registerTextureType(net.minecraft.util.ResourceLocation identifier,
TextureType<?> textureType)
identifier - identifier for the texture typetextureType - handler for custom texture data and creating the spritepublic static <T> com.google.gson.JsonObject serializeTextureData(TextureType<T> textureType, T textureData)
textureType - type of the texturetextureData - texture data to serialize