Interface ICableRayTraceHandler
public interface ICableRayTraceHandler
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity) rayTrace(net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity, org.apache.commons.lang3.function.TriFunction<net.minecraft.core.BlockPos, net.minecraft.world.entity.Entity, net.minecraft.world.phys.Vec3, BlockRayTraceResultComponent> parentRayTracer) A custom ray trace handler.
-
Method Details
-
canHandle
boolean canHandle(net.minecraft.core.BlockPos pos, @Nullable net.minecraft.world.entity.Entity entity) -
rayTrace
BlockRayTraceResultComponent rayTrace(net.minecraft.core.BlockPos pos, @Nullable net.minecraft.world.entity.Entity entity, org.apache.commons.lang3.function.TriFunction<net.minecraft.core.BlockPos, net.minecraft.world.entity.Entity, net.minecraft.world.phys.Vec3, BlockRayTraceResultComponent> parentRayTracer) A custom ray trace handler.- Parameters:
pos- The block position to perform a ray trace for.entity- The entity.parentRayTracer- The parent ray trace logic.- Returns:
- A holder object with information on the ray tracing.
-