diff options
author | sk89q <the.sk89q@gmail.com> | 2011-05-02 01:29:45 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-05-02 11:31:32 -0700 |
commit | 80a1a4ac829ffbf7a08b53d3626afa4cc71ae7de (patch) | |
tree | 6b4790ae8526608980a7e8cb1d179e562f5c793b /src | |
parent | 98cea5cd15912e71913421770da7e7ebc2219384 (diff) | |
download | craftbukkit-80a1a4ac829ffbf7a08b53d3626afa4cc71ae7de.tar craftbukkit-80a1a4ac829ffbf7a08b53d3626afa4cc71ae7de.tar.gz craftbukkit-80a1a4ac829ffbf7a08b53d3626afa4cc71ae7de.tar.lz craftbukkit-80a1a4ac829ffbf7a08b53d3626afa4cc71ae7de.tar.xz craftbukkit-80a1a4ac829ffbf7a08b53d3626afa4cc71ae7de.zip |
Added Player.playNote().
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index bbd1c209..c94685b9 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -7,6 +7,7 @@ import net.minecraft.server.EntityPlayer; import net.minecraft.server.ItemInWorldManager; import net.minecraft.server.Packet200Statistic; import net.minecraft.server.Packet3Chat; +import net.minecraft.server.Packet54PlayNoteBlock; import net.minecraft.server.Packet6SpawnPosition; import net.minecraft.server.ServerConfigurationManager; import net.minecraft.server.WorldServer; @@ -141,6 +142,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player { return server.dispatchCommand(this, command); } + public void playNote(Location loc, byte instrument, byte note) { + getHandle().netServerHandler.sendPacket( + new Packet54PlayNoteBlock(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), instrument, note)); + } + @Override public boolean teleport(Location location) { WorldServer oldWorld = ((CraftWorld)getWorld()).getHandle(); |