Class ScrollingTextureData.Builder
java.lang.Object
com.supermartijn642.fusion.api.texture.data.ScrollingTextureData.Builder
- Enclosing interface:
- ScrollingTextureData
-
Method Summary
Modifier and TypeMethodDescriptionbuild()endPosition(ScrollingTextureData.Position position) Sets the position which the frame should end at.frameHeight(int height) Sets the height of the frame.frameSize(int width, int height) Sets the size of the frame.frameTime(int ticks) Sets the duration in ticks each frame is displayed for.frameWidth(int width) Sets the width of the frame.loopPause(int ticks) Sets the pause duration in ticks after each iteration of the loop.Sets the loop type.startPosition(ScrollingTextureData.Position position) Sets the position which the frame should start at.
-
Method Details
-
startPosition
Sets the position which the frame should start at. By default, this will be the top left corner. -
endPosition
Sets the position which the frame should end at. By default, this will be the bottom left corner. -
frameTime
Sets the duration in ticks each frame is displayed for. By default, this will be 10 ticks. -
frameWidth
Sets the width of the frame. The width must be smaller than the width of the texture. By default, this will be 16 pixels. -
frameHeight
Sets the height of the frame. The height must be smaller than the height of the texture. By default, this will be 16 pixels. -
frameSize
Sets the size of the frame. The size must be smaller than the size of the texture. By default, this will be 16 by 16 pixels. -
loopType
Sets the loop type. By default, this will be set toScrollingTextureData.LoopType.RESET.- See Also:
-
loopPause
Sets the pause duration in ticks after each iteration of the loop. By default, this will be set to 0.- See Also:
-
build
-