public class AtlasSpriteVariants extends AtlasSpriteSwappable implements IReloadable
AtlasSpriteSwappable
that will switch between multiple differentModifier and Type | Class and Description |
---|---|
static interface |
AtlasSpriteVariants.IVariantType |
Modifier and Type | Field and Description |
---|---|
static java.util.function.IntSupplier |
INDEX_COLOUR_BLIND |
static AtlasSpriteVariants.IVariantType |
VARIANT_COLOUR_BLIND |
Constructor and Description |
---|
AtlasSpriteVariants(java.util.List<net.minecraft.util.ResourceLocation> variantNames,
java.util.function.IntSupplier currentIndexFunction) |
AtlasSpriteVariants(net.minecraft.util.ResourceLocation baseName,
AtlasSpriteVariants.IVariantType variants,
java.util.function.IntSupplier currentIndex) |
Modifier and Type | Method and Description |
---|---|
static AtlasSpriteVariants |
createForConfig(net.minecraft.util.ResourceLocation baseName) |
boolean |
load(net.minecraft.client.resources.IResourceManager manager,
net.minecraft.util.ResourceLocation location)
Actually loads the given location.
|
boolean |
reload(java.util.Set<ReloadSource> changed) |
copyFrom, generateMipmaps, getFrameCount, getFrameTextureData, hasAnimationMetadata, hasCustomLoader, loadSprite, loadSprite, reload, setFramesTextureData, swapWith, updateAnimation
clearFramesTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getMaxU, getMaxV, getMinU, getMinV, getOriginX, getOriginY, getUnInterpolatedU, getUnInterpolatedV, initSprite, loadSprite, loadSpriteFrames, makeAtlasSprite, setIconHeight, setIconWidth, toString
public static final AtlasSpriteVariants.IVariantType VARIANT_COLOUR_BLIND
public static final java.util.function.IntSupplier INDEX_COLOUR_BLIND
public AtlasSpriteVariants(java.util.List<net.minecraft.util.ResourceLocation> variantNames, java.util.function.IntSupplier currentIndexFunction)
public AtlasSpriteVariants(net.minecraft.util.ResourceLocation baseName, AtlasSpriteVariants.IVariantType variants, java.util.function.IntSupplier currentIndex)
public static AtlasSpriteVariants createForConfig(net.minecraft.util.ResourceLocation baseName)
public boolean load(net.minecraft.client.resources.IResourceManager manager, net.minecraft.util.ResourceLocation location)
AtlasSpriteSwappable
AtlasSpriteSwappable.loadSprite(IResourceManager, String, ResourceLocation, boolean)
to load all of the possible variants.load
in class AtlasSpriteSwappable
public boolean reload(java.util.Set<ReloadSource> changed)
reload
in interface IReloadable
changed
- All of the objects that have been reloaded. This *may* just be an intersection of this reloadable
objects parents (registered in ReloadManager
) and all of the reloaded objects though.