类 LootDropSound

java.lang.Object
cn.chloeprime.aaa_particles_world.client.content.LootDropSound

public class LootDropSound extends Object
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final double
    防止丢到草径边上之类的场合,由于草径和周围完整方块细微的高度差 而导致音效连续播放两次,所以给播放音效添加一个最小下落速度需求。
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
     
    static void
    tryPlay(net.minecraft.world.entity.item.ItemEntity item, BooleanField hasPlayed)
     
  • 字段详细资料

    • Y_SPEED_THRESHOLD

      public static final double Y_SPEED_THRESHOLD
      防止丢到草径边上之类的场合,由于草径和周围完整方块细微的高度差 而导致音效连续播放两次,所以给播放音效添加一个最小下落速度需求。
      另请参阅:
  • 构造器详细资料

    • LootDropSound

      public LootDropSound()
  • 方法详细资料

    • isEnabled

      public static boolean isEnabled()
    • tryPlay

      public static void tryPlay(net.minecraft.world.entity.item.ItemEntity item, BooleanField hasPlayed)