枚举的使用
org.bukkit.Sound
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
Classes concerning damage types and sources applicable to living entities.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.-
org.bukkit中Sound的使用
修饰符和类型方法说明SoundGroup.getBreakSound()
Gets the corresponding breaking sound for this group.SoundGroup.getFallSound()
Gets the corresponding fall sound for this group.SoundGroup.getHitSound()
Gets the corresponding hit sound for this group.SoundGroup.getPlaceSound()
Gets the corresponding place sound for this group.Instrument.getSound()
Gets the sound associated with this instrument.SoundGroup.getStepSound()
Gets the corresponding step sound for this group.static Sound
返回带有指定名称的该类型的枚举常量。static Sound[]
Sound.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明void
Play a Sound at the location of the provided entity in the World.void
World.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the location of the provided entity in the World.void
World.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a Sound at the location of the provided entity in the World.void
在世界中指定的位置播放一个声音。void
World.playSound
(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World.void
World.playSound
(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a Sound at the provided Location in the World. -
org.bukkit.damage中Sound的使用
-
org.bukkit.entity中Sound的使用
修饰符和类型方法说明Mob.getAmbientSound()
Get theSound
this mob makes while ambiently existing.Raider.getCelebrationSound()
Get theSound
this entity will play when celebrating.LivingEntity.getDeathSound()
获取此实体在死亡时发出的Sound
。LivingEntity.getDrinkingSound
(@NotNull ItemStack itemStack) LivingEntity.getEatingSound
(@NotNull ItemStack itemStack) LivingEntity.getFallDamageSound
(int fallHeight) 获取此实体从给定高度(以方块为单位)坠落时发出的Sound
。LivingEntity.getFallDamageSoundBig()
获取此实体从大高度坠落时发出的Sound
。LivingEntity.getFallDamageSoundSmall()
获取此实体从小高度坠落时发出的Sound
。LivingEntity.getHurtSound()
获取此实体在受伤时发出的Sound
。Entity.getSwimHighSpeedSplashSound()
Get theSound
this entity makes when splashing in water at high speeds.Entity.getSwimSound()
Get theSound
this entity makes while swimming.Entity.getSwimSplashSound()
Get theSound
this entity makes when splashing in water.修饰符和类型方法说明void
Play a sound for a player at the location of the entity.void
Player.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) Play a sound for a player at the location of the entity.void
Player.playSound
(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location of the entity.void
向玩家在某个位置播放一个声音.void
Player.playSound
(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) 向玩家在指定位置播放声音.void
Player.playSound
(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location.void
停止播放指定的声音.void
Player.stopSound
(@NotNull Sound sound, @Nullable SoundCategory category) 停止播放指定的声音.