private static final class ModelDynBucket.BucketBaseSprite extends TextureAtlasSprite
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
bucket |
private com.google.common.collect.ImmutableList<ResourceLocation> |
dependencies |
frameCounter, framesTextureData, height, interpolatedFrameData, originX, originY, rotated, tickCounter, width
Modifier | Constructor and Description |
---|---|
private |
BucketBaseSprite(ResourceLocation resourceLocation) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ResourceLocation> |
getDependencies() |
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.
|
clearFramesTextureData, copyFrom, generateMipmaps, 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
private final ResourceLocation bucket
private final com.google.common.collect.ImmutableList<ResourceLocation> dependencies
private BucketBaseSprite(ResourceLocation resourceLocation)
public boolean hasCustomLoader(@Nonnull IResourceManager manager, @Nonnull ResourceLocation location)
TextureAtlasSprite
hasCustomLoader
in class TextureAtlasSprite
manager
- Main resource managerlocation
- File resource locationpublic java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in class TextureAtlasSprite
public boolean load(@Nonnull IResourceManager manager, @Nonnull ResourceLocation location, @Nonnull 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 one