diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-17 03:05:11 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-17 03:05:11 -0500 |
commit | 1a8e45d8519a8ae69e14db8ea103a7fdf7b80923 (patch) | |
tree | 5568ffc7575c4da682a9526199ea535be57ae637 /src/main/kotlin/com/dulkirfabric/util/TrackedCooldown.kt | |
parent | 2003a3d2be24ae3faed0e45a8c6cc5e0b8343cc3 (diff) | |
download | DulkirMod-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.kt | 8 |
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 |