mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-26 22:43:40 -04:00
Distillation pattern aspect information
This commit is contained in:
parent
93427705f2
commit
25d750b3e2
@ -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(DriverBlockInterface.Provider)
|
||||
Driver.add(ConvertAspectCraftable)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user