Class WrapperPlayServerSoundEffect

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerSoundEffect>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerSoundEffect

public class WrapperPlayServerSoundEffect extends PacketWrapper<WrapperPlayServerSoundEffect>
  • Constructor Details

    • WrapperPlayServerSoundEffect

      public WrapperPlayServerSoundEffect(PacketSendEvent event)
    • WrapperPlayServerSoundEffect

      public WrapperPlayServerSoundEffect(int soundId, SoundCategory soundCategory, Vector3i effectPosition, float volume, float pitch)
    • WrapperPlayServerSoundEffect

      public WrapperPlayServerSoundEffect(int soundId, SoundCategory soundCategory, Vector3i effectPosition, float volume, float pitch, long seed)
    • WrapperPlayServerSoundEffect

      public WrapperPlayServerSoundEffect(Sound sound, SoundCategory soundCategory, Vector3i effectPosition, float volume, float pitch)
    • WrapperPlayServerSoundEffect

      public WrapperPlayServerSoundEffect(Sound sound, SoundCategory soundCategory, Vector3i effectPosition, float volume, float pitch, long seed)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayServerSoundEffect>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayServerSoundEffect>
    • copy

      public void copy(WrapperPlayServerSoundEffect wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayServerSoundEffect>
    • getSound

      public Sound getSound()
    • setSound

      public void setSound(Sound sound)
    • getSoundId

      @Deprecated public int getSoundId()
      Deprecated.
    • setSoundId

      @Deprecated public void setSoundId(int soundId)
      Deprecated.
    • getSoundCategory

      @Nullable public @Nullable SoundCategory getSoundCategory()
    • setSoundCategory

      public void setSoundCategory(SoundCategory soundCategory)
    • getEffectPosition

      public Vector3i getEffectPosition()
    • setEffectPosition

      public void setEffectPosition(Vector3i effectPosition)
    • getVolume

      public float getVolume()
    • setVolume

      public void setVolume(float volume)
    • getPitch

      public float getPitch()
    • setPitch

      public void setPitch(float pitch)
    • getSeed

      public long getSeed()
      Seeds only exist in server version 1.19+
      Returns:
      the seed
    • setSeed

      public void setSeed(long seed)
      Seeds only exist in server version 1.19+
      Parameters:
      seed - the seed to set