public class S28PacketEffect extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Field and Description |
---|---|
private boolean |
serverWide
If true the sound is played across the server
|
private int |
soundData
can be a block/item id or other depending on the soundtype
|
private BlockPos |
soundPos |
private int |
soundType |
Constructor and Description |
---|
S28PacketEffect() |
S28PacketEffect(int soundTypeIn,
BlockPos soundPosIn,
int soundDataIn,
boolean serverWideIn) |
Modifier and Type | Method and Description |
---|---|
int |
getSoundData() |
BlockPos |
getSoundPos() |
int |
getSoundType() |
boolean |
isSoundServerwide() |
void |
processPacket(INetHandlerPlayClient handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
private int soundType
private BlockPos soundPos
private int soundData
private boolean serverWide
public S28PacketEffect()
public S28PacketEffect(int soundTypeIn, BlockPos soundPosIn, int soundDataIn, boolean serverWideIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public boolean isSoundServerwide()
public int getSoundType()
public int getSoundData()
public BlockPos getSoundPos()