public class Packet54PlayNoteBlock extends Packet
| Modifier and Type | Field and Description |
|---|---|
int |
blockId
The block ID this action is set for.
|
int |
instrumentType
1=Double Bass, 2=Snare Drum, 3=Clicks / Sticks, 4=Bass Drum, 5=Harp
|
int |
pitch
The pitch of the note (between 0-24 inclusive where 0 is the lowest and 24 is the highest).
|
int |
xLocation |
int |
yLocation |
int |
zLocation |
creationTimeMillis, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize| Constructor and Description |
|---|
Packet54PlayNoteBlock() |
Packet54PlayNoteBlock(int par1,
int par2,
int par3,
int par4,
int par5,
int par6) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPacketSize()
Abstract.
|
void |
processPacket(NetHandler par1NetHandler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(DataInput par1DataInput)
Abstract.
|
void |
writePacketData(DataOutput par1DataOutput)
Abstract.
|
addIdClassMapping, canProcessAsync, containsSameEntityIDAs, getNewPacket, getPacketId, isRealPacket, readBytesFromStream, readItemStack, readNBTTagCompound, readPacket, readString, toString, writeByteArray, writeItemStack, writePacket, writeStringpublic int xLocation
public int yLocation
public int zLocation
public int instrumentType
public int pitch
public int blockId
public Packet54PlayNoteBlock()
public Packet54PlayNoteBlock(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
public void readPacketData(DataInput par1DataInput) throws IOException
readPacketData in class PacketIOExceptionpublic void writePacketData(DataOutput par1DataOutput) throws IOException
writePacketData in class PacketIOExceptionpublic void processPacket(NetHandler par1NetHandler)
processPacket in class Packetpublic int getPacketSize()
getPacketSize in class Packet