Class ClientboundSoundPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
private final float
private final long
private final Holder<SoundEvent>
private final SoundSource
private final float
private final int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionClientboundSoundPacket
(Holder<SoundEvent> p_263366_, SoundSource p_263375_, double p_263378_, double p_263367_, double p_263394_, float p_263415_, float p_263399_, long p_263409_) ClientboundSoundPacket
(FriendlyByteBuf p_179422_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getPitch()
long
getSeed()
getSound()
float
double
getX()
double
getY()
double
getZ()
void
handle
(ClientGamePacketListener p_133454_) void
write
(FriendlyByteBuf p_133457_) 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, nextProtocol
-
Field Details
-
LOCATION_ACCURACY
public static final float LOCATION_ACCURACY- See Also:
-
sound
-
source
-
x
private final int x -
y
private final int y -
z
private final int z -
volume
private final float volume -
pitch
private final float pitch -
seed
private final long seed
-
-
Constructor Details
-
ClientboundSoundPacket
public ClientboundSoundPacket(Holder<SoundEvent> p_263366_, SoundSource p_263375_, double p_263378_, double p_263367_, double p_263394_, float p_263415_, float p_263399_, long p_263409_) -
ClientboundSoundPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
getSound
-
getSource
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getSeed
public long getSeed() -
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-