Class BedrockActorQueries

java.lang.Object
com.viaversion.viafabricplus.bedrock.appearance.BedrockActorQueries

public final class BedrockActorQueries extends Object
Immutable live actor inputs shared by animation frames and attached particle contexts.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<String,Object>
    equipmentAndVehicle(net.minecraft.world.entity.Entity actor)
    Capture equipment and native vehicle identity without retaining entities in query closures.
    static float
    groundSpeed(net.minecraft.world.phys.Vec3 movement)
     
    static boolean
    isEmoting(UUID actor, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot state)
    Native metadata and accepted emote playback both contribute current actor status.
    static Map<String,Object>
    nativeState(net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot state)
    Refresh native metadata even when the actor has not produced another render frame.
    static Map<String,Object>
    sample(net.minecraft.world.entity.Entity actor, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot state, Map<String,?> rendered)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • sample

      public static Map<String,Object> sample(net.minecraft.world.entity.Entity actor, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot state, Map<String,?> rendered)
    • equipmentAndVehicle

      public static Map<String,Object> equipmentAndVehicle(net.minecraft.world.entity.Entity actor)
      Capture equipment and native vehicle identity without retaining entities in query closures.
    • nativeState

      public static Map<String,Object> nativeState(net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot state)
      Refresh native metadata even when the actor has not produced another render frame.
    • isEmoting

      public static boolean isEmoting(UUID actor, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot state)
      Native metadata and accepted emote playback both contribute current actor status.
    • groundSpeed

      public static float groundSpeed(net.minecraft.world.phys.Vec3 movement)