Class ClientboundCustomSoundPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCustomSoundPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundCustomSoundPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatprivate final ResourceLocationprivate final floatprivate final longprivate final SoundSourceprivate final floatprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionClientboundCustomSoundPacket(FriendlyByteBuf p_178839_) ClientboundCustomSoundPacket(ResourceLocation p_237699_, SoundSource p_237700_, Vec3 p_237701_, float p_237702_, float p_237703_, long p_237704_) -
Method Summary
Modifier and TypeMethodDescriptiongetName()floatgetPitch()longgetSeed()floatdoublegetX()doublegetY()doublegetZ()voidhandle(ClientGamePacketListener p_132065_) voidwrite(FriendlyByteBuf p_132068_) 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:
-
name
-
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
-
ClientboundCustomSoundPacket
public ClientboundCustomSoundPacket(ResourceLocation p_237699_, SoundSource p_237700_, Vec3 p_237701_, float p_237702_, float p_237703_, long p_237704_) -
ClientboundCustomSoundPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
getName
-
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:
handlein interfacePacket<ClientGamePacketListener>
-