Class FusionTextureTypeRegistry
java.lang.Object
com.supermartijn642.fusion.api.texture.FusionTextureTypeRegistry
Created 26/04/2023 by SuperMartijn642
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterTextureType(net.minecraft.resources.ResourceLocation identifier, TextureType<?> textureType) Registers the given texture type.static <T> com.google.gson.JsonObjectserializeTextureData(TextureType<T> textureType, T textureData) Serializes the given texture data.
-
Constructor Details
-
FusionTextureTypeRegistry
public FusionTextureTypeRegistry()
-
-
Method Details
-
registerTextureType
public static void registerTextureType(net.minecraft.resources.ResourceLocation identifier, TextureType<?> textureType) Registers the given texture type.- Parameters:
identifier- identifier for the texture typetextureType- handler for custom texture data and creating the sprite
-
serializeTextureData
public static <T> com.google.gson.JsonObject serializeTextureData(TextureType<T> textureType, T textureData) Serializes the given texture data.- Parameters:
textureType- type of the texturetextureData- texture data to serialize
-