Class BedrockActorPicking
java.lang.Object
com.viaversion.viafabricplus.bedrock.render.BedrockActorPicking
Negotiated picking targets on the current connection; actor physics stay untouched.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccept(net.minecraft.network.Connection connection, net.raphimc.viabedrock.api.model.NativeActorPickingMessage message) static booleanattack(net.minecraft.world.entity.Entity target) Replace the coordinate-free Java attack with one atomic, negotiated native attack.static net.minecraft.world.phys.AABBbounds(net.minecraft.world.entity.Entity proxy) static voidclear()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.HitResultfilterBlockHit(net.minecraft.world.phys.HitResult hit, net.minecraft.world.phys.Vec3 eye, double reach) static booleannativeCamera(net.minecraft.world.entity.Entity entity) static net.minecraft.world.entity.Entityowner(net.minecraft.world.entity.Entity proxy) static net.minecraft.world.phys.Vec3viewDirection(float pitch, float yaw)
-
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
-
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()
-