public static final class ScrollingTextureData.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ScrollingTextureData |
build() |
ScrollingTextureData.Builder |
endPosition(ScrollingTextureData.Position position)
Sets the position which the frame should end at.
|
ScrollingTextureData.Builder |
frameHeight(int height)
Sets the height of the frame.
|
ScrollingTextureData.Builder |
frameSize(int width,
int height)
Sets the size of the frame.
|
ScrollingTextureData.Builder |
frameTime(int ticks)
Sets the duration in ticks each frame is displayed for.
|
ScrollingTextureData.Builder |
frameWidth(int width)
Sets the width of the frame.
|
ScrollingTextureData.Builder |
loopPause(int ticks)
Sets the pause duration in ticks after each iteration of the loop.
|
ScrollingTextureData.Builder |
loopType(ScrollingTextureData.LoopType type)
Sets the loop type.
|
ScrollingTextureData.Builder |
startPosition(ScrollingTextureData.Position position)
Sets the position which the frame should start at.
|
public ScrollingTextureData.Builder startPosition(ScrollingTextureData.Position position)
public ScrollingTextureData.Builder endPosition(ScrollingTextureData.Position position)
public ScrollingTextureData.Builder frameTime(int ticks)
public ScrollingTextureData.Builder frameWidth(int width)
public ScrollingTextureData.Builder frameHeight(int height)
public ScrollingTextureData.Builder frameSize(int width, int height)
public ScrollingTextureData.Builder loopType(ScrollingTextureData.LoopType type)
ScrollingTextureData.LoopType.RESET.ScrollingTextureData.LoopTypepublic ScrollingTextureData.Builder loopPause(int ticks)
ScrollingTextureData.LoopTypepublic ScrollingTextureData build()