Class BedrockActorAnimation.Playback
java.lang.Object
com.viaversion.viafabricplus.bedrock.appearance.BedrockActorAnimation.Playback
- Enclosing class:
BedrockActorAnimation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindings(BedrockAttachableBindings bindings) Resolves bone bindings in the equipped item's sampled variable scope.voidcommands(net.raphimc.viabedrock.api.model.NativeAnimationControllers source) Supplies retained commands for this actor lifetime, independently for each perspective.floatexpression(String source, float fallback) Evaluates a render expression in the variables left by the sampled actor graph.fork()Creates another perspective without sharing animation clocks or variables.booleanvoidRuns attachable setup in the parent actor's variable scope.renderControllers(BedrockPlayerControllers controllers) Resolves complete render-controller draws in this perspective's sampled variable scope.sample(float time, BedrockActorAnimation.Frame input) sample(float time, BedrockActorAnimation.Frame input, boolean eventsEnabled, Consumer<BedrockActorAnimation.SoundCue> soundOutput) sample(float time, BedrockActorAnimation.Frame input, boolean eventsEnabled, Consumer<BedrockActorAnimation.SoundCue> soundOutput, Consumer<BedrockActorAnimation.ParticleCue> particleOutput) scale()Evaluates draw-time scale after the sampled graph, without rerunning animation scripts.soundCue(BedrockAnimationSound sound) Uses the variables left by the sampled graph, without rerunning actor scripts.
-
Constructor Details
-
Playback
public Playback()
-
-
Method Details
-
commands
public void commands(net.raphimc.viabedrock.api.model.NativeAnimationControllers source) Supplies retained commands for this actor lifetime, independently for each perspective. -
expression
Evaluates a render expression in the variables left by the sampled actor graph. -
sample
public Map<String, BedrockBoneAnimation.Transform> sample(float time, BedrockActorAnimation.Frame input) -
sample
public Map<String, BedrockBoneAnimation.Transform> sample(float time, BedrockActorAnimation.Frame input, boolean eventsEnabled, Consumer<BedrockActorAnimation.SoundCue> soundOutput) -
sample
public Map<String, BedrockBoneAnimation.Transform> sample(float time, BedrockActorAnimation.Frame input, boolean eventsEnabled, Consumer<BedrockActorAnimation.SoundCue> soundOutput, Consumer<BedrockActorAnimation.ParticleCue> particleOutput) -
parentSetup
Runs attachable setup in the parent actor's variable scope.- Throws:
IOException
-
particleCue
-
fork
Creates another perspective without sharing animation clocks or variables. -
hasCompleteQueries
public boolean hasCompleteQueries() -
visibility
Uses the variables left by the sampled graph, without rerunning actor scripts. -
renderControllers
public BedrockPlayerControllers.Selection renderControllers(BedrockPlayerControllers controllers) throws IOException Resolves complete render-controller draws in this perspective's sampled variable scope.- Throws:
IOException
-
bindings
public BedrockAttachableBindings.Resolved bindings(BedrockAttachableBindings bindings) throws IOException Resolves bone bindings in the equipped item's sampled variable scope.- Throws:
IOException
-
scale
Evaluates draw-time scale after the sampled graph, without rerunning animation scripts. -
soundCue
-