Class TextureAtlasSprite.AnimatedTexture
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite.AnimatedTexture
- All Implemented Interfaces:
AutoCloseable
,Tickable
- Enclosing class:
- TextureAtlasSprite
-
Field Summary
Modifier and TypeFieldDescription(package private) int
private final int
(package private) final List<TextureAtlasSprite.FrameInfo>
private final TextureAtlasSprite.InterpolationData
(package private) int
-
Constructor Summary
ConstructorDescriptionAnimatedTexture
(List<TextureAtlasSprite.FrameInfo> p_174755_, int p_174756_, TextureAtlasSprite.InterpolationData p_174757_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
(package private) int
getFrameX
(int p_174760_) (package private) int
getFrameY
(int p_174765_) void
tick()
void
private void
uploadFrame
(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:
close
in interfaceAutoCloseable
-
tick
public void tick() -
uploadFirstFrame
public void uploadFirstFrame() -
getUniqueFrames
-