| package li.cil.oc.common.items |
| |
| import net.minecraft.client.renderer.texture.IconRegister |
| import net.minecraft.entity.player.EntityPlayer |
| import net.minecraft.item.ItemStack |
| import net.minecraft.util.Icon |
| import net.minecraft.world.World |
| |
| trait SubItem { |
| def parent: ItemMulti |
| |
| def unlocalizedName: String |
| |
| val itemId = parent.add(this) |
| |
| // ----------------------------------------------------------------------- // |
| // Item |
| // ----------------------------------------------------------------------- // |
| |
| def icon: Icon = null |
| |
| def onItemRightClick(item: ItemStack, world: World, player: EntityPlayer): ItemStack = item |
| |
| def onItemUse(item: ItemStack, player: EntityPlayer, world: World, x: Int, y: Int, z: Int, side: Int, hitX: Float, hitY: Float, hitZ: Float): Boolean = false |
| |
| def registerIcons(iconRegister: IconRegister) {} |
| } |