Java Minute Convert minutesToTicks(int minutes)

Here you can find the source of minutesToTicks(int minutes)

Description

Converts units of time given in real world minutes into game ticks There are 20 ticks per second so ticks = (minutes * 60) * 20

License

Open Source License

Parameter

Parameter Description
minutes The length of time, in minutes, to convert to ticks.

Return

The number of ticks contained in the given length of time.

Declaration

public static int minutesToTicks(int minutes) 

Method Source Code

//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;
    }
}

Related

  1. MinutesToSeconds(long minutes)
  2. minutesToSecs(long minutes)
  3. minutesToShortTime(int minutes)
  4. minutesToString(Integer minutes)
  5. minutesToTicks(double x)
  6. minutesToTime(int inTime)
  7. minuteToMillis(long minute)
  8. minuteToTime(int minute)
  9. onMinute(int minute)