Class PlaySoundS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official taintermediary net/minecraft/class_2767named net/minecraft/network/packet/s2c/play/PlaySoundS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SoundCategorystatic floatprivate intprivate intprivate intprivate floatprivate SoundEventprivate float -
Constructor Summary
ConstructorsConstructorDescriptionPlaySoundS2CPacket(SoundEvent sound, SoundCategory category, double x, double y, double z, float volume, float pitch) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener)floatgetPitch()getSound()floatdoublegetX()doublegetY()doublegetZ()voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 aLta;a:Fintermediary field_33353Lnet/minecraft/class_2767;field_33353:Fnamed COORDINATE_SCALELnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;COORDINATE_SCALE:F
-
sound
- Mappings:
Namespace Name Mixin selector official bLta;b:Lafd;intermediary field_12661Lnet/minecraft/class_2767;field_12661:Lnet/minecraft/class_3414;named soundLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;sound:Lnet/minecraft/sound/SoundEvent;
-
category
- Mappings:
Namespace Name Mixin selector official cLta;c:Laff;intermediary field_12660Lnet/minecraft/class_2767;field_12660:Lnet/minecraft/class_3419;named categoryLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
-
fixedX
private final int fixedX- Mappings:
Namespace Name Mixin selector official dLta;d:Iintermediary field_12659Lnet/minecraft/class_2767;field_12659:Inamed fixedXLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedX:I
-
fixedY
private final int fixedY- Mappings:
Namespace Name Mixin selector official eLta;e:Iintermediary field_12658Lnet/minecraft/class_2767;field_12658:Inamed fixedYLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedY:I
-
fixedZ
private final int fixedZ- Mappings:
Namespace Name Mixin selector official fLta;f:Iintermediary field_12657Lnet/minecraft/class_2767;field_12657:Inamed fixedZLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedZ:I
-
volume
private final float volume- Mappings:
Namespace Name Mixin selector official gLta;g:Fintermediary field_12656Lnet/minecraft/class_2767;field_12656:Fnamed volumeLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;volume:F
-
pitch
private final float pitch- Mappings:
Namespace Name Mixin selector official hLta;h:Fintermediary field_12662Lnet/minecraft/class_2767;field_12662:Fnamed pitchLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;pitch:F
-
-
Constructor Details
-
PlaySoundS2CPacket
public PlaySoundS2CPacket(SoundEvent sound, SoundCategory category, double x, double y, double z, float volume, float pitch)- Mappings:
Namespace Name Mixin selector official <init>Lta;<init>(Lafd;Laff;DDDFF)Vintermediary <init>Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;DDDFF)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;DDDFF)V
-
PlaySoundS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lta;<init>(Log;)Vintermediary <init>Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLpk;a(Log;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
getSound
- Mappings:
Namespace Name Mixin selector official bLta;b()Lafd;intermediary method_11894Lnet/minecraft/class_2767;method_11894()Lnet/minecraft/class_3414;named getSoundLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getSound()Lnet/minecraft/sound/SoundEvent;
-
getCategory
- Mappings:
Namespace Name Mixin selector official cLta;c()Laff;intermediary method_11888Lnet/minecraft/class_2767;method_11888()Lnet/minecraft/class_3419;named getCategoryLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector official dLta;d()Dintermediary method_11890Lnet/minecraft/class_2767;method_11890()Dnamed getXLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getX()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector official eLta;e()Dintermediary method_11889Lnet/minecraft/class_2767;method_11889()Dnamed getYLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getY()D
-
getZ
public double getZ()- Mappings:
Namespace Name Mixin selector official fLta;f()Dintermediary method_11893Lnet/minecraft/class_2767;method_11893()Dnamed getZLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getZ()D
-
getVolume
public float getVolume()- Mappings:
Namespace Name Mixin selector official gLta;g()Fintermediary method_11891Lnet/minecraft/class_2767;method_11891()Fnamed getVolumeLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getVolume()F
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector official hLta;h()Fintermediary method_11892Lnet/minecraft/class_2767;method_11892()Fnamed getPitchLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getPitch()F
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLta;a(Lpn;)Vintermediary method_11895Lnet/minecraft/class_2767;method_11895(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-