generated from LabyMod/addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from RappyLabyAddons/feat/update
Add support for `1.20.2`
- Loading branch information
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
game-runner/src/v1_20_2/java/com/rappytv/toolwarn/v1_20_2/TbwSoundImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.rappytv.toolwarn.v1_20_2; | ||
|
||
import com.rappytv.toolwarn.util.ITbwSounds; | ||
import javax.inject.Singleton; | ||
import net.labymod.api.client.resources.ResourceLocation; | ||
import net.labymod.api.models.Implements; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Singleton | ||
@Implements(ITbwSounds.class) | ||
public class TbwSoundImpl implements ITbwSounds { | ||
|
||
private final ResourceLocation plingSound = ResourceLocation.create("minecraft", "block.note_block.pling"); | ||
private final ResourceLocation levelUpSound = ResourceLocation.create("minecraft", "entity.player.levelup"); | ||
private final ResourceLocation glassBreakSound = ResourceLocation.create("minecraft", "block.glass.break"); | ||
private final ResourceLocation anvilUseSound = ResourceLocation.create("minecraft", "block.anvil.use"); | ||
|
||
@Override | ||
public ResourceLocation getPlingSound() { | ||
return plingSound; | ||
} | ||
@Override | ||
public ResourceLocation getLevelUpSound() { | ||
return levelUpSound; | ||
} | ||
@Override | ||
public @NotNull ResourceLocation getGlassBreakSound() { | ||
return glassBreakSound; | ||
} | ||
@Override | ||
public ResourceLocation getAnvilUseSound() { | ||
return anvilUseSound; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters