Package dev.kosmx.playerAnim.core.data
Class KeyframeAnimation.AnimationBuilder
java.lang.Object
dev.kosmx.playerAnim.core.data.KeyframeAnimation.AnimationBuilder
- Enclosing class:
KeyframeAnimation
-
Field Summary
FieldsModifier and TypeFieldDescription@Nullable Stringint@Nullable Stringint@Nullable ByteBufferbooleanbooleanbooleanint@Nullable NBSstatic floatStatically set validation threshold, just a hintint@Nullable UUIDIf you want auto-uuid, leave it null -
Constructor Summary
ConstructorsConstructorDescriptionAnimationBuilder(float validationThreshold, AnimationFormat emoteFormat) AnimationBuilder(AnimationFormat source) -
Method Summary
Modifier and TypeMethodDescriptionbuild()getOrCreateNewPart(String name, float x, float y, float z, float pitch, float yaw, float roll, boolean bendable) Create a new part.getOrCreateNewPart(String name, float x, float y, float z, float pitch, float yaw, float roll, float scaleX, float scaleY, float scaleZ, boolean bendable, boolean scalable) Create a new part.getOrCreatePart(String name) @Nullable KeyframeAnimation.StateCollectionGet a part with a name.Remove unnecessary keyframes from this emote.toString()
-
Field Details
-
staticThreshold
public static float staticThresholdStatically set validation threshold, just a hint -
head
-
body
-
rightArm
-
leftArm
-
rightLeg
-
leftLeg
-
leftItem
-
rightItem
-
torso
-
isEasingBefore
public boolean isEasingBefore -
nsfw
public boolean nsfw -
uuid
If you want auto-uuid, leave it null -
beginTick
public int beginTick -
endTick
public int endTick -
stopTick
public int stopTick -
isLooped
public boolean isLooped -
returnTick
public int returnTick -
name
-
description
-
author
-
song
-
iconData
-
extraData
-
-
Constructor Details
-
AnimationBuilder
-
AnimationBuilder
-
-
Method Details
-
setDescription
-
setName
-
setAuthor
-
getOrCreateNewPart
public KeyframeAnimation.StateCollection getOrCreateNewPart(String name, float x, float y, float z, float pitch, float yaw, float roll, boolean bendable) Create a new part. X, Y, Z the default offsets, pitch, yaw, roll are the default rotations.- Parameters:
name- namex- xy- yz- zpitch- pitchyaw- yawroll- rollbendable- is it bendable- Returns:
- ...
-
getOrCreateNewPart
public KeyframeAnimation.StateCollection getOrCreateNewPart(String name, float x, float y, float z, float pitch, float yaw, float roll, float scaleX, float scaleY, float scaleZ, boolean bendable, boolean scalable) Create a new part. X, Y, Z the default offsets, pitch, yaw, roll are the default rotations, scaleX, scaleY, scaleZ are the default scale.- Parameters:
name- namex- xy- yz- zpitch- pitchyaw- yawroll- rollscaleX- scaleXscaleY- scaleYscaleZ- scaleZbendable- is it bendablescalable- is it scalable- Returns:
- ...
-
getPart
Get a part with a name.- Parameters:
name- name- Returns:
- ...
-
getOrCreatePart
-
fullyEnableParts
-
optimizeEmote
Remove unnecessary keyframes from this emote. If the keyframe before and after are the same as the currently checked, the keyframe will be removed -
build
- Returns:
- Immutable copy of this
- Throws:
IllegalArgumentException- if trying to build with invalid data.
-
setUuid
-
toString
-