Here you can find the source of truncateDoubleToInt(double p_76140_0_)
public static int truncateDoubleToInt(double p_76140_0_)
//package com.java2s; //License from project: Open Source License public class Main { /**// ww w.j a v a 2s. c om * returns par0 cast as an int, and no greater than Integer.MAX_VALUE-1024 */ public static int truncateDoubleToInt(double p_76140_0_) { return (int) (p_76140_0_ + 1024.0D) - 1024; } }