Package com.samsthenerd.inline.utils
Class URLSprite
java.lang.Object
com.samsthenerd.inline.utils.Spritelike
com.samsthenerd.inline.utils.URLSprite
-
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
Constructors -
Method Summary
Methods inherited from class com.samsthenerd.inline.utils.Spritelike
fromJson, fromNbt, getSpriteHeight, getSpriteWidth, registerType
-
Constructor Details
-
URLSprite
public URLSprite(String url, net.minecraft.util.Identifier id, float minU, float minV, float maxU, float maxV) -
URLSprite
-
-
Method Details
-
getType
- Specified by:
getType
in classSpritelike
-
getTextureId
public net.minecraft.util.Identifier getTextureId()- Specified by:
getTextureId
in classSpritelike
-
getId
public net.minecraft.util.Identifier getId() -
getUrl
-
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
-