api: add source to sound effect events

This commit is contained in:
Adam
2019-10-26 12:18:24 -04:00
parent c2e7b61a68
commit 7eda41452b
2 changed files with 22 additions and 0 deletions

View File

@@ -24,14 +24,25 @@
*/ */
package net.runelite.api.events; package net.runelite.api.events;
import javax.annotation.Nullable;
import lombok.Data; import lombok.Data;
import net.runelite.api.Actor;
@Data @Data
public class AreaSoundEffectPlayed public class AreaSoundEffectPlayed
{ {
@Nullable
private final Actor source;
private int soundId; private int soundId;
private int sceneX; private int sceneX;
private int sceneY; private int sceneY;
private int range; private int range;
private int delay; private int delay;
private boolean consumed;
public void consume()
{
consumed = true;
}
} }

View File

@@ -24,11 +24,22 @@
*/ */
package net.runelite.api.events; package net.runelite.api.events;
import javax.annotation.Nullable;
import lombok.Data; import lombok.Data;
import net.runelite.api.Actor;
@Data @Data
public class SoundEffectPlayed public class SoundEffectPlayed
{ {
@Nullable
private final Actor source;
private int soundId; private int soundId;
private int delay; private int delay;
private boolean consumed;
public void consume()
{
consumed = true;
}
} }