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 final float
private final ResourceLocation
private final float
private final long
private final SoundSource
private final float
private final int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionClientboundCustomSoundPacket
(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()
float
getPitch()
long
getSeed()
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:
-
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:
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() -
getSeed
public long getSeed() -
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-