public class AtlasSpriteVariants extends AtlasSpriteSwappable implements IReloadable
AtlasSpriteSwappable that will switch between multiple different| Modifier 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 net.minecraft.client.renderer.texture.TextureAtlasSprite |
createForConfig(net.minecraft.util.ResourceLocation baseName) |
boolean |
load(net.minecraft.client.resources.IResourceManager manager,
net.minecraft.util.ResourceLocation location,
java.util.function.Function<net.minecraft.util.ResourceLocation,net.minecraft.client.renderer.texture.TextureAtlasSprite> textureGetter)
Actually loads the given location.
|
boolean |
reload(java.util.Set<ReloadSource> changed) |
copyFrom, generateMipmaps, getFrameCount, getFrameTextureData, hasAnimationMetadata, hasCustomLoader, loadSprite, loadSprite, setFramesTextureData, swapWith, toString, updateAnimationclearFramesTextureData, getDependencies, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getMaxU, getMaxV, getMinU, getMinV, getOriginX, getOriginY, getUnInterpolatedU, getUnInterpolatedV, initSprite, loadSprite, loadSpriteFrames, makeAtlasSprite, setIconHeight, setIconWidthpublic 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 net.minecraft.client.renderer.texture.TextureAtlasSprite createForConfig(net.minecraft.util.ResourceLocation baseName)
public boolean load(net.minecraft.client.resources.IResourceManager manager,
net.minecraft.util.ResourceLocation location,
java.util.function.Function<net.minecraft.util.ResourceLocation,net.minecraft.client.renderer.texture.TextureAtlasSprite> textureGetter)
AtlasSpriteSwappableAtlasSpriteSwappable.loadSprite(IResourceManager, String, ResourceLocation, boolean) to load all of the possible variants.load in class AtlasSpriteSwappablepublic boolean reload(java.util.Set<ReloadSource> changed)
reload in interface IReloadablechanged - 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.