Class TextureAtlasSprite.AnimatedTexture
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite.AnimatedTexture
- All Implemented Interfaces:
AutoCloseable,Tickable
- Enclosing class:
- TextureAtlasSprite
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intprivate final int(package private) final List<TextureAtlasSprite.FrameInfo>private final TextureAtlasSprite.InterpolationData(package private) int -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedTexture(List<TextureAtlasSprite.FrameInfo> p_174755_, int p_174756_, TextureAtlasSprite.InterpolationData p_174757_) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) intgetFrameX(int p_174760_) (package private) intgetFrameY(int p_174765_) voidtick()voidprivate voiduploadFrame(int p_174768_)
-
Field Details
-
frame
int frame -
subFrame
int subFrame -
frames
-
frameRowSize
private final int frameRowSize -
interpolationData
-
-
Constructor Details
-
AnimatedTexture
AnimatedTexture(List<TextureAtlasSprite.FrameInfo> p_174755_, @Nullable int p_174756_, TextureAtlasSprite.InterpolationData p_174757_)
-
-
Method Details
-
getFrameX
int getFrameX(int p_174760_) -
getFrameY
int getFrameY(int p_174765_) -
uploadFrame
private void uploadFrame(int p_174768_) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
tick
public void tick() -
uploadFirstFrame
public void uploadFirstFrame() -
getUniqueFrames
-