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

+6 -6
View File
@@ -34,10 +34,10 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
api('com.github.GTNewHorizons:NotEnoughItems:2.8.86-GTNH:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-885-GTNH:dev')
api('com.github.GTNewHorizons:NotEnoughItems:2.8.87-GTNH:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-889-GTNH:dev')
api('com.github.GTNewHorizons:waila:1.19.22:dev')
api("com.github.GTNewHorizons:GTNHLib:0.9.47:dev")
api("com.github.GTNewHorizons:GTNHLib:0.9.48:dev")
implementation("com.github.GTNewHorizons:WirelessCraftingTerminal:1.12.13:dev") {
exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial'
@@ -47,15 +47,15 @@ dependencies {
compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ForestryMC:4.11.12:dev')
compileOnly('com.github.GTNewHorizons:EnderIO:2.10.22:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.402:dev') {
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.411:dev') {
exclude group: 'com.github.GTNewHorizons', module: 'AE2FluidCraft-Rework'
exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial'
}
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
compileOnly('com.gregoriust.gregtech:gregtech_1.7.10:6.14.23:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:OpenComputers:1.12.22-GTNH:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.39-GTNH:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:OpenComputers:1.12.28-GTNH:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.40-GTNH:dev') { transitive = false }
runtimeOnlyNonPublishable("com.github.GTNewHorizons:DuraDisplay:1.4.2:dev")
}
@@ -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;
}
}