geforkt von Mirrors/Paper
Added NoteBlock.play(instrument, note).
By: sk89q <the.sk89q@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
1d515d9a86
Commit
5a16cb501e
@ -42,4 +42,17 @@ public class CraftNoteBlock extends CraftBlockState implements NoteBlock {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean play(byte instrument, byte note) {
|
||||||
|
Block block = getBlock();
|
||||||
|
|
||||||
|
synchronized (block) {
|
||||||
|
if (block.getType() == Material.NOTE_BLOCK) {
|
||||||
|
world.getHandle().d(getX(), getY(), getZ(), instrument, note);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren