枚举的使用
org.bukkit.Sound
-
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.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
在世界中指定的位置播放一个声音。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. -
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()
Get theSound
this entity will make on death.LivingEntity.getDrinkingSound
(@NotNull ItemStack itemStack) LivingEntity.getEatingSound
(@NotNull ItemStack itemStack) LivingEntity.getFallDamageSound
(int fallHeight) Get theSound
this entity will make when falling from the given height (in blocks).LivingEntity.getFallDamageSoundBig()
Get theSound
this entity will make when falling from a large height.LivingEntity.getFallDamageSoundSmall()
Get theSound
this entity will make when falling from a small height.LivingEntity.getHurtSound()
Get theSound
this entity will make when damaged.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
向玩家在某个位置播放一个声音.void
Player.playSound
(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) 向玩家在指定位置播放声音.void
停止播放指定的声音.void
Player.stopSound
(@NotNull Sound sound, @Nullable SoundCategory category) 停止播放指定的声音.