Java Examples for mcmultipart.raytrace.RayTraceUtils.AdvancedRayTraceResultPart

The following java examples will help you to understand the usage of mcmultipart.raytrace.RayTraceUtils.AdvancedRayTraceResultPart. These source code samples are taken from different open source projects.

Example 1
Project: Mekanism-master  File: PartSidedPipe.java View source code
private PartMOP reTrace(World world, BlockPos pos, EntityPlayer player) {
    Vec3d start = RayTraceUtils.getStart(player);
    Vec3d end = RayTraceUtils.getEnd(player);
    AdvancedRayTraceResultPart result = ((TileMultipartContainer) world.getTileEntity(pos)).getPartContainer().collisionRayTrace(start, end);
    return result == null ? null : result.hit;
}