Class PlaySoundFromEntityS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundFromEntityS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PlaySoundFromEntityS2CPacket
extends Object
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official ya
intermediary net/minecraft/class_2765
named net/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SoundCategory
private final int
private final float
private final long
private final RegistryEntry<SoundEvent>
private final float
-
Constructor Summary
ConstructorDescriptionPlaySoundFromEntityS2CPacket
(RegistryEntry<SoundEvent> sound, SoundCategory category, Entity entity, float volume, float pitch, long seed) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) int
float
getPitch()
long
getSeed()
getSound()
float
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
Lya;a:Lgz;
intermediary field_12642
Lnet/minecraft/class_2765;field_12642:Lnet/minecraft/class_6880;
named sound
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;sound:Lnet/minecraft/registry/entry/RegistryEntry;
-
category
- Mappings:
Namespace Name Mixin selector official b
Lya;b:Lalp;
intermediary field_12641
Lnet/minecraft/class_2765;field_12641:Lnet/minecraft/class_3419;
named category
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
-
entityId
private final int entityId- Mappings:
Namespace Name Mixin selector official c
Lya;c:I
intermediary field_12640
Lnet/minecraft/class_2765;field_12640:I
named entityId
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;entityId:I
-
volume
private final float volume- Mappings:
Namespace Name Mixin selector official d
Lya;d:F
intermediary field_12639
Lnet/minecraft/class_2765;field_12639:F
named volume
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;volume:F
-
pitch
private final float pitch- Mappings:
Namespace Name Mixin selector official e
Lya;e:F
intermediary field_12638
Lnet/minecraft/class_2765;field_12638:F
named pitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;pitch:F
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official f
Lya;f:J
intermediary field_38819
Lnet/minecraft/class_2765;field_38819:J
named seed
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;seed:J
-
-
Constructor Details
-
PlaySoundFromEntityS2CPacket
public PlaySoundFromEntityS2CPacket(RegistryEntry<SoundEvent> sound, SoundCategory category, Entity entity, float volume, float pitch, long seed) - Mappings:
Namespace Name Mixin selector official <init>
Lya;<init>(Lgz;Lalp;Lbdr;FFJ)V
intermediary <init>
Lnet/minecraft/class_2765;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;Lnet/minecraft/class_1297;FFJ)V
named <init>
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/entity/Entity;FFJ)V
-
PlaySoundFromEntityS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lya;<init>(Lsd;)V
intermediary <init>
Lnet/minecraft/class_2765;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Luh;a(Lsd;)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
Lya;b()Lgz;
intermediary method_11882
Lnet/minecraft/class_2765;method_11882()Lnet/minecraft/class_6880;
named getSound
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
-
getCategory
- Mappings:
Namespace Name Mixin selector official c
Lya;c()Lalp;
intermediary method_11881
Lnet/minecraft/class_2765;method_11881()Lnet/minecraft/class_3419;
named getCategory
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
-
getEntityId
public int getEntityId()- Mappings:
Namespace Name Mixin selector official d
Lya;d()I
intermediary method_11883
Lnet/minecraft/class_2765;method_11883()I
named getEntityId
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getEntityId()I
-
getVolume
public float getVolume()- Mappings:
Namespace Name Mixin selector official e
Lya;e()F
intermediary method_11885
Lnet/minecraft/class_2765;method_11885()F
named getVolume
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getVolume()F
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector official f
Lya;f()F
intermediary method_11880
Lnet/minecraft/class_2765;method_11880()F
named getPitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getPitch()F
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official g
Lya;g()J
intermediary method_43235
Lnet/minecraft/class_2765;method_43235()J
named getSeed
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getSeed()J
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lya;a(Luk;)V
intermediary method_11884
Lnet/minecraft/class_2765;method_11884(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-