Legacy stack type (#416)

Co-authored-by: Kogepan229 <kogepan25629@gmail.com>
This commit is contained in:
lc-1337andKogepan229 authored and GitHub committed 2026-04-07 21:23:45 +09:00
1 parent 4313dbb4e0
commit e66050c78d
2 files changed
+14 -6

No files matched your search

@@ -1,5 +1,7 @@
package com.glodblock.github.common.parts;
import static appeng.util.item.AEFluidStackType.FLUID_STACK_TYPE;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@@ -8,6 +10,7 @@ import com.glodblock.github.common.item.ItemFluidPacket;
import appeng.api.storage.StorageName;
import appeng.api.storage.data.IAEItemStack;
import appeng.api.storage.data.IAEStack;
import appeng.api.storage.data.IAEStackType;
import appeng.helpers.Reflected;
import appeng.parts.automation.PartLevelEmitter;
@@ -27,4 +30,9 @@ public class PartFluidLevelEmitter extends PartLevelEmitter {
this.getAEInventoryByName(StorageName.CONFIG).putAEStackInSlot(0, ItemFluidPacket.getFluidAEStack(ais));
}
}
@Override
protected IAEStackType<?> getUltraLegacyType() {
return FLUID_STACK_TYPE;
}
}