mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-27 06:53:08 -04:00
Merge pull request #3 from repo-alt/ThaumicEnergistics-integration
Distillation pattern aspect information
This commit is contained in:
commit
d48648eaff
@ -0,0 +1,15 @@
|
|||||||
|
package li.cil.oc.integration.thaumicenergistics
|
||||||
|
import java.util
|
||||||
|
import cpw.mods.fml.common.registry.GameRegistry
|
||||||
|
import li.cil.oc.api.driver.Converter
|
||||||
|
import net.minecraft.item.ItemStack
|
||||||
|
import scala.collection.convert.WrapAsScala._
|
||||||
|
|
||||||
|
object ConvertAspectCraftable extends Converter {
|
||||||
|
private val DistillationPattern = GameRegistry.findItem("thaumicenergistics", "crafting.aspect")
|
||||||
|
override def convert(value: scala.Any, output: util.Map[AnyRef, AnyRef]): Unit = value match {
|
||||||
|
case stack: ItemStack if stack.getItem == DistillationPattern && stack.hasTagCompound =>
|
||||||
|
output += "aspect" -> stack.getTagCompound.getString("Aspect")
|
||||||
|
case _ =>
|
||||||
|
}
|
||||||
|
}
|
@ -14,5 +14,6 @@ object ModThaumicEnergistics extends ModProxy {
|
|||||||
|
|
||||||
Driver.add(DriverController.Provider)
|
Driver.add(DriverController.Provider)
|
||||||
Driver.add(DriverBlockInterface.Provider)
|
Driver.add(DriverBlockInterface.Provider)
|
||||||
|
Driver.add(ConvertAspectCraftable)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user