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 seintermediary net/minecraft/class_2765named net/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private SoundCategorycategoryprivate intentityIdprivate floatpitchprivate SoundEventsoundprivate floatvolume -
Constructor Summary
Constructors Constructor Description PlaySoundFromEntityS2CPacket()PlaySoundFromEntityS2CPacket(SoundEvent sound, SoundCategory category, Entity entity, float volume, float pitch) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)SoundCategorygetCategory()intgetEntityId()floatgetPitch()SoundEventgetSound()floatgetVolume()voidread(PacketByteBuf buf)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
-
sound
- Mappings:
Namespace Name Mixin selector official aLse;a:Laef;intermediary field_12642Lnet/minecraft/class_2765;field_12642:Lnet/minecraft/class_3414;named soundLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;sound:Lnet/minecraft/sound/SoundEvent;
-
category
- Mappings:
Namespace Name Mixin selector official bLse;b:Laeh;intermediary field_12641Lnet/minecraft/class_2765;field_12641:Lnet/minecraft/class_3419;named categoryLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
-
entityId
private int entityId- Mappings:
Namespace Name Mixin selector official cLse;c:Iintermediary field_12640Lnet/minecraft/class_2765;field_12640:Inamed entityIdLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;entityId:I
-
volume
private float volume- Mappings:
Namespace Name Mixin selector official dLse;d:Fintermediary field_12639Lnet/minecraft/class_2765;field_12639:Fnamed volumeLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;volume:F
-
pitch
private float pitch- Mappings:
Namespace Name Mixin selector official eLse;e:Fintermediary field_12638Lnet/minecraft/class_2765;field_12638:Fnamed pitchLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;pitch:F
-
-
Constructor Details
-
PlaySoundFromEntityS2CPacket
public PlaySoundFromEntityS2CPacket() -
PlaySoundFromEntityS2CPacket
public PlaySoundFromEntityS2CPacket(SoundEvent sound, SoundCategory category, Entity entity, float volume, float pitch)- Mappings:
Namespace Name Mixin selector official <init>Lse;<init>(Laef;Laeh;Laqv;FF)Vintermediary <init>Lnet/minecraft/class_2765;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;Lnet/minecraft/class_1297;FF)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/entity/Entity;FF)V
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLpa;a(Lnw;)Vintermediary method_11053Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLpa;b(Lnw;)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 bLse;b()Laef;intermediary method_11882Lnet/minecraft/class_2765;method_11882()Lnet/minecraft/class_3414;named getSoundLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getSound()Lnet/minecraft/sound/SoundEvent;
-
getCategory
- Mappings:
Namespace Name Mixin selector official cLse;c()Laeh;intermediary method_11881Lnet/minecraft/class_2765;method_11881()Lnet/minecraft/class_3419;named getCategoryLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
-
getEntityId
- Mappings:
Namespace Name Mixin selector official dLse;d()Iintermediary method_11883Lnet/minecraft/class_2765;method_11883()Inamed getEntityIdLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getEntityId()I
-
getVolume
- Mappings:
Namespace Name Mixin selector official eLse;e()Fintermediary method_11885Lnet/minecraft/class_2765;method_11885()Fnamed getVolumeLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getVolume()F
-
getPitch
- Mappings:
Namespace Name Mixin selector official fLse;f()Fintermediary method_11880Lnet/minecraft/class_2765;method_11880()Fnamed getPitchLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getPitch()F
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLse;a(Lpd;)Vintermediary method_11884Lnet/minecraft/class_2765;method_11884(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-