Class PlaySoundIdS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundIdS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official tointermediary net/minecraft/class_2660named net/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SoundCategorystatic final floatprivate final intprivate final intprivate final intprivate final Identifierprivate final floatprivate final longprivate final float -
Constructor Summary
ConstructorsConstructorDescriptionPlaySoundIdS2CPacket(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, long seed) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) floatgetPitch()longgetSeed()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:
- Mappings:
Namespace Name Mixin selector official aLto;a:Fintermediary field_33327Lnet/minecraft/class_2660;field_33327:Fnamed COORDINATE_SCALELnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;COORDINATE_SCALE:F
-
id
- Mappings:
Namespace Name Mixin selector official bLto;b:Laaj;intermediary field_12170Lnet/minecraft/class_2660;field_12170:Lnet/minecraft/class_2960;named idLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;id:Lnet/minecraft/util/Identifier;
-
category
- Mappings:
Namespace Name Mixin selector official cLto;c:Lajf;intermediary field_12171Lnet/minecraft/class_2660;field_12171:Lnet/minecraft/class_3419;named categoryLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
-
fixedX
private final int fixedX- Mappings:
Namespace Name Mixin selector official dLto;d:Iintermediary field_12169Lnet/minecraft/class_2660;field_12169:Inamed fixedXLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedX:I
-
fixedY
private final int fixedY- Mappings:
Namespace Name Mixin selector official eLto;e:Iintermediary field_12168Lnet/minecraft/class_2660;field_12168:Inamed fixedYLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedY:I
-
fixedZ
private final int fixedZ- Mappings:
Namespace Name Mixin selector official fLto;f:Iintermediary field_12167Lnet/minecraft/class_2660;field_12167:Inamed fixedZLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedZ:I
-
volume
private final float volume- Mappings:
Namespace Name Mixin selector official gLto;g:Fintermediary field_12166Lnet/minecraft/class_2660;field_12166:Fnamed volumeLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;volume:F
-
pitch
private final float pitch- Mappings:
Namespace Name Mixin selector official hLto;h:Fintermediary field_12172Lnet/minecraft/class_2660;field_12172:Fnamed pitchLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;pitch:F
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official iLto;i:Jintermediary field_38818Lnet/minecraft/class_2660;field_38818:Jnamed seedLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;seed:J
-
-
Constructor Details
-
PlaySoundIdS2CPacket
public PlaySoundIdS2CPacket(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, long seed) - Mappings:
Namespace Name Mixin selector official <init>Lto;<init>(Laaj;Lajf;Ldvt;FFJ)Vintermediary <init>Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_243;FFJ)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/Vec3d;FFJ)V
-
PlaySoundIdS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lto;<init>(Lqx;)Vintermediary <init>Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLso;a(Lqx;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
getSoundId
- Mappings:
Namespace Name Mixin selector official bLto;b()Laaj;intermediary method_11460Lnet/minecraft/class_2660;method_11460()Lnet/minecraft/class_2960;named getSoundIdLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getSoundId()Lnet/minecraft/util/Identifier;
-
getCategory
- Mappings:
Namespace Name Mixin selector official cLto;c()Lajf;intermediary method_11459Lnet/minecraft/class_2660;method_11459()Lnet/minecraft/class_3419;named getCategoryLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector official dLto;d()Dintermediary method_11462Lnet/minecraft/class_2660;method_11462()Dnamed getXLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getX()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector official eLto;e()Dintermediary method_11461Lnet/minecraft/class_2660;method_11461()Dnamed getYLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getY()D
-
getZ
public double getZ()- Mappings:
Namespace Name Mixin selector official fLto;f()Dintermediary method_11465Lnet/minecraft/class_2660;method_11465()Dnamed getZLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getZ()D
-
getVolume
public float getVolume()- Mappings:
Namespace Name Mixin selector official gLto;g()Fintermediary method_11463Lnet/minecraft/class_2660;method_11463()Fnamed getVolumeLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getVolume()F
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector official hLto;h()Fintermediary method_11464Lnet/minecraft/class_2660;method_11464()Fnamed getPitchLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getPitch()F
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official iLto;i()Jintermediary method_43234Lnet/minecraft/class_2660;method_43234()Jnamed getSeedLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getSeed()J
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLto;a(Lsr;)Vintermediary method_11466Lnet/minecraft/class_2660;method_11466(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-