Here you can find the source of minutesToTicks(int minutes)
Parameter | Description |
---|---|
minutes | The length of time, in minutes, to convert to ticks. |
public static int minutesToTicks(int minutes)
//package com.java2s; /**//from w ww. j a v a 2 s . c o m * Distributed as part of Fwap'a Derp UHC. A UHC plugin for Spigot 1.9 * made by Ashrynn Macke (Flutterflies). You should have received a copy * of the MIT license with this code, if not please find it here: * https://opensource.org/licenses/MIT */ public class Main { /** * Converts units of time given in real world minutes into game ticks * * There are 20 ticks per second so ticks = (minutes * 60) * 20 * * @param minutes The length of time, in minutes, to convert to ticks. * @return The number of ticks contained in the given length of time. */ public static int minutesToTicks(int minutes) { return (minutes * 60) * 20; } }