diff --git a/build.gradle b/build.gradle index d04b2cb..5ea5f9c 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ buildscript { apply plugin: 'scala' apply plugin: 'forge' -version = "1.6.1" +version = "1.6.2" if (project.hasProperty('buildnum')) { project.version = project.version + '.' + project.buildnum diff --git a/src/net/bdew/lib/multiblock/data/SlotSet.scala b/src/net/bdew/lib/multiblock/data/SlotSet.scala index 086f2c4..f2748b8 100644 --- a/src/net/bdew/lib/multiblock/data/SlotSet.scala +++ b/src/net/bdew/lib/multiblock/data/SlotSet.scala @@ -9,6 +9,7 @@ package net.bdew.lib.multiblock.data +import cpw.mods.fml.relauncher.{Side, SideOnly} import net.bdew.lib.gui.Texture abstract class SlotSet(val outputConfigId: String) { @@ -16,13 +17,19 @@ abstract class SlotSet(val outputConfigId: String) { var slotMap = Map.empty[String, Slot] - case class Slot(id: String, name: String, texture: Texture) { + case class Slot(id: String, name: String) { slotMap += id -> this def next = order(this) + + @SideOnly(Side.CLIENT) + def texture = textures(this) } def default: Slot val order: Map[Slot, Slot] + @SideOnly(Side.CLIENT) + def textures: Map[Slot, Texture] + def get(id: String) = slotMap(id) }