aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-17 03:05:11 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-17 03:05:11 -0500
commit1a8e45d8519a8ae69e14db8ea103a7fdf7b80923 (patch)
tree5568ffc7575c4da682a9526199ea535be57ae637 /src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt
parent2003a3d2be24ae3faed0e45a8c6cc5e0b8343cc3 (diff)
downloadDulkirMod-Fabric-1a8e45d8519a8ae69e14db8ea103a7fdf7b80923.tar.gz
DulkirMod-Fabric-1a8e45d8519a8ae69e14db8ea103a7fdf7b80923.tar.bz2
DulkirMod-Fabric-1a8e45d8519a8ae69e14db8ea103a7fdf7b80923.zip
wip
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt b/src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt
new file mode 100644
index 0000000..9aa93d7
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt
@@ -0,0 +1,8 @@
+package com.dulkirfabric.util
+
+// Currently, this will be used to create A list of items that have audible sounds associated with their usages
+data class TrackedCooldown (
+ val itemID: Regex,
+ val cooldownDuration: Int, // in millis
+ var lastUsage: Long, // from System.currentTimeMillis
+) \ No newline at end of file