public abstract class AtlasSpriteSwappable
extends net.minecraft.client.renderer.texture.TextureAtlasSprite
Constructor and Description |
---|
AtlasSpriteSwappable(java.lang.String baseName) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(net.minecraft.client.renderer.texture.TextureAtlasSprite from) |
void |
generateMipmaps(int level) |
int |
getFrameCount() |
int[][] |
getFrameTextureData(int index) |
boolean |
hasAnimationMetadata() |
boolean |
hasCustomLoader(net.minecraft.client.resources.IResourceManager manager,
net.minecraft.util.ResourceLocation location) |
boolean |
load(net.minecraft.client.resources.IResourceManager manager,
net.minecraft.util.ResourceLocation location)
Actually loads the given location.
|
static AtlasSpriteDirect |
loadSprite(net.minecraft.client.resources.IResourceManager manager,
java.lang.String name,
net.minecraft.util.ResourceLocation location,
boolean careIfMissing) |
static AtlasSpriteDirect |
loadSprite(java.lang.String name,
net.minecraft.util.ResourceLocation location,
boolean careIfMissing) |
void |
reload(net.minecraft.util.ResourceLocation from) |
void |
setFramesTextureData(java.util.List<int[][]> newFramesTextureData) |
boolean |
swapWith(net.minecraft.client.renderer.texture.TextureAtlasSprite other) |
void |
updateAnimation() |
clearFramesTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getMaxU, getMaxV, getMinU, getMinV, getOriginX, getOriginY, getUnInterpolatedU, getUnInterpolatedV, initSprite, loadSprite, loadSpriteFrames, makeAtlasSprite, setIconHeight, setIconWidth, toString
public boolean hasAnimationMetadata()
hasAnimationMetadata
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public void updateAnimation()
updateAnimation
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public boolean swapWith(net.minecraft.client.renderer.texture.TextureAtlasSprite other)
public void reload(net.minecraft.util.ResourceLocation from)
public boolean load(net.minecraft.client.resources.IResourceManager manager, net.minecraft.util.ResourceLocation location)
loadSprite(IResourceManager, String, ResourceLocation, boolean)
to load all of the possible variants.load
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public static AtlasSpriteDirect loadSprite(java.lang.String name, net.minecraft.util.ResourceLocation location, boolean careIfMissing)
public static AtlasSpriteDirect loadSprite(net.minecraft.client.resources.IResourceManager manager, java.lang.String name, net.minecraft.util.ResourceLocation location, boolean careIfMissing)
public boolean hasCustomLoader(net.minecraft.client.resources.IResourceManager manager, net.minecraft.util.ResourceLocation location)
hasCustomLoader
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public void generateMipmaps(int level)
generateMipmaps
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public int getFrameCount()
getFrameCount
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public void copyFrom(net.minecraft.client.renderer.texture.TextureAtlasSprite from)
copyFrom
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public int[][] getFrameTextureData(int index)
getFrameTextureData
in class net.minecraft.client.renderer.texture.TextureAtlasSprite
public void setFramesTextureData(java.util.List<int[][]> newFramesTextureData)
setFramesTextureData
in class net.minecraft.client.renderer.texture.TextureAtlasSprite