mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Add stopSound for specific sound category & unit test for SoundCategory
This commit is contained in:
1 parent
63c13c5e62
commit
7564d60241
2 files changed
+26
-2
No files matched your search
@@ -24,4 +24,18 @@ public class SoundTest {
|
||||
assertNotNull(effect + "", Sound.valueOf(effect.a().replace('.', '_').toUpperCase(java.util.Locale.ENGLISH)));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCategory() {
|
||||
for (SoundCategory category : SoundCategory.values()) {
|
||||
assertNotNull(category + "", net.minecraft.server.SoundCategory.valueOf(category.name()));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCategoryReverse() {
|
||||
for (net.minecraft.server.SoundCategory category : net.minecraft.server.SoundCategory.values()) {
|
||||
assertNotNull(category + "", SoundCategory.valueOf(category.name()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user