public class SoundPlayedEvent extends Event
Constructor and Description |
---|
SoundPlayedEvent(ProxiedPlayer player,
Position position,
String soundName,
float volume,
float pitch,
int category) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
getCategory()
Category of the sound
|
float |
getPitch()
Pitch of the sound
|
ProxiedPlayer |
getPlayer()
The player, to which is played
|
Position |
getPosition()
The position, the sound is played
|
String |
getSoundName()
The sound name
|
float |
getVolume()
Volume of the sound
|
int |
hashCode() |
boolean |
isPositionThePlayerOne()
Returns whenever the position, specified on the event
is the player one.
|
String |
toString() |
public SoundPlayedEvent(ProxiedPlayer player, Position position, String soundName, float volume, float pitch, int category)
public boolean isPositionThePlayerOne()
true
if equal, otherwise false
public Position getPosition()
public ProxiedPlayer getPlayer()
public String getSoundName()
public float getVolume()
public float getPitch()
public int getCategory()
protected boolean canEqual(Object other)
Copyright © 2019–2022. All rights reserved.