Class ClientboundSoundEntityPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundSoundEntityPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSoundEntityPacket(@NonNull Sound sound, @NonNull SoundCategory category, int entityId, float volume, float pitch, long seed) ClientboundSoundEntityPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull SoundCategoryintfloatgetPitch()longgetSeed()@NonNull SoundgetSound()floatinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSoundEntityPacketwithCategory(@NonNull SoundCategory category) @NonNull ClientboundSoundEntityPacketwithEntityId(int entityId) @NonNull ClientboundSoundEntityPacketwithPitch(float pitch) @NonNull ClientboundSoundEntityPacketwithSeed(long seed) @NonNull ClientboundSoundEntityPacket@NonNull ClientboundSoundEntityPacketwithVolume(float volume) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSoundEntityPacket
-
ClientboundSoundEntityPacket
public ClientboundSoundEntityPacket(@NonNull @NonNull Sound sound, @NonNull @NonNull SoundCategory category, int entityId, float volume, float pitch, long seed)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getSound
-
getCategory
-
getEntityId
public int getEntityId() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getSeed
public long getSeed() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCategory
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVolume
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPitch
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSeed
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-