Interface TextureType<T>
- All Superinterfaces:
Serializer<T>
- All Known Implementing Classes:
ConnectingTextureType,ScrollingTextureType,VanillaTextureType
Created 26/04/2023 by SuperMartijn642
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.texture.TextureAtlasSpritecreateSprite(SpriteCreationContext context, T data) Creates the sprite from the custom texture data.getFrameSize(SpritePreparationContext context, T data) Gets the size of a single frame.Methods inherited from interface com.supermartijn642.fusion.api.util.Serializer
deserialize, serialize
-
Method Details
-
getFrameSize
Gets the size of a single frame. The returned size will be allocated in the relevant atlas.- Parameters:
context- context for calculating the frame sizedata- custom texture data- Returns:
- the size to allocate to this sprite in the atlas
- See Also:
-
createSprite
net.minecraft.client.renderer.texture.TextureAtlasSprite createSprite(SpriteCreationContext context, T data) Creates the sprite from the custom texture data.- Parameters:
context- context for creating the spritedata- custom texture data- See Also:
-