Class BedrockActorPicking

java.lang.Object
com.viaversion.viafabricplus.bedrock.render.BedrockActorPicking

public final class BedrockActorPicking extends Object
Negotiated picking targets on the current connection; actor physics stay untouched.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    accept(net.minecraft.network.Connection connection, net.raphimc.viabedrock.api.model.NativeActorPickingMessage message)
     
    static boolean
    attack(net.minecraft.world.entity.Entity target)
    Replace the coordinate-free Java attack with one atomic, negotiated native attack.
    static net.minecraft.world.phys.AABB
    bounds(net.minecraft.world.entity.Entity proxy)
     
    static void
     
    static Predicate<net.minecraft.world.entity.Entity>
    filter(Predicate<net.minecraft.world.entity.Entity> vanilla, net.minecraft.world.entity.Entity camera, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
     
    static net.minecraft.world.phys.HitResult
    filterBlockHit(net.minecraft.world.phys.HitResult hit, net.minecraft.world.phys.Vec3 eye, double reach)
     
    static boolean
    nativeCamera(net.minecraft.world.entity.Entity entity)
     
    static net.minecraft.world.entity.Entity
    owner(net.minecraft.world.entity.Entity proxy)
     
    static net.minecraft.world.phys.Vec3
    viewDirection(float pitch, float yaw)
     

    Methods inherited from class Object

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

    • accept

      public static void accept(net.minecraft.network.Connection connection, net.raphimc.viabedrock.api.model.NativeActorPickingMessage message)
    • bounds

      public static net.minecraft.world.phys.AABB bounds(net.minecraft.world.entity.Entity proxy)
    • owner

      public static net.minecraft.world.entity.Entity owner(net.minecraft.world.entity.Entity proxy)
    • filter

      public static Predicate<net.minecraft.world.entity.Entity> filter(Predicate<net.minecraft.world.entity.Entity> vanilla, net.minecraft.world.entity.Entity camera, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
    • filterBlockHit

      public static net.minecraft.world.phys.HitResult filterBlockHit(net.minecraft.world.phys.HitResult hit, net.minecraft.world.phys.Vec3 eye, double reach)
    • attack

      public static boolean attack(net.minecraft.world.entity.Entity target)
      Replace the coordinate-free Java attack with one atomic, negotiated native attack.
    • nativeCamera

      public static boolean nativeCamera(net.minecraft.world.entity.Entity entity)
    • viewDirection

      public static net.minecraft.world.phys.Vec3 viewDirection(float pitch, float yaw)
    • clear

      public static void clear()