Implemented a new playAudio function in ContentAPI.kt

Implemented a new Send function in AudioManager.java
Implemented KBD lair teleport levers lever operating sound using the new playAudio function
Implemented KBD lair teleport levers pulling animation
This commit is contained in:
Zerken
2023-06-21 15:12:24 +00:00
committed by Ryan
parent cef956722a
commit e0f99de75b
3 changed files with 34 additions and 1 deletions
@@ -116,6 +116,19 @@ public class AudioManager {
}
}
/**
* Plays the given Audio for the given Entity.
* @param audioId the audio to play.
* @param volume the volume.
* @param delay the delay.
* @param global if other nearby entities should be able to hear it.
* @param location the location where the audio will play.
* @param radius the distance the audio can be heard from the given location.
*/
public void send(int audioId, int volume, int delay, boolean global, Location location, int radius) {
send(new Audio(audioId, volume, delay, radius), global, location);
}
/**
* Gets the player.
* @return the player