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
ConstructorsConstructorDescriptionURLSprite(String url, net.minecraft.util.Identifier id, UnaryOperator<SpriteUVLens> lensModifier) -
Method Summary
Methods inherited from class com.samsthenerd.inline.utils.Spritelike
fromJson, fromNbt, getUVs, registerType
-
Constructor Details
-
URLSprite
-
URLSprite
public URLSprite(String url, net.minecraft.util.Identifier id, UnaryOperator<SpriteUVLens> lensModifier)
-
-
Method Details
-
getType
- Specified by:
getTypein classSpritelike
-
getTextureId
public net.minecraft.util.Identifier getTextureId()- Specified by:
getTextureIdin classSpritelike
-
getId
public net.minecraft.util.Identifier getId() -
getUrl
-
getTextureWidth
public int getTextureWidth()- Specified by:
getTextureWidthin classSpritelike
-
getTextureHeight
public int getTextureHeight()- Specified by:
getTextureHeightin classSpritelike
-
getUVs
- Specified by:
getUVsin classSpritelike
-