Class MinecraftTools

java.lang.Object
org.mvplugins.multiverse.inventories.util.MinecraftTools

public final class MinecraftTools extends Object
General tools to help with minecraftian things.
  • Method Details

    • convertSecondsToTicks

      public static long convertSecondsToTicks(long seconds)
      Converts an amount of seconds to the appropriate amount of ticks.
      Parameters:
      seconds - Amount of seconds to convert
      Returns:
      Ticks converted from seconds.
    • fillWithAir

      public static org.bukkit.inventory.ItemStack[] fillWithAir(org.bukkit.inventory.ItemStack[] items)
      Fills an ItemStack array with air.
      Parameters:
      items - The ItemStack array to fill.
      Returns:
      The air filled ItemStack array.
    • findBedFromRespawnLocation

      @Nullable public static org.bukkit.Location findBedFromRespawnLocation(@Nullable org.bukkit.Location respawnLocation)
    • findAnchorFromRespawnLocation

      @Nullable public static org.bukkit.Location findAnchorFromRespawnLocation(@Nullable org.bukkit.Location respawnLocation)