Here you can find the source of millisecondsPerTick(final int tps)
Parameter | Description |
---|---|
tps | tick per second. |
public static int millisecondsPerTick(final int tps)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w. j a v a 2 s .co m*/ * Change tps to number of milliseconds per tick, 1000/tps. * * @param tps tick per second. * * @return number of milliseconds per tick. */ public static int millisecondsPerTick(final int tps) { return 1000 / tps; } }