类 LootDropSound
java.lang.Object
cn.chloeprime.aaa_particles_world.client.content.LootDropSound
-
字段概要
字段修饰符和类型字段说明static final double防止丢到草径边上之类的场合,由于草径和周围完整方块细微的高度差 而导致音效连续播放两次,所以给播放音效添加一个最小下落速度需求。 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanstatic voidtryPlay(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
-