Class ClientboundSoundPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic floatprivate floatprivate SoundEventprivate SoundSourceprivate floatprivate intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionClientboundSoundPacket(FriendlyByteBuf p_179422_)ClientboundSoundPacket(SoundEvent p_133442_, SoundSource p_133443_, double p_133444_, double p_133445_, double p_133446_, float p_133447_, float p_133448_) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetPitch()getSound()floatdoublegetX()doublegetY()doublegetZ()voidhandle(ClientGamePacketListener p_133454_)voidwrite(FriendlyByteBuf p_133457_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
LOCATION_ACCURACY
public static final float LOCATION_ACCURACY- See Also:
- Constant Field Values
-
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
-
-
Constructor Details
-
ClientboundSoundPacket
public ClientboundSoundPacket(SoundEvent p_133442_, SoundSource p_133443_, double p_133444_, double p_133445_, double p_133446_, float p_133447_, float p_133448_) -
ClientboundSoundPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
getSound
-
getSource
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-