Class MinecraftTools
java.lang.Object
org.mvplugins.multiverse.inventories.util.MinecraftTools
General tools to help with minecraftian things.
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
convertSecondsToTicks
(long seconds) Converts an amount of seconds to the appropriate amount of ticks.static org.bukkit.inventory.ItemStack[]
fillWithAir
(org.bukkit.inventory.ItemStack[] items) Fills an ItemStack array with air.static org.bukkit.Location
findAnchorFromRespawnLocation
(org.bukkit.Location respawnLocation) static org.bukkit.Location
findBedFromRespawnLocation
(org.bukkit.Location respawnLocation)
-
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)
-