Class SPlaySoundEventPacket
java.lang.Object
net.minecraft.network.play.server.SPlaySoundEventPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSPlaySoundEventPacket
(int p_i46940_1_, BlockPos p_i46940_2_, int p_i46940_3_, boolean p_i46940_4_) -
Method Summary
Modifier and TypeMethodDescriptionint
getData()
getPos()
int
getType()
void
handle
(IClientPlayNetHandler p_148833_1_) boolean
void
read
(PacketBuffer p_148837_1_) void
write
(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
Field Details
-
type
private int type -
pos
-
data
private int data -
globalEvent
private boolean globalEvent
-
-
Constructor Details
-
SPlaySoundEventPacket
public SPlaySoundEventPacket() -
SPlaySoundEventPacket
public SPlaySoundEventPacket(int p_i46940_1_, BlockPos p_i46940_2_, int p_i46940_3_, boolean p_i46940_4_)
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
isGlobalEvent
public boolean isGlobalEvent() -
getType
public int getType() -
getData
public int getData() -
getPos
-