mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
71 lines
1.5 KiB
Java
71 lines
1.5 KiB
Java
package org.bukkit;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* Represents a group of sounds for blocks that are played when various actions
|
|
* happen (ie stepping, breaking, hitting, etc).
|
|
*/
|
|
public interface SoundGroup {
|
|
|
|
/**
|
|
* Get the volume these sounds are played at.
|
|
*
|
|
* Note that this volume does not always represent the actual volume
|
|
* received by the client.
|
|
*
|
|
* @return volume
|
|
*/
|
|
public float getVolume();
|
|
|
|
/**
|
|
* Gets the pitch these sounds are played at.
|
|
*
|
|
* Note that this pitch does not always represent the actual pitch received
|
|
* by the client.
|
|
*
|
|
* @return pitch
|
|
*/
|
|
public float getPitch();
|
|
|
|
/**
|
|
* Gets the corresponding breaking sound for this group.
|
|
*
|
|
* @return the break sound
|
|
*/
|
|
@NotNull
|
|
public Sound getBreakSound();
|
|
|
|
/**
|
|
* Gets the corresponding step sound for this group.
|
|
*
|
|
* @return the step sound
|
|
*/
|
|
@NotNull
|
|
public Sound getStepSound();
|
|
|
|
/**
|
|
* Gets the corresponding place sound for this group.
|
|
*
|
|
* @return the place sound
|
|
*/
|
|
@NotNull
|
|
public Sound getPlaceSound();
|
|
|
|
/**
|
|
* Gets the corresponding hit sound for this group.
|
|
*
|
|
* @return the hit sound
|
|
*/
|
|
@NotNull
|
|
public Sound getHitSound();
|
|
|
|
/**
|
|
* Gets the corresponding fall sound for this group.
|
|
*
|
|
* @return the fall sound
|
|
*/
|
|
@NotNull
|
|
public Sound getFallSound();
|
|
}
|