Package com.samsthenerd.inline.utils
Class Spritelike
java.lang.Object
com.samsthenerd.inline.utils.Spritelike
- Direct Known Subclasses:
TextureSprite
,URLSprite
A wrapper around various texture sources.
Spritelike is server safe, on the client it renders with a SpritelikeRenderer. You shouldn't need to make new Spritelike types.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Spritelike
fromJson
(com.google.gson.JsonElement json) static Spritelike
fromNbt
(net.minecraft.nbt.NbtElement nbt) abstract float
getMaxU()
abstract float
getMaxV()
abstract float
getMinU()
abstract float
getMinV()
int
int
abstract int
abstract net.minecraft.util.Identifier
abstract int
abstract Spritelike.SpritelikeType
getType()
static void
-
Field Details
-
CODEC
-
-
Constructor Details
-
Spritelike
public Spritelike()
-
-
Method Details
-
getType
-
getTextureId
public abstract net.minecraft.util.Identifier getTextureId() -
getMinU
public abstract float getMinU() -
getMinV
public abstract float getMinV() -
getMaxU
public abstract float getMaxU() -
getMaxV
public abstract float getMaxV() -
getTextureWidth
public abstract int getTextureWidth() -
getTextureHeight
public abstract int getTextureHeight() -
getSpriteWidth
public int getSpriteWidth() -
getSpriteHeight
public int getSpriteHeight() -
fromJson
-
fromNbt
-
registerType
-