Class WrapperPlayServerNamedSoundEffect
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerNamedSoundEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketTypeThe packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerNamedSoundEffect(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionfloatgetPitch()Retrieves the value of field 'pitch'longgetSeed()Retrieves the value of field 'seed'org.bukkit.SoundgetSound()Retrieves the value of field 'sound'com.comphenix.protocol.wrappers.EnumWrappers.SoundCategoryRetrieves the value of field 'source'floatRetrieves the value of field 'volume'intgetX()Retrieves the value of field 'x'intgetY()Retrieves the value of field 'y'intgetZ()Retrieves the value of field 'z'voidsetPitch(float value) Sets the value of field 'pitch'voidsetSeed(long value) Sets the value of field 'seed'voidsetSound(org.bukkit.Sound value) Sets the value of field 'sound'voidsetSource(com.comphenix.protocol.wrappers.EnumWrappers.SoundCategory value) Sets the value of field 'source'voidsetVolume(float value) Sets the value of field 'volume'voidsetX(int value) Sets the value of field 'x'voidsetY(int value) Sets the value of field 'y'voidsetZ(int value) Sets the value of field 'z'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerNamedSoundEffect
public WrapperPlayServerNamedSoundEffect()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerNamedSoundEffect
public WrapperPlayServerNamedSoundEffect(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet- the packet to wrap
-
-
Method Details
-
getSound
public org.bukkit.Sound getSound()Retrieves the value of field 'sound'- 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'
-
getX
public int getX()Retrieves the value of field 'x'- Returns:
- 'x'
-
setX
public void setX(int value) Sets the value of field 'x'- Parameters:
value- New value for field 'x'
-
getY
public int getY()Retrieves the value of field 'y'- Returns:
- 'y'
-
setY
public void setY(int value) Sets the value of field 'y'- Parameters:
value- New value for field 'y'
-
getZ
public int getZ()Retrieves the value of field 'z'- Returns:
- 'z'
-
setZ
public void setZ(int value) Sets the value of field 'z'- Parameters:
value- New value for field 'z'
-
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'
-