Record Class BedrockWorldActorAppearance.Frame
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockWorldActorAppearance.Frame
- Enclosing class:
BedrockWorldActorAppearance
public static record BedrockWorldActorAppearance.Frame(Map<String, BedrockBoneAnimation.Transform> pose, BedrockBoneAnimation.Vector scale, List<BedrockWorldActorAppearance.Draw> draws, List<BedrockActorAnimation.SoundCue> sounds, List<BedrockActorAnimation.ParticleCue> particles)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFrame(Map<String, BedrockBoneAnimation.Transform> pose, BedrockBoneAnimation.Vector scale, List<BedrockWorldActorAppearance.Draw> draws, List<BedrockActorAnimation.SoundCue> sounds, List<BedrockActorAnimation.ParticleCue> particles) Creates an instance of aFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondraws()Returns the value of thedrawsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparticlesrecord component.pose()Returns the value of theposerecord component.scale()Returns the value of thescalerecord component.sounds()Returns the value of thesoundsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Frame
public Frame(Map<String, BedrockBoneAnimation.Transform> pose, BedrockBoneAnimation.Vector scale, List<BedrockWorldActorAppearance.Draw> draws, List<BedrockActorAnimation.SoundCue> sounds, List<BedrockActorAnimation.ParticleCue> particles) Creates an instance of aFramerecord class.- Parameters:
pose- the value for theposerecord componentscale- the value for thescalerecord componentdraws- the value for thedrawsrecord componentsounds- the value for thesoundsrecord componentparticles- the value for theparticlesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
draws
Returns the value of thedrawsrecord component.- Returns:
- the value of the
drawsrecord component
-
sounds
Returns the value of thesoundsrecord component.- Returns:
- the value of the
soundsrecord component
-
particles
Returns the value of theparticlesrecord component.- Returns:
- the value of the
particlesrecord component
-