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:
getType
in classSpritelike
-
getTextureId
public net.minecraft.util.Identifier getTextureId()- Specified by:
getTextureId
in classSpritelike
-
getId
public net.minecraft.util.Identifier getId() -
getUrl
-
getTextureWidth
public int getTextureWidth()- Specified by:
getTextureWidth
in classSpritelike
-
getTextureHeight
public int getTextureHeight()- Specified by:
getTextureHeight
in classSpritelike
-
getUVs
- Specified by:
getUVs
in classSpritelike
-