Class PlaySoundS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PlaySoundS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official sf
intermediary net/minecraft/class_2767
named net/minecraft/network/packet/s2c/play/PlaySoundS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private SoundCategory
category
private int
fixedX
private int
fixedY
private int
fixedZ
private float
pitch
private SoundEvent
sound
private float
volume
-
Constructor Summary
Constructors Constructor Description PlaySoundS2CPacket()
PlaySoundS2CPacket(SoundEvent sound, SoundCategory category, double x, double y, double z, float volume, float pitch)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
SoundCategory
getCategory()
float
getPitch()
SoundEvent
getSound()
float
getVolume()
double
getX()
double
getY()
double
getZ()
void
read(PacketByteBuf buf)
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
-
sound
- Mappings:
Namespace Name Mixin selector official a
Lsf;a:Laef;
intermediary field_12661
Lnet/minecraft/class_2767;field_12661:Lnet/minecraft/class_3414;
named sound
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;sound:Lnet/minecraft/sound/SoundEvent;
-
category
- Mappings:
Namespace Name Mixin selector official b
Lsf;b:Laeh;
intermediary field_12660
Lnet/minecraft/class_2767;field_12660:Lnet/minecraft/class_3419;
named category
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
-
fixedX
private int fixedX- Mappings:
Namespace Name Mixin selector official c
Lsf;c:I
intermediary field_12659
Lnet/minecraft/class_2767;field_12659:I
named fixedX
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedX:I
-
fixedY
private int fixedY- Mappings:
Namespace Name Mixin selector official d
Lsf;d:I
intermediary field_12658
Lnet/minecraft/class_2767;field_12658:I
named fixedY
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedY:I
-
fixedZ
private int fixedZ- Mappings:
Namespace Name Mixin selector official e
Lsf;e:I
intermediary field_12657
Lnet/minecraft/class_2767;field_12657:I
named fixedZ
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedZ:I
-
volume
private float volume- Mappings:
Namespace Name Mixin selector official f
Lsf;f:F
intermediary field_12656
Lnet/minecraft/class_2767;field_12656:F
named volume
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;volume:F
-
pitch
private float pitch- Mappings:
Namespace Name Mixin selector official g
Lsf;g:F
intermediary field_12662
Lnet/minecraft/class_2767;field_12662:F
named pitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;pitch:F
-
-
Constructor Details
-
PlaySoundS2CPacket
public PlaySoundS2CPacket() -
PlaySoundS2CPacket
public PlaySoundS2CPacket(SoundEvent sound, SoundCategory category, double x, double y, double z, float volume, float pitch)- Mappings:
Namespace Name Mixin selector official <init>
Lsf;<init>(Laef;Laeh;DDDFF)V
intermediary <init>
Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;DDDFF)V
named <init>
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;DDDFF)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)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
-
getSound
- Mappings:
Namespace Name Mixin selector official b
Lsf;b()Laef;
intermediary method_11894
Lnet/minecraft/class_2767;method_11894()Lnet/minecraft/class_3414;
named getSound
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getSound()Lnet/minecraft/sound/SoundEvent;
-
getCategory
- Mappings:
Namespace Name Mixin selector official c
Lsf;c()Laeh;
intermediary method_11888
Lnet/minecraft/class_2767;method_11888()Lnet/minecraft/class_3419;
named getCategory
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
-
getX
- Mappings:
Namespace Name Mixin selector official d
Lsf;d()D
intermediary method_11890
Lnet/minecraft/class_2767;method_11890()D
named getX
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getX()D
-
getY
- Mappings:
Namespace Name Mixin selector official e
Lsf;e()D
intermediary method_11889
Lnet/minecraft/class_2767;method_11889()D
named getY
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getY()D
-
getZ
- Mappings:
Namespace Name Mixin selector official f
Lsf;f()D
intermediary method_11893
Lnet/minecraft/class_2767;method_11893()D
named getZ
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getZ()D
-
getVolume
- Mappings:
Namespace Name Mixin selector official g
Lsf;g()F
intermediary method_11891
Lnet/minecraft/class_2767;method_11891()F
named getVolume
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getVolume()F
-
getPitch
- Mappings:
Namespace Name Mixin selector official h
Lsf;h()F
intermediary method_11892
Lnet/minecraft/class_2767;method_11892()F
named getPitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getPitch()F
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lsf;a(Lpd;)V
intermediary method_11895
Lnet/minecraft/class_2767;method_11895(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-