Class WrapperPlayServerEntitySound

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntitySound

public class WrapperPlayServerEntitySound extends AbstractPacket
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.comphenix.protocol.PacketType
    The packet type that is wrapped by this wrapper.

    Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    handle
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new wrapper and initialize it with a packet handle with default values
    WrapperPlayServerEntitySound(com.comphenix.protocol.events.PacketContainer packet)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieves the value of field 'id'
    float
    Retrieves the value of field 'pitch'
    long
    Retrieves the value of field 'seed'
    org.bukkit.Sound
    Retrieves the value of field 'sound' ProtocolLib currently does not provide a wrapper for this type.
    com.comphenix.protocol.wrappers.EnumWrappers.SoundCategory
    Retrieves the value of field 'source'
    float
    Retrieves the value of field 'volume'
    void
    setId(int value)
    Sets the value of field 'id'
    void
    setPitch(float value)
    Sets the value of field 'pitch'
    void
    setSeed(long value)
    Sets the value of field 'seed'
    void
    setSound(org.bukkit.Sound value)
    Sets the value of field 'sound'
    void
    setSource(com.comphenix.protocol.wrappers.EnumWrappers.SoundCategory value)
    Sets the value of field 'source'
    void
    setVolume(float value)
    Sets the value of field 'volume'

    Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket

    broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
  • Constructor Details

    • WrapperPlayServerEntitySound

      public WrapperPlayServerEntitySound()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerEntitySound

      public WrapperPlayServerEntitySound(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getSound

      public org.bukkit.Sound getSound()
      Retrieves the value of field 'sound' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure
      Returns:
      'sound'
    • setSound

      public void setSound(org.bukkit.Sound value)
      Sets the value of field 'sound'
      Parameters:
      value - New value for field 'sound'
    • getSource

      public com.comphenix.protocol.wrappers.EnumWrappers.SoundCategory getSource()
      Retrieves the value of field 'source'
      Returns:
      'source'
    • setSource

      public void setSource(com.comphenix.protocol.wrappers.EnumWrappers.SoundCategory value)
      Sets the value of field 'source'
      Parameters:
      value - New value for field 'source'
    • getId

      public int getId()
      Retrieves the value of field 'id'
      Returns:
      'id'
    • setId

      public void setId(int value)
      Sets the value of field 'id'
      Parameters:
      value - New value for field 'id'
    • getVolume

      public float getVolume()
      Retrieves the value of field 'volume'
      Returns:
      'volume'
    • setVolume

      public void setVolume(float value)
      Sets the value of field 'volume'
      Parameters:
      value - New value for field 'volume'
    • getPitch

      public float getPitch()
      Retrieves the value of field 'pitch'
      Returns:
      'pitch'
    • setPitch

      public void setPitch(float value)
      Sets the value of field 'pitch'
      Parameters:
      value - New value for field 'pitch'
    • getSeed

      public long getSeed()
      Retrieves the value of field 'seed'
      Returns:
      'seed'
    • setSeed

      public void setSeed(long value)
      Sets the value of field 'seed'
      Parameters:
      value - New value for field 'seed'