diff options
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util')
4 files changed, 39 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/GlowingEntityInterface.kt b/src/main/kotlin/com/dulkirfabric/util/GlowingEntityInterface.kt new file mode 100644 index 0000000..5a76890 --- /dev/null +++ b/src/main/kotlin/com/dulkirfabric/util/GlowingEntityInterface.kt @@ -0,0 +1,13 @@ +package com.dulkirfabric.util + +import java.awt.Color + +interface GlowingEntityInterface { + fun setDulkirEntityGlow(shouldGlow: Boolean, glowColor: Color, shouldESP: Boolean = false) + + fun shouldDulkirEntityGlow() : Boolean + + fun getDulkirEntityGlowColor() : Color? + + fun shouldDulkirEntityESP() : Boolean +}
\ No newline at end of file diff --git a/src/main/kotlin/com/dulkirfabric/util/SoundInfo.kt b/src/main/kotlin/com/dulkirfabric/util/SoundInfo.kt new file mode 100644 index 0000000..c9f339a --- /dev/null +++ b/src/main/kotlin/com/dulkirfabric/util/SoundInfo.kt @@ -0,0 +1,7 @@ +package com.dulkirfabric.util + +data class SoundInfo( + val path: String, + val pitch: Float, + val volume: Float +) 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 diff --git a/src/main/kotlin/com/dulkirfabric/util/Utils.kt b/src/main/kotlin/com/dulkirfabric/util/Utils.kt index ce6665b..ae98cf6 100644 --- a/src/main/kotlin/com/dulkirfabric/util/Utils.kt +++ b/src/main/kotlin/com/dulkirfabric/util/Utils.kt @@ -1,7 +1,18 @@ package com.dulkirfabric.util +import com.dulkirfabric.events.PlaySoundEvent + object Utils { fun isInSkyblock(): Boolean { return ScoreBoardUtils.getLines() != null } + + /** + * Prints relevant information about a sound that is being displayed + */ + fun debugSound(event: PlaySoundEvent) { + println("Path: ${event.sound.id.path}") + println("Pitch: ${event.sound.pitch}") + println("Volume: ${event.sound.volume}") + } }
\ No newline at end of file |