类 ClientboundSoundEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundEntityPacket
- 所有已实现的接口:
Packet<ClientGamePacketListener>
public class ClientboundSoundEntityPacket
extends Object
implements Packet<ClientGamePacketListener>
-
字段概要
字段修饰符和类型字段说明private final int
private final float
private final long
private final Holder
<SoundEvent> private final SoundSource
static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundSoundEntityPacket> private final float
-
构造器概要
构造器限定符构造器说明ClientboundSoundEntityPacket
(Holder<SoundEvent> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) private
-
方法概要
修饰符和类型方法说明int
getId()
float
getPitch()
long
getSeed()
getSound()
float
void
handle
(ClientGamePacketListener p_133425_) type()
private void
write
(RegistryFriendlyByteBuf p_320141_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
字段详细资料
-
STREAM_CODEC
-
sound
-
source
-
id
private final int id -
volume
private final float volume -
pitch
private final float pitch -
seed
private final long seed
-
-
构造器详细资料
-
ClientboundSoundEntityPacket
public ClientboundSoundEntityPacket(Holder<SoundEvent> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) -
ClientboundSoundEntityPacket
-
-
方法详细资料
-
write
-
type
- 指定者:
type
在接口中Packet<ClientGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ClientGamePacketListener>
-
getSound
-
getSource
-
getId
public int getId() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getSeed
public long getSeed()
-