Package com.samsthenerd.inline.utils
Class TextureSprite
java.lang.Object
com.samsthenerd.inline.utils.Spritelike
com.samsthenerd.inline.utils.TextureSprite
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.samsthenerd.inline.utils.Spritelike
Spritelike.SpritelikeType
-
Field Summary
Fields inherited from class com.samsthenerd.inline.utils.Spritelike
CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionTextureSprite
(net.minecraft.util.Identifier id) TextureSprite
(net.minecraft.util.Identifier id, float minU, float minV, float maxU, float maxV, int textWidth, int textHeight) -
Method Summary
Modifier and TypeMethodDescriptionstatic TextureSprite
fromPixels
(net.minecraft.util.Identifier id, int left, int top, int width, int height, int textWidth, int textHeight) float
getMaxU()
float
getMaxV()
float
getMinU()
float
getMinV()
int
net.minecraft.util.Identifier
int
getType()
Methods inherited from class com.samsthenerd.inline.utils.Spritelike
fromJson, fromNbt, getSpriteHeight, getSpriteWidth, registerType
-
Constructor Details
-
TextureSprite
public TextureSprite(net.minecraft.util.Identifier id, float minU, float minV, float maxU, float maxV, int textWidth, int textHeight) -
TextureSprite
public TextureSprite(net.minecraft.util.Identifier id)
-
-
Method Details
-
fromPixels
public static TextureSprite fromPixels(net.minecraft.util.Identifier id, int left, int top, int width, int height, int textWidth, int textHeight) -
getType
- Specified by:
getType
in classSpritelike
-
getTextureId
public net.minecraft.util.Identifier getTextureId()- Specified by:
getTextureId
in classSpritelike
-
getMinU
public float getMinU()- Specified by:
getMinU
in classSpritelike
-
getMinV
public float getMinV()- Specified by:
getMinV
in classSpritelike
-
getMaxU
public float getMaxU()- Specified by:
getMaxU
in classSpritelike
-
getMaxV
public float getMaxV()- Specified by:
getMaxV
in classSpritelike
-
getTextureWidth
public int getTextureWidth()- Specified by:
getTextureWidth
in classSpritelike
-
getTextureHeight
public int getTextureHeight()- Specified by:
getTextureHeight
in classSpritelike
-