mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
Legacy stack type (#416)
Co-authored-by: Kogepan229 <kogepan25629@gmail.com>
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user