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 named net/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket
intermediary net/minecraft/class_2765
official agc
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SoundCategory
static final PacketCodec
<RegistryByteBuf, PlaySoundFromEntityS2CPacket> private final int
private final float
private final long
private final RegistryEntry
<SoundEvent> private final float
-
Constructor Summary
ModifierConstructorDescriptionprivate
PlaySoundFromEntityS2CPacket
(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
private void
write
(RegistryByteBuf 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.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_47994
Lnet/minecraft/class_2765;field_47994:Lnet/minecraft/class_9139;
official a
Lagc;a:Lzn;
-
sound
- Mappings:
Namespace Name Mixin selector named sound
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;sound:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_12642
Lnet/minecraft/class_2765;field_12642:Lnet/minecraft/class_6880;
official b
Lagc;b:Lji;
-
category
- Mappings:
Namespace Name Mixin selector named category
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
intermediary field_12641
Lnet/minecraft/class_2765;field_12641:Lnet/minecraft/class_3419;
official c
Lagc;c:Lawb;
-
entityId
private final int entityId- Mappings:
Namespace Name Mixin selector named entityId
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;entityId:I
intermediary field_12640
Lnet/minecraft/class_2765;field_12640:I
official d
Lagc;d:I
-
volume
private final float volume- Mappings:
Namespace Name Mixin selector named volume
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;volume:F
intermediary field_12639
Lnet/minecraft/class_2765;field_12639:F
official e
Lagc;e:F
-
pitch
private final float pitch- Mappings:
Namespace Name Mixin selector named pitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;pitch:F
intermediary field_12638
Lnet/minecraft/class_2765;field_12638:F
official f
Lagc;f:F
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector named seed
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;seed:J
intermediary field_38819
Lnet/minecraft/class_2765;field_38819:J
official g
Lagc;g:J
-
-
Constructor Details
-
PlaySoundFromEntityS2CPacket
public PlaySoundFromEntityS2CPacket(RegistryEntry<SoundEvent> sound, SoundCategory category, Entity entity, float volume, float pitch, long seed) - Mappings:
Namespace Name Mixin selector 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
intermediary <init>
Lnet/minecraft/class_2765;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;Lnet/minecraft/class_1297;FFJ)V
official <init>
Lagc;<init>(Lji;Lawb;Lbsw;FFJ)V
-
PlaySoundFromEntityS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary <init>
Lnet/minecraft/class_2765;<init>(Lnet/minecraft/class_9129;)V
official <init>
Lagc;<init>(Lxa;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary method_55941
Lnet/minecraft/class_2765;method_55941(Lnet/minecraft/class_9129;)V
official a
Lagc;a(Lxa;)V
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
official a
Lzw;a()Lzy;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
intermediary method_11884
Lnet/minecraft/class_2765;method_11884(Lnet/minecraft/class_2602;)V
official a
Lagc;a(Laci;)V
-
getSound
- Mappings:
Namespace Name Mixin selector named getSound
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_11882
Lnet/minecraft/class_2765;method_11882()Lnet/minecraft/class_6880;
official b
Lagc;b()Lji;
-
getCategory
- Mappings:
Namespace Name Mixin selector named getCategory
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
intermediary method_11881
Lnet/minecraft/class_2765;method_11881()Lnet/minecraft/class_3419;
official e
Lagc;e()Lawb;
-
getEntityId
public int getEntityId()- Mappings:
Namespace Name Mixin selector named getEntityId
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getEntityId()I
intermediary method_11883
Lnet/minecraft/class_2765;method_11883()I
official f
Lagc;f()I
-
getVolume
public float getVolume()- Mappings:
Namespace Name Mixin selector named getVolume
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getVolume()F
intermediary method_11885
Lnet/minecraft/class_2765;method_11885()F
official g
Lagc;g()F
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector named getPitch
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getPitch()F
intermediary method_11880
Lnet/minecraft/class_2765;method_11880()F
official h
Lagc;h()F
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector named getSeed
Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getSeed()J
intermediary method_43235
Lnet/minecraft/class_2765;method_43235()J
official i
Lagc;i()J
-