public class SpriteUtil
extends java.lang.Object
Constructor and Description |
---|
SpriteUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
bindBlockTextureMap() |
static void |
bindTexture(net.minecraft.util.ResourceLocation identifier) |
static void |
bindTexture(java.lang.String identifier) |
static ISprite |
getFaceSprite(com.mojang.authlib.GameProfile profile) |
static net.minecraft.client.renderer.texture.TextureAtlasSprite |
missingSprite() |
static net.minecraft.util.ResourceLocation |
transformLocation(net.minecraft.util.ResourceLocation location)
Transforms the given
ResourceLocation , adding ".png" to the end and prepending that
ResourceLocation.getResourcePath() with "textures/", just like what TextureMap does. |
public static void bindBlockTextureMap()
public static void bindTexture(java.lang.String identifier)
public static void bindTexture(net.minecraft.util.ResourceLocation identifier)
public static net.minecraft.util.ResourceLocation transformLocation(net.minecraft.util.ResourceLocation location)
ResourceLocation
, adding ".png" to the end and prepending that
ResourceLocation.getResourcePath()
with "textures/", just like what TextureMap
does.public static ISprite getFaceSprite(com.mojang.authlib.GameProfile profile)
public static net.minecraft.client.renderer.texture.TextureAtlasSprite missingSprite()