Advertisement
TheReturningVoid

Untitled

Oct 5th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. package net.thereturningvoid.ethercraft.blockpatches;
  2.  
  3. import net.minecraft.server.v1_8_R3.*;
  4.  
  5. public class AnvilPatch extends BlockAnvil {
  6.  
  7.     @Override
  8.     public boolean d() {
  9.         return true;
  10.     }
  11.  
  12.     @Override
  13.     public boolean c() {
  14.         return true;
  15.     }
  16.  
  17.     @Override
  18.     public AnvilPatch c(float f) {
  19.         super.c(f);
  20.         return this;
  21.     }
  22.  
  23.     @Override
  24.     public AnvilPatch a(StepSound s) {
  25.         super.a(s);
  26.         return this;
  27.     }
  28.  
  29.     @Override
  30.     public AnvilPatch b(float f) {
  31.         super.b(f);
  32.         return this;
  33.     }
  34. }
  35.  
  36. In the onEnable() method of my main class, I also add this line:
  37. Block.REGISTRY.a(145, new MinecraftKey("anvil"), new AnvilPatch().c(50.0F).a(new Block.StepSound("anvil", 0.3F, 1.0F) {
  38.     @Override
  39.     public String getBreakSound() { return "dig.stone" }
  40.     @Override
  41.     public String getPlaceSound() { return "random.anvil_land"}
  42.   }).b(2000.0F).c("anvil");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement