Fix slime block sounds

This commit is contained in:
Zach Brown 2014-09-11 20:33:37 -05:00
parent f697665d8c
commit 1db4108509

View file

@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public static final StepSound n = new StepSound("snow", 1.0F, 1.0F);
public static final StepSound o = new StepSoundLadder("ladder", 1.0F, 1.0F);
public static final StepSound p = new StepSoundAnvil("anvil", 0.3F, 1.0F);
+ public static final StepSound qS = new StepSound("slime", 1.0F, 1.0F); // Slime step sound
+ public static final StepSound qS = new StepSoundSlime("slime", 1.0F, 1.0F); // Slime step sound
protected boolean q;
protected int r;
protected boolean s;
@ -954,4 +954,28 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
EnumFish[] aenumfish = EnumFish.values();
int i = aenumfish.length;
diff --git a/src/main/java/net/minecraft/server/StepSoundSlime.java b/src/main/java/net/minecraft/server/StepSoundSlime.java
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
--- /dev/null
+++ b/src/main/java/net/minecraft/server/StepSoundSlime.java
@@ -0,0 +0,0 @@
+package net.minecraft.server;
+
+public class StepSoundSlime extends StepSound {
+
+ // Created by PaperSpigot for compatibility reasons, by no means is this necessarily the actual NMS representation
+
+ public StepSoundSlime(String s, float f, float f1) {
+ super(s, f, f1);
+ }
+
+ public String getBreakSound() {
+ return "mob.slime.big";
+ }
+
+ public String getPlaceSound() {
+ return "mob.slime.small";
+ }
+}
--