Class PlaySoundIdS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundIdS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official qn
intermediary net/minecraft/class_2660
named net/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket
-
Field Summary
Modifier and TypeFieldDescriptionprivate SoundCategory
static float
private int
private int
private int
private Identifier
private float
private float
-
Constructor Summary
ConstructorDescriptionPlaySoundIdS2CPacket(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(ClientPlayPacketListener clientPlayPacketListener)
float
getPitch()
float
double
getX()
double
getY()
double
getZ()
void
write(PacketByteBuf buf)
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.Packet
isWritingErrorSkippable
-
Field Details
-
COORDINATE_SCALE
public static final float COORDINATE_SCALE- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lqn;a:F
intermediary field_33327
Lnet/minecraft/class_2660;field_33327:F
named COORDINATE_SCALE
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;COORDINATE_SCALE:F
-
id
- Mappings:
Namespace Name Mixin selector official b
Lqn;b:Lww;
intermediary field_12170
Lnet/minecraft/class_2660;field_12170:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;id:Lnet/minecraft/util/Identifier;
-
category
- Mappings:
Namespace Name Mixin selector official c
Lqn;c:Laff;
intermediary field_12171
Lnet/minecraft/class_2660;field_12171:Lnet/minecraft/class_3419;
named category
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
-
fixedX
private final int fixedX- Mappings:
Namespace Name Mixin selector official d
Lqn;d:I
intermediary field_12169
Lnet/minecraft/class_2660;field_12169:I
named fixedX
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedX:I
-
fixedY
private final int fixedY- Mappings:
Namespace Name Mixin selector official e
Lqn;e:I
intermediary field_12168
Lnet/minecraft/class_2660;field_12168:I
named fixedY
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedY:I
-
fixedZ
private final int fixedZ- Mappings:
Namespace Name Mixin selector official f
Lqn;f:I
intermediary field_12167
Lnet/minecraft/class_2660;field_12167:I
named fixedZ
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedZ:I
-
volume
private final float volume- Mappings:
Namespace Name Mixin selector official g
Lqn;g:F
intermediary field_12166
Lnet/minecraft/class_2660;field_12166:F
named volume
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;volume:F
-
pitch
private final float pitch- Mappings:
Namespace Name Mixin selector official h
Lqn;h:F
intermediary field_12172
Lnet/minecraft/class_2660;field_12172:F
named pitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;pitch:F
-
-
Constructor Details
-
PlaySoundIdS2CPacket
public PlaySoundIdS2CPacket(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch)- Mappings:
Namespace Name Mixin selector official <init>
Lqn;<init>(Lww;Laff;Ldna;FF)V
intermediary <init>
Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_243;FF)V
named <init>
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/Vec3d;FF)V
-
PlaySoundIdS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lqn;<init>(Log;)V
intermediary <init>
Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lpk;a(Log;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
getSoundId
- Mappings:
Namespace Name Mixin selector official b
Lqn;b()Lww;
intermediary method_11460
Lnet/minecraft/class_2660;method_11460()Lnet/minecraft/class_2960;
named getSoundId
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getSoundId()Lnet/minecraft/util/Identifier;
-
getCategory
- Mappings:
Namespace Name Mixin selector official c
Lqn;c()Laff;
intermediary method_11459
Lnet/minecraft/class_2660;method_11459()Lnet/minecraft/class_3419;
named getCategory
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector official d
Lqn;d()D
intermediary method_11462
Lnet/minecraft/class_2660;method_11462()D
named getX
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getX()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector official e
Lqn;e()D
intermediary method_11461
Lnet/minecraft/class_2660;method_11461()D
named getY
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getY()D
-
getZ
public double getZ()- Mappings:
Namespace Name Mixin selector official f
Lqn;f()D
intermediary method_11465
Lnet/minecraft/class_2660;method_11465()D
named getZ
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getZ()D
-
getVolume
public float getVolume()- Mappings:
Namespace Name Mixin selector official g
Lqn;g()F
intermediary method_11463
Lnet/minecraft/class_2660;method_11463()F
named getVolume
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getVolume()F
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector official h
Lqn;h()F
intermediary method_11464
Lnet/minecraft/class_2660;method_11464()F
named getPitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getPitch()F
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lqn;a(Lpn;)V
intermediary method_11466
Lnet/minecraft/class_2660;method_11466(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-