Skip to content

Commit

Permalink
fix(utils): fix misspelled method name playerToPlayer
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
WakelessSloth56 committed May 4, 2022
1 parent 6229b22 commit c3185c8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/org/auioc/mcmod/arnicalib/utils/game/SoundUtils.java
Expand Up @@ -31,28 +31,28 @@ static SoundEvent getSoundEventOrElseThrow(String id) {
return getSoundEvent(id).orElseThrow(RegistryEntryException.UNKNOWN_SOUND_EVENT.create(id));
}

static void playerToPlayer(Player player, String id, SoundSource source, float volume, float pitch) {
static void play(Player player, String id, SoundSource source, float volume, float pitch) {
player.playNotifySound(getSoundEventOrElseThrow(id), source, volume, pitch);
}

static void playerToPlayer(Player player, String id) {
playerToPlayer(player, id, SoundSource.MASTER, 1, 1);
static void play(Player player, String id) {
play(player, id, SoundSource.MASTER, 1, 1);
}

static void playerToPlayer(Player player, String id, float volume, float pitch) {
playerToPlayer(player, id, SoundSource.MASTER, volume, pitch);
static void play(Player player, String id, float volume, float pitch) {
play(player, id, SoundSource.MASTER, volume, pitch);
}

static void playerToPlayer(Player player, ResourceLocation id, SoundSource source, float volume, float pitch) {
static void play(Player player, ResourceLocation id, SoundSource source, float volume, float pitch) {
player.playNotifySound(getSoundEventOrElseThrow(id), source, volume, pitch);
}

static void playerToPlayer(Player player, ResourceLocation id) {
playerToPlayer(player, id, SoundSource.MASTER, 1, 1);
static void play(Player player, ResourceLocation id) {
play(player, id, SoundSource.MASTER, 1, 1);
}

static void playerToPlayer(Player player, ResourceLocation id, float volume, float pitch) {
playerToPlayer(player, id, SoundSource.MASTER, volume, pitch);
static void play(Player player, ResourceLocation id, float volume, float pitch) {
play(player, id, SoundSource.MASTER, volume, pitch);
}

}

0 comments on commit c3185c8

Please sign in to comment.