Class SpritePreparationContextImpl
java.lang.Object
com.supermartijn642.fusion.texture.SpritePreparationContextImpl
- All Implemented Interfaces:
SpritePreparationContext
Created 28/04/2023 by SuperMartijn642
-
Constructor Summary
ConstructorsConstructorDescriptionSpritePreparationContextImpl(int originalWidth, int originalHeight, int textureWidth, int textureHeight, net.minecraft.resources.ResourceLocation identifier) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationGets the identifier of the texture.intGets the original frame height as calculated by vanilla.intGets the original frame width as calculated by vanilla.intGets the height of the texture.intGets the width of the texture.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.supermartijn642.fusion.api.texture.SpritePreparationContext
getOriginalFrameSize
-
Constructor Details
-
SpritePreparationContextImpl
public SpritePreparationContextImpl(int originalWidth, int originalHeight, int textureWidth, int textureHeight, net.minecraft.resources.ResourceLocation identifier)
-
-
Method Details
-
getOriginalFrameWith
public int getOriginalFrameWith()Description copied from interface:SpritePreparationContextGets the original frame width as calculated by vanilla.- Specified by:
getOriginalFrameWithin interfaceSpritePreparationContext
-
getOriginalFrameHeight
public int getOriginalFrameHeight()Description copied from interface:SpritePreparationContextGets the original frame height as calculated by vanilla.- Specified by:
getOriginalFrameHeightin interfaceSpritePreparationContext
-
getTextureWidth
public int getTextureWidth()Description copied from interface:SpritePreparationContextGets the width of the texture.- Specified by:
getTextureWidthin interfaceSpritePreparationContext
-
getTextureHeight
public int getTextureHeight()Description copied from interface:SpritePreparationContextGets the height of the texture.- Specified by:
getTextureHeightin interfaceSpritePreparationContext
-
getIdentifier
public net.minecraft.resources.ResourceLocation getIdentifier()Description copied from interface:SpritePreparationContextGets the identifier of the texture.- Specified by:
getIdentifierin interfaceSpritePreparationContext
-