private static final class ModelDynBucket.BucketCoverSprite extends TextureAtlasSprite
| Modifier and Type | Field and Description |
|---|---|
private ResourceLocation |
bucket |
private ResourceLocation |
bucketCoverMask |
private com.google.common.collect.ImmutableList<ResourceLocation> |
dependencies |
frameCounter, framesTextureData, height, interpolatedFrameData, originX, originY, rotated, tickCounter, width| Modifier | Constructor and Description |
|---|---|
private |
BucketCoverSprite(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, updateAnimationprivate final ResourceLocation bucket
private final ResourceLocation bucketCoverMask
private final com.google.common.collect.ImmutableList<ResourceLocation> dependencies
private BucketCoverSprite(ResourceLocation resourceLocation)
public boolean hasCustomLoader(@Nonnull
IResourceManager manager,
@Nonnull
ResourceLocation location)
TextureAtlasSpritehasCustomLoader in class TextureAtlasSpritemanager - Main resource managerlocation - File resource locationpublic java.util.Collection<ResourceLocation> getDependencies()
getDependencies in class TextureAtlasSpritepublic boolean load(@Nonnull
IResourceManager manager,
@Nonnull
ResourceLocation location,
@Nonnull
java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter)
TextureAtlasSpriteload in class TextureAtlasSpritemanager - Main resource managerlocation - File resource locationtextureGetter - accessor for dependencies. All of them will be loaded before this one