mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-26 10:29:20 +00:00
添加todo
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package net.momirealms.craftengine.bukkit.item.behavior;
|
||||
|
||||
import net.momirealms.craftengine.bukkit.nms.FastNMS;
|
||||
import net.momirealms.craftengine.bukkit.plugin.reflection.minecraft.CoreReflections;
|
||||
import net.momirealms.craftengine.bukkit.plugin.reflection.minecraft.MBlocks;
|
||||
import net.momirealms.craftengine.bukkit.util.BlockStateUtils;
|
||||
import net.momirealms.craftengine.bukkit.util.EventUtils;
|
||||
@@ -34,6 +35,7 @@ public class CompostableItemBehavior extends ItemBehavior {
|
||||
this.chance = chance;
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnstableApiUsage")
|
||||
@Override
|
||||
public InteractionResult useOnBlock(UseOnContext context) {
|
||||
BukkitBlockInWorld block = (BukkitBlockInWorld) context.getLevel().getBlockAt(context.getClickedPos());
|
||||
|
||||
@@ -22,6 +22,7 @@ categories:
|
||||
- default:palm_wood
|
||||
- default:stripped_palm_wood
|
||||
- default:palm_planks
|
||||
- default:palm_trapdoor
|
||||
default:topaz:
|
||||
name: "<!i><#FF8C00><i18n:category.topaz></#FF8C00>"
|
||||
hidden: true
|
||||
|
||||
@@ -8,6 +8,7 @@ import java.util.Map;
|
||||
|
||||
public record SoundData(Key id, float volume, float pitch) {
|
||||
|
||||
// todo 支持范围音量音调
|
||||
public static SoundData create(Object obj, float volume, float pitch) {
|
||||
if (obj instanceof String key) {
|
||||
return new SoundData(Key.of(key), volume, pitch);
|
||||
|
||||
Reference in New Issue
Block a user