9
0
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:
XiaoMoMi
2025-06-18 04:39:35 +08:00
parent e9411f390f
commit b6a384828d
3 changed files with 4 additions and 0 deletions

View File

@@ -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());

View File

@@ -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

View File

@@ -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);