This commit is contained in:
1820982382
2026-10-28 12:24:10 +08:00
parent ce1a195277
commit 643802b329
179 changed files with 9465 additions and 2344 deletions
@@ -13,6 +13,7 @@ import net.minecraft.network.codec.StreamCodec;
import net.minecraft.resources.ResourceLocation;
import appeng.api.stacks.AEKey;
import appeng.api.stacks.AEKeyType;
import appeng.api.stacks.GenericStack;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
@@ -65,7 +66,10 @@ public final class AEssentiaKey extends AEKey {
}
@Override
public void addDrops(long amount, List<ItemStack> drops, Level level, BlockPos pos) {
// AE2 的包装物品保留精确的 long 数量,可用容器取回或在终端抽空。
if (amount > 0) drops.add(GenericStack.wrapInItemStack(this, amount));
}
@Override
@@ -133,4 +137,4 @@ public final class AEssentiaKey extends AEKey {
public static AEssentiaKey of(ResourceLocation id) {
return CACHE.computeIfAbsent(id, AEssentiaKey::new);
}
}
}