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
Modifier and TypeFieldDescriptionstatic float
private ResourceLocation
private float
private SoundSource
private float
private int
private int
private int
-
Constructor Summary
ConstructorDescriptionClientboundCustomSoundPacket(FriendlyByteBuf p_178839_)
ClientboundCustomSoundPacket(ResourceLocation p_132055_, SoundSource p_132056_, Vec3 p_132057_, float p_132058_, float p_132059_)
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
float
getPitch()
float
double
getX()
double
getY()
double
getZ()
void
handle(ClientGamePacketListener p_132065_)
void
write(FriendlyByteBuf p_132068_)
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
-
LOCATION_ACCURACY
public static final float LOCATION_ACCURACY- See Also:
- Constant Field Values
-
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
-
-
Constructor Details
-
ClientboundCustomSoundPacket
public ClientboundCustomSoundPacket(ResourceLocation p_132055_, SoundSource p_132056_, Vec3 p_132057_, float p_132058_, float p_132059_) -
ClientboundCustomSoundPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
getName
-
getSource
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-