Class ClientboundSoundEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundEntityPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSoundEntityPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
private final long
private final SoundEvent
private final SoundSource
private final float
-
Constructor Summary
ConstructorDescriptionClientboundSoundEntityPacket
(FriendlyByteBuf p_179419_) ClientboundSoundEntityPacket
(SoundEvent p_237831_, SoundSource p_237832_, Entity p_237833_, float p_237834_, float p_237835_, long p_237836_) -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
float
getPitch()
long
getSeed()
getSound()
float
void
handle
(ClientGamePacketListener p_133425_) void
write
(FriendlyByteBuf p_133428_) 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.protocol.Packet
isSkippable
-
Field Details
-
sound
-
source
-
id
private final int id -
volume
private final float volume -
pitch
private final float pitch -
seed
private final long seed
-
-
Constructor Details
-
ClientboundSoundEntityPacket
public ClientboundSoundEntityPacket(SoundEvent p_237831_, SoundSource p_237832_, Entity p_237833_, float p_237834_, float p_237835_, long p_237836_) -
ClientboundSoundEntityPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
getSound
-
getSource
-
getId
public int getId() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getSeed
public long getSeed() -
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-