public class SoundConfig
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected float |
pitch |
protected @Nullable org.bukkit.Sound |
type |
protected @NotNull java.lang.String |
typeName |
protected float |
volume |
构造器和说明 |
---|
SoundConfig(@NotNull java.lang.String typeName) |
SoundConfig(@NotNull java.lang.String typeName,
float volume) |
SoundConfig(@NotNull java.lang.String typeName,
float volume,
float pitch) |
SoundConfig(@NotNull java.lang.String typeName,
@Nullable org.bukkit.Sound type,
float volume,
float pitch) |
限定符和类型 | 方法和说明 |
---|---|
static @Nullable SoundConfig |
deserialize(@Nullable java.lang.String string) |
float |
getPitch() |
@Nullable org.bukkit.Sound |
getType() |
@NotNull java.lang.String |
getTypeName() |
float |
getVolume() |
void |
playAt(org.bukkit.Location location) |
void |
playTo(org.bukkit.entity.Player player) |
void |
playToAll() |
@NotNull java.lang.String |
serialize() |
void |
setPitch(float pitch) |
void |
setType(@NotNull org.bukkit.Sound type) |
void |
setVolume(float volume) |
@NotNull protected @NotNull java.lang.String typeName
@Nullable protected @Nullable org.bukkit.Sound type
protected float volume
protected float pitch
public SoundConfig(@NotNull @NotNull java.lang.String typeName)
public SoundConfig(@NotNull @NotNull java.lang.String typeName, float volume)
public SoundConfig(@NotNull @NotNull java.lang.String typeName, float volume, float pitch)
public SoundConfig(@NotNull @NotNull java.lang.String typeName, @Nullable @Nullable org.bukkit.Sound type, float volume, float pitch)
public void playTo(org.bukkit.entity.Player player)
public void playAt(org.bukkit.Location location)
public void playToAll()
@NotNull public @NotNull java.lang.String getTypeName()
@Nullable public @Nullable org.bukkit.Sound getType()
public float getPitch()
public float getVolume()
public void setType(@NotNull @NotNull org.bukkit.Sound type)
public void setVolume(float volume)
public void setPitch(float pitch)
@NotNull public @NotNull java.lang.String serialize()
@Contract(value="null -> null") @Nullable public static @Nullable SoundConfig deserialize(@Nullable @Nullable java.lang.String string) throws java.lang.Exception
java.lang.Exception
Copyright © 2024. All rights reserved.