Record Class BlockbenchAnimationImpl
java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.animation.BlockbenchAnimationImpl
- All Implemented Interfaces:
BlockbenchAnimation
-
Constructor Summary
ConstructorsConstructorDescriptionBlockbenchAnimationImpl(UUID uniqueId, String name, String loop, boolean override, float length, int snapping, String animationTimeUpdate, String blendWeight, String startDelay, String loopDelay, Map<UUID, BlockbenchAnimatorImpl> animators) Creates an instance of aBlockbenchAnimationImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationTimeUpdaterecord component.Returns the value of theanimatorsrecord component.Returns the value of theblendWeightrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlength()Returns the value of thelengthrecord component.loop()Returns the value of thelooprecord component.Returns the value of theloopDelayrecord component.name()Returns the value of thenamerecord component.booleanoverride()Returns the value of theoverriderecord component.intsnapping()Returns the value of thesnappingrecord component.Returns the value of thestartDelayrecord component.final StringtoString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.
-
Constructor Details
-
BlockbenchAnimationImpl
public BlockbenchAnimationImpl(UUID uniqueId, String name, String loop, boolean override, float length, int snapping, String animationTimeUpdate, String blendWeight, String startDelay, String loopDelay, Map<UUID, BlockbenchAnimatorImpl> animators) Creates an instance of aBlockbenchAnimationImplrecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentname- the value for thenamerecord componentloop- the value for thelooprecord componentoverride- the value for theoverriderecord componentlength- the value for thelengthrecord componentsnapping- the value for thesnappingrecord componentanimationTimeUpdate- the value for theanimationTimeUpdaterecord componentblendWeight- the value for theblendWeightrecord componentstartDelay- the value for thestartDelayrecord componentloopDelay- the value for theloopDelayrecord componentanimators- the value for theanimatorsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uniqueId
Returns the value of theuniqueIdrecord component.- Specified by:
uniqueIdin interfaceBlockbenchAnimation- Returns:
- the value of the
uniqueIdrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceBlockbenchAnimation- Returns:
- the value of the
namerecord component
-
loop
Returns the value of thelooprecord component.- Specified by:
loopin interfaceBlockbenchAnimation- Returns:
- the value of the
looprecord component
-
override
public boolean override()Returns the value of theoverriderecord component.- Specified by:
overridein interfaceBlockbenchAnimation- Returns:
- the value of the
overriderecord component
-
length
public float length()Returns the value of thelengthrecord component.- Specified by:
lengthin interfaceBlockbenchAnimation- Returns:
- the value of the
lengthrecord component
-
snapping
public int snapping()Returns the value of thesnappingrecord component.- Specified by:
snappingin interfaceBlockbenchAnimation- Returns:
- the value of the
snappingrecord component
-
animationTimeUpdate
Returns the value of theanimationTimeUpdaterecord component.- Specified by:
animationTimeUpdatein interfaceBlockbenchAnimation- Returns:
- the value of the
animationTimeUpdaterecord component
-
blendWeight
Returns the value of theblendWeightrecord component.- Specified by:
blendWeightin interfaceBlockbenchAnimation- Returns:
- the value of the
blendWeightrecord component
-
startDelay
Returns the value of thestartDelayrecord component.- Specified by:
startDelayin interfaceBlockbenchAnimation- Returns:
- the value of the
startDelayrecord component
-
loopDelay
Returns the value of theloopDelayrecord component.- Specified by:
loopDelayin interfaceBlockbenchAnimation- Returns:
- the value of the
loopDelayrecord component
-
animators
Returns the value of theanimatorsrecord component.- Specified by:
animatorsin interfaceBlockbenchAnimation- Returns:
- the value of the
animatorsrecord component
-