public static final class ModelLoader.White extends TextureAtlasSprite
Modifier and Type | Field and Description |
---|---|
static ModelLoader.White |
INSTANCE |
static ResourceLocation |
LOCATION |
frameCounter, framesTextureData, height, interpolatedFrameData, originX, originY, rotated, tickCounter, width
Modifier | Constructor and Description |
---|---|
private |
White() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasCustomLoader(IResourceManager manager,
ResourceLocation location)
The result of this function determines is the below 'load' function is called, and the
default vanilla loading code is bypassed completely.
|
boolean |
load(IResourceManager manager,
ResourceLocation location,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter)
Load the specified resource as this sprite's data.
|
void |
register(TextureMap map) |
clearFramesTextureData, copyFrom, generateMipmaps, getDependencies, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getMaxU, getMaxV, getMinU, getMinV, getOriginX, getOriginY, getUnInterpolatedU, getUnInterpolatedV, hasAnimationMetadata, initSprite, loadSprite, loadSpriteFrames, makeAtlasSprite, setFramesTextureData, setIconHeight, setIconWidth, toString, updateAnimation
public static final ResourceLocation LOCATION
public static final ModelLoader.White INSTANCE
public boolean hasCustomLoader(IResourceManager manager, ResourceLocation location)
TextureAtlasSprite
hasCustomLoader
in class TextureAtlasSprite
manager
- Main resource managerlocation
- File resource locationpublic boolean load(IResourceManager manager, ResourceLocation location, java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter)
TextureAtlasSprite
load
in class TextureAtlasSprite
manager
- Main resource managerlocation
- File resource locationtextureGetter
- accessor for dependencies. All of them will be loaded before this onepublic void register(TextureMap map)