net.minecraft.client.texture

public class SpriteContents

implements AutoCloseable, TextureStitcher$Stitchable

net.minecraft.client.renderer.texture.SpriteContents
net.minecraft.client.renderer.texture.SpriteContents
net.minecraft.class_7764
net.minecraft.client.texture.SpriteContents

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_40535
LOGGER
public static final int
UBO_SIZE
UBO_SIZE
field_64235
SPRITE_INFO_SIZE
private final Identifier
name
name
field_40536
id
private final int
width
width
field_40537
width
private final int
height
height
field_40538
height
private final NativeImage
originalImage
originalImage
field_40539
image
private NativeImage[]
byMipLevel
byMipLevel
field_40540
mipmapLevelsImages
private final SpriteContents$Animation
animatedTexture
animatedTexture
field_40541
animation
private final List<ResourceMetadataSerializer$Value<?>>
additionalMetadata
additionalMetadata
field_61860
additionalMetadata
private final MipmapStrategy
mipmapStrategy
mipmapStrategy
field_64084
strategy
private final float
alphaCutoffBias
alphaCutoffBias
field_64677
cutoffBias
private final Transparency
transparency
transparency
field_1_1888
transparency

Constructor summary

ModifierConstructor
public (Identifier id, SpriteDimensions dimensions, NativeImage image)
public (Identifier id, SpriteDimensions dimensions, NativeImage image, Optional<AnimationResourceMetadata> animationResourceMetadata, List<ResourceMetadataSerializer$Value<?>> additionalMetadata, Optional<TextureResourceMetadata> metadata)

Method summary

Modifier and TypeMethod
public void
increaseMipLevel(int mipLevel)
increaseMipLevel(int mipLevel)
method_45808(int arg0)
generateMipmaps(int mipmapLevels)
private int
getFrameCount()
getFrameCount()
method_45819()
getFrameCount()
public boolean
isAnimated()
isAnimated()
method_73020()
isAnimated()
public Transparency
transparency()
transparency()
method_1_2321()
getTransparency()
private SpriteContents$Animation
createAnimatedTexture(FrameSize frameSize, int fullWidth, int fullHeight, AnimationMetadataSection metadata)
createAnimatedTexture(FrameSize frameSize, int fullWidth, int fullHeight, AnimationMetadataSection metadata)
method_45812(class_7771 arg0, int arg1, int arg2, class_1079 arg3)
createAnimation(SpriteDimensions dimensions, int imageWidth, int imageHeight, AnimationResourceMetadata metadata)
public int
width()
width()
method_45807()
getWidth()
public int
height()
height()
method_45815()
getHeight()
public Identifier
name()
name()
method_45816()
getId()
public it.unimi.dsi.fastutil.ints.IntList
getUniqueFrames()
getUniqueFrames()
method_45817()
getDistinctFrameCount()
public SpriteContents$Animator
createAnimationState(GpuBufferSlice uboSlice, int spriteUboSize)
createAnimationState(GpuBufferSlice uboSlice, int spriteUboSize)
method_45818(GpuBufferSlice arg0, int arg1)
createAnimator(GpuBufferSlice bufferSlice, int animationInfoSize)
public <T> Optional<T>
getAdditionalMetadata(MetadataSectionType<T> type)
getAdditionalMetadata(MetadataSectionType<T> type)
method_73021(class_7677<T> arg0)
getAdditionalMetadataValue(ResourceMetadataSerializer<T> serializer)
public void
close()
close()
public boolean
isTransparent(int frame, int x, int y)
isTransparent(int frame, int x, int y)
method_45810(int arg0, int arg1, int arg2)
isPixelTransparent(int frame, int x, int y)
public Transparency
computeTransparency(float u0, float v0, float u1, float v1)
computeTransparency(float u0, float v0, float u1, float v1)
method_1_2320(float arg0, float arg1, float arg2, float arg3)
getRegionTransparency(float minU, float minV, float maxU, float maxV)
public void
uploadFirstFrame(GpuTexture destination, int level)
uploadFirstFrame(GpuTexture destination, int level)
method_45809(GpuTexture arg0, int arg1)
upload(GpuTexture texture, int mipmap)